[Include] Easy Server Data - Server Information at your fingertips
#7

All the webpage does is echo the client's IP. How-ever, I will include the page I used. As far as I know, my site hasn't gone down since I first got it.

Here;
Code:
<?php
	function getClientIP() {

		if (isset($_SERVER)) {

			if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
				return $_SERVER["HTTP_X_FORWARDED_FOR"];

			if (isset($_SERVER["HTTP_CLIENT_IP"]))
				return $_SERVER["HTTP_CLIENT_IP"];

			return $_SERVER["REMOTE_ADDR"];
		}

		if (getenv('HTTP_X_FORWARDED_FOR'))
			return getenv('HTTP_X_FORWARDED_FOR');

		if (getenv('HTTP_CLIENT_IP'))
			return getenv('HTTP_CLIENT_IP');

		return getenv('REMOTE_ADDR');
	}
	echo(getClientIp());
?>
And @Turn, at first I thought you were just new and didn't understand anything but know I see that your just being rude, and unhelpful. Let me get some of your recent posts:

Quote:
Originally Posted by Turn
View Post
When are gonna realize that your server is shitty and so is your videos?
Post them on your forum, clearly nobody wants to see them here.
Quote:
Originally Posted by Turn
View Post
"Who cares if the gun disappear"

Are you stupid? the whole point of Mionee's script is for the gun not to dissapear as for the OnPlayerUpdate, it is bad coding not just inaccurate.


But then again, this is a good way of doing it aswell.
If your going to talk shit about my script, atleast point out it's faults; what makes it shitty. I really hope that you get some manners, and decide to come back here with some respect for yourself. Your talking like you know everything, and are better than everyone else - I really don't appreciate your attitude.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)