Файл: sys/includes/start.php
Строк: 31
<?
if (function_exists('error_reporting'))@error_reporting(0);
if (function_exists('set_time_limit'))@set_time_limit(60);
if (function_exists('ini_set'))
{
ini_set('display_errors',false);
ini_set('register_globals', false);
ini_set('session.use_cookies', true);
ini_set('session.use_trans_sid', true);
ini_set('arg_separator.output', "&");
}
if (ini_get('register_globals'))
{
$allowed = array('_ENV' => 1, '_GET' => 1, '_POST' => 1, '_COOKIE' => 1, '_FILES' => 1, '_SERVER' => 1, '_REQUEST' => 1, 'GLOBALS' => 1);
foreach ($GLOBALS as $key => $value)
{
if (!isset($allowed[$key]))
{
unset($GLOBALS[$key]);
}
}
}
list($msec, $sec) = explode(chr(32), microtime());
$conf['headtime'] = $sec + $msec;
$time=&time();
$phpvervion=explode('.', phpversion());
$conf['phpversion']=$phpvervion[0];
$upload_max_filesize=ini_get('upload_max_filesize');
if (preg_match('#([0-9]*)([a-z]*)#i',$upload_max_filesize,$varrs))
{
if ($varrs[2]=='M')$upload_max_filesize=$varrs[1]*1048576;
elseif ($varrs[2]=='K')$upload_max_filesize=$varrs[1]*1024;
elseif ($varrs[2]=='G')$upload_max_filesize=$varrs[1]*1024*1048576;
}
function s_klub($msg){
$msg=str_replace("script","sсript",$msg);
$msg=str_replace("javаscript:","javаscript:",$msg);
if ($_SERVER['PHP_SELF']!='/panel/mysql.php')
$msg=addslashes(stripslashes(trim($msg)));
return $msg;
}
?>