Hello,
I want a script to continue to offer one-click links.
So if you press the link that you get as many points as you click.
But I can not really.
This is the script that I would offer to convert the click links.
<?
session_start ();
$ page = "click left";
include "header.php";
include "mysql.php";
$ _GET [ 'Out'] = strip_tags ($ _GET [ 'out']);
$ _GET [ 'Out'] = mysql_real_escape_string ($ _GET [ 'out']);
if ($ _GET [ 'Out']!="")
(
mysql_query ( "update click links set visits = visits 1 where id = ($ _GET [ 'Out']}",$ c);
$ getURL = mysql_query ( "select * from left click where id = ($ _GET [ 'Out']}",$ c);
$ out = mysql_fetch_array ($ getURL);
print "
<h2> Please wait .. </ h2>
<p>
<center>
<meta http-equiv=\"refresh\" content=\"2;url={$out['url']}&subid1={$ui['username']}\">
Taking you to the offer ... <br>
If this page does not change in 2 seconds, <a href=\"{$out['url']}&subid1={$ui['username']}\"> click here </ a>.
</ center>
</ p>
";
include "side.php";
include "footer.php";
exit;
)
else
(
$ money = 0;
$ getoffercash = mysql_query ( "select * from left click where active = 1", $ c);
while ($ oc = mysql_fetch_array ($ getoffercash))
(
$ money = $ money + $ oc [ 'reward'];
)
)
if ($ _SESSION [ 'loggedin'] == 1)
(
$ refer = "<br> Refer your friends: $ siteurl /? $ ref = (ui [ 'username']) <br> and receive an instant $ refbonus bonus per referral!";
)
else
(
$ refer = "";
)
>
Click <h2> Links </ h2>
<table width="90%">
<tr>
<th colspan="3" align="center">
</ th>
</ tr>
<tr>
<th width="50%"> Click Links </ th>
<th width="15%"> Reward </ th>
<th width="35%"> Completed </ th>
</ tr>
<?
$ _GET [ 'Offer'] = strip_tags ($ _GET [ 'offer']);
$ _GET [ 'Offer'] = mysql_real_escape_string ($ _GET [ 'offer']);
$ type = "free";
$ getoffers = mysql_query ( "select * from links where click` type `= '$ type' and active = 1 order by reward desc", $ c);
if (mysql_num_rows ($ getoffers) == 0)
(
print "<tr> <td colspan=\"3\"> There are currently no free offers available </ td> </ tr>";
)
else
(
while ($ off = mysql_fetch_array ($ getoffers))
(
if ($ _GET [ 'sacrifice']==$ off [' id '])
(
$ color = "style = \" background-color: # a2e250, \ "";
$ front = "<font color=\"black\"> <b>";
$ back = "</ b> </ font>";
)
else
(
$ color = "";
$ front = "";
$ back = "";
)
if ($ _SESSION [ 'loggedin'] == 1)
(
$ form = "<form class=\"searchform2\" action=\"completed1.php\" method=\"get\"> <input type = \" hidden \ "name = \" offering \ "value = \" ($ off [ 'id']) \ "> <input type=\"submit\" class=\"button\" value=\"Done!\"> </ form>";
)
else
(
$ form = "<font color=\"red\"> <b> Please Login </ b> </ font>";
)
$ checkpend = mysql_query ( "select * from pending where offer_id = ($ off [ 'id']) and user_id ='{$_ SESSION [ 'userid']) 'and denied = 0", $ c);
completed $ check = mysql_query ( "select * from where completed offer_id ($ off = [ 'id']) and user_id ='{$_ SESSION [ 'userid']}'",$ c);
if (mysql_num_rows ($ checkpend)! = 0)
(
$ form = "<font color=\"orange\"> <b> Pending </ b> </ font>";
)
else if (mysql_num_rows ($ check completed)! = 0)
(
$ form = "<font color=\"green\"> <b> Completed </ b> </ font>";
)
if (mysql_num_rows ($ checkpend)! = 0 | | mysql_num_rows ($ check completed)! = 0)
(
$ link = "$ ($ front off [ 'name']) $ back";
)
else
(
$ link = "<a href = \" kliklinks.php? ($ out = off [ 'id']) \ "target = \" _blank \ "title = \" Available in: $ (off [ 'countries']) \ "> $ ($ front off [ 'name']) $ back </ a>";
)
print "
<tr $color>
<td width=\"50%\"> $ link </ td>
<td align=\"center\"> $ front \ ($ $ off [ 'reward']) $ back </ font> </ td>
<td align=\"center\"> $ form </ td>
</ tr>
";
)
)
>
</ table>
<?
include "side.php";
include "footer.php";
>
Greetings, Tkzone