function listaAdministradores() { if (validarAdministradorPrivado()) { listarUsuarios("administradores"); } else { goToIndex(); } }
function _moduleContent(&$smarty, $module_name) { //include module files include_once "modules/{$module_name}/configs/default.conf.php"; global $arrConf; load_language_module($module_name); $arrConf = array_merge($arrConf, $arrConfig); //folder path for custom templates $base_dir = dirname($_SERVER['SCRIPT_FILENAME']); $templates_dir = isset($arrConfig['templates_dir']) ? $arrConfig['templates_dir'] : 'themes'; $local_templates_dir = "{$base_dir}/modules/{$module_name}/" . $templates_dir . '/' . $arrConf['theme']; // Conexión a la base de datos CallCenter $pDB = new paloDB($arrConf['cadena_dsn']); switch (getParameter('action')) { case 'new_user': return nuevoUsuario($pDB, $smarty, $module_name, $local_templates_dir); case 'edit_user': return editarUsuario($pDB, $smarty, $module_name, $local_templates_dir); case 'list_user': default: return listarUsuarios($pDB, $smarty, $module_name, $local_templates_dir); } }