Jump to content
MakeWebGames

CJ - Twitch

Members
  • Posts

    391
  • Joined

  • Last visited

Everything posted by CJ - Twitch

  1. It doesn't work :P
  2. Could someone help me with this code please?   <?phpsession_start();include "config.php";global $_CONFIG;define("MONO_ON", 1);require "class/class_db_{$_CONFIG['driver']}.php";$db=new database;$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);$db->connect();$c=$db->connection_id;$set=array();$settq=$db->query("SELECT * FROM settings");while($r=$db->fetch_row($settq)){$set[$r['conf_name']]=$r['conf_value'];}?><html><title>RIPPED</title><body style="background-color:CCCCCC;"> <table border="0" bgcolor='DEDEDE' align='center'> <tr style="background-color:AAAAAA;"> <td><center>RIPPED - Login</center></td> </tr> <tr> <td><form action='authenticate.php' method='POST'> <input type='name' name='name'> <input type='password' name='password'> <center><input type="image" src="submit.jpg" width="84" height="26" /></center> </td> </tr> </body></html>   It doesn't want to work. :( Thanks, CJ
  3. Ok. :) It won't upset my users as I don't have any. xD
  4. Sorry I posting so much but It don't work in IE 8...
  5. Also thank you so much!
  6. Don't worry fixed it. :) Just moved   <link type="text/css" href="themes/vista/ill.stylesheet.css" rel="stylesheet" /><script type="text/javascript" src="jquery-1.3.2.min.js"></script><script type="text/javascript" src="src/jixedbar-0.0.2.js"></script><script type="text/javascript"> $(document).ready(function() {$("#demo-bar").jixedbar({hoverOpaque: true,roundedCorners: true }); }); </script>   Down a bit.
  7. It doesn't work. I just get a blank page now.
  8. cool. :)
  9. Well could someone please do it. :) I seriously am a noob.
  10. n00b says: Could you put it the whole code together please.
  11. http://www.bennadel.com/blog/1740-Building-A-Fixed-Position-Bottom-Menu-Bar-ala-FaceBook-.htm Hope this helps...
  12. Do you think you could post the code. The on that does not work on I.E. Just so I can try it out. I use Google Chrome.
  13.   helps to read My apologies. So tired. :P
  14. Am I being a noob or have you not posted the code?
  15. Could someone please make a forum smilies addon?
  16. if($memb['laston'] >= time()-15*60) { $on="[img=onlinee.png]"; } else { $on="[img=offlinee.png]"; }   That should work. You are using this for the forum therefore $r would be $memb .. ;)
  17. **//Facepalm! Thank you :)
  18. Still not working sorry.
  19. Could you help me please.   if($r['hospital']) { $h="[img=images/icons/hosp.png]";   This code seems not to work. How could I fix this? Thanks, CJ
  20. Don't worry fixed
  21. Thank you very much. :)
  22. Thank you MTG.
  23. Could some please help me with dynamic zebra tables for php. This would be great.
  24. Thats ok I'm using a custom engine :P May I convert it for use with my game?
  25. <?php/******This Mod Made By Immortal Thug******************Please Leave this Notice*****************************Free for members of MWG***************************************************************************/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']));$_POST['msg'] = str_replace(array("\n"),array(" "),strip_tags(htmlentities($_POST['msg'])));$_POST['msg'] = mysql_real_escape_string($_POST['msg']); 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(){if(!$set['sendbank_on']){die("Sorry, the game owner has disabled this feature.");} 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, `new_mail`=`new_mail`+1 WHERE `userid`=%d", $_POST['points'], $_GET['ID']));$db->query("INSERT INTO mail VALUES ('',0,$userid,{$_GET['ID']},unix_timestamp(),'Wire Transfer','{$_POST['msg']}')");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')");}}$h->endpage();exit;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' /> Message: <input type='text' name='msg' /></form>";}}}$h->endpage(); function sendoff(){ global $db,$ir,$h,$userid;$_POST['msg'] = str_replace(array("\n"),array(" "),strip_tags(htmlentities($_POST['message']))); 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, `new_mail`=`new_mail`+1 WHERE `userid`=%d", $_POST['points'], $_GET['ID']));$db->query("INSERT INTO mail VALUES ('',0,$userid,{$_GET['ID']},unix_timestamp(),'Cyber Transfer','{$_POST['msg']}')");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')");}}$h->endpage();exit;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' /> Message: <input type='text' name='msg' /></form>";}}}$h->endpage(); function sendpoints() {if(!$set['sendcrys_on']){die("Sorry, the game owner has disabled this feature.");} global $db, $userid, $h, $ir;$_POST['msg'] = str_replace(array("\n"),array(" "),strip_tags(htmlentities($_POST['message']))); 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, `new_mail`=`new_mail`+1 WHERE `userid`=%d", $_POST['points'], $_GET['ID']));$db->query("INSERT INTO mail VALUES ('',0,$userid,{$_GET['ID']},unix_timestamp(),'Incoming points','{$_POST['msg']}')");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']}')");}}$h->endpage();exit;else{echo "<h3> Sending Points</h3>You are sending points to ID: [b]{$_GET['ID']}[/b]. You have [b]".number_format($ir['crystals'])."[/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' /> Message: <input type='text' name='msg' /></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['msg'] = str_replace(array("\n"),array(" "),strip_tags(htmlentities($_POST['message'])));$_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['money']){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, `new_mail`=`new_mail`+1 WHERE `userid`=%d", $_POST['cash'], $_GET['ID']));$db->query("INSERT INTO mail VALUES ('',0,$userid,{$_GET['ID']},unix_timestamp(),'Incoming Money','{$_POST['msg']}')");echo "You sent \$".number_format($_POST['cash'])." to ID ".number_format($_GET['ID']).".";event_add($_GET['ID'],"You received \${$_POST['cash']} from {$ir['username']}."); $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']}')");$h->endpage();exit;}}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' /> Message: <input type='text' name='msg' /></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(); ?>   I 'Think' i made it so users can't send points and bank when admin has turned it off.. not tested hence 'think' :P
×
×
  • Create New...