View file NuclearCMS_v.1.0.0/system/dannuser.php

File size: 810B
<?php

if((isset($_SESSION['slogin'])!='') && (isset($_SESSION['spass'])!='')) 
{ $q=mysql_query("SELECT * FROM `users` WHERE `login`='".$_SESSION['slogin']."';");
$arr=mysql_fetch_array($q);
$did=$arr['id'];
$dlogin=$arr['login'];
$dpass=$arr['password'];
$ddostup=$arr['dostup'];
$dname=$arr['name'];
$dotkuda=$arr['otkuda'];
$ddataroz=$arr['dataroz'];
$dip=$arr['ip'];
$dagent=$arr['agent'];
$ddatareg=$arr['datareg'];
$dban=$arr['ban'];
$dthema=$arr['style'];
$dicq=$arr['icq'];
$dpostguest=$arr['postguest'];
$dpostforum=$arr['postforum'];
}
$s=mysql_query("SELECT * FROM `setting`;");
$set=mysql_fetch_array($s);
$setcopy=$set['copy'];
$setcookie=$set['cookie'];
$setstyle=$set['style'];
$setlogadm=$set['logadm'];
$setclose=$set['close'];
define('admdir',$set['admdir']);
?>