Jump to content
MakeWebGames

cody4camp

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Everything posted by cody4camp

  1. True, I cannot sell this template. Now I have no idea how to get my money back from the phoney who sold them to me. Please, close or delete this thread mods.
  2. 1.I did not know the work was not my friend's. 2.I only sliced and coded the psd into mccodes v2. 3.I was only selling for $5 because all I had to do was slice and code. How does this make me a bad person? EDIT: Although, I do thank you for telling me about this site. Now I know I cannot trust my friend. :( I am a legit person though, someone just bought my paid mod today and is very happy.
  3. im going to have the cookie encrypted
  4. anyone?
  5. thanks, i figured if i want to make money with graphics i should spend more time on them, I'm gonna make a free army banner too.
  6. It is not the best I can do, but I wanted to give out something to the public, took me about 5-10 minutes. Free psd for you all! Image: PSD Link: http://www.speedyshare.com/files/20134128/FreeBanner.psd Enjoy, maybe this will help someone. I don't need any criticism either, this isn't a review thread it's a giveaway. AUG drawn by me.
  7. use a cron job hourly that truncates a table call IsClicked(or something) and if it is > 0 then die the session, if its less let them enter?? Is that what you want?
  8. Thanks for trying, but that really didnt help me at all.
  9. <? require('dblogon.php'); if(isset($HTTP_POST_VARS['usern'])) { $username = strip_tags($HTTP_POST_VARS['usern']); $password = strip_tags($HTTP_POST_VARS['passw']); $usern = mysql_real_escape_string(trim($username)); $passw = mysql_real_escape_string(trim($password)); setcookie("Username",$usern); setcookie("Password",$passw); setcookie("Check", "0"); $_SESSION["check"]=0; header("Location: member.php"); exit(); } require('std_l.php'); ?> <center> <table border="0" cellpadding="2px" cellspacing="0" width="300px"> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <? if(isset($_GET['forget']) && $_GET['forget']==1) { echo "<tr><td>Email address</td><td><input type=\"text\" name=\"email\" maxlength=\"200\" class=\"sdinp\"></td></tr>\n"; echo "<tr><td></td><td><input type=\"submit\" value=\"Recover\" class=\"sdbut\"></td></tr>\n"; } else if(isset($_POST['email'])) { $email = mysql_real_escape_string(trim($_POST['email'])); $result = mysql_query("SELECT email,username,password FROM userinf WHERE email='".$_POST['email']."' ", $db); if(mysql_num_rows($result)) { $retval = mysql_fetch_array($result); $msg = "Your account information is as follows:\n \n"; $msg.= "Username: ".$retval['username']."\n"; $msg.= "Password: ".$retval['password']."\n"; mail($retval['email'],$title.": Account info",$msg,"From: $title"); echo "<tr><td align=\"center\">[b]Your account information has been emailed to you![/b]</td></tr>\n"; } else { echo "<tr><td align=\"center\">[b]Account not found![/b]</td></tr>\n"; } } else { echo "<tr><td>Username</td><td><input type=\"text\" name=\"usern\" maxlength=\"50\" class=\"sdinp\"></td></tr>\n"; echo "<tr><td>Password</td><td><input type=\"password\" name=\"passw\" maxlength=\"50\" class=\"sdinp\"></td></tr>\n"; echo "<tr><td></td><td><input type=\"submit\" value=\"Log me in\" class=\"sdbut\"></td></tr>\n"; echo "<tr><td colspan=\"2\"></td></tr>\n"; echo "<tr><td colspan=\"2\" align=\"center\"><a href=\"login.php?forget=1\">[ forgotten password? ]</a></td></tr>\n"; } ?> </form> </table> </center> <? require('std_r.php'); ?>   I'm at my wits end. i click submit and nothing happens.
  10. Alright Ganja, I'll hold it for you.
  11. Yes, he is my friend and he knew my intentions. I will be making more affordable templates with him.
  12. Oh i didnt design the graphics. I paid $5 for them, i simply sliced and coded it.
  13. Yes, psd comes witht he purchase.
  14. Only for V2 buddy...
  15. Thanks to Peter for giving me tips on coding into the mccodes engine I can now sell you guys my templates. I call it Toxic. You only get the login template. Screen: I am selling this for $15 through paypal. For an extra $10 I'll make the register page. :D Contact me via MSN: [email protected]
  16. http://www.pimp-battle.com Now available for players.
  17. Guys, wouldn't this work to protect sql injections? Ive commented. function checkIncomingData($idata, $minsize, $maxsize) { if ( strlen($idata)<$minsize or strlen($idata)>$maxsize ) { return false; } else { return true; } } //make sure that nothing bad can be entered by the user (-->sql injection attack) function cleanIncomingData($idata) { $cleaned = trim($idata); $cleaned = mysql_real_escape_string($cleaned); return $cleaned; }
  18. CAN be done in ONE file. Really what does it matter? I give a free mod to the community...
  19. voting.php <?php include "globals.php"; print "<h3><center>Voting</h3> "; print <<<OUT <table cellspacing="1" border="0" cellpadding="3" class="table" width="70%"> <tr><td colspan="3" class="h">[b]<center>Voting Links[/b]</td></tr> {$geninf} <tr> <td>[b]Site[/b]</td> <td>[b]Voting Link[/b]</td> <td>[b]Reward[/b]</td> </tr> <tr> <td>[b]Xtreme Top 100[/b]</td> <td>[b][url='xtremetop100.php']Vote at xtremetop100[/url] <td>[b]1 Voting Token[/b]</td> </td> </tr> <tr> <td>[b]Oz-games[/b]</td> <td>[b][url='Oz.php']Vote at Oz-games[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Best Rpg[/b]</td> <td>[b][url='brpg.php']Vote at Best Rpg[/url]</td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]mmorpg100[/b]</td> <td>[b][url='mmorpg100.php']Vote at mmorpg100[/url]</td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Ce Top Web Games[/b]</td> <td>[b][url='cetopwebgames.php']Vote at Ce Top Web Games[/url]</td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Top Web Games[/b]</td> <td>[b][url='twg.php']Vote at Top Web Games[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Toprpggames[/b]</td> <td>[b][url='toprpgames.php']Vote at Toprpggames[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Apex Web Gaming[/b]</td> <td>[b][url='apexwebgaming.php']Vote at Apex Web Gaming[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]TBAB Top Games[/b]</td> <td>[b][url='ttg.php']Vote at TBAB TOP GAMES[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> [b][url='votingredmptioncenter.php']Click here to use you vote tokens![/url] </tr> OUT; OUT; $h->endpage(); ?>
  20. any way to get this reupped?
  21. It is a rough code but i made it before i tested it. Hopefully someone can enjoy it though, it works. Ill be posting an updated version using the incentives feature.
  22. remove $_POST['votetoken']=mny_stripfmt($_POST['votetoken']); remove it from every single item in the switch. if you get an error.
  23. [align=center]SuperVoting 9 Topsites Included Tokens for voting Token Redemption Easy to integrate SQL[mysql]ALTER TABLE `users` ADD `votetoken` INT( 11 ) NOT NULL DEFAULT '0'[/mysql] 2. Code apexwebgaming.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='apexwebgaming'",$c); if(mysql_num_rows($q)) { print "You have already voted at apexwebgaming today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'apexwebgaming')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://apexwebgaming.com/in/uraccountnumber"); exit; } ?> brpg.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='Best RPG'",$c); if(mysql_num_rows($q)) { print "You have already voted at Best RPG today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'Best RPG')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://best-rpg.com/vote.php?id=uraccountid"); exit; } ?> cetopwebgames.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='cetopwebgames'",$c); if(mysql_num_rows($q)) { print "You have already voted at cetopwebgames.com today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'cetopwebgames')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://www.cetopwebgames.com/index.php?in=uraccountid"); exit; } ?> mmorpg100.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='mmorpg100'",$c); if(mysql_num_rows($q)) { print "You have already voted at mmorpg100 today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'mmorpg100')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://www.mmorpg100.com/in.php?id=uraccountid"); exit; } ?> oz.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='Oz'",$c); if(mysql_num_rows($q)) { print "You have already voted at Oz-games200.com today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'Oz')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://www.oz-games200.com/in.php?gameid=uraccountid"); exit; } ?> toprpggames.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='toprpgames'",$c); if(mysql_num_rows($q)) { print "You have already voted at toprpgames today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'toprpgames')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://www.toprpgames.com/vote.php?idno=uraccountid"); exit; } ?> twg.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='twg'",$c); if(mysql_num_rows($q)) { print "You have already voted at top web games today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'twg')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://www.topwebgames.com/in.asp?id=uraccountid"); exit; } ?> voting.php voting.php [php] <?php include "globals.php"; print "<h3><center>Voting</h3> "; print <<<OUT <table cellspacing="1" border="0" cellpadding="3" class="table" width="70%"> <tr><td colspan="3" class="h">[b]<center>Voting Links[/b]</td></tr> {$geninf} <tr> <td>[b]Site[/b]</td> <td>[b]Voting Link[/b]</td> <td>[b]Reward[/b]</td> </tr> <tr> <td>[b]Xtreme Top 100[/b]</td> <td>[b][url='xtremetop100.php']Vote at xtremetop100[/url] <td>[b]1 Voting Token[/b]</td> </td> </tr> <tr> <td>[b]Oz-games[/b]</td> <td>[b][url='Oz.php']Vote at Oz-games[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Best Rpg[/b]</td> <td>[b][url='brpg.php']Vote at Best Rpg[/url]</td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]mmorpg100[/b]</td> <td>[b][url='mmorpg100.php']Vote at mmorpg100[/url]</td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Ce Top Web Games[/b]</td> <td>[b][url='cetopwebgames.php']Vote at Ce Top Web Games[/url]</td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Top Web Games[/b]</td> <td>[b][url='twg.php']Vote at Top Web Games[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Toprpggames[/b]</td> <td>[b][url='toprpgames.php']Vote at Toprpggames[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]Apex Web Gaming[/b]</td> <td>[b][url='apexwebgaming.php']Vote at Apex Web Gaming[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> <td>[b]TBAB Top Games[/b]</td> <td>[b][url='ttg.php']Vote at TBAB TOP GAMES[/url] </td> <td>[b]1 Voting Token[/b]</td> </tr> <tr> [b][url='votingredmptioncenter.php']Click here to use you vote tokens![/url] </tr> OUT; OUT; $h->endpage(); ?> [/php] votingredeptionceter.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); if(!$_GET['spend']) { print "Welcome to the Voting Redemption Center! You have [b]{$ir['votetoken']}[/b] Vote Tokens. What would you like to spend your Vote Tokens on? [url='votingredmptioncenter.php?spend=IQ']IQ - 50 IQ per Vote Token[/url] [url='votingredmptioncenter.php?spend=labour3']Trade for labour - 3,000 labour per Vote Token[/url] [url='votingredmptioncenter.php?spend=guard3']Trade for guard - 3,000 guard per Vote Token[/url] [url='votingredmptioncenter.php?spend=agility3']Trade for agility - 3,000 agility per Vote Token[/url] [url='votingredmptioncenter.php?spend=strength3']Trade for strength - 3,000 strength per Vote Token[/url] [url='votingredmptioncenter.php?spend=Diamonds']Trade for 6 Crystals per Vote Token[/url] [url='votingredmptioncenter.php?spend=Donator']Trade for 1 Donator Day per 35 Vote Tokens[/url] [url='votingredmptioncenter.php?spend=Vip']Trade for 1 Vip Day per 60 Vote Tokens[/url] [url='votingredmptioncenter.php?spend=Honor']Trade for 1 Honor Award per 120 Vote Tokens[/url] "; } else { if($_GET['spend'] == 'IQ') { print "Type in the amount of Vote Tokens you want to swap for IQ. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 50 IQ.<form action='votingredmptioncenter.php?spend=IQ2' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['votetoken']*50; $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken']); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $iqgain IQ."; } } else if($_GET['spend'] == 'labour3') { print "Type in the amount of Vote Tokens you want to swap for labour. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 labour.<form action='votingredmptioncenter.php?spend=labour4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour4') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=labour3']Back[/url]"; } else { $labourgain=$_POST['votetoken']*3000; $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $labourgain labour."; } } else if($_GET['spend'] == 'guard3') { print "Type in the amount of Vote Tokens you want to swap for guard. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 guard.<form action='votingredmptioncenter.php?spend=guard4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard4') { $_POST['votetoken']=(int) $_POST['votetoken']; $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=guard3']Back[/url]"; } else { $guardgain=$_POST['votetoken']*3000; $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $guardgain guard."; } } else if($_GET['spend'] == 'agility3') { print "Type in the amount of Vote Tokens you want to swap for agility. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 agility.<form action='votingredmptioncenter.php?spend=agility4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility4') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=agility3']Back[/url]"; } else { $agilitygain=$_POST['votetoken']*3000; $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $agilitygain agility."; } } else if($_GET['spend'] == 'strength3') { print "Type in the amount of Vote Tokens you want to swap for strength. You have [b]{$ir['votetoken']}[/b] Vote Tokens. One Vote Token = 3,000 strength.<form action='votingredmptioncenter.php?spend=strength4' method='post'><input type='text' name='votetoken' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength4') { $_POST['votetoken']=(int) $_POST['votetoken']; if($_POST['votetoken'] <= 0 || $_POST['votetoken'] > $ir['votetoken']) { print "Error, you either do not have enough Vote Tokens or did not fill out the form. [url='votingredmptioncenter.php?spend=strength3']Back[/url]"; } else { $strengthgain=$_POST['votetoken']*3000; $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-{$_POST['votetoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c); print "You traded {$_POST['votetoken']} Vote Tokens for $strengthgain strength."; } } else if($_GET['spend'] == 'Diamonds') { if($ir['votetoken'] <1) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-1,crystals=crystals+6 WHERE userid=$userid",$c); print "You have paid 1 Vote Token for 6 Crystals."; } } else if($_GET['spend'] == 'Donator') { if($ir['votetoken'] <35) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-35,donatordays=donatordays+1 WHERE userid=$userid",$c); print "You have paid 5 Vote Tokens for 35 Donator Day."; } } else if($_GET['spend'] == 'Vip') { if($ir['votetoken'] <60) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-60,vipdays=vipdays+1 WHERE userid=$userid",$c); print "You have paid 60 Vote Tokens for 1 Vip Day."; } } else if($_GET['spend'] == 'Honor') { if($ir['votetoken'] <120) { print "You don't have enough Vote Tokens!"; } else { $_POST['votetoken']=strip_tags($_POST['votetoken']); $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); $_POST['votetoken']=abs((int)($_POST['votetoken'])); mysql_query("UPDATE users SET votetoken=votetoken-120 WHERE userid=$userid",$c); mysql_query("UPDATE honortable SET honor=honor+1 WHERE userid=$userid",$c); print "You have paid 120 Vote Tokens for 1 Honor Award."; } } } $h->endpage(); ?> xtremetop100.php <?php session_start(); require "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['votetoken'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='xtremetop100'",$c); if(mysql_num_rows($q)) { print "You have already voted at xtremetop100 today!"; $h->endpage(); } else { mysql_query("INSERT INTO votes values ($userid,'xtremetop100')",$c); mysql_query("UPDATE users SET votetoken=votetoken+1 WHERE userid=$userid",$c); header("Location:http://www.xtremetop100.com/in.php?site=uraccountid"); exit; } ?>   3.Edit the files When you sign-up for your top-site accounts you get your link, for example 1141. At the end of each topsite php file we made, it has a line like: header("Location:http://www.xtremetop100.com/in.php?site=uraccountid"); You will take your id like so: header("Location:http://www.xtremetop100.com/in.php?site=1141");   You may also want to edit redemptioncenter.php, it contains premade prizes, but you need to change them to balance your game. Add a link in explore, or mainmenu or even header.php to get users to vote!   Thanks, Cody4camp [/align]
  24. ill get a demo & screenshot up asap, i just accidentally deleted my mccodes server so its gonna be a while :/
  25. I want to sell my user shops mod for McCodes V2 Inspired by the neopets shop feature. Features: Manage Shop(User's shop panel) -Shop Name -Upgradeable Space -Store Sections -Option for money or crystal payment -Choose Location City -Coupons Browse Shops(Browse user owned shops) -Search by item name -List of shops -Price comparison Support -Installation(+$10) -Free updates for 1 month -MSN support Payment -Paypal $10 -UNIQUE Paypal $50   Contact -MSN [email protected]   In order to purchase please contact me, full source code is given.
×
×
  • Create New...