Ahojte,
používám na mobilniplatby.cz tento script ale když si někdo zakoupí VIP, tak to na server odešle příkaz "/op PM FH5 <jméno>. Nevíte jak mám udělat, aby příkaz odešel pouze s jménem ? Myslím takto - /op <jméno>
Kód: Vybrat vše
<?php
/////////////
//NASTAVENI//
/////////////
$server = "xxxxx";
$port = "xxxx";
$password = "xxxxxx";
//////////////////////
//VYTAŽENÍ INFORMACÍ//
//////////////////////
$price = $_GET['shortcode'];
$country = $_GET['country'];
$operator = $_GET['operator'];
$telefon = $_GET['phone'];
$datum = $_GET['timestamp'];
$sms = $_GET['sms'];
$id = $_GET['id'];
$cmds = array();
///////////
//PĹĂŤKAZY//
///////////
switch($price) {
case 9033379: //SMS za 79KÄŤ
$cmds[] = "say $sms";
break;
}
include_once("rcon.php");
$r = new rcon($server,$port,$password);
if($r->Auth())
{
foreach($cmds as $cmd)
$r->rconCommand($cmd);
}
if($country == 'CZ') {
$response = "Dekujeme za zaslani SMS.";
Header ("Content-type:text/plain");
echo $response;
} else {
$response = "Dekujeme za zaslani SMS.;".$price;
Header ("Content-type:text/plain");
Header ("Content-length".strlen($response));
echo $response;
}
?>
Díky za pomoc
