if (isset($_POST['xcode'])) { // Если код передается скрипту с именем xcode if (strlen($_POST['xcode']) == 16) { // Код на digiseller равен 16 символам $code = $_POST['xcode']; // Вводим переменную с кодом function _GetAnswer($address, $xml){ $ch = curl_init($address); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); $result=curl_exec($ch); return $result; } $sign = md5("id продавца:$code:password от продавца"); // Тут заполняем в соответствии с своими данными $xml = ' тут твой id '.$code.' '.$sign.' '; $answer=_GetAnswer("http://shop.digiseller.ru/xml/check_unique_code.asp", $xml); $xmlres = simplexml_load_string($answer); function object2array($object) { return @json_decode(@json_encode($object),1); } $xmlres = object2array($xmlres); // переводим XML в массив if ($xmlres['retdesc'] == "не найден unique_code (код ошибки 1)") { // проверяем, есть ли вообще такой код echo "Код не найден"; } else { $type = $xmlres['type_curr']; // получаем валюту (WMZ, WMR, WMU) $amount = $xmlres['amount']; // получаем сумму if ($type == "WMR") { $amount = $amount/30; // тут меняете курс рубля на свой } if ($type == "WMU") { $amount = $amount/8; // тут курс гривны на свой } $amount = round($amount,3); $inv = $xmlres['inv']; $date = date('l jS \of F Y h:i:s A'); $query = mysql_query("SELECT * FROM pays WHERE inv='$inv'"); // pays - таблица с оплатами if (mysql_num_rows($query) == 0) { // проверяем, был ли использован код $login = "логин пользователя"; $query = mysql_query("INSERT INTO pays (inv, amount, date, login) VALUES ('$inv', '$amount', '$date', '$login')") or die("MySQL ERROR: ".mysql_error());; $balance = mysql_query('select * from users where login = "'.$login.'" limit 0,1') or die("MySQL ERROR: ".mysql_error());; // получаем текущий баланс пользователя $balance = mysql_fetch_array($balance); $balance = $balance['balance']; $amount = $balance + $amount; // прибавляем $query = mysql_query("UPDATE users SET balance='$amount' WHERE login='".$login."'") or die("MySQL ERROR: ".mysql_error());; echo "Счет пополнен! Редирект..."; echo ''; } else { echo "Код уже был использован"; } } } else { echo "Введите правильный код!"; } }
Главная | Набор в клан FD GOD *{FAN}* - Страница 3 - Форум | Регистрация | Вход
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 3 из 3
  • «
  • 1
  • 2
  • 3
Форум » ВХОД » ВХОД на ФОРУМ » Набор в клан FD GOD *{FAN}* (Челябинский клан)
Набор в клан FD GOD *{FAN}*
AtottAstersДата: Воскресенье, 30.09.2012, 11:34 | Сообщение # 31
Группа: Гости





Hello!
Vestibulum leo libero tempus. Pellentesque habitant morbi tristique id ultricies pretium ultrices eu metus.
 
DatJattaniepeДата: Вторник, 04.12.2012, 16:57 | Сообщение # 32
Группа: Гости





<a href=http://buypriligy4cn.com/#Dearrypreotly>buy priligy US</a> , http://buypriligy4cn.com/#Artessbrend buy cheap priligy
 
GakeatteseeДата: Понедельник, 21.01.2013, 01:19 | Сообщение # 33
Группа: Гости





<a href=http://ordergenericviagra24.com/#Dearrypreotly>buy generic viagra</a> , http://ordergenericviagra24.com/#Artessbrend order generic viagra
 
cyncvawayДата: Воскресенье, 03.02.2013, 18:16 | Сообщение # 34
Группа: Гости





<a href=http://woodworkingplans1.com/#Duckcrermerma>teds woodworking</a> , http://woodworkingplans1.com/#EagevenLeme ted woodworking
 
ZerBeigueДата: Вторник, 12.02.2013, 01:57 | Сообщение # 35
Группа: Гости





Предлагаю вашему вниманю новый сайт http://gmsrun123456.ru/ - игр онлайн
 
HOBLEPMELLAДата: Четверг, 28.02.2013, 19:53 | Сообщение # 36
Группа: Гости





Our company provides safe pills. Look at our health contributing portal in case you want to strengthen your health. http://zachajessi.rupai.net/fi/synthroid/thyroxine-annos.html - thyroxine annos Our company provides supreme quality healthcare products. Take a look at our health contributing portal in case you want to look better. http://ndicha.freeweq.com/us/cialis/cialis-from-australia.html - cialis from australia Our company provides herbal healthcare products. Take a look at our health contributing site in case you want to look healthier. http://makewalk.ohost.de/se/kamagra-oral-jelly/hur-kper-kamagra-oral-jelly-p-ntet.html - Hur köper kamagra oral jelly på nätet Our company provides a wide variety of pharmacy. Take a look at our health contributing site in case you want to look better. http://netnext.freeweq.com/cz/viagra-super-active - viagra super active Our company provides a wide variety of non prescription drugs. Visit our health portal in case you want to feel better with a help health products. http://inglmira.funpic.org/cz/clomid/clomid-nedouc-inky.html Our company offers health products. Take a look at our health contributing portal in case you want to feel better. http://odelcorp.freeweq.com/us/clomid/with-clomid-when-is-the-ovulation.html - with clomid when is the ovulation
Our company provides a wide variety of non prescription products. Take a look at our health portal in case you want to to improve your health with a help of generic supplements. http://spoigi.freeweq.com/no/xenical/xenical-er-for-hva.html - xenical er for hva Our company provides a wide variety of non prescription products. Take a look at our health website in case you want to look healthier with a help generic supplements. http://mateuupe.freeweq.com/fr/cipro/ciprofloxacin.html - ciprofloxacin Our company offers generic supplements. Look at our health contributing website in case you want to strengthen your health. http://stolline.funpic.org/es/nolvadex/tamoxifen-generico.html - tamoxifen generico Our company provides a wide variety of non prescription drugs. Look at our health portal in case you want to look better with a help generic supplements. http://mayerlock.funpic.de/us/viagra/viagra-quality.html Our company provides a wide variety of non prescription drugs. Visit our health site in case you want to strengthen your health with a help of generic supplements. http://juliahom.ohost.de/us/synthroid/thyroxine-is-a.html - thyroxine is a
Our company provides supreme quality healthcare products. Look at our health contributing site in case you want to improve your health. http://spoigi.freeweq.com/no/lasix/hvem-som-er-lasix-for.html - hvem som er lasix for Our company offers herbal health products. Visit our health contributing website in case you want to feel better. http://netnext.freeweq.com/se/viagra-soft/dr-kan-du-f-viagra-soft-frn.html - där kan du få viagra soft från Our company offers a wide variety of healthcare products. Visit our health contributing site in case you want to look healthier. Our company offers safe health products. Look at our health contributing portal in case you want to feel healthier. http://leadbir.funpic.org/se/viagra/dr-kan-du-f-viagra-frn.html Our company offers general health products. Take a look at our health contributing website in case you want to look healthier. http://fuchsnad.ohost.de/it/propecia/finasteride-ratiopharm-1-mg.html - finasteride ratiopharm 1 mg
Our company provides herbal pharmacy. Take a look at our health contributing portal in case you want to feel healthier. http://makewalk.ohost.de/cz/flagyl/jak-se-flagyl.html - jak se flagyl Our company provides health and related products. Take a look at our health contributing site in case you want to look healthier. http://netnext.freeweq.com/cz/amoxil/kdo-je-amoxil-pro.html - kdo je amoxil pro Our company provides supreme quality general health products. Take a look at our health contributing portal in case you want to improve your health. http://odelcorp.freeweq.com/us/viagra/good-viagra.html - good viagra Our company offers a wide variety of health and related products. Take a look at our health contributing portal in case you want to look better. http://stavas.funpic.org/us/cialis/which-is-best-cialis-levitra-or-viagra.html Our company offers a wide variety of non prescription products. Look at our health website in case you want to to improve your health with a help general health products. http://tvrddecid.freeweq.com/us/viagra/where-to-buy-viagra-online.html - where to buy viagra online
 
InsediaPreseeДата: Понедельник, 07.10.2013, 02:16 | Сообщение # 37
Группа: Гости





Для них чем больше грязи тем дороже билеты на фанеру. Насчет сбитых 37 самолетов и вертолетов в неделю написал человек крайне слабо разбирающийся в теме, для тех, кто не разбирается в этом вовсе. аскона матрасы
 
ГостьДата: Пятница, 15.08.2014, 12:53 | Сообщение # 38
Группа: Гости





Wait, I cannot fathom it being so strrdghtforwaai.
 
ГостьДата: Суббота, 16.08.2014, 00:32 | Сообщение # 39
Группа: Гости





Whoa, whoa, get out the way with that good infiamrtoon.
 
ГостьДата: Суббота, 16.08.2014, 16:00 | Сообщение # 40
Группа: Гости





You have the monopoly on useful innoamatiof-rren't monopolies illegal? wink
 
ThomasptДата: Понедельник, 17.11.2014, 02:40 | Сообщение # 41
Группа: Гости





Жизнь - смешной рассказ. Никогда не знаешь смысла и все равно смеешься. wink
 
Форум » ВХОД » ВХОД на ФОРУМ » Набор в клан FD GOD *{FAN}* (Челябинский клан)
  • Страница 3 из 3
  • «
  • 1
  • 2
  • 3
Поиск:

При копировании материала ссылка обязательна!Сами ели спиздили=)