<?php

if (!defined('CM_ADMIN')) {
    define('CM_ADMIN', TRUE);
}
if (defined('DIR')) {
    require_once DIR . 'cm-load.php';
} else {
    require_once '../cm-load.php';
}
require_once DIR . 'admin/includes/admin.php';
auth_redirect();
if (!is_administrator()) {
    cm_die("Bạn không đủ quyền để truy cập trang này");
}
<?php

global $current_admin_template;
if ($current_admin_template == false) {
    $current_admin_template = 'default';
}
define('ADMIN_TPLDIR', DIR . 'admin/template/');
if (!is_dir(ADMIN_TPLDIR . $current_admin_template)) {
    $current_admin_template = 'default';
    if (!is_dir(ADMIN_TPLDIR . $current_admin_template)) {
        cm_die('Default template is not exists');
    }
}
define('ADMIN_TPL', ADMIN_TPLDIR . $current_admin_template . '/');
function admin_template_url()
{
    echo get_admin_template_url();
}
function get_admin_template_url()
{
    global $current_admin_template;
    $siteurl = get_option('siteurl');
    return $siteurl . '/admin/template/' . $current_admin_template . '/';
}
function class_alternate()
{
    global $class_alternate;
    if (!isset($class_alternate)) {
        $class_alternate = true;
    }
    if ($class_alternate) {