@ 2016-03-22T08:30:41Z <?php
# DOHVAT IP ADRESE NOVOG KUPCA #
# ============================ #
$IP = $_SERVER['REMOTE_ADDR'];
# PROVJERA CENTILI IP ADRESE #
# ========================== #
if($IP != "193.105.74.44" && $IP != "193.105.74.47")
{
header("HTTP/1.1 406 Not acceptable");
echo("Zahtjev za naplatu nije poslan sa Centili IP adrese!");
mail("info@cent-sms-sender.ru", "PROBLEM: NEPOZNATA IP ADRESA", "ZAHTJEV NIJE POSLAN SA CENTILI IP ADRESE NEGO SA: $IP !");
exit;
}
# PREUZIMAM 5 ULAZNIH VARIJABLI #
# ============================= #
$NA = trim($_POST["phone"]);
$servis = trim($_POST["service"]);
$UlaznaCijena = trim($_POST["enduserprice"]);
$status = strtolower(trim($_POST["status"]));
$Country = strtoupper(trim($_POST["country"]));
# PROVJERA IDENTIFIKACIJE CENTILI SERVISA #
# ======================================= #
if($servis != "d808f98d1ea6c7fece480ed28518f69f")
{
header("HTTP/1.1 406 Not acceptable");
echo("Zahtjev nije poslan sa nasega Centili servisa!");
mail("info@cent-sms-sender.ru", "PROBLEM: NEPOZNAT CENTILI SERVIS", "ZAHTJEV NIJE POSLAN SA SIFRE MOG CENTILI SERVISA!");
exit;
}
# DEFINIRAM VALUTU IZ KODA DRŽAVE #
# =============================== #
if($Country == "HR")
{
$Valuta = "HRK";
}
else if($Country == "RS")
{
$Valuta = "RSD";
}
else if($Country == "BA")
{
$Valuta = "BAM";
}
else if($Country == "ME")
{
$Valuta = "EUR";
}
else
{
$Valuta = "???";
}
# PROVJERA STATUSA UPLATE #
# ======================= #
if($status != "success")
{
header("HTTP/1.1 406 Not acceptable");
$NA = substr_replace($NA , "XXXX", 5,4);
mail("info@cent-sms-sender.ru", "ALERT", "CENTILI STATUS NIJE UREDAN - KUPAC: $NA SE PREDOMISLIO!");
exit;
}
# DOHVAT REDNOG BROJA ZAHTJEVA I POMAK ZA JEDAN #
# ============================================= #
$RB = file_get_contents("rednibroj.txt");
settype($RB,"integer");
$RB = $RB + 1;
if($RB >= 61) $RB = 1;
# DOHVAT PIN KODA IZ MOJE BAZE #
# ============================ #
if($RB == 1) $PIN = "AA-18-99Q";
if($RB == 2) $PIN = "AA-20-Q6T";
if($RB == 3) $PIN = "AA-22-8X8";
if($RB == 4) $PIN = "AA-25-9AB";
if($RB == 5) $PIN = "AA-26-CVV";
if($RB == 6) $PIN = "AA-28-6WJ";
if($RB == 7) $PIN = "AA-34-58Q";
if($RB == 8) $PIN = "AA-36-W28";
if($RB == 9) $PIN = "AA-40-K4Q";
if($RB == 10) $PIN = "AA-45-L4T";
if($RB == 11) $PIN = "AA-46-7F5";
if($RB == 12) $PIN = "AA-47-Z9R";
if($RB == 13) $PIN = "AA-50-I8Z";
if($RB == 14) $PIN = "AA-55-U47";
if($RB == 15) $PIN = "AA-58-47U";
if($RB == 16) $PIN = "AA-60-DNK";
if($RB == 17) $PIN = "AA-63-W38";
if($RB == 18) $PIN = "AA-68-28B";
if($RB == 19) $PIN = "AA-70-J6G";
if($RB == 20) $PIN = "AA-71-F40";
if($RB == 21) $PIN = "AA-74-YXC";
if($RB == 22) $PIN = "AA-77-8TT";
if($RB == 23) $PIN = "AA-85-H6K";
if($RB == 24) $PIN = "AA-88-3FZ";
if($RB == 25) $PIN = "AA-95-D2E";
if($RB == 26) $PIN = "AA-95-X7Y";
if($RB == 27) $PIN = "AA-98-GHG";
if($RB == 28) $PIN = "AA-99-R5S";
if($RB == 29) $PIN = "AA-AB-001";
if($RB == 30) $PIN = "AA-AS-4EB";
if($RB == 31) $PIN = "AA-BA-17F";
if($RB == 32) $PIN = "AA-C7-1M8";
if($RB == 33) $PIN = "AA-CR-234";
if($RB == 34) $PIN = "AA-F1-ABA";
if($RB == 35) $PIN = "AA-G2-R85";
if($RB == 36) $PIN = "AA-HV-68G";
if($RB == 37) $PIN = "AA-KJ-587";
if($RB == 38) $PIN = "AA-KR-87G";
if($RB == 39) $PIN = "AA-L2-M58";
if($RB == 40) $PIN = "AA-L4-P24";
if($RB == 41) $PIN = "AA-N9-T95";
if($RB == 42) $PIN = "AA-OP-UTF";
if($RB == 43) $PIN = "AA-QL-G4A";
if($RB == 44) $PIN = "AA-T3-DD6";
if($RB == 45) $PIN = "AA-TA-A42";
if($RB == 46) $PIN = "AA-UP-9TT";
if($RB == 47) $PIN = "AA-W5-Z55";
if($RB == 48) $PIN = "AA-WQ-P6T";
if($RB == 49) $PIN = "AA-Y5-K3K";
if($RB == 50) $PIN = "AA-ZA-15R";
if($RB == 51) $PIN = "AA-ZB-18A";
if($RB == 52) $PIN = "AA-ZC-19W";
if($RB == 53) $PIN = "AA-ZD-20U";
if($RB == 54) $PIN = "AA-ZE-25Q";
if($RB == 55) $PIN = "AA-ZF-30Z";
if($RB == 56) $PIN = "AA-ZG-34Y";
if($RB == 57) $PIN = "AA-ZH-40C";
if($RB == 58) $PIN = "AA-ZK-58K";
if($RB == 59) $PIN = "AA-ZM-65V";
if($RB == 60) $PIN = "AA-ZR-74G";
# PUNIM VARIJABLE ZA PORUKU O UPLATI #
# ================================== #
$tmp = "Dostava PIN koda: $PIN";
$poruka = urlencode($tmp);
# ŠALJEM SMS PORUKU KUPCU SA NJEGOVIM PIN KODOM #
# PRIJE TOGA DEFINIRAM IZNIMKU SAMO ZA BH MOBILE#
# ============================================= #
if(substr($NA,0,5) == "38760")
{
$BulkURL = "username=dgenadij&password=#Bulk2016#&repliable=0&sender=centSMS&routing_group=1&message=".$poruka."&msisdn=".$NA;
}
else
{
$BulkURL = "username=dgenadij&password=#Bulk2016#&repliable=0&sender=387644210673&routing_group=1&message=".$poruka."&msisdn=".$NA;
}
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,"https://bulksms.vsms.net/eapi/submission/send_sms/2/2.0");
curl_setopt($ch,CURLOPT_POSTFIELDS,$BulkURL);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,10);
curl_setopt($ch, CURLOPT_FRESH_CONNECT,1);
curl_setopt($ch, CURLOPT_TIMEOUT,30);
curl_setopt($ch,CURLOPT_HEADER,false);
$REZ = curl_exec($ch);
curl_close($ch);
$BulkStatus=substr($REZ, 0, strpos($REZ, "|"));
if($BulkStatus != 0)
{
mail("info@cent-sms-sender.ru","UPOZORENJE ZBOG NESLANJA PIN KODA","NIJE ISPORUCENA SMA PORUKA OBAVIJESTI:<br> $poruka !");
}
# PREPISUJEM ŠTITEĆI ANONIMNOST #
# ============================= #
$NA = substr_replace($NA , "XXXX", 5,4);
# POHRANA NOVOG REDNOG BROJA ZAHTJEVA #
# =================================== #
settype($RB,"string");
file_put_contents("rednibroj.txt", $RB);
# PODEŠAVAM STANJE RAČUNA NOVOGA KORISNIKA #
# MANIPULACIJOM PREKO STANJA SPEND DATOTEKE #
# ========================================= #
# REPUBLIKA SRBIJA #
if($Country == "RS" && $UlaznaCijena == "30.000")
{
$IzlaznaCijena = "0.40";
}
else if($UlaznaCijena == "60.000")
{
$IzlaznaCijena = "0.35";
}
else if($UlaznaCijena == "180.000")
{
$IzlaznaCijena = "0.00";
}
else if($UlaznaCijena == "840.000")
{
$IzlaznaCijena = "-2.00";
}
# REPUBLIKA CRNA GORA #
else if($UlaznaCijena == "0.510")
{
$IzlaznaCijena = "0.35";
}
else if($UlaznaCijena == "1.020")
{
$IzlaznaCijena = "0.20";
}
else if($UlaznaCijena == "3.050")
{
$IzlaznaCijena = "-0.50";
}
# REPUBLIKA HRVATSKA #
else if($UlaznaCijena == "3.500")
{
$IzlaznaCijena = "0.35";
}
else if($UlaznaCijena == "10.000")
{
$IzlaznaCijena = "0.00";
}
else if($Country == "HR" && $UlaznaCijena == "30.000")
{
$IzlaznaCijena = "-1.00";
}
# REPUBLIKA BiH #
else if($UlaznaCijena == "0.940")
{
$IzlaznaCijena = "0.35";
}
else if($UlaznaCijena == "2.340")
{
$IzlaznaCijena = "0.00";
}
else if($UlaznaCijena == "3.510")
{
$IzlaznaCijena = "-0.15";
}
# AKO CENTILI UKLONI POSTOJEĆU CIJENU #
# PODESITI 0.50 € I POSLATI UPOZORENJE #
else
{
$IzlaznaCijena = "0.00";
mail("info@cent-sms-sender.ru","UPOZORENJE ZBOG CENTILI PROMJENE","PROVJERITI JE LI CENTILI MOZDA UKLONIO POSTOJECU CIJENU: $UlaznaCijena !");
}
$URL = "/home/centsmss/public_html/".$PIN."/user-spend.txt";
$fp = fopen($URL, "w");
fwrite($fp, $IzlaznaCijena);
fclose ($fp);
# POHRANJUJEM ROK VAŽENJA KORIŠTENJA APLIKACIJE #
# ============================================= #
$date1 = strtotime(date('d.m.Y'));
# LICENCA VAŽI DO PONOĆI #
if($Country == "RS" && $UlaznaCijena == "30.000")
{
$date2 = strtotime("+0 day", $date1);
}
# LICENCA VAŽI 3 DANA #
else if($UlaznaCijena == "3.500" || $UlaznaCijena == "0.940" || $UlaznaCijena == "60.000" || $UlaznaCijena == "0.510")
{
$date2 = strtotime("+3 day", $date1);
}
# LICENCA VAŽI 10 DANA #
else if($UlaznaCijena == "10.000" || $UlaznaCijena == "180.000" || $UlaznaCijena == "2.340" || $UlaznaCijena == "1.020")
{
$date2 = strtotime("+10 day", $date1);
}
# LICENCA VAŽI 30 DANA #
else if($UlaznaCijena == "840.000" || $UlaznaCijena == "30.000" || $UlaznaCijena == "3.510" || $UlaznaCijena == "3.050")
{
$date2 = strtotime("+30 day", $date1);
}
else
{
$date2 = strtotime("+1 day", $date1);
mail("info@cent-sms-sender.ru","UPOZORENJE ZBOG CENTILI NELOGICNOSTI","PROVJERITI ZASTO NIJE PRONADJENA ULAZNA CIJENA: $UlaznaCijena !");
}
$ROK = date('d.m.Y', $date2);
$URL = "/home/centsmss/public_html/".$PIN."/user-valid.txt";
$fp = fopen($URL, "w");
fwrite($fp, $ROK);
fclose ($fp);
# ŠALJEM SAM SEBI E-MAIL OBAVIJEST #
# ================================ #
mail("info@cent-sms-sender.ru","$RB. CENTILI UPLATA!","KUPLJEN PIN KOD: $PIN PREMA GSM BROJU: $NA PO CIJENI: $UlaznaCijena $Valuta !");
# VRAĆAM STATUS CENTILI NOTIFIKACIJE #
# ================================== #
header("HTTP/1.1 200 Ok");
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Abusive script This script was stopped while abusing our resources
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 8.3.11 0.003 0.009 20.94 8.3.10 0.006 0.003 24.06 8.3.9 0.007 0.013 26.77 8.3.8 0.000 0.009 17.97 8.3.7 0.011 0.007 16.88 8.3.6 0.012 0.003 17.00 8.3.5 0.017 0.008 22.05 8.3.4 0.012 0.003 18.94 8.3.3 0.009 0.006 18.88 8.3.2 0.003 0.005 19.02 8.3.1 0.004 0.004 21.85 8.3.0 0.005 0.003 20.95 8.2.23 0.004 0.008 22.58 8.2.22 0.009 0.000 37.54 8.2.21 0.006 0.003 26.77 8.2.20 0.009 0.000 18.54 8.2.19 0.013 0.003 18.82 8.2.18 0.006 0.009 16.50 8.2.17 0.000 0.014 22.96 8.2.16 0.011 0.011 19.51 8.2.15 0.000 0.008 24.18 8.2.14 0.005 0.003 24.66 8.2.13 0.004 0.004 22.08 8.2.12 0.004 0.004 26.35 8.2.11 0.000 0.009 19.57 8.2.10 0.009 0.003 17.97 8.2.9 0.003 0.005 18.16 8.2.8 0.005 0.003 19.89 8.2.7 0.006 0.003 18.05 8.2.6 0.000 0.008 18.13 8.2.5 0.008 0.000 18.10 8.2.4 0.004 0.004 20.76 8.2.3 0.006 0.003 20.83 8.2.2 0.005 0.003 18.05 8.2.1 0.005 0.003 18.20 8.2.0 0.000 0.008 18.35 8.1.29 0.011 0.000 30.84 8.1.28 0.007 0.014 25.92 8.1.27 0.011 0.011 23.64 8.1.26 0.003 0.005 28.09 8.1.25 0.006 0.003 28.09 8.1.24 0.000 0.009 23.82 8.1.23 0.006 0.006 21.01 8.1.22 0.000 0.008 17.86 8.1.21 0.000 0.008 19.21 8.1.20 0.000 0.009 17.48 8.1.19 0.005 0.003 17.36 8.1.18 0.008 0.000 18.10 8.1.17 0.005 0.003 20.65 8.1.16 0.003 0.006 19.13 8.1.15 0.000 0.009 19.07 8.1.14 0.005 0.003 19.76 8.1.13 0.003 0.003 17.87 8.1.12 0.007 0.000 17.66 8.1.11 0.000 0.007 17.60 8.1.10 0.003 0.006 17.56 8.1.9 0.005 0.003 17.63 8.1.8 0.002 0.005 17.55 8.1.7 0.000 0.007 17.58 8.1.6 0.000 0.009 17.77 8.1.5 0.000 0.008 17.76 8.1.4 0.003 0.006 17.70 8.1.3 0.003 0.005 17.70 8.1.2 0.006 0.003 17.73 8.1.1 0.008 0.000 17.53 8.1.0 0.008 0.000 17.68 8.0.30 0.000 0.009 19.88 8.0.29 0.004 0.004 17.00 8.0.28 0.003 0.003 18.59 8.0.27 0.000 0.007 17.43 8.0.26 0.003 0.003 17.35 8.0.25 0.003 0.005 17.07 8.0.24 0.000 0.007 17.23 8.0.23 0.003 0.005 17.21 8.0.22 0.004 0.004 17.05 8.0.21 0.004 0.004 17.02 8.0.20 0.000 0.007 17.15 8.0.19 0.004 0.004 17.20 8.0.18 0.005 0.002 17.13 8.0.17 0.004 0.004 17.18 8.0.16 0.004 0.004 17.14 8.0.15 0.007 0.000 17.09 8.0.14 0.008 0.000 17.07 8.0.13 0.003 0.003 13.61 8.0.12 0.004 0.004 17.12 8.0.11 0.000 0.007 17.04 8.0.10 0.006 0.003 16.99 8.0.9 0.004 0.004 17.09 8.0.8 0.006 0.010 17.05 8.0.7 0.004 0.004 17.19 8.0.6 0.004 0.004 17.03 8.0.5 0.000 0.007 17.19 8.0.3 0.012 0.006 17.28 8.0.2 0.012 0.008 17.40 8.0.1 0.006 0.003 17.31 8.0.0 0.016 0.005 16.93 7.4.33 0.005 0.000 15.08 7.4.32 0.000 0.007 16.77 7.4.30 0.003 0.003 16.80 7.4.29 0.003 0.003 16.72 7.4.28 0.004 0.004 16.78 7.4.27 0.004 0.004 16.79 7.4.26 0.007 0.000 16.65 7.4.25 0.003 0.006 16.50 7.4.24 0.004 0.004 16.79 7.4.23 0.005 0.003 16.80 7.4.22 0.010 0.017 16.71 7.4.21 0.006 0.009 16.64 7.4.20 0.004 0.004 16.57 7.4.16 0.006 0.009 16.56 7.4.15 0.012 0.006 17.40 7.4.14 0.009 0.012 17.86 7.4.13 0.005 0.012 16.79 7.4.12 0.008 0.008 16.75 7.4.11 0.007 0.010 16.59 7.4.10 0.014 0.003 16.76 7.4.9 0.006 0.013 16.54 7.4.8 0.003 0.014 19.39 7.4.7 0.014 0.003 16.69 7.4.6 0.007 0.011 16.71 7.4.5 0.003 0.012 16.64 7.4.4 0.013 0.009 16.89 7.4.3 0.009 0.015 16.82 7.4.0 0.010 0.007 15.29 7.3.33 0.000 0.005 13.40 7.3.32 0.000 0.006 13.46 7.3.31 0.003 0.003 16.53 7.3.30 0.000 0.007 16.53 7.3.29 0.006 0.011 16.51 7.3.28 0.004 0.015 16.51 7.3.27 0.013 0.007 17.40 7.3.26 0.006 0.013 16.78 7.3.25 0.009 0.010 16.51 7.3.24 0.010 0.012 16.56 7.3.23 0.000 0.024 16.57 7.3.21 0.012 0.006 16.59 7.3.20 0.016 0.000 16.83 7.3.19 0.009 0.006 16.66 7.3.18 0.009 0.008 16.55 7.3.17 0.013 0.011 16.45 7.3.16 0.006 0.010 16.83 7.3.1 0.007 0.004 16.79 7.3.0 0.007 0.007 16.64 7.2.33 0.011 0.007 16.69 7.2.32 0.017 0.003 16.83 7.2.31 0.019 0.003 16.54 7.2.30 0.010 0.007 16.87 7.2.29 0.010 0.010 16.72 7.2.13 0.006 0.006 16.87 7.2.12 0.004 0.015 16.77 7.2.11 0.010 0.006 16.70 7.2.10 0.003 0.007 16.85 7.2.9 0.007 0.007 17.01 7.2.8 0.012 0.003 16.61 7.2.7 0.006 0.009 16.96 7.2.6 0.006 0.009 16.78 7.2.5 0.007 0.003 16.49 7.2.4 0.004 0.014 17.07 7.2.3 0.006 0.009 17.02 7.2.2 0.006 0.006 16.84 7.2.1 0.010 0.000 17.09 7.2.0 0.006 0.008 18.20 7.1.25 0.009 0.006 15.80 7.1.20 0.000 0.012 15.80 7.1.10 0.005 0.005 17.63 7.1.7 0.000 0.009 16.82 7.1.6 0.000 0.012 20.41 7.1.0 0.000 0.080 22.44 7.0.20 0.047 0.009 14.56 7.0.10 0.017 0.053 20.06 7.0.9 0.013 0.043 20.13 7.0.8 0.017 0.040 20.03 7.0.7 0.023 0.057 19.98 7.0.6 0.030 0.060 19.94 7.0.5 0.020 0.043 20.49 7.0.4 0.000 0.043 20.02 7.0.3 0.003 0.043 20.09 7.0.2 0.013 0.040 19.99 7.0.1 0.000 0.040 20.10 7.0.0 0.003 0.063 20.01 5.6.28 0.000 0.077 21.21 5.6.25 0.010 0.053 20.66 5.6.24 0.003 0.070 20.54 5.6.23 0.000 0.043 20.78 5.6.22 0.010 0.040 20.61 5.6.21 0.000 0.047 20.64 5.6.20 0.003 0.043 21.07 5.6.19 0.007 0.040 21.12 5.6.18 0.010 0.030 21.16 5.6.17 0.000 0.077 21.10 5.6.16 0.007 0.063 21.14 5.6.15 0.003 0.047 20.96 5.6.14 0.003 0.043 21.04 5.6.13 0.000 0.083 20.96 5.6.12 0.017 0.077 21.10 5.6.11 0.007 0.083 21.11 5.6.10 0.013 0.073 21.13 5.6.9 0.007 0.087 21.01 5.6.8 0.003 0.083 20.50 5.6.7 0.007 0.080 20.51 5.6.6 0.007 0.080 20.36 5.6.5 0.013 0.067 20.39 5.6.4 0.013 0.077 20.48 5.6.3 0.010 0.073 20.47 5.6.2 0.007 0.080 20.46 5.6.1 0.003 0.070 20.46 5.6.0 0.010 0.080 20.33 5.5.38 0.010 0.063 20.39 5.5.37 0.007 0.037 20.60 5.5.36 0.010 0.050 20.43 5.5.35 0.003 0.040 20.38 5.5.34 0.007 0.037 20.83 5.5.33 0.007 0.070 20.64 5.5.32 0.000 0.070 20.86 5.5.31 0.003 0.040 20.83 5.5.30 0.007 0.073 20.83 5.5.29 0.010 0.070 20.80 5.5.28 0.013 0.073 20.86 5.5.27 0.013 0.073 20.92 5.5.26 0.010 0.083 20.92 5.5.25 0.007 0.080 20.72 5.5.24 0.000 0.080 20.30 5.5.23 0.010 0.080 20.34 5.5.22 0.007 0.070 20.32 5.5.21 0.007 0.080 20.21 5.5.20 0.003 0.053 20.14 5.5.19 0.010 0.073 20.20 5.5.18 0.007 0.080 20.21 5.5.16 0.007 0.073 20.27 5.5.15 0.013 0.037 20.26 5.5.14 0.020 0.063 20.02 5.5.13 0.007 0.070 20.23 5.5.12 0.013 0.057 20.27 5.5.11 0.017 0.070 20.29 5.5.10 0.010 0.073 20.01 5.5.9 0.013 0.067 20.16 5.5.8 0.003 0.067 19.97 5.5.7 0.003 0.077 20.03 5.5.6 0.010 0.077 20.09 5.5.5 0.003 0.083 20.15 5.5.4 0.003 0.057 20.18 5.5.3 0.010 0.077 20.05 5.5.2 0.007 0.070 20.02 5.5.1 0.007 0.077 20.15 5.5.0 0.017 0.070 20.09
preferences:dark mode live preview
65.93 ms | 403 KiB | 5 Q