Update debug launch
This commit is contained in:
parent
c8796de767
commit
d6dd5f022c
@ -3,7 +3,7 @@
|
||||
require_once(trim(file_get_contents('./.onyx')));
|
||||
|
||||
//On active le débogage si l'on est sur le domaine de debug
|
||||
if ($_SERVER["SERVER_NAME"] == "localhost" || $_SERVER["SERVER_NAME"] == "fic.nemunai.re")
|
||||
if ($_SERVER["SERVER_NAME"] == "localhost" || $_SERVER["SERVER_NAME"] == "fic" || $_SERVER["SERVER_NAME"] == "atlantis.chen.li")
|
||||
define("DEBUG", true);
|
||||
|
||||
//Chargement de tout le nécessaire pour le site
|
||||
|
@ -85,6 +85,10 @@ function decode_ip($int_ip)
|
||||
|
||||
function encode_ip($ip=FALSE)
|
||||
{
|
||||
if(!$ip && !empty($_SERVER["HTTP_X_FORWARDED_FOR"]))
|
||||
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
|
||||
if(!$ip && !empty($_SERVER["HTTP_X_REAL_IP"]))
|
||||
$ip = $_SERVER["HTTP_X_REAL_IP"];
|
||||
if(!$ip)
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user