Jump to content
MakeWebGames

CrazyT

Members
  • Posts

    708
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by CrazyT

  1. I saw this post yesterday, and was just laughing at some of you saying can't be done. Yes it can because i had ago, and i have done it my self, and yes it works fine ;) So what should i do, give all of you people a challenge to try and figure it out your self or should i post? Here is a working version: http://86.185.88.98/Tests/Image%20Fix/ By the way this is my local server (localhost), so if it says Page Cannot Be Found, then i put localhost offline. Yes this can be XSS'ed because i haven't done htmlspecialchars(), on this because on your normal mccode parser it does that it's self. So no need for me to add it on here because you will most probably add it into your bbcode function/class. Now I'm going to wait for some of you to reply. :)
  2. Wow thanks, if i find any ill be sure to post then no one will lose them :)
  3. Fail. Delete. Simple as.
  4. Pudda you use so much code. lol <?php include("./globals.php"); if ($ir['daysingang'] < 30) echo "You cannot declear war right now"; else echo "You can now [url='yourgang.php?action=staff&act2=declare'][b]Declare War[/b][/url] "; $h->endpage(); ?> Less code xD Or.. <?php include("./globals.php"); echo ($ir['daysingang'] < 30) ? "You cannot declear war right now" : "You can now [url='yourgang.php?action=staff&act2=declare'][b]Declare War[/b][/url] "; $h->endpage(); ?>   xD
  5. ugh what can be so hard? $id = isset($_GET['id']) && is_string($_GET['id']) && preg_match("/^\d+$/ims", $_GET['id']) ? $_GET['id'] : null; if (is_null($id)) echo "<p class='error'>This is an invalid id.</p>"; else { $sql = $db->query("SELECT `blah`, `blah`, `blah` FROM `table` WHERE `id` = ". $id); ////so hard? # Do you script.. What can be so hard!? }
  6. Damn, you got exploited. lmao 1) Open header find <?php under add: die("Site Closed"); Now, your done. lol
  7. Karlos'es one fails.. It just uses images at random from a folder has no GD lib.
  8. Bitch :P You know ive half done my own with other stuff. (mailbox, (settings controlled from admin panel), user profiles)) -.- Just haven't had time to finsh mailbox. lol
  9. lmao It's true people copy other peoples source.
  10. The "votes" table doesn't exist in the database. Is what that error means.
  11. Error say's it all :) You need to define $db, global $db;
  12. Time stamp in database? There is no need, store it in a session or cookie :)
  13. CrazyT

    Code Help lol

    Your "files" directory needs to be chmod to 755 or 777 is it? or as a_bertrand said.
  14. Point less post? Yeah. So is mine now. o.o
  15. CrazyT

    Users online

    or, change $db->query to $GLOBALS['db']->query("[...]SQL[...]"); :D
  16. Under: send_mail() function you have, global $db,$h; . You need to global the variable $email, other wise $email will be empty on mail().
  17. Your Welcome. :D mysql_fetch_row() - Retruns a numerical array. And no not $db->fetch_row on mccodes.
  18. Build it into one query. Like $sql = $db->query ('SELECT ', '(SELECT COUNT(userid) FROM users WHERE fedjail = 1) as fedjail_users, ', '(SELECT COUNT(userid) FROM users WHERE mailban > 0) as mailban_users, ', '(SELECT COUNT(userid) FROM users WHERE forumban > 0) as forumban_users' ); list ($feddedusers, $mailbannded, $forumbannded) = mysql_fetch_row($sql); Three queries into one query. :)
  19. So what if it has the same file name's, file name's has nothing to do with it. So if i make a few files named: index.php explore.php stats.php usersonline.php userlist.php ect So doe's that mean it's mccodes? No it doesn't.
  20. No crime valley isn't mccodes.
  21. @Illusions, thanks for telling me Windows Paint does the cords didn't know that. lol :D
  22. Why are you using a class for that? Maybe if there was ALOT more stuff/functions ect maybe but... There is no need for that one function to be inside a class, that is just useless and pointless.
  23. It's on the first page?
  24. Would be good, wouldn't be hard to do. I could make one for you for a price, or i know some people copy other games ideas, view source, js, so you could copy the js, and just use that and code the rest of the code..
  25. Why two if's when you can use one? if (isset($_SESSION['HTTP_USER_AGENT']) && ($_SESSION['HTTP_USER_AGENT'] !== sha1($_SERVER['HTTP_USER_AGENT']))) { session_write_close(); header('Location: login.php'); die; } else { $_SESSION['HTTP_USER_AGENT'] = sha1($_SERVER['HTTP_USER_AGENT']); }
×
×
  • Create New...