tkzone Posted April 30, 2009 Share Posted April 30, 2009 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 Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/ Share on other sites More sharing options...
jackpf Posted April 30, 2009 Share Posted April 30, 2009 http://www.phpfreaks.com/forums/index.php/topic,129174.0.html Might be of use to you. And will in effect, be of use to anyone trying to understand your issue. Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-822926 Share on other sites More sharing options...
tkzone Posted April 30, 2009 Author Share Posted April 30, 2009 huh ? ??? Im dont understand that. Sorry im netherlands Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-822960 Share on other sites More sharing options...
jackpf Posted April 30, 2009 Share Posted April 30, 2009 You need to explain your problem a little better. If you read your post, do you understand what the problem is? I don't. Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-822970 Share on other sites More sharing options...
tkzone Posted April 30, 2009 Author Share Posted April 30, 2009 Oke sorry. Wait im sal do it agian better : ) Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-822974 Share on other sites More sharing options...
tkzone Posted April 30, 2009 Author Share Posted April 30, 2009 im can edit me topic ?? Hello, I wil make a script for kliklinks. Im have a script offers.php Fan that script wil i make kliklinks. Alone im wil push the link and than come to money on your account. And you have no to click done for get your money. Here is the script fan offers.php for make kliklinks (script on me first post) Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-822979 Share on other sites More sharing options...
jackpf Posted April 30, 2009 Share Posted April 30, 2009 Ok, so what's wrong with your script? Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-823012 Share on other sites More sharing options...
tkzone Posted April 30, 2009 Author Share Posted April 30, 2009 Ther is noting wrong with this script. Im wil build this script to kliklinks Its now a Offer script and im wil fan that script a kliklinks. Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-823025 Share on other sites More sharing options...
jackpf Posted April 30, 2009 Share Posted April 30, 2009 Well, you posted in PHP help, I assumed you needed help with your PHP... Link to comment https://forums.phpfreaks.com/topic/156303-offer-script-to-a-kliklinks/#findComment-823086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.