Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,124
  • Joined

  • Last visited

  • Days Won

    144

Everything posted by Magictallguy

  1. Re: [mccode v2] Updated Newspaper - more than one page Then you're obviously missing the globals.php file 0,o
  2. Re: [mccode v2] Updated Newspaper - more than one page   Chances are you're using v1, this paper is for v2
  3. Re: [mccode v2] Updated Newspaper - more than one page   I can promise you, I haven't done that. As I'm a game owner myself, I know how annoying multis can get so, I simply don't bother making them What is your site? I'd like to know who's posing as me
  4. Re: [mccode v2] Updated Display Pic System   Newbie+ indeed...   echo ($r['display_count'] == 0) ? "[img=/testimages/nopic.gif]" : sprintf("[img=%s]", stripslashes($r['display_pic']));
  5. Re: [MCC V2] - Search.php in one | Optimized Learn about isset() It will help you get rid of unwanted errors popping up (E_WARNING)
  6. Re: Help!! Mccodes Lvl hack You could always mysql_real_escape_string() $_POST['newname'] = mysql_real_escape_string($_POST['newname']);
  7. Re: Referal in HOF   $sql = sprintf("SELECT * FROM referals WHERE (refREFER = %u)", $r['userid']); $query = mysql_query($sql) or die(mysql_error()); $refwin = mysql_num_rows($query);
  8. Re: Code for capped EXP?   ALTER TABLE users CHANGE `exp` `exp` DECIMAL( 45,4 ) NOT NULL DEFAULT '0.0000'; Not hard.
  9. Re: [mccodes v2] Combined Gallery and Comment System [$40.00] Nicely spotted radio_active!!
  10. Re: [mccodes v2] Combined Gallery and Comment System [$40.00] There is a free version, but read through the code ask yourself this: Is it secure? Does it offer any functionality that mine does? Is the free version closer to what your looking for? I think $40 is a fair price considering I spent over 5 hours on this. I even missed Star Trek for this! xD Thank you to AlabamaHit for, well, defending me. I posted on his topic saying that I don't code for a price. This is a one-off. I'm wanting to see if anyone is interested. I may bring the price down though.
  11. A fully working gallery system with a combined comment system. Allows users to upload and displays galleries to one-another. Abilities to comment on theirs/others pictures. More abilities shown in the screenshots http://www.velocity-islands.co.uk/magic/gallery <-- screenshots found there 1 file, 2 SQL tables, 1 users table addition. Can be seen working on Torn County This took me about 4 hours to create, it's secure, and only certain image formats will be accepted   PM/IM me if interested. [email protected]
  12. Re: Working Proxy Blocker - Blocks MOST Proxies [$10] I've already said that I've removed it..
  13. Re: Working Proxy Blocker - Blocks MOST Proxies [$10] I've removed the proxy blocker as it gave me problems... Sorry Alan
  14. Re: [mccodes v2] Jail Bust Offer [$5.00] Indeed it has! [email protected] <-- email/MSN, feel free to contact me if you get bored :P
  15. Re: [mccodes v2] Jail Bust Offer [$5.00] This is actually one of the reasons I don't charge for my coding.. I'd get people bothering me saying that I'm charging to much for my services for which I'm going out my own way and spending my time on someone else's site.. All in all, I code for free. But not for everyone..
  16. Re: Working Proxy Blocker - Blocks MOST Proxies [$10] To work with AOL proxies, I could use $_SERVER['REMOTE_ADDR'] and edit in a list IP's/IP ranges from AOL themselves. http://webmaster.info.aol.com/proxyinfo.html
  17. Re: Working Proxy Blocker - TESTED WORKS 100% READ!! [$10] This proxy blocker uses a PHP socket function and a specified port (makes sense to me at least) You could've got through as you were using Port 80?
  18. Re: Working Proxy Blocker - TESTED WORKS 100% READ!! [$10] In that case, I'll work with the code as it was one of the sites I work on that it was tested on. I'll see if I can allow AOL proxies while blocking .. proxies!
  19. Re: Giving Item To All Users [FREE]     $name = mysql_fetch_object(mysql_query("SELECT itmname FROM items WHERE itmid = ".$_POST['item']." ")); event_add($r['userid'],"The population has just been given item $name->itmname, Click [url='inventory.php']Here[/url] to check.",$c);   This is untested..... v2 $name = $db->fetch_single($db->query(sprintf("SELECT itmname FROM items WHERE (itmid = %u)", $_POST['item']))); event_add($r['userid'],"The population has just been given a/an ".stripslashes($name).". Click [url='inventory.php']Here[/url] to check.");   Feel free to remove the stripslashes(), as most people don't secure their files (including staff panel), it wouldn't be needed!
  20. Re: Updated Explore V.2 I'm working on the staff side of this mod
  21. Re: Updated Explore V.2 I have now created this, feel free to mail me if you want a copy
  22. Re: Free Jail All in one So you post a script that is obviously not yours to post, can't fix it and now want help?
  23. Re: Warning [me=Magictallguy]has read through this topic and is astonished at the stupidity of people..[/me] And I know Dan (Twizted), he's not that bad but yea.. Ok xD
  24. Re: 8 Lines to secure your site from known sql injections.   In globals.php function clean($string) { $string = mysql_real_escape_string(htmlspecialchars($string)); return $string; } Use as shown (Preferences - Name Change given as example) mysql_query("UPDATE users SET username = ".clean($_POST['newname'])." WHERE userid = $userid"); or $UpdateName = sprintf("UPDATE users SET username = '%s' WHERE (userid = %d)", clean($_POST['newname']), $userid); mysql_query($UpdateName);   Above switch($_GET['action']) $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : "";   Secures $_POST if used properly (alphanumeric) $_POST['blah'] = isset($_POST['blah']) && is_string($_POST['blah']) && preg_match("`^\d+$`ims", $_POST['blah']) ? @intval($_POST['blah']) : 0;
  25. Re: Help Needed (Crons) Speaking of crons help (:P) Anyone got a decent way of running crons when they're not in the game folder? I've tested php -f >> run-parts None work..
×
×
  • Create New...