File size: 1.15Kb
<?
$ua=$_SERVER['HTTP_USER_AGENT'];
$ma=explode("/",$ua);
$ma=$ma[0];
setcookie("mobile","$ma");
if($uset_fp>0 && $dfp>0 && $uset_fp!=$dfp) $uset_fp=$dfp;
if($uset_fp>0 && $uset_fp<100) $set_files_page=$uset_fp;
setcookie("uset_fp","$set_files_page");
if($preview!="") $uset_pw=$preview;
if($uset_pw>=20 && $uset_pw<=80)
{
$set_scr_x=$uset_pw;
$set_scr_y=$uset_pw;
setcookie("uset_pw",$uset_pw);
}
elseif($uset_pw=="net")
{
$on_img_screen=0;
setcookie("uset_pw","net");
}
else $uset_pw=$set_scr_x;
if($srt!='') $sort=$srt;
if($sort=='name') $sort='';
if($sort!='date' && $sort!='top' && $sort!='') $sort='';
setcookie("sort","$sort");
if($version!="") $ver=$version;
if($ver!="wml" && $ver!="xhtml") $ver=$set_def_style;
setcookie("ver","$ver");
if($pg<1) $pg=1;
$pg_e=$pg*$set_files_page;
$pg_b=$pg_e-$set_files_page;
$pg_n=$pg+1;
$pg_p=$pg-1;
$pgd_e=$pg*$set_dirs_page;
$pgd_b=$pgd_e-$set_dirs_page;
$did=security($did);
$fid=security($fid);
$file=security($file);
$ndir=security($ndir);
$nname=security($nname);
if($admin==$set_admin && $pass==md5($set_pass)) $admin_ok=true; else $admin_ok=false;
?>