View file dl/system/start.php

File size: 3.61Kb
<?php
#********************************** AgS MOD DOWNLOAD CENTR SEA *************************************#
#***************************************************************************************************#
#  /||||||||||||||| *********************  /||||||||||||||| *********************  /||||||||||||||| #
# | ||||||||||||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||/////||||| ********************* | |||||/////////  ********************* | |||||/////////  #
# | |||||   | ||||| ****** E-MAIL ******* | |||||           ****** WAP/WEB ****** | |||||           #
# | |||||   | ||||| *** [email protected] *** | |||||           * http://ags.h2m.ru * | ||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||   | ||||| ********************* | |||||/////||||| ********************* |///////////||||| #
# | ||||||||||||||| ****** SKYPE ******** | |||||   | ||||| ***** MOD AUTHOR ****           | ||||| #
# | |||||////|||||| ***** agrizz15 ****** | |||||   | ||||| ***** Agris Cišs ****  /||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# |/////    |/////  ********************* |///////////////  ********************* |///////////////  #
#***************************************************************************************************#
#********************************* MOD by AgS in 2010 @ LATVIA *************************************#


@error_reporting(E_ALL ^ E_NOTICE);
@ini_set('display_errors', true);
@ini_set('html_errors', true);
@ini_set('url_rewriter.tags','');
@ini_set('session.use_trans_sid', 1);
@ini_set('error_reporting', E_ALL ^ E_NOTICE); 
@ini_set('register_globals', 1);
session_name('SID');
session_start();


list($generic_msec,$generic_sec)=explode(chr(32),microtime()); 
$generic_time=$generic_sec+$generic_msec; 

ob_start();


$phpversion = phpversion();
list($v_Upper,$v_Major,$v_Minor) = explode(".",$phpversion);


if(($v_Upper == 4 && $v_Major < 1) || $v_Upper < 4){
    $_FILES = $HTTP_POST_FILES;
    $_ENV = $HTTP_ENV_VARS;
    $_GET = $HTTP_GET_VARS;
    $_POST = $HTTP_POST_VARS;
    $_COOKIE = $HTTP_COOKIE_VARS;
    $_SERVER = $HTTP_SERVER_VARS;
    $_SESSION = $HTTP_SESSION_VARS;
    $_FILES = $HTTP_POST_FILES;
}


if (!ini_get('register_globals')) {
    while(list($key,$value)=each($_GET)) $GLOBALS[$key]=$value;
    while(list($key,$value)=each($_POST)) $GLOBALS[$key]=$value;
   	while(list($key,$value)=each($_SESSION)) $GLOBALS[$key]=$value;
}
/* Pārbaudam čumošņikus, kas grib bļē sapist ko */
function anti_hacker($txt){
$txt=str_replace("|","I",$txt); 
$txt=str_replace("../",",,/",$txt);
$txt=str_replace("||","I",$txt);
$txt=htmlspecialchars($txt);                  
$txt=str_replace("\"","&#34;",$txt);
$txt=str_replace("/\\\$/","&#36;",$txt);
$txt=str_replace("$","&#36;",$txt);          
$txt=str_replace("\\","&#92;",$txt);
$txt=str_replace("`","",$txt);  
$txt=str_replace("^","",$txt);
$txt=str_replace("%","&#37;",$txt);
$txt=stripslashes(trim($txt));
return $txt;}

if(isset($_GET)){foreach($_GET as $key=>$value){$_GET[$key]=anti_hacker($value);}}
if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=anti_hacker($value);}}
if(isset($_SESSION)){foreach($_SESSION as $key=>$value){$_SESSION[$key]=anti_hacker($value);}}
if(isset($_COOKIE)){foreach($_COOKIE as $key=>$value){$_COOKIE[$key]=anti_hacker($value);}}

$folder_level = "";
while (!file_exists($folder_level."load.php")) { $folder_level .= "../"; }
define('BASE', $folder_level);
?>