Added basic support for X-Forwarded-For. Will need improving upon
Added basic support for X-Forwarded-For. Will need improving upon

--- a/lib/Framework/main.php
+++ b/lib/Framework/main.php
@@ -127,8 +127,11 @@
 * @return string
 */
 function getip(){
-
-return $_SERVER['REMOTE_ADDR'];
+	if (!isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
+        	return $_SERVER['REMOTE_ADDR'];
+	}else{
+        	return $_SERVER['HTTP_X_FORWARDED_FOR'];
+	}
 
 }
 
@@ -430,3 +433,4 @@
 
 
 ?>
+