Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Aktivacia Vyhod</title>
- </head>
- <body>
- <?php
- $response = "Dekujeme za zaslani SMS.";
- Header ('Content-type: text/plain');
- Header ('Content-length'.strlen($response));
- echo $response . " <br>";
- ///////////////
- // NASTAVENÍ //
- ///////////////
- $server = "xx";
- $port = "xxx";
- $heslo = "xx";
- //////////////////////////////
- // VYTAŽENÍ INFORMACÍ Z SMS //
- //////////////////////////////
- $datum = $_GET['timestamp'];
- $telefon = $_GET['phone'];
- $player = $_GET['sms'];
- $player = str_replace("PM RUSTMANIA VIP"," ",$player);
- $player = trim($player);
- //echo "player:";
- //echo $player;
- $price = $_GET['shortcode'];
- $price = str_replace("90333"," ",$price);
- //echo "price:";
- //echo $price;
- $stat = $_GET['country'];
- $operator = $_GET['operator'];
- $id = $_GET['id'];
- $commands = array();
- //////////////////////////////
- // JEDNOTLIVÉ CENOVÉ HLADINY//
- //////////////////////////////
- switch($price) {
- case 99: //cena 99kc
- $commands[] = "serv.premium ".$player." 30";//30dni vip
- $commands[] = "say "Hrac ".$player." si zakoupil VIP na dobu 30 dnu, Dekujeme."";
- break;
- case 79: //cena 50kc
- $commands[] = "serv.premium ".$player." 20";//20dni vip
- $commands[] = "say "Hrac ".$player." si zakoupil VIP na dobu 20 dnu, Dekujeme."";
- break;
- case 50: //cena 50kc
- $commands[] = "serv.premium ".$player." 10";//10dni vip
- $commands[] = "say "Hrac ".$player." si zakoupil VIP na dobu 10 dnu, Dekujeme."";
- break;
- }
- include_once('./rcon.php');
- $rcon = new CServerRcon($server,$port,$heslo);
- if ($rcon->Auth()) {
- foreach($commands as $command)
- $return = $rcon->rconCommand($command);
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement