View file admin/user/index.php

File size: 1.27Kb
<?
define('SHCMS_ENGINE',true);
define('HOME',$_SERVER['DOCUMENT_ROOT'],true);
define(CP_DERICTORY,'../');
define(ICON_ADMIN,'../icons/');

include_once(HOME.'/engine/system/core.php');

    $templates->template('SHCMS: Система - Пользователи');

	echo engine::admin($users['group']);

    switch($do):

        default:

		    echo '<div class="mainname">'.Lang::__('Пользователи').'</div>';
            echo '<div class="mainpost">';
            echo '<div class="row"><img src="'.ICON_ADMIN.'user/users.png">&nbsp;<a href="'.CP_DERICTORY.'user/index.php?do=user">Пользователи &rarr;</a></div>';
            echo '<div class="row"><img src="'.ICON_ADMIN.'user/warning.png">&nbsp;<a href="'.CP_DERICTORY.'user/index.php?do=warnings">Предупреждения &rarr;</a></div>';
			echo '</div>';

        echo engine::home(array('Назад','/admin.php'));	 
        
		break;

        //Настройки
        case 'user':
		
            include_once('user.php');

        break;

        //Предупреждения пользователям
        case 'warnings':

		    include_once('warnings.php');

		break;
		
		case 'ban':

		    include_once('ban.php');
			
        break;

endswitch;