Jump to content
MakeWebGames

Danny696

Members
  • Posts

    2,632
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Danny696

  1. Give me a link then.
  2. Persinally, i would quit a game with that, if i worked hard oto level up, then it says no and i have to do it again. There would be sooo many problems
  3. This could be done in 3 files.
  4. Does it really matter, ive tolf you on msn, and ive told you here, whats the BIG difference between here/msn/other topic??
  5. for my free graphic, i want a banner (sixes: 468x60) its gotto say GraveYard; Madness in the middle, the link (http://www.gravemadness.com) below, and then themed images around it/behind it.
  6. I know, when i re-coded the original fedjail, i would use Spriintf for every query, now i only use it itd theres a var in there.
  7. Simple, recored it only when the train.
  8. $_POST['newpic']=str_replace('action','', $_POST['newpic']); What will that do if i link it to http://www.mystie.com/script.php????
  9. I know, i was juts simply saying to Redex, it could be more secure, Oh and hers something you could try, Where you have the SHA512, try adding settings for it, so people can change it without searching the code for SHA512 :thumbsup:
  10. Not trying to me 'harsh' here, but this could be alot more secure.
  11. I didnt realise the battletent was in-secure 8|
  12. Its stripslashes not strip_slashes ;)
  13. Oh and function do_pic_change() { global $db,$ir,$c,$userid,$h; $_POST['newpic']= mysql_real_escape_string(strip_tags($_POST['newpic'])); if(empty($_POST['newpic'])) { echo 'you didn\'t enter a new picture <a href=\'preferences.php?action=pic_change\'>Back</a>'; } else { $_POST['newpic']=str_replace('\\\'',''', $_POST['newpic']); $db->query("UPDATE `users` SET `display_pic`='".$_POST['newpic']."' WHERE (`userid`=$userid)"); print "Pic changed!"; } } They could link it to a php script.
  14. Your hasing the password sha512, but the mcc auth+regg is MD5, that'll cause probs.
  15. Do you mean by?  $db->query("UPDATE users SET money=money+ $cash WHERE userid=$userid"); $db->query("UPDATE users SET shooting=shooting-1 WHERE userid=$userid"); Make that one query.
  16. Remove line 31, it shouldnt be there. Redex, Im not bothered if you dont use it, was just telling you+others, i personally perfer to be quicker, and hope they have PHP5 :P And i could have said use the @, but i think that im one of the only ones that use it for the inlcluding of globals :P
  17. Try this Javascript CSS Changer, very simple to add new, edit and del CSS's, and it works! (and no-offence to MTG, probs better as the page doesnt need to be re-loaded) http://dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
  18. Heres something you may/may not have known: include(DIRNAME(__FILE__).'/globals.php'); In php 5 can be shortened to just include((__DIR__) .'/globals.php');
  19. I was asked for the edit, so i made it.
  20. Danny696

    Dectece user OS

    thanks, but looking at my log code, i just realised, i put $log['OD'] not $log['OS'] Thanks everyone.
  21. Are you incapable of pressing Ctrl+F, pressing the letters G A N G then pressing tab then pressing the letters F A C T I O N. Can't you do anything your self! :cursing: :cursing: :cursing:
  22. At least i didnt do sprint("<tr>"); like i did before :P
  23. [mccode v2.x] FedJail Update
  24. This idea was from GanjaFreak, i made it. Tested and works. <?php @include_once(DIRNAME(__FILE__) .'/globals.php'); //Made by Danny696 //Idea by GngajaFreak //I Rock! if(isset($_GET['action'])) { switch($_GET['action']) { case'unfed': un_fed(); break; case'editfed': edit_fed(); break; default: fedd(); break; } } else { fedd(); } function fedd() { global $db, $ir; $getfed = sprintf("SELECT f.*,u.username,u2.username AS jailer FROM fedjail f LEFT JOIN users u ON f.fed_userid=u.userid LEFT JOIN users u2 ON f.fed_jailedby=u2.userid ORDER BY f.fed_days ASC"); $fusers = $db->query($getfed); echo'[b]Federal Jail[/b] If you ever cheat the game your name will become a permanent part of this list... <table cellspacing=1 class="table" width="50%"> <tr style="background:gray"> <th>Who</th> <th>Days</th> <th>Reason</th> <th>Jailer</th>'; if($ir['user_level'] >= 2) { echo'<th>Options</th>'; } echo'</tr>'; while($r = $db->fetch_row($fusers)) { echo'<tr>'; echo sprintf("<td>[url='%s']%s[/url]</td>", 'viewuser.php?u='.$r['fed_userid'].'', $r['username']); echo sprintf("<td>%s</td>", number_format($r['fed_days'])); echo sprintf("<td>%s</td>", $r['fed_reason']); echo sprintf("<td>[url='%s']%s[/url]</td>", 'viewuser.php?u='.$r['fed_jailedby'].'', $r['jailer']); if($ir['user_level'] >= 2) { echo sprintf("<td> [url='%s']<span style='color:%s'>Remove</span>[/url] [url='%s']<span style='color:%s;'>Edit</span>[/url]", '?action=unfed&ID='.$r['fed_userid'].'', 'green', '?action=editfed&ID='.$r['fed_userid'].'', 'blue'); } echo'</tr>'; } echo'</table>'; $getmailB = sprintf("SELECT * FROM users WHERE mailban>0 ORDER BY mailban ASC"); $mB = $db->query($getmailB); echo'[b]Mail Bann[/b]</center> If you ever do bad things at your mail, your name will become a permanent part of this list... <table width="100%" cellspacing="1" class="table"> <tr style="background:gray"> <th>Who</th> <th>Days</th> <th>Reason</th> </tr>'; while($r = $db->fetch_row($mB)) { echo'<tr>'; echo sprintf("<td>[url='%s']%s[/url]</td>", 'viewuser.php?u='.$r['userid'].'', $r['username']); echo sprintf("<td>%s</td>", number_format($r['mailban'])); echo sprintf("<td>%s</td>", $r['mb_reason']); echo'</tr>'; } echo'</table>'; } function un_fed() { global $db, $ir, $userid; $user = sprintf("UPDATE users SET fedjail=%u WHERE userid=%u", '0', $_GET['ID']); $fedjail = sprintf("DELETE FROM fedjail WHERE fed_userid=%u", $_GET['ID']); $jaillog = sprintf("INSERT INTO unjaillogs VALUES('',%u,%u,unix_timestamp())", $userid, $_GET['ID']); $db->query($user); $db->query($fedjail); $db->query($jaillog); echo'User unjailed. [url="fedjail.php"]Back[/url]'; stafflog_add("Unfedded user ID {$_GET['ID']}"); } function edit_fed() { global $db,$userid; if(isset($_POST['change']) == 1) { $delete = sprintf("DELETE FROM fedjail WHERE fed_userid=%u", $_GET['ID']); $re_insert = sprintf("INSERT INTO fedjail VALUES('',%u,%u,%u,'%s')", $_GET['ID'], $_POST['days'], $userid, $_POST['reason']); $db->query($delete); $db->query($re_insert); $addlog = sprintf("INSERT INTO jaillogs VALUES('',%u,%u,%u,'%s',unix_timestamp())", $userid, $_GET['ID'], $_POST['days'], $_POST['reason']); $db->query($addlog); echo'User\'s sentence edited. [url="fedjail.php"]Back[/url]'; stafflog_add("Edited user ID {$_GET['ID']}'s fedjail sentence"); } else { $getinfo = sprintf("SELECT * FROM fedjail WHERE fed_userid=%u", $_GET['ID']); $fed = $db->fetch_row($db->query($getinfo)); echo'<form action="fedjail.php?action=editfed&ID='.$_GET['ID'].'" method="post"> <input type="hidden" name="change" value="1" /> Days: <input type="text" name="days" value="'.$fed['fed_days'].'" /> Reason: <input type=" text" name="reason" value="'.$fed['fed_reason'].'" /> <input type="submit" value="Submit" /> </form>'; } } $h->endpage(); ?> [paypal][email protected][/paypal]
  25. Mabey try using some functions and a switch.
×
×
  • Create New...