Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Haunted Dawg

    Replace

    Re: Replace If that's the case.. $output = preg_replace('~\[!\](.*)\[!\]~is',$.'$1', file_get_contents('headerfile')); echo $output; you could try.
  2. Re: Total Time Logged In! Total time logged in: 44 days, 5 hours and 21 minutes.
  3. Haunted Dawg

    Replace

    Re: Replace Why use preg_match or even preg_replace for simple string's? str_replace('[!]page_title[!]', $page_title, $html); I would take it you would insert that into a function which is being run by ob_start?
  4. Re: Just a simple question just add ".$ir['username']." into it. So it will become:   event_add($_POST['user'], 'You were banned from YOUR GAME for ',$_POST['days'],' day(s) by ',$ir['username'],' for the following reason: '.$_POST['reason']);
  5. Re: secure mccodes v2 I charge $50.00 USD to secure all current exploit's and future exploit's. I charge $300.00 to recode every single file on your game.
  6. Re: addtoshop error, please help. try changing: $db->query("update usershopitems set quantity=quantity+{$_GET['quantity']} where id={$theitem['id']}"); to $qty = abs(intval($_REQUEST['quantity'])); $db->query("update usershopitems set quantity=quantity+{$qty} where id={$theitem['id']}");
  7. Re: addtoshop error, please help. Quantity is not set.
  8. Re: can anyone help me on this please? Then the script you provided won't work.
  9. Re: can anyone help me on this please? Is this for incentive voting?
  10. Re: Chat Ban [V2] credit?
  11. Re: help! Yes, captcha does stop this method as it is used on http://deadlyhustle.com
  12. Re: please help   Whats the difference from the other one posted? lol btw..you should sanitize the $_POST. values with mysql_real_escape_string(). To the OP, you could try this:   <?php /* Mccode V1, authenticate.php recode by PHP Scene. */ session_start(); include ('mysql.php'); $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); if ($username == '' || $password == ''){ exit('Please make sure you fill the username and password fields in. [url="login.php"]Back[/url]'); } $check = mysql_query("SELECT `userid` FROM `users` WHERE `login_name` = '{$username}' AND `userpass` = md5('$password') LIMIT 1;", $c) or die(mysql_error()); if(!mysql_num_rows($check)){ exit('Account cannot be found with that username and password.'); }else{ $_SESSION['loggedin'] = 1; $user = mysql_fetch_object($check); $_SESSION['userid'] = $user->userid; header('Location: index.php'); } ?>   (recode from scratch) You don't need to use "mysql_real_escape_string" on a password, if it's beening hashed.. with md5/sha1/ ect So mres'ing the password would potentially lock out any users with a ' in their password. Yes that would be the case and in this case a bad idea.
  13. Re: FIRST THOUGH! kyle //isnt it based on the last letter of the last poster? 0.o
  14. Re: Gallery MOD Fixed and Secured Who's modification was this before?
  15. Re: Looking for code paying $5   He didnt read properly cos i put i want to test it first and he didnt read lmao cos obviously if it didn't work he wouldn't have fixed it say you are the person who hacks everyones games too arent you? cos you have nothing better to do and dont post again you will only embarass yourself more I have never heard a single complaint against pog1 about hacking. It seem's you are the person who won't pay.
  16. Re: mysql help? <? $c=mysql_connect('localhost','cpanelusername','cpanelpassword') or die(mysql_error()); mysql_select_db('cpanelusername_database',$c); ?> Doubt anyone is going to give you their file information lol.
  17. Re: [HELP][V2]I need Mod Help [i Know I'm in Wrong Forum]   <?php include_once('globals.php'); //Include once which mean's that //if globals.php is including globals.php again //it won't and no error's will be displayed //(thats what i think if im wrong some one prove me); $content = mysql_query('SELECT `footer` FROM `header`'); $content = mysql_fetch_object($name); echo '<body onload="alert(\''.$content->footer.'\');">'; ?>
  18. Re: [mcCodes v2] Donator Pack About to Expire Warning Having..   if($ir['donatordays'] == 7) { donevent_add($ir['userid'],"You have {$ir['donatordays']} Donator Days Remaining <a href=donator.php>Renew Days </a>"); } if($ir['donatordays'] == 1) { donevent_add($ir['userid'],"Your Donator Days Expires Tomorrow <a href=donator.php>Renew Days </a>"); }   Will end up making them have thousand's of event's at the end of the day. As mentioned. You could just do..   SQL's: ALTER TABLE `users` ADD `don_evented` TINYINT(2) NOT NULL DEFAULT '0';   Day Cron: mysql_query('UPDATE `users` SET `don_evented` = 1 WHERE `donatordays` = 7 OR `donatordays` = 1');   Header Code: if($ir['donatordays'] && $ir['don_evented']) { event_add($ir['userid'], 'You have '.$ir['donatordays'].' left, click [url="donator.php"]here[/url] to buy more donator packs!'); }
  19. Re: [mcCodes v2] Donator Pack About to Expire Warning if($ir['donatordays'] <= 7) { echo 'Show the text here'; } should do it for 7 day's.
  20. Re: dropdown menu Javascript Dropdown when you click a button the link's show etc.
  21. Re: Advanced Voting $15 Forgot to mention.. Priced dropped to $10.00
  22. Re: Files For My Radio Web Site CrazyT, you remmember Anthonly aka DJProStylez... his site used to be prostylezradio.com it seem's like he sold it to lumpy..
  23. Re: FIRST THOUGH! moobies
  24. Re: Advanced Voting $15 Bump Still have 4 copies left!
  25. Re: [mccode] Travel Agency Advanced [$15.00] Bump Still have 2 copies!
×
×
  • Create New...