ereg_replace на preg_replace
ereg и eregi на preg_match- после смены ошибка появилась другая...
preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in
preg_replace() [function.preg-replace]: Compilation failed: POSIX named classes are supported only within a class at offset 1 in
function shop_session()
{
global $gSEUserAgentHave, $gSEUserAgentHaveNot, $gSELockIP ;
if ( !eregi($gSEUserAgentHaveNot, $_SERVER['HTTP_USER_AGENT']) || eregi( $gSEUserAgentHave, $_SERVER['HTTP_USER_AGENT']) ) return false;
if ( ip_in_range(user_ip(), $gSELockIP) ) return false;
session_name(DB_NICK.'_MSS');
session_start();
if ( session_id() == 'deleted' )
{
@session_destroy();
setcookie(session_name(), "", time(), "/");
header("Location: ./");
exit;
}
return true;
}