"; echo "
"; } else { echo "Hide Images
"; } require_once("../common/language.php"); if (file_exists("language.php")) require_once("language.php"); $realpath = ereg_replace(".*/([^/]+)/userlist.php$", "chat\\1", $_SERVER['PHP_SELF']); if (($_SERVER['HTTP_HOST'] != 'v2.pjj.cc') && strstr($_SERVER['HTTP_HOST'], '.pjj.cc')) $realpath = preg_replace('/(.*?)\.pjj\.cc/is', 'chat\1', $_SERVER['HTTP_HOST']); $ident = substr(md5($_SERVER['REMOTE_ADDR'].$realpath), 0, $identlenght); $oldident = $ident; if ($_COOKIE['pJJChat_Banned'] != "") { $ident = $_COOKIE['pJJChat_Banned']; } if (CheckBan($ident, $realpath) == 0) { $ident = $oldident; $xcnt = count($banip); for ($cc=0;$cc<$xcnt;$cc++) { if ( ($ident == $banip[$cc]) || (strncmp($_SERVER['REMOTE_ADDR'], $banip[$cc], strlen($banip[$cc])) == 0) || (strncmp($_SERVER['HTTP_X_FORWARDED_FOR'], $banip[$cc], strlen($banip[$cc])) == 0) ) { echo "Can't view this while permbanned."; echo "