foreach (glob($amp_conf['AMPWEBROOT'] . "/admin/i18n/*", GLOB_ONLYDIR) as $langDir) { $lang = basename($langDir); $menu['language'][$lang] = function_exists('locale_get_display_name') ? locale_get_display_name($lang, $langKey) : $lang; } //add menu to final output echo load_view($amp_conf['VIEW_MENU'], $menu); // provide beta status if (isset($fpbx_menu[$display]['beta']) && strtolower($fpbx_menu[$display]['beta']) == 'yes') { echo load_view($amp_conf['VIEW_BETA_NOTICE']); } //send actual page content echo $page_content; //send footer $footer['lang'] = $language; $footer['covert'] = in_array($display, array('noauth', 'badrefer')) ? true : false; $footer['extmap'] = !$footer['covert'] ? framework_get_extmap(true) : json_encode(array()); $footer['module_name'] = $module_name; $footer['module_page'] = $module_page; $footer['benchmark_starttime'] = $benchmark_starttime; $footer['reload_needed'] = $footer['covert'] ? false : check_reload_needed(); $footer['footer_content'] = load_view($amp_conf['VIEW_FOOTER_CONTENT'], $footer); if (!$footer['covert'] && function_exists("sysadmin_hook_framework_footer_view")) { $footer['sysadmin'] = sysadmin_hook_framework_footer_view(); } $footer['covert'] ? $footer['no_auth'] = true : ''; $footer['action_bar'] = null; //See if we should provide an action bar try { $bmomodule_name = $bmo->Modules->cleanModuleName($module_name); if ($bmo->Modules->moduleHasMethod($bmomodule_name, "getActionBar")) { $ab = $bmo->{$bmomodule_name}->getActionBar($_REQUEST);
echo $extdisplay ? 'edtGRP' : 'addGRP'; ?> "> <?php if ($extdisplay) { ?> <input type="hidden" name="account" id="account" value="<?php echo ltrim($extdisplay, 'GRP-'); ?> "> <?php } if ($display_mode == "basic") { if (!$extdisplay) { //figure out last extension $map = framework_get_extmap(); if (!empty($map)) { ksort($map); end($map); $key = key($map); $digit = preg_replace("/\\D/", "", $key); $last_ext = !empty($digit) ? (int) $digit + 1 : 500; } else { $last_ext = 500; } $grplist = explode("-", ''); $strategy = ''; $grppre = ''; $grptime = ''; $goto = ''; $annmsg_id = '';