<?php define('LT_ADMIN', 1); require_once dirname(dirname(__FILE__)) . '/init.php'; require_once ADM_INCLUDE_DIR . SB_DS . 'functions.php'; require_once INCLUDE_DIR . SB_DS . 'template-functions.php'; if (!sb_is_user_logged_in()) { sb_redirect(SB_Route::_('login.php')); } $template_file = SB_Request::getString('tpl_file', 'index.php'); SB_Request::setVar('view', 'edit_user'); SB_Request::setVar('id', sb_get_current_user()->user_id); sb_process_module(SB_Request::getVar('mod', 'users')); sb_process_template($template_file); sb_show_template();
<?php define('LT_ADMIN', 1); require_once dirname(dirname(__FILE__)) . '/init.php'; require_once INCLUDE_DIR . SB_DS . 'template-functions.php'; require_once ADM_INCLUDE_DIR . SB_DS . 'functions.php'; if (!sb_is_user_logged_in()) { header('Location: ' . SB_Route::_('login.php')); die; } $template_file = SB_Request::getString('tpl_file', 'index.php'); $mod = SB_Request::getString('mod', 'dashboard'); $app->ProcessModule($mod); sb_process_template($template_file); sb_show_template();
<?php define('LT_ADMIN', 1); require_once dirname(dirname(__FILE__)) . '/init.php'; require_once ADM_INCLUDE_DIR . SB_DS . 'functions.php'; require_once INCLUDE_DIR . SB_DS . 'template-functions.php'; $template_file = SB_Request::getString('tpl_file', 'login.php'); $mod = SB_Request::getString('mod'); if ($mod) { sb_process_module($mod); } sb_process_template($template_file); sb_show_template();
<?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'init.php'; sb_captcha(null, SB_Request::getString('var', 'login_captcha'));