-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhandler.php
More file actions
37 lines (32 loc) · 1.17 KB
/
handler.php
File metadata and controls
37 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
include("index.php");
$update = json_decode(file_get_contents('php://input'));
$userid = $update->CustomField;
$title = $update->Title;
$code = $update->Code;
$name = $update->Name;
$amount = $update->Amount;
$coin = file_get_contents("data/users/".$userid."/coin.txt");
SendMessage($admin,"شما یک پرداخت با مبلغ $amount داشتید
شناسه کاربر : $userid");
SendMessage($userid,"پرداخت شما موفق بود
لطفا چند لحظه صبر کنید");
if ($title == "20Gem") {
SendMessage($userid,"شما با موفقیت مبلغ $amount را پرداخت کردید
و 20 الماس دریافت کردید");
$m = $coin + 20;
save("data/users/".$userid."/coin.txt",$m);
}
elseif ($title == "40Gem") {
SendMessage($userid,"شما با موفقیت مبلغ $amount را پرداخت کردید
و 40 الماس دریافت کردید");
$m = $coin + 40;
save("data/users/".$userid."/coin.txt",$m);
}
elseif ($title == "80Gem") {
SendMessage($userid,"شما با موفقیت مبلغ $amount را پرداخت کردید
و 80 الماس دریافت کردید");
$m = $coin + 80;
save("data/users/".$userid."/coin.txt",$m);
}
?>