-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhandler.php
More file actions
32 lines (28 loc) · 1020 Bytes
/
Copy pathhandler.php
File metadata and controls
32 lines (28 loc) · 1020 Bytes
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
<?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;
$coin1 = file_get_contents("data/users/".$userid."/uup.txt");
if ($title == "2000coin") {
SendMessage($userid,"شما با موفقیت مبلغ $amount را پرداخت کردید
و ۲۰۰۰ تومان اعتبار گرفتید");
$m = $coin1 + 20;
save("data/users/".$userid."/uup.txt",$m);
}
if ($title == "4000coin") {
SendMessage($userid,"شما با موفقیت مبلغ $amount را پرداخت کردید
و ۴۰۰۰ هزار تومان اعتبار گرفتید");
$m = $coin1 + 40;
save("data/users/".$userid."/uup.txt",$m);
}
if ($title == "6000coin") {
SendMessage($userid,"شما با موفقیت مبلغ $amount را پرداخت کردید
و ۶۰۰۰ هزار تومان اعتبار گرفتید");
$m = $coin1 + 2400;
save("data/users/".$userid."/uup.txt",$m);
}
?>