
Opium
Members-
Posts
19 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Opium
-
Re: Rating Modification Help ... REMOVED...
-
Re: Help Please Very Urgent ALTER TABLE `users` SET `user_level`='2' WHERE `userid`='1';
-
Re: View User Fix Please Help Not nesserialy... :wink:
-
Re: View User Fix Please Help Care to show use line 305?
-
Re: View User Fix Please Help What's the problrm/error?
-
mccode-v2 Humans vs. Zombies EVENT mod [done, v1.0]
Opium replied to seanybob's topic in Free Modifications
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: -
Re: [mccode V2] Header [$20.00] New Can you contact me about this header please. Opium.
-
Important Security Issue For All McCode Owners !
Opium replied to MaKaVeLLi's topic in General Discussion
Re: Important Security Issue For All McCode Owners ! Ahh, thank you for saying. -
Important Security Issue For All McCode Owners !
Opium replied to MaKaVeLLi's topic in General Discussion
Re: Important Security Issue For All McCode Owners ! Ahh sorry my bad, long day, got wrong end of stick :lol: Sorry. -
Important Security Issue For All McCode Owners !
Opium replied to MaKaVeLLi's topic in General Discussion
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. -
Important Security Issue For All McCode Owners !
Opium replied to MaKaVeLLi's topic in General Discussion
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']; } } -
Important Security Issue For All McCode Owners !
Opium replied to MaKaVeLLi's topic in General Discussion
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. -
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!
-
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.
-
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.
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Sounds like an awesome idea. Very well thought out.
-
Re: small job problem im a noob :( I would have to agree with Magic because $jobquery = 1; will have a different query to the others, also the query is called by $ir in globals so Magics way will work. Unless you have screwed up globals.php
-
Re: Stop people from using IE on website I have to agree that this is a terrible idea. Internet Explorer, unfortunately, is the most common used browsers out there. Why not try to make your site Web 2.0 instead and make compatible with most, if not all browsers. Also I have to agree with Vali about using IE6 hacks which would be the better idea than blocking IE users totally. I also have to agree with the statement saying if you block IE users you wasted 25% of you advertising, the only thing I would beg to differ is the 25% because it's more likely going to be 50% which is a big loss if you put quite a lot of money into advertising.