- 0
[REQUEST]SCRIPT
-
Posts
-
Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
-
Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
-
Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
-
-
Topics
Question
fokys
Here is the script for http://2pay.pro/!But for some reason it does not wanna work!
Can somebody look at this code,and see if something is wrong!
It is not coded by me,i found it on some forum!
If somebody could get this working it would really help many users of this forum to have good donation system!
As they have over 60 payment options!
----------------------------------------------------------------------------------------------------------------------------
<?php
//
//
header( 'Content-type: text/xml' );
//Ип адреса, с которых будет приходить запрос. Для защиты.
$check_ip[]="82.146.40.60";
$check_ip[]="188.120.245.101";
$check_ip[]="188.120.245.102";
$date=date("d.m.y");
//======================================настройки============================================
// Секретный ключ
$secret_key = "your-secret-key";
// Переменные для подключения к базе данных, впишите те, которые использовали при установке базы данных
$server='localhost';
$user='user';
$pass='password';
$db='l2jdb';
//===========================================================================================
$flag = $_REQUEST['command'];
$md5 = $_REQUEST['md5'];
// Идентификатор платежа
$v1 = $_REQUEST['v1'];
if( isset($_REQUEST['id']) ) $id=$_REQUEST['id']; else $id=0;
$kod=1;
// Проверка ип
if (in_array($_SERVER['REMOTE_ADDR'], $check_ip)) {
// Подключение к базе данных
mysql_connect($server, $user, $pass) or die("Can't connect to database");
mysql_select_db($db) or die("Can't select database ".$db);
// Если статус запрос
if( ($flag == 'check') && ($md5 == md5($flag.$v1.$secret_key)) ) {
// Поиск персонажа
$sql=mysql_query("SELECT * FROM `account` WHERE `username`='".$v1."' LIMIT 0, 1");
$rows = mysql_num_rows($sql);
if ($rows > 0) {
$kod=0;
$desc='Character exists';
} else {
$kod=1;
$desc='Character not found';
}
} else {
// Если команда на платеж
if( ($flag == 'pay') && ($md5 == md5($flag.$v1.$id.$secret_key)) ) {
$sql=mysql_query("SELECT * FROM `2pay_payment` WHERE `id`='".$id."'");
$rows = mysql_num_rows($sql);
// Если платеж был проведен ранее
if ($rows > 0)
{
$kod=0;
$desc='Payment was send earlier';
} else
{ // Иначе пытаемся провести платеж
$item_count=$_REQUEST['sum']; // Количество монет для зачисления, полученное в запросе
$sql=mysql_query("SELECT * FROM `account` WHERE `username`='".$v1."' LIMIT 0, 1");
$character=mysql_fetch_array($sql);
$account_ref=$character['account_name'];
// Если персонаж найден
if(mysql_num_rows($sql)==1) {
// Добавляем персонажу количество купленных монет
$sql=mysql_query("INSERT INTO `your_table` (`owner_id`,`item_id`,`count`,`enchant_level`,`flags`,`payment_status`, `description`) VALUES ('".$character['obj_Id']."','".$item."','".$item_count."','0','0','0', '2pay date ".$date." ".$v1."')") or die(mysql_error());
// Указываем таблицу для даты, суммы, и айди платежа ее я залил вместе со скриптом
$sql=mysql_query("INSERT INTO `2pay_payment` (`count`,`date`,`id`) VALUES ('".$_REQUEST['sum']."','".$date."','".$_REQUEST['id']."')");
$kod=0;
$desc="ok";
} else
{
$kod=2;
$desc="Character not found";
}
}
} else
{ // // Обработка исключения: если не совпал md5 или неизвестный запрос
$kod=2;
$desc="Unknown request or account not found";
}
}
} else { $desc="Parametrs or IP is not correct"; }
// Ответ
if ($flag == 'status') {$html="<?xml version=\"1.0\" encoding=\"windows-1251\"?><response><result>".$kod."</result></response>"; } else
{$html="<?xml version=\"1.0\" encoding=\"windows-1251\"?><response><id>".$id."</id><sum>".$_REQUEST['sum']."</sum><result>".$kod."</result><comment>".$desc."</comment></response>"; }
echo $html;
?>
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now