$tpl->define_dynamic('page_message', 'page');
$tpl->define_dynamic('hosting_plans', 'page');
$tpl->define_dynamic('domain_message', 'page');
$tpl->define_dynamic('alias_message', 'page');
$tpl->define_dynamic('subdomain_message', 'page');
$tpl->define_dynamic('mail_message', 'page');
$tpl->define_dynamic('domain_list', 'page');
$tpl->define_dynamic('alias_list', 'page');
$tpl->define_dynamic('subdomain_list', 'page');
$tpl->define_dynamic('mail_list', 'page');
global $cfg;
$theme_color = $cfg['USER_INITIAL_THEME'];
$tpl->assign(array('TR_ADMIN_VHCS_DEBUGGER_PAGE_TITLE' => tr('VHCS - Virtual Hosting Control System'), 'THEME_COLOR_PATH' => "../themes/{$theme_color}", 'THEME_CHARSET' => tr('encoding'), 'ISP_LOGO' => get_logo($_SESSION['user_id']), 'VHCS_LICENSE' => $cfg['VHCS_LICENSE']));
/*
 *
 * static page messages.
 *
 */
gen_admin_menu($tpl);
$tpl->assign(array('TR_DEBUGGER_TITLE' => tr('VHCS debugger'), 'TR_DOMAIN_ERRORS' => tr('Domain errors'), 'TR_ALIAS_ERRORS' => tr('Domain alias errors'), 'TR_SUBDOMAIN_ERRORS' => tr('Subdomain errors'), 'TR_MAIL_ERRORS' => tr('Mail account errors')));
gen_page_message($tpl);
get_error_domains($sql, $tpl);
get_error_aliases($sql, $tpl);
get_error_subdomains($sql, $tpl);
get_error_mails($sql, $tpl);
$tpl->parse('PAGE', 'page');
$tpl->prnt();
if (isset($cfg['DUMP_GUI_DEBUG'])) {
    dump_gui_debug();
}
unset_messages();
Esempio n. 2
0
        if ($code != 'Ok') {
            set_page_message($code, 'error');
        } else {
            set_page_message(tr('Execute requests'), 'success');
        }
    }
}
$exec_count = count_requests('domain');
$exec_count = $exec_count + count_requests('domain_aliasses');
$exec_count = $exec_count + count_requests('subdomain');
$exec_count = $exec_count + count_requests('subdomain_alias');
$exec_count = $exec_count + count_requests('mail_users');
$exec_count = $exec_count + count_requests('htaccess');
$exec_count = $exec_count + count_requests('htaccess_groups');
$exec_count = $exec_count + count_requests('htaccess_users');
$errors = get_error_domains($tpl);
$errors += get_error_aliases($tpl);
$errors += get_error_subdomains($tpl);
$errors += get_error_alias_subdomains($tpl);
$errors += get_error_mails($tpl);
$errors += get_error_htaccess($tpl);
// static page messages
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Virtual Hosting Control System'), 'TR_DEBUGGER_TITLE' => tr('EasySCP debugger'), 'TR_DOMAIN' => tr('Domains'), 'TR_ALIAS' => tr('Domain alias'), 'TR_SUBDOMAIN' => tr('Subdomains'), 'TR_SUBDOMAIN_ALIAS' => tr('Subdomain alias'), 'TR_MAIL' => tr('Mail accounts'), 'TR_HTACCESS' => tr('.htaccess related errors'), 'TR_DAEMON_TOOLS' => tr('EasySCP Daemon tools'), 'TR_EXEC_REQUESTS' => tr('Execute requests'), 'EXEC_COUNT' => $exec_count, 'TR_ERRORS' => tr('%s Errors in database', $errors)));
gen_admin_mainmenu($tpl, 'admin/main_menu_system_tools.tpl');
gen_admin_menu($tpl, 'admin/menu_system_tools.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
    dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();