File size: 1.37Kb
<?
define('SHCMS_ENGINE',true);
include_once('engine/system/core.php');
$templates->template('SHCMS: Система - Главная');
echo engine::admin($users['group']);
define(CP_DERICTORY,'/admin/');
define(ICON_ADMIN,'/admin/icons/');
echo '<div class="mainname">Здраствуйте, '.$users['nick'].'</div>';
echo '<div class="mainpost">Версия: '.$sversion->ShortVersion().'<br/>
Администраторы онлайн:
';
$adm_user = $db->query("SELECT * FROM `users` WHERE `group` = '15'");
while($admin_user = $db->get_array($adm_user)) {
echo '<a style="text-decoration: underline;color: #969a9d;" href="/modules/profile.php?id='.$admin_user['id'].'">'.$admin_user['nick'].'</a>';
}
echo '</div>';
$ini = new iniFile(H.'/engine/mainmenu/inifile/admin.ini');
$file = $ini->read();
echo '<div class="mainpost">';
foreach($file as $key => $value) {
echo '<div class="posts_gl">';
echo '<table cellspacing="0" callpadding="0" width="100%"><tr>';
echo '<td class="icons"><img src="'.ICON_ADMIN.''.$value['icon'].'"></td>';
echo '<td class="name" colspan="10"><b><a href="'.CP_DERICTORY.''.$value['dir'].'/">'.$key.'</a></b></td>
</tr><tr><td class="content" colspan="10">'.$value['minitext'].'</td></tr></table>';
echo '</div>';
}
echo '</div>';
?>