
I've got a auto download file named wwcqxSmw without my permission
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) { // $redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // header("Location: $redirect_url"); // exit(); } ob_start("ob_gzhandler");
function microtime_float(){ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); }
if(($_SERVER['REMOTE_ADDR']=='82.199.200.154')or($_SERVER['SERVER_ADDR']=='192.168.0.1')){ $start_time=microtime_float(); }
session_start();
setlocale(LC_ALL, 'bg_BG.UTF-8');
//header("Content-type:text/html"); $locname="bg"; require_once("configs/conf.inc.php");
$pimvars['conf']['ismobile'] = is_mobile();
//echo $pimvars['conf']['ismobile'];
//die ($pimvars['conf']['ismobile']);
$pimvars['conf']['mobile_templates']=; $pimvars['conf']['mobile_cache']=;
if($pimvars['conf']['ismobile']=='true'){
$pimvars['conf']['mobile_templates']='/mobile'; $pimvars['conf']['mobile_cache']='mobile';
} /* if(($_GET['full']=="true" or $_COOKIE['fulloff']=='true')){
setcookie('full19min','true',time()+3600*24*15); $pimvars['conf']['ismobile'] = 'false'; if($_SERVER['HTTP_HOST']=='m.19min.bg'){
header('Location:https://19min.bg'.$_SERVER["REQUEST_URI"]); exit();
}
}else{
if($_SERVER['HTTP_HOST']=='19min.bg'){
header('Location:https://m.19min.bg'.$_SERVER["REQUEST_URI"]); exit();
}
} }
- /
// Connecting, selecting database
$dbh = @mysql_connect($pimvars["conf"]["db"]["host"], $pimvars["conf"]["db"]["user"], $pimvars["conf"]["db"]["pass"])
or fail(mysql_error());
mysql_select_db($pimvars["conf"]["db"]["name"]) or fail(mysql_error());
$tempres=mysql_query("SET CHARACTER SET 'utf8'"); $tempres=mysql_query("SET NAMES 'utf8'");
set_error_handler("errorHandler", E_ALL & ~E_NOTICE & ~E_WARNING);
//clients_checklogin();
$memcache = memcache_connect($pimvars['conf']['memcache'],11211) or warn('Could not connect to memcache server.');
$pimvars['cachekey'] = memcache_get($memcache, 'cachekey'); if(!$pimvars['cachekey']){
$pimvars['cachekey'] = time(); memcache_set($memcache, $pimvars['conf']['mobile_cache'].'cachekey', $pimvars['cachekey'], false, 3600*24); }
$pimvars['site']['rubriki']=get_all_rubriki();
if($_GET['debug']){
print_r($pimvars);
}
require_once(getcwd().'/lib/Smarty.class.php'); require_once(getcwd().'/lib/phpmailer/class.phpmailer.php');
$smarty = new Smarty(); $smarty->template_dir = '.'.$pimvars['conf']['mobile_templates'].'/templates'; $smarty->compile_dir = '.'.$pimvars['conf']['mobile_templates'].'/templates_c'; $smarty->cache_dir = './cache'; $smarty->config_dir = './configs';
$act = sec_check($_GET["act"],"str","");
$smarty->assign("loc",$pimvars["loc"]); $smarty->assign("design",$pimvars["conf"]["design"]); $smarty->assign("user",$pimvars["user"]); $smarty->assign("main_top",main_top()); $smarty->assign("main_menu",rubriki_menu()); $smarty->assign("menu_bottom",rubriki_menubottom()); $smarty->assign("content_bottom",content_menubottom()); $smarty->assign("main_body",main_main()); $smarty->assign("right_body",main_right()); $smarty->assign("partners",partners_first()); //$smarty->assign("weather",weather_top()); $smarty->assign("query_string",$_GET['qstr']);
if($act==){ $smarty->assign("featured",news_featured()); }
if($act!="" and $pimvars["loc"]["html_title"]){ $smarty->assign("html_title",$pimvars["loc"]["html_title"].' | '.$pimvars["loc"]["loc"]["4"]); $smarty->assign("html_title_min",$pimvars["loc"]["html_title_min"]); } else{ $smarty->assign("html_title",$pimvars["loc"]["loc"]["4"]); }
if($act!="" and $pimvars["conf"]["meta_description"]){ $smarty->assign("description",$pimvars["conf"]["meta_description"]); } else{ $smarty->assign("description",$pimvars["loc"]["loc"]["6"]); }
if($pimvars["loc"]["html_image"] != ){ $smarty->assign("html_image",$pimvars["loc"]["html_image"]); } else{ $smarty->assign("html_image",'https:'.$pimvars['conf']['baseurl'].'/design/logo.gif'); } $smarty->assign("conf",$pimvars["conf"]); $smarty->display("main.tpl");
mysql_close();
if( $_SERVER['REMOTE_ADDR']=='93.152.180.152' || $_SERVER['SERVER_ADDR']=='192.168.0.5' ){ $end_time=microtime_float();
echo ""; echo "\n\ntime to create and output ". ($end_time-$start_time); echo "\n"; print_r($pimvars['debug']); echo "";
}
?>