exit; } if (isset($_GET["tabs"])) { tabs(); exit; } if (isset($_POST["mask_lock_options"])) { Save(); exit; } if (isset($_POST["SambaAdminUserAdd"])) { admin_users_add(); exit; } if (isset($_POST["SambaAdminUserDel"])) { admin_users_del(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{shared_folders}::{default_settings}"); $html = "YahooWin5('600','{$page}?tabs=yes','{$title}')"; echo $html; } function tabs() { $tpl = new templates(); $array["popup"] = '{parameters}';
include_once('ressources/class.samba.inc'); if(isset($_GET["debug-page"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;} $tpl=new templates(); $ERROR_NO_PRIVS=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); $users=new usersMenus(); if(!$users->AsSambaAdministrator){echo "alert('$ERROR_NO_PRIVS');";die();} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["admin-users"])){admin_users();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_POST["mask_lock_options"])){Save();exit;} if(isset($_POST["SambaAdminUserAdd"])){admin_users_add();exit;} if(isset($_POST["SambaAdminUserDel"])){admin_users_del();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{shared_folders}::{default_settings}"); $html="YahooWin5('600','$page?tabs=yes','$title')"; echo $html; }