X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fnodes.php;h=75b613b6737d0adec9b34d6b023442bbc9e4a40a;hb=71a598e9ace080c3a636a39cc110e1ed169a1a4e;hp=1d68665516f06b3f697a799aa3f4d610193affbd;hpb=e7c3a55a867cd2b4c7c2cf56da69b4cce1b7088d;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 1d68665..75b613b 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -156,11 +156,11 @@ if (!empty($_SESSION['debugging']) && $_SESSION['debugging']) { // DO NOT MESS WITH THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //creating neural network -if (preg_match('/id\/(\d+)/',$_SERVER['HTTP_REFERER'],$match)) { +if (preg_match('/id\/(\d+)/',isset($_SERVER['HTTP_REFERER'])? $_SERVER['HTTP_REFERER'] : "",$match)) { $referer_id=$match[1]; -} elseif (preg_match('/k\/([a-z0-9]{1,7})/',$_SERVER['HTTP_REFERER'],$match)) { +} elseif (preg_match('/k\/([a-z0-9]{1,7})/',isset($_SERVER['HTTP_REFERER'])? $_SERVER['HTTP_REFERER'] : "",$match)) { $referer_id=base_convert($match[1], 36, 10); -} elseif (preg_match('/name\/(.*?)\/?$/',$_SERVER['HTTP_REFERER'],$match)) { +} elseif (preg_match('/name\/(.*?)\/?$/',isset($_SERVER['HTTP_REFERER'])? $_SERVER['HTTP_REFERER'] : "",$match)) { $referer_id = nodes::getNodeIdByName($match[1]); }