Файл: modules/info/index.php
Строк: 72
<?php
switch ($act) {
default:
$totalUsers = DB::run()->querySingle("select count(`id`) from `users`;");
$config['newtitle'] = $lang['More_Info'];
$tpl['file'] = 'info';
require_once 'core/header.php';
break;
case 'sitehelp':
$config['newtitle'] = $lang['Site_Help'];
$tpl['file'] = 'sitehelp';
$tpl['title'] = '<a href="/info">'.$lang['More_Info'].'</a> » '.$lang['Site_Help'];
require_once 'core/header.php';
break;
case 'terms':
$config['newtitle'] = $lang['Terms_of_Use'];
$tpl['file'] = 'terms';
$tpl['title'] = '<a href="/info">'.$lang['More_Info'].'</a> » '.$lang['Terms_of_Use'];
require_once 'core/header.php';
break;
case 'users':
$total = DB::run()->querySingle("select count(`id`) from `users`;");
if ($total)
{
require_once 'core/navsetvars.php';
$query = DB::run()->query("select * from `users` order by `id` DESC limit $start, $config[ipp];");
}
$config['newtitle'] = $lang['User_List'];
$tpl['title'] = '<a href="/info">'.$lang['More_Info'].'</a> » '.$lang['User_List'];
$tpl['file'] = 'users';
require_once 'core/header.php';
break;
case 'emoticons':
$total = DB::run()->querySingle("select count(`id`) from `emoticons`;");
if ($total)
{
require_once 'core/navsetvars.php';
$query = DB::run()->query("select * from `emoticons` order by `id` limit $start, $config[ipp];");
}
$config['newtitle'] = $lang['List_of_emoticons'];
$tpl['title'] = '<a href="/info">'.$lang['More_Info'].'</a> » '.$lang['List_of_emoticons'];
$tpl['file'] = 'info_emoticons';
require_once 'core/header.php';
break;
case 'bbcodelist':
$config['newtitle'] = $lang['BB_Code_List'];
$tpl['title'] = '<a href="/info">'.$lang['More_Info'].'</a> » '.$lang['BB_Code_List'];
$tpl['file'] = 'info_bbcodelist';
require_once 'core/header.php';
break;
}