-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclixwall_postback.php
More file actions
56 lines (41 loc) · 965 Bytes
/
clixwall_postback.php
File metadata and controls
56 lines (41 loc) · 965 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
$secret_password = 'ENTER YOUR SECRET PASSWORD HERE';
include_once('lib/lib.php');
include_once('lib/configuration.php');
$password = $_REQUEST['pwd'];
$credit = $_REQUEST['c'];
$user = trim($_REQUEST['u']);
$type = trim($_REQUEST['t']);
$status = trim($_REQUEST['s']);
if( $password == $secret_password )
{
if($status == 1)
{
if($type ==1)
{
$db->query("UPDATE users SET balance=balance+'$credit' WHERE username='$user'");
}
else
{
$db->query("UPDATE user SET points=points+'$credit' WHERE username='$user'");
}
exit('Done');
}
else
{
if($type ==1)
{
$db->query("UPDATE users SET balance=balance-'$credit' WHERE username='$user'");
}
else
{
$db->query("UPDATE users SET points=points-'$credit' WHERE username='$user'");
}
exit('Done');
}
}
else
{
die();
}
?>