Размер файла: 1.1Kb
<?php
$kto = 'guest';
$zapros = 'SELECT * FROM ' . $pref . 'config;';
$usdat = mysql_fetch_assoc(mysql_query($zapros));
$theme = $usdat['theme'];
$dostup = 0;
$kolbook = $usdat['kolbook'];
$kolforum_thema = $usdat['kolforum_thema'];
$kolforum_post = $usdat['kolforum_post'];
$kolnews = $usdat['innews'];
$nameofsite = $usdat['nos'];
$indown = $usdat['indown'];
$config_gzip = $usdat['gzip'];
$config_count = $usdat['count'];
$pic_count = $usdat['pic_count'];
$news_in_index = $usdat['news_in_index'];
if (($_SESSION['login'] == $login) && ($_SESSION['pass'] == $pass) && ($_SESSION['login'] != '') && ($_SESSION['pass'] != '') && ($login != '') && ($pass != '')) {
$kto = 'user';
$zapros = 'SELECT * FROM ' . $pref . 'useres where login=\'' . $login . '\';';
$usdata = mysql_fetch_assoc(mysql_query($zapros));
$theme = $usdata['theme'];
$dostup = $usdata['dostup'];
$kolbook = $usdata['kolbook'];
$kolforum_thema = $usdata['kolforum_thema'];
$kolforum_post = $usdata['kolforum_post'];
$indown = $usdata['indown'];
$kolnews = $usdata['innews'];
}
?>