Beispiel #1
0
        }
        unset($_SESSION['user_deleted']);
    }
}
/***********************************************************************************************************************
 * Main
 */
require 'imscp-lib.php';
iMSCP_Events_Aggregator::getInstance()->dispatch(iMSCP_Events::onResellerScriptStart);
check_login('reseller');
$tpl = new iMSCP_pTemplate();
$tpl->define_dynamic(array('layout' => 'shared/layouts/ui.tpl', 'page' => 'reseller/users.tpl', 'user_search' => 'page', 'usr_message' => 'page', 'users_list' => 'page', 'user_entry' => 'users_list', 'domain_status_change' => 'user_entry', 'domain_status_nochange' => 'user_entry', 'status_reload_true' => 'users_list', 'status_reload_false' => 'users_list', 'user_details' => 'users_list', 'page_message' => 'layout', 'scroll_prev_gray' => 'users_list', 'scroll_prev' => 'users_list', 'scroll_next_gray', 'users_list', 'scroll_next' => 'users_list'));
$tpl->assign(array('TR_PAGE_TITLE' => tr('Reseller / Customers / Overview'), 'TR_USER_STATUS' => tr('Status'), 'TR_DETAILS' => tr('Details'), 'TR_SEARCH' => tr('Search'), 'TR_USERNAME' => tr('Username'), 'TR_ACTION' => tr('Actions'), 'TR_CREATION_DATE' => tr('Creation date'), 'TR_STAT' => tr('Stats'), 'TR_EDIT_DOMAIN' => tr('Edit domain'), 'TR_EDIT_USER' => tr('Edit user'), 'TR_DISK_USAGE' => tr('Disk usage'), 'TR_PREVIOUS' => tr('Previous'), 'TR_NEXT' => tr('Next')));
generateNavigation($tpl);
generate_users_list($tpl, $_SESSION['user_id']);
check_externel_events();
generatePageMessage($tpl);
$tpl->parse('LAYOUT_CONTENT', 'page');
iMSCP_Events_Aggregator::getInstance()->dispatch(iMSCP_Events::onResellerScriptEnd, array('templateEngine' => $tpl));
$tpl->prnt();
unset($_SESSION['dmn_name']);
unset($_SESSION['ch_hpprops']);
unset($_SESSION['local_data']);
unset($_SESSION['dmn_ip']);
unset($_SESSION['dmn_id']);
unset($GLOBALS['dmn_name']);
unset($GLOBALS['ch_hpprops']);
unset($GLOBALS['local_data']);
unset($GLOBALS['user_add3_added']);
unset($GLOBALS['user_add3_added']);
unset($GLOBALS['dmn_ip']);
Beispiel #2
0
unset($_SESSION['ch_hpprops']);
unset($_SESSION['local_data']);
unset($_SESSION['dmn_ip']);
unset($_SESSION['dmn_id']);
unset($GLOBALS['dmn_name']);
unset($GLOBALS['ch_hpprops']);
unset($GLOBALS['local_data']);
unset($GLOBALS['user_add3_added']);
unset($GLOBALS['user_add3_added']);
unset($GLOBALS['dmn_ip']);
unset($GLOBALS['dmn_id']);
if (isset($cfg->HOSTING_PLANS_LEVEL) && $cfg->HOSTING_PLANS_LEVEL === 'admin') {
    $tpl->assign('EDIT_OPTION', '');
}
generate_users_list($tpl, $_SESSION['user_id']);
check_externel_events($tpl);
// static page messages
gen_logged_from($tpl);
$crnt_month = date("m");
$crnt_year = date("Y");
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Users'), 'TR_MANAGE_USERS' => tr('Manage users'), 'TR_USERS' => tr('Users'), 'TR_USER_STATUS' => tr('Status'), 'TR_DETAILS' => tr('Details'), 'TR_SEARCH' => tr('Search'), 'TR_USERNAME' => tr('Username'), 'TR_ACTION' => tr('Actions'), 'TR_CREATION_DATE' => tr('Creation date'), 'TR_EXPIRE_DATE' => tr('Expire date'), 'TR_CHANGE_USER_INTERFACE' => tr('Switch to user interface'), 'TR_BACK' => tr('Back'), 'TR_TITLE_BACK' => tr('Return to previous menu'), 'TR_TABLE_NAME' => tr('Users list'), 'TR_MESSAGE_CHANGE_STATUS' => tr('Are you sure you want to change the status of %s?', true, '%s'), 'TR_MESSAGE_DELETE_ACCOUNT' => tr('Are you sure you want to delete %s?', true, '%s'), 'TR_STAT' => tr('Stats'), 'VL_MONTH' => $crnt_month, 'VL_YEAR' => $crnt_year, 'TR_EDIT_DOMAIN' => tr('Edit Domain'), 'TR_EDIT_USER' => tr('Edit User'), 'TR_BW_USAGE' => tr('Bandwidth'), 'TR_DISK_USAGE' => tr('Disk'), 'TR_DELETE' => tr('Delete')));
gen_reseller_mainmenu($tpl, 'reseller/main_menu_users_manage.tpl');
gen_reseller_menu($tpl, 'reseller/menu_users_manage.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
    dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
// Begin function block
/**