Jump to content
MakeWebGames

flipster

Members
  • Posts

    66
  • Joined

  • Last visited

    Never

Everything posted by flipster

  1. Re: Voting token exchange has anyone fixed the one i posted yet
  2. where can i find these symbols or smbols like this »»¤¤
  3. Re: Voting token exchange   <?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(); ?> this is my one but it has an error with stript tags
  4. Re: The Standards of CE Mod! i agree as well say you have to be active here at least 6 months or 500 or more posts
  5. Re: [FREE][V2] Club Mod (my version) <form action = 'clubrecover.php?action=recover' method = 'post' /> i dont believe that is correct it should be clubrecovery.php <?php /********* Created by: War_Hero Free for: CE Members NOT FOR SALE **********/ include "globals.php"; include "travellingglobals.php"; if($ir['jail'] or $ir['hospital']) { die("You can not rid the alcohol in your system when you're in jail or hospital. <a href = 'index.php' />Go Home</a>"); } elseif($ir['alcohol'] == 0) { die("You don't have any alcohol in your system, so there's no need to recover. <a href = 'index.php' />Go Home</a>"); } elseif($ir['club'] == 1) { die("You need to leave the Club before you can go to the Recovery Centre. <a href = 'club.php?action=travelhome' />Leave Club</a>"); } switch($_GET['action']) { case 'recover': recover(); break; default: index(); break; } function index() { global $db,$ir,$c,$h,$userid; $rid = ($ir['alcohol'] * 1200); print "<h2 />Recovery Centre</h2> Welcome to the Recovery Centre. Here, you can rid the alcohol from your system. <font color = 'red' />At the moment, you have {$ir['alcohol']} units in your system.</font> You can rid your alcohol for \$".money_formatter($rid,'').". Would you like to rid your system of alcohol? <form action = 'clubrecovery.php?action=recover' method = 'post' /> <input type = 'submit' value = 'Yes' /> </form> <form action = 'index.php' /> <input type = 'submit' value = 'No' /> </form>"; } function recover() { global $db,$ir,$c,$h,$userid; $rid = ($ir['alcohol'] * 1200); if($ir['alcohol'] == 0) { die("You don't have any alcohol in your system. <a href = 'index.php' />Go Home</a>"); } elseif($ir['money'] < $rid) { die("You don't have enough money to rid the alcohol from your system. <a href = 'index.php' />Go Home</a>"); } else { print "<h2 />Recovering</h2> You have successfully rid your system of alcohol for £\$".money_formatter($rid,'').". <a href = 'index.php' />Go Back Home</a>"; $ridding = sprintf("UPDATE `users` SET `money` = `money` - '%d', `alcohol` = '%d' WHERE `userid` = ('%u')", $rid, 0, $userid); $db->query($ridding); } } $h->endpage(); ?>
  6. Re: Updated Explore V.2 no header.gif you need to include this
  7. Re: V2 Updated From Snikos' Pollution Mod :D you have not added hospital reason lol
  8. Re: Free Jail All in one ye i get that need a fixer anyone fix it please
  9. Re: Warning block the ip guys so you know he cant do anything also try reporting his ip
  10. Re: [FREE][V2] Club Mod (my version) i have suggestion why dont someone make like hospital but people who traveling to the club
  11. Re: 8 Lines to secure your site from known sql injections.   what line do you add this under
  12. in gangs i get this error can someone fix it please Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/chav1/public_html/gangs.php on line 61 <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; 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['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['ID'] = abs((int) $_GET['ID']); if(!$_GET['ID']) { print "Invalid use of file"; } else { $gq=mysql_query("SELECT * FROM gangs WHERE gangID={$_GET['ID']}",$c); $gangdata=mysql_fetch_array($gq); switch($_GET['action']) { case 'view': gang_view(); break; case 'userlist': gang_userlist(); break; case 'apply': gang_applyform(); break; case 'applys': gang_applysubmit(); break; } } function gang_view() { global $ir,$c,$h,$gangdata; $pq=mysql_query("SELECT * FROM users WHERE userid={$gangdata['gangPRESIDENT']}",$c); $ldr=mysql_fetch_array($pq); $vpq=mysql_query("SELECT * FROM users WHERE userid={$gangdata['gangVICEPRES']}",$c); $coldr=mysql_fetch_array($vpq); print "<h3><u>{$gangdata['gangNAME']} Gang</u></h3><hr />"; if($gangdata['gangPIC']) { print "[img={$gangdata[]<hr />"; } else { print "[b]No Gang Picture[/b]<hr />"; } President: [url='viewuser.php?u={$ldr[']{$ldr['username']}[/url] Vice-President: [url='viewuser.php?u={$coldr[']{$coldr['username']}[/url]<hr />"; $cnt=mysql_query("SELECT username FROM users WHERE gang={$gangdata['gangID']}",$c); print "[b]Members:[/b] ".mysql_num_rows($cnt)." [b]Description: [/b] {$gangdata['gangDESC']} [b]Respect Level: [/b] {$gangdata['gangRESPECT']} > [url='gangs.php?action=userlist&ID={$gangdata[']User List[/url] > [url='gangs.php?action=apply&ID={$gangdata[']Apply[/url]"; } function gang_userlist() { global $ir,$c,$h,$gangdata; print "<h3>Userlist for {$gangdata['gangNAME']}</h3> <table><tr style='background: gray;'><th>User</th><th>Level</th><th>Days In Gang</th></tr>"; $q=mysql_query("SELECT * FROM users WHERE gang={$gangdata['gangID']} ORDER BY daysingang DESC, level DESC",$c); while($r=mysql_fetch_array($q)) { print "<tr><td>[url='viewuser.php?u={$r[']{$r['username']}[/url]</td><td>{$r['level']}</td><td>{$r['daysingang']}</td></tr>"; } print "</table> [url='gangs.php?action=view&ID={$gangdata[']> Back[/url]"; } function gang_applyform() { global $ir,$c,$h,$gangdata; if(!$ir['gang']) { print "<form action='gangs.php?action=applys&ID={$_GET['ID']}' method='post'> Type the reason you should be in this gang. <textarea name='application' rows='7' cols='40'></textarea> <input type='submit' value='Apply' /></form>"; } else { print "You cannot apply for a gang when you are already in one."; } } function gang_applysubmit() { global $ir,$c,$h,$gangdata,$userid; if(!$ir['gang']) { mysql_query("INSERT INTO applications VALUES('',$userid,{$_GET['ID']},'{$_POST['application']}');",$c) or die(mysql_error()); mysql_query("INSERT INTO gangevents VALUES('',{$_GET['ID']},unix_timestamp(),'[url='']{$ir['username']}[/url] sent an application to join this gang.')",$c); print "You sent your application to the {$gangdata['gangNAME']} gang."; } else { print "You cannot apply for a gang when you are already in one."; } } $h->endpage(); ?>
  13. Re: Ammo [V2] Not bad mate not bad
  14. Re: Header help well it dont show when a user is online i dont know why it just dont update to says the users are online
  15. Re: Auctions Cron yep i have that problem as well its so annoying
  16. Re: Bar23 [V2] lol at least your trying mate
  17. Re: Bar23 [V2] nice mod im pretty sure i have seen a mod like this before not 100% sure not bad though
  18. <?php include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($_GET['action']=="escape") { if($ir['jail']==0) { die("You arent in jail! > [url='jail.php']Back[/url]"); } $cost=5; $stat='brave'; if($ir['brave']<5) { die("You need $cost $stat to escape from jail! > [url='jail.php']Back[/url]"); } $db->query("update users set $stat=$stat-$cost where userid=$userid"); if(rand(1,100) <= 50) { print "You successfully broke out of the {$set['game_name']} Jail! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=0 WHERE userid=$userid"); die(""); } else { $jailtime=(int) rand(1,30); print "You were caught attempting to break out of the {$set['game_name']} Jail. The officers beat you for a while and added $jailtime minutes to your sentence! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid"); $db->query("UPDATE users SET busted=busted+1 WHERE userid=$userid"); $db->query("UPDATE users SET jail_reason='Caught attempting to escape' WHERE userid=$userid"); die(""); } } if($_GET['action']=="bail") { if($ir['jail']) { die("You cannot bail out people while in jail! > [url='jail.php']Back[/url]"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail! > [url='jail.php']Back[/url]"); } $cost=$r['level']*2000; $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf. > [url='jail.php']Back[/url]"); } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET busts=bails+1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] bailed you out of jail.", $c); } if($_GET['action']=="bust") { if($ir['energy'] < 10) { die("Sorry, it costs 10 energy to bust someone. You only have {$ir['energy']} energy. Come back later. > [url='jail.php']Back[/url]"); } if($ir['jail']) { die("You cannot bust out people while in jail! > [url='jail.php']Back[/url]"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user {$_GET['ID']} > [url='jail.php']Back[/url]"); } if(!$r['jail']) { die("That user is not in jail! > [url='jail.php']Back[/url]"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully busted {$r['username']} out of jail. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET busts=busts+1 WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] busted you out of jail.", $c); die(""); } else { print "While trying to bust out your friend, a guard spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Back[/url]"; $time=min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to bust out {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of jail.", $c); die(""); } } print "<h3>{$set['game_name']} Jail</h3> "; if($ir['jail']) { print "[url='jail.php?action=escape']Escape[/url]"; } print " <table width='100%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th> <th>Actions</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutes</td><td>{$r['jail_reason']}</td> <td>[[url='jail.php?action=bust&?ID={$r[']Bust[/url]][[url='jail.php?action=bail&ID={$r[']Bail[/url]]</td></tr>"; } print "</table>"; $h->endpage(); ?>
  19. for some reason on my header there is a problem as it shows people who are online offline can someone tell me what i need to change and give me the correct code
  20. on my game like on the main menu the subtitle of every section is white how do i change the colour this is a sub title btw Train & Make Money
  21. Re: Simple Job Specials [V2] ok i can someone please tell me where to add it on jobs like the line of the code as when i add it dont work
  22. Re: Script For Header i like it thank you
  23. Re: [v2] Cannot be attacked for 2 days that is so easy to make lol :) \/\/ | |_ |_ Y
×
×
  • Create New...