View file dl/sys/cons.php

File size: 1.51Kb
<?php

Error_Reporting(E_ALL & ~E_NOTICE);


session_start();

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

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;
}


$folder_level = "";
while (!file_exists($folder_level."downer.php")) { $folder_level .= "../"; }
define("BASE", $folder_level);


//-------- generation
$start_time = microtime(); 
$start_array = explode(" ",$start_time); 
$start_time = $start_array[1 ]+$start_array[0]; 

//-------------settings
include "cfg.php";

define("TRANSLATE_FILE",$trans_all_names);
define("FILES_ON_PAGE",$config_downlist);
define("COMMENTS_COUNT",$comm_on);
define("FILES_DIR_COUNT",$count_files_dir);
define("IMAGE_DELETE_SECONDS",$del_img_sec);
define("IS_NEW_FILE",$new_file_is);
define("NEW_FILE_MESSAGE",$new_file_name);
define("ERROR_MESAGE",$error_msg);
define("OBSHEE",$OB);
define("NOSAUKUMS",$nosaukums_dl);
define("AUGSTUMS",$con_hw);
define("FRAZE",$fraze);
define("FRAZE_visiem",$fraze_all);
//------------------------------------


if($wap_master_url==1){
$_SESSION['url']=$url;
if(!empty($_SESSION['url'])){$homeurl=trim($_SESSION['url']);}
}

$transs=$language.'_trans';        # DON'T TACH!!!! Ne trogat
$fraze_lang=$language.'_fraze';    # DON'T TACH!!!! Ne trogat


?>