/
aaaout_ppv1.php
154 lines (116 loc) · 7.25 KB
/
aaaout_ppv1.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
include('header.php');
foreach($_POST as $key => $value) {
$protectie[$key] = filter($value);
}
if(!isset($data->login)){echo "<script>document.location.href='index.php'</script>"; exit;}
if($data->id != 1){echo "<script>document.location.href='index.php'</script>"; exit;}
if ($_REQUEST["skip"] > 0) {
$cashoutdata0 = mysql_query("SELECT * FROM `ppv` WHERE ( `id` = '{$_REQUEST["skip"]}' AND `paid`='0' ) ");
$cashoutdata = mysql_fetch_object($cashoutdata0);
$usernamehere0 = mysql_query("SELECT * FROM `users` WHERE ( `id` = '{$cashoutdata->user}' ) ");
$usernamehere = mysql_fetch_object($usernamehere0);
mysql_query("UPDATE `ppv` SET `paid`='2' WHERE ( `id`='{$_REQUEST['skip']}' ) ");
}
if ($_REQUEST["paid"] > 0) {
$cashoutdata0 = mysql_query("SELECT * FROM `ppv` WHERE ( `id` = '{$_REQUEST["paid"]}' AND `paid`='0' ) ");
$cashoutdata = mysql_fetch_object($cashoutdata0);
$usernamehere0 = mysql_query("SELECT * FROM `users` WHERE ( `id` = '{$cashoutdata->user}' ) ");
$usernamehere = mysql_fetch_object($usernamehere0);
if($usernamehere->id > 0) {
mysql_query("UPDATE `ppv` SET `paid`='1', `points`='{$_REQUEST['points']}' WHERE ( `id`='{$_REQUEST['paid']}' ) ");
mysql_query("UPDATE `users` SET `coins`=`coins`+'{$_REQUEST['points']}' WHERE ( `id`='{$cashoutdata->user}' ) ");
mysql_query("INSERT INTO statistics (user_id,date,coins_gained,refund,log,page) VALUES ({$cashoutdata->user},NOW(),{$_REQUEST['points']},1,'Requested Refund From System','aaaout.php')");
mysql_query("UPDATE `users` SET `beforeref`=`coins` WHERE `id`='{$cashoutdata->user}'");
}
$noteslist = mysql_query("SELECT * FROM `notes` WHERE (`url`='extrapoints.php' AND `user_id`='{$cashoutdata->user}') ");
$noteslistext = mysql_num_rows($noteslist);
if ($noteslistext == 0) {
mysql_query("INSERT INTO `notes` (user_id, title, msg, url) VALUES('{$cashoutdata->user}', 'PPV', 'Paid To Blog/Video : Your Link Approved!', 'extrapoints.php' )");
}
}
$allcashout = mysql_query("SELECT * FROM `ppv` WHERE (`paid`='0') ");
$totalnum = 0;
$mytotalearns = 0;
$videoname = "";
for($j=1; $cashout = mysql_fetch_object($allcashout); $j++)
{
$totalnum = $totalnum + 1;
if ($j == 1) {
$cashoutid = $cashout->id;
$link = $cashout->link;
$userid = $cashout->user;
$useroo = mysql_query("SELECT * FROM `users` WHERE (`id`='{$userid}') ");
$user5 = mysql_fetch_object($useroo);
if(preg_match("/\byoutube.com\b/i", $link)){
$splitarray = explode('?v=', $link);
$videoname = $splitarray[1];
$videoname = substr($videoname,0,11);
$videoaddedbefore = mysql_query("SELECT * FROM `ppv` WHERE (`link` LIKE '%" . $videoname . "%' AND NOT `paid` = '0') ");
$verificare = mysql_num_rows($videoaddedbefore);
}
if(preg_match("/\byoutu.be\b/i", $link)){
$splitarray = explode('be/', $link);
$videoname = $splitarray[1];
$videoname = substr($videoname,0,11);
$videoaddedbefore = mysql_query("SELECT * FROM `ppv` WHERE (`link` LIKE '%" . $videoname . "%' AND NOT `paid` = '0') ");
$verificare = mysql_num_rows($videoaddedbefore);
}
}
}
?>
<h1>Links: <?echo $totalnum;?></h1>
<center><table cellpadding="0" cellspacing="0" border="0" class="form" style="border: 1px dotted #ccc; padding: 20px; text-align: left;">
<tr><td><label for="title">Username:</label></td><td width="20"></td><td> <? if($user5->ban >= 1 OR $user5->banned == 1 OR $user5->bought ==1) { ?> <font color='red'> <? } else { ?> <font color='green'> <? } ?> |<?echo $user5->login;?>| </font> </td></tr>
<tr><td><label for="title">Link:</label></td><td width="20"></td><td> <font color='green'> <a href="<?echo $link;?>" target="_blank"> <b><?echo $link;?></b> </a> </font> </td></tr>
<? if( $videoname != "") { ?>
<tr><td><label for="title"> </label></td><td width="20"></td><td> <font color='green'> <? echo $verificare; ?> </font> </td></tr>
<? } ?>
<tr><td><label for="title"> </label></td><td width="20"></td><td> </td></tr>
<tr><td><label for="title">User ID:</label></td><td width="20"></td><td> <?echo $userid;?> </td></tr>
<tr><td><label for="title">Likes:</label></td><td width="20"></td><td> <?echo $user5->likes;?> / <?echo $user5->unlikes;?> </td></tr>
<tr><td><label for="title">Hits Today:</label></td><td width="20"></td><td> <?echo $user5->hitstoday;?> </td></tr>
<tr><td><label for="title">Points:</label></td><td width="20"></td><td> <b><?echo $user5->coins;?></b> / <?echo $user5->lastpoints;?> </td></tr>
<tr><td><label for="title">Country:</label></td><td width="20"></td><td> <?echo $user5->country;?> </td></tr>
<tr><td><label for="title"> </label></td><td width="20"></td><td> </td></tr>
<tr><td><label for="title">Ref:</label></td><td width="20"></td><td> <?echo $user5->ref;?> / <?echo $user5->ref2;?> </td></tr>
<tr><td><label for="title">Ban:</label></td><td width="20"></td><td> <?echo $user5->ban;?> / <?echo $user5->banned;?> </td></tr>
<tr><td><label for="title">Signup/Login:</label></td><td width="20"></td><td> <?echo $user5->signup;?> / <?echo $user5->online;?> </td></tr>
<tr><td><label for="title">PTP:</label></td><td width="20"></td><td> <?echo $user5->ptp;?> </td></tr>
<?
$allearns = mysql_query("SELECT * FROM `cashout` WHERE (`pending`='1' AND `id`='{$user5->id}') ");
for($j=1; $totalearning = mysql_fetch_object($allearns); $j++)
{
$mytotalearns = $mytotalearns + $totalearning->cash;
}
?>
<tr><td><label for="title">Total Earned:</label></td><td width="20"></td><td> <?echo $mytotalearns;?> </td></tr>
</table></center>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?skip=<?echo $cashoutid;?>">Reject Request</a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=60"><b><font color='green' size='5'>Pay 60</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=100"><b><font color='green' size='5'>Pay 100</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=150"><b><font color='green' size='5'>Pay 150</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=200"><b><font color='green' size='5'>Pay 200</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=250"><b><font color='green' size='5'>Pay 250</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=300"><b><font color='green' size='5'>Pay 300</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=400"><b><font color='green' size='5'>Pay 400</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=500"><b><font color='green' size='5'>Pay 500</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=600"><b><font color='green' size='5'>Pay 600</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=750"><b><font color='green' size='5'>Pay 750</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=1000"><b><font color='green' size='5'>Pay 1000</font></b></a>
<div class="clearer"> </div>
<a href="aaaout_ppv.php?paid=<?echo $cashoutid;?>&points=1500"><b><font color='green' size='5'>Pay 1500</font></b></a>
<div class="clearer"> </div>
<? include('footer.php');?>