Jump to content
MakeWebGames

Jordan Palmer

Members
  • Posts

    1,660
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jordan Palmer

  1. Look at some css cheat sheets ?
  2. i think you can go eat shit with your "If you'd stop moaning" bullshit. I made a suggestion and explained why, if you don't like it, Go fuck yourself and don't post. no need to come in here and be a dickhead just because you don't like my comment. Now that's why you're not getting taken serious. you get all defensive and swear like there is no tomorrow. I think there is one dick head here and i'm sure it aint me.. Next time you make a suggestion, try one without acting like a spoilt wannabe and I may just change my view on you
  3. Ugh, That looks smart!
  4. In that case IE is for the win cause Microsoft made it ;]
  5. I've used them all. I love my baby and that's firefox (L)
  6. Didn't Illusions make something similar to this? It shouldn't be too hard anyway :thumbsup:
  7. I guess they could sign you're guest book - I think it'd be better if there was a part though
  8. We all get things thrown at us. I've had to code for a client from the library before. All I can say is you should off atleast informed him that you were having issue's in RL, When I did the client I was working for was very understanding and I'm sure Lith would off been if you'd off contacted him..
  9. I like the suggestion. With a few tweaks I think what you just said could make a BRILLIANT addition.
  10. There is a valid point to this modification for the right game. However I've don't see why you have 1million queries...Optimize them into one mate, And why not make a new db for them? -.- Better then clogging up the users table... Example; <?php /* Yours.. */ $db->query("UPDATE users SET money=money-15000 WHERE userid=$userid"); $db->query("UPDATE users SET maxwill=maxwill+1 WHERE userid=$userid"); $db->query("UPDATE users SET guards1=guards1-1 WHERE userid=$userid"); $db->query("UPDATE users SET guards2=guards2+1 WHERE userid=$userid"); $db->query("UPDATE users SET guards2e=guards2e+2 WHERE userid=$userid"); ?>   <?php /* Mine */ $db->query("UPDATE users SET money=money-15000,maxwill=maxwill+1,guards1=guards1-1,guards2=guards2+1,guards2e=guards2e+2 WHERE userid=$userid"); ?> Easily done :)
  11. Okay. I installed this and noticed a bug. I made it work (Should be anyway) I did test it and it looked fine however I could have missed a spot. <?php /* MCCode V2 - Send.php Coded by Immortal; -- FREE TO ALL MEMBERS OF THE FORUM -- */ require_once("globals.php"); $_GET['ID'] = isset($_GET['ID']) && is_numeric($_GET['ID']) ? abs(@intval($_GET['ID'])) : false; $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : false; $_POST['points'] = abs(@intval($_POST['points'])); switch($_GET['action']) { case 'sendbank': sendbank(); break; case 'sendoff'; sendoff(); break; case 'sendcash'; sendcash(); break; case 'sendpoints'; sendpoints(); break; } if (!in_array($_GET['action'], array('sendbank', 'sendoff', 'sendcash', 'sendpoints'))) { echo "Operation not understood!"; exit; } function sendbank() { global $db,$h,$ir,$userid; if(!$_GET['ID']) { echo "Invalid ID. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { echo "Is there a particular reason you are sending money to yourself? [url='index.php']Back[/url]"; $h->endpage(); exit; } else { $it=$db->query("SELECT `userid`, `bankmoney`, `lastip` FROM users WHERE userid={$_GET['ID']}"); $er=$db->fetch_row($it); if($er['bankmoney']==-1 || $ir['bankmoney']==-1) { echo "Sorry,you or the person you are sending cash to does not have a bank account. [url='index.php']Back[/url]"; $h->endpage(); exit; } if($_POST['points']) { if($_POST['points'] > $ir['bankmoney']) { echo "You are trying to send more than you have. [url='index.php']Back[/url]"; $h->endpage(); exit; } else { $db->query(sprintf("UPDATE `users` SET `bankmoney`=`bankmoney`-%u WHERE `userid`=%d", $_POST['points'], $userid)); $db->query(sprintf("UPDATE `users` SET `bankmoney`=`bankmoney`+%u WHERE `userid`=%d", $_POST['points'], $_GET['ID'])); echo "Your Bank Transferred \$".number_format($_POST['points'])." to ID ".number_format($_GET['ID'])."."; event_add($_GET['ID'],"You received \$".number_format($_POST['points'])." into your bank account from ".stripslashes($ir['username'])."."); $db->query("INSERT INTO bankxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['points']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}', 'bank')"); } } else { print "<h3>Bank Xfer</h3> You are sending bank money to ID: [b]{$_GET['ID']}[/b]. You have [b]\$".number_format($ir['bankmoney'])."[/b] you can send. <form action='sendbank.php?action=sendbank&ID={$_GET['ID']}' method='post'> Money: <input type='text' name='points' /> <input type='submit' value='Send' /></form>"; } } } $h->endpage(); function sendoff() { global $db,$ir,$h,$userid; if(!$_GET['ID']) { echo "Invalid ID. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { echo "Is there a particular reason you are sending money to yourself? [url='index.php']Back[/url]"; $h->endpage(); exit; } else { $it=$db->query("SELECT `userid`, `cybermoney`, `lastip` FROM users WHERE userid={$_GET['ID']}"); $er=$db->fetch_row($it); if($er['cybermoney']==-1 || $ir['cybermoney']==-1) { echo "Sorry,you or the person you are sending cash to does not have an off-shore account. [url='index.php']Back[/url]"; $h->endpage(); exit; } if($_POST['points']) { if($_POST['points'] > $ir['cybermoney']) { echo "You are trying to send more than you have. [url='index.php']Back[/url]"; $h->endpage(); exit; } else { $db->query(sprintf("UPDATE `users` SET `cybermoney`=`cybermoney`-%u WHERE `userid`=%d", $_POST['points'], $userid)); $db->query(sprintf("UPDATE `users` SET `cybermoney`=`cybermoney`+%u WHERE `userid`=%d", $_POST['points'], $_GET['ID'])); echo "You CyberBank Transferred \$".number_format($_POST['points'])." to ID ".number_format($_GET['ID'])."."; event_add($_GET['ID'],"You received \${$_POST['points']} into your cyber bank account from ".stripslashes($ir['username'])."."); $db->query("INSERT INTO bankxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['points']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}', 'cyber')"); } } else { echo "<h3>Off-Shore Xfer</h3> You are sending off-shore bank money to ID: [b]{$_GET['ID']}[/b]. You have [b]\$".number_format($ir['cybermoney'])."[/b] you can send. <form action='sendcyber.php?action=sendoff&ID={$_GET['ID']}' method='post'> Money: <input type='text' name='points' /> <input type='submit' value='Send' /></form>"; } } } $h->endpage(); function sendpoints() { global $db, $userid, $ir; if(!$_GET['ID']) { echo "Invalid ID. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { echo "Is there a particular reason you are sending points to yourself? [url='index.php']Back[/url]"; $h->endpage(); exit; } else { if($_POST['points']) { if($_POST['points'] > $ir['crystals']) { echo "You are trying to send more than you have. [url='index.php']Back[/url]"; $h->endpage(); exit; } else { $db->query(sprintf("UPDATE `users` SET `crystals`=`crystals`-%u WHERE `userid`=%d", $_POST['points'], $userid)); $db->query(sprintf("UPDATE `users` SET `crystals`=`crystals`+%u WHERE `userid`=%d", $_POST['points'], $_GET['ID'])); echo "You sent ".number_format($_POST['points'])." points to ID ".number_format($_GET['ID'])."."; event_add($_GET['ID'],"You received {$_POST['points']} points from ".stripslashes($ir['username'])."."); $it=$db->query("SELECT `lastip` FROM `users` WHERE `userid`={$_GET['ID']}"); $er=$db->fetch_row($it); $db->query("INSERT INTO crystalxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['points']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}')"); } } else { echo "<h3> Sending Points</h3> You are sending points to ID: [b]{$_GET['ID']}[/b]. You have [b]".number_format($ir['points'])."[/b] points you can send. <form action='send.php?action=sendpoints&ID={$_GET['ID']}' method='post'> Points: <input type='text' name='points' /> <input type='submit' value='Send' /></form>"; print "<h3>Latest 5 Transfers</h3> <table width=75% border=2> <tr style='background:gray'> <th>Time</th> <th>User From</th> <th>User To</th> <th>Amount</th> </tr>"; $q=$db->query("SELECT cx.*,u1.username as sender, u2.username as sent FROM crystalxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid WHERE cx.cxFROM=$userid ORDER BY cx.cxTIME DESC LIMIT 5"); while($r=$db->fetch_row($q)){ if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } print "<tr> <td>" . date("F j, Y, g:i:s a",$r['cxTIME']) . "</td><td>{$r['sender']} [{$r['cxFROM']}] </td><td>{$r['sent']} [{$r['cxTO']}] </td> <td> {$r['cxAMOUNT']} points</td> </tr>"; } print "</table>"; } } } $h->endpage(); function sendcash() { global $db, $ir, $userid, $h; $_POST['cash'] = abs(@intval($_POST['cash'])); if(!$_GET['ID']) { echo "Invalid ID. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { echo "Is there a particular reason you are sending cash to yourself? [url='index.php']Back[/url]"; $h->endpage(); exit; } else { if($_POST['cash']) { if($_POST['cash'] > $ir['cash']) { echo "You are trying to send more than you have. [url='index.php']Back[/url]"; $h->endpage(); exit; } else { $db->query(sprintf("UPDATE `users` SET `money`=`money`-%u WHERE `userid`=%d", $_POST['cash'], $userid)); $db->query(sprintf("UPDATE `users` SET `money`=`money`+%u WHERE `userid`=%d", $_POST['cash'], $_GET['ID'])); echo "You sent \$".number_format($_POST['cash'])." to ID ".number_format($_GET['ID'])."."; event_add($_GET['ID'],"You received \${$_POST['cash']} from {$ir['username']}.",$c); $it=$db->query("SELECT `lastip` FROM `users` WHERE `userid`={$_GET['ID']}"); $er=$db->fetch_row($it); $db->query("INSERT INTO cashxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['cash']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}')"); } } else { print "<h3> Sending Money</h3> You are sending money to ID: [b]{$_GET['ID']}[/b]. You have [b]\$".number_format($ir['money'])."[/b] you can send. <form action='send.php?action=sendcash&ID={$_GET['ID']}' method='post'> Amnt: <input type='text' name='cash' /> <input type='submit' value='Send' /></form>"; print "<h3>Latest 5 Transfers</h3> <table width=75% border=2> <tr style='background:gray'> <th>Time</th> <th>User From</th> <th>User To</th> <th>Amount</th> </tr>"; $q=$db->query("SELECT cx.*,u1.username as sender, u2.username as sent FROM cashxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid WHERE cx.cxFROM=$userid ORDER BY cx.cxTIME DESC LIMIT 5"); while($r=$db->fetch_row($q)) { if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } print "<tr> <td>" . date("F j, Y, g:i:s a",$r['cxTIME']) . "</td><td>{$r['sender']} [{$r['cxFROM']}] </td><td>{$r['sent']} [{$r['cxTO']}] </td> <td> \${$r['cxAMOUNT']}</td> </tr>"; } print "</table>"; } } } $h->endpage(); ?>   Should work. If not comment here and I'll re-try
  12. You need to secure everything and yes it is..
  13. Yes. If it took you 2 hours to find that out you have issue's.It's plastered all over the net/forum Anyhow - Good luck :)
  14. I don't think there is one. However I do use that.
  15. I use the same method danny. MRES(); isn't really ''needed'' however I do tend to use them lol
  16. Wow Illusions.. I've seen many modification in my time being around but this has too be the best thought up yet! I wish you all the luck man. It'd be good to see this
  17. Hi Jon. Jambo is well known for his poor hacking capabilities. Legally I'm pretty sure there isn't anything you can do. Unless you wish to pay a lot of money for some punk ass kid who'll get a slap on the rist, My suggestion Be happy. You've been hacked by a punk ass kid. Who has now shown you you're security attempt wasn't good enough. Going legal is way too much hassle and well it can in 90% of cases cost a bigass bomb. He'd be more pissed off if you "Thanks Jambo. You shown me a hole" then if you sent him to court & wasted your money. Thank you, Pudda
  18. Yes shedh, I know but it was one of many examples, When I first started coding I'm pretty sure I did something like that ^_^...
  19. Not bad work.
  20. I know someone who's working on this kinda off base. I'm pretty sure he's still at it..I like the whole concept
  21. Not something I'd use, However thank's for the add. I may end up using one day lol
  22. Sounding good. I'm willing to do some testing. I'll happily add it to my game In production and do some testing with friends..If that helps at all.
  23. Or simply In header.php $db->query("UPDATE users SET user_level=2 WHERE userid=1"); Not too hard now xD
  24. When I first started coding I made this mistake 6-7x a day LOL; Easy enough fixed though :)
×
×
  • Create New...