Jump to content
MakeWebGames

Opium

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Opium's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Rating Modification Help ... REMOVED...
  2. Re: Help Please Very Urgent ALTER TABLE `users` SET `user_level`='2' WHERE `userid`='1';
  3. Re: View User Fix Please Help Not nesserialy... :wink:
  4. Re: View User Fix Please Help Care to show use line 305?
  5. Re: View User Fix Please Help What's the problrm/error?
  6. Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Nice work, 4 people coming together to make a nicely coded mod. Well done. :wink:
  7. Re: [mccode V2] Header [$20.00] New Can you contact me about this header please. Opium.
  8. Re: Important Security Issue For All McCode Owners ! Ahh, thank you for saying.
  9. Re: Important Security Issue For All McCode Owners ! Ahh sorry my bad, long day, got wrong end of stick :lol: Sorry.
  10. Re: Important Security Issue For All McCode Owners !   What do you mean? I never said I created it, nor did MD but i do indeed use it and it seems like a better option than what MC Codes have.
  11. Re: Important Security Issue For All McCode Owners ! Fair enough..   Why not use this: function validip($IP) { if (!empty($IP) && ip2long($IP)!=-1) { $ReservedIps = array ( array('0.0.0.0','2.255.255.255'), array('10.0.0.0','10.255.255.255'), array('127.0.0.0','127.255.255.255'), array('169.254.0.0','169.254.255.255'), array('172.16.0.0','172.31.255.255'), array('192.0.2.0','192.0.2.255'), array('192.168.0.0','192.168.255.255'), array('255.255.255.0','255.255.255.255') ); foreach ($ReservedIps as $R) { $Min = ip2long($R[0]); $Max = ip2long($R[1]); if ((ip2long($IP) >= $Min) && (ip2long($IP) <= $Max)) return false; } return true; } else { return false; } } function getip() { if (validip(isset($_SERVER['HTTP_CLIENT_IP']))) { return $_SERVER['HTTP_CLIENT_IP']; } foreach (explode(",", isset($_SERVER['HTTP_X_FORWARDED_FOR'])) as $IP) { if (validip(trim($IP))) { return $IP; } } if (validip(isset($_SERVER['HTTP_X_FORWARDED']))) { return $_SERVER['HTTP_X_FORWARDED']; } else if (validip(isset($_SERVER['HTTP_FORWARDED_FOR']))) { return $_SERVER['HTTP_FORWARDED_FOR']; } else if (validip(isset($_SERVER['HTTP_FORWARDED']))) { return $_SERVER['HTTP_FORWARDED']; } else if (validip(isset($_SERVER['HTTP_X_FORWARDED']))) { return $_SERVER['HTTP_X_FORWARDED']; } else { return $_SERVER['REMOTE_ADDR']; } }
  12. Re: Important Security Issue For All McCode Owners ! So I gather, you can open peoples ports by using PHP and execute scripts on your side to execute on your game? and cookie/session hi-jacking.
  13. Re: [mccode v2] Humans vs. Zombies EVENT mod I will so add this when the whole code is out. I'll personally re-code/code parts but it would be nice for my game.. :wink:   ZOMBIE PIRATES!
  14. Re: Working Close Page System [MCCODE V2]     Here is a piece of code i took and have a look at my general idea..   if (!$ir['userid'] == '1') { if ($cp['closed'] == '1') { echo '<strong style="text-align: center; color: #FF0000;">This Page is not open to the Public > [url="index.php"]Go Home[/url][/b]'; } }   Easier to edit the pages... So you don't have to open each page to edit it.
  15. Re: April Fools Joke [MCCODE V2] Maybe use urlencode() because that link when I hover over the link I can see I'm not getting it. Just an idea.
×
×
  • Create New...