Hello i found this script for sms payment but he is for 10000 in votes .
Can someone to update him to be for 1 week vip ? Here is a code -
I dont now this will help to someone other but i share him.
like you see the code is from aardvark but i em realy awful with coding and ask for help and thanks in advance.
Ps:Sry for my bad eng.
Can someone to update him to be for 1 week vip ? Here is a code -
Code:
<?php
$item = $_REQUEST["item"];
$fromnum = $_REQUEST["fromnum"];
$extid = $_REQUEST["extid"];
$mobio_remote_addrs = array("87.120.176.216", "194.12.244.114");
$servID = 13395; /// тук си попълни верния код на услугата вижда се в преглед на услугата
if(in_array($_SERVER['REMOTE_ADDR'], $mobio_remote_addrs)) {
// your script action begins
$dbhost = "localhost"; // хост
$dbuser = "username"; // mysql потребител
$dbpassword = "password"; // mysql парола
$db = "db"; /// базата данни на сайта
$credits_to_add = '10000';
$sms_reply = 'Greshka.Spazvaite tochno instrukciite.';
$conn = @mysql_connect($dbhost, $dbuser, $dbpassword);
if($conn){
mysql_select_db($db);
$res = mysql_query("SELECT unq_in_0_monthly FROM ats_stats WHERE username='$item'");
if(mysql_num_rows($res) != 0) {
mysql_query("UPDATE ats_stats SET unq_in_0_monthly=unq_in_0_monthly+'$credits_to_add' WHERE username='$item'");
}else{
mysql_query("INSERT INTO ats_stats (username, unq_in_0_monthly) VALUES('$item', '$credits_to_add')");
}
$res = mysql_query("SELECT unq_in_0_monthly FROM ats_stats WHERE username='$item'");
if(mysql_num_rows($res) != 0) {
$row = mysql_fetch_row($res);
$sms_reply = "Vashite glasove e uspeshno zakupen. Imate {$row[0]} glasa.";
}
}
// your script action ends
file("http://mobio.bg/paynotify/pnsendsms.php?servID=$servID&tonum=$fromnum&extid=$extid&message=".urlencode($sms_reply));
}
?>
I dont now this will help to someone other but i share him.
like you see the code is from aardvark but i em realy awful with coding and ask for help and thanks in advance.
Ps:Sry for my bad eng.