include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.artica.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.samba.inc'); include_once('ressources/class.user.inc'); include_once('ressources/class.kav4samba.inc'); $users=new usersMenus(); if(!$users->AsSambaAdministrator){ $tpl=new templates(); echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}')");exit;die(); } if(isset($_GET["SambaRoamingEnabled"])){SambaRoamingEnabled();exit;} if(isset($_GET["popup"])){popup();exit;} js(); function js(){ $page=CurrentPageName(); $prefix=str_replace('.','_',$page); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{roaming_profiles}','fileshares.index.php'); $html=" var {$prefix}timeout=0;
include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.artica.inc'; include_once 'ressources/class.ini.inc'; include_once 'ressources/class.samba.inc'; include_once 'ressources/class.user.inc'; include_once 'ressources/class.kav4samba.inc'; $users = new usersMenus(); if (!$users->AsSambaAdministrator) { $tpl = new templates(); echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}')"); exit; die; } if (isset($_GET["SambaRoamingEnabled"])) { SambaRoamingEnabled(); exit; } if (isset($_GET["popup"])) { popup(); exit; } js(); function js() { $page = CurrentPageName(); $prefix = str_replace('.', '_', $page); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{roaming_profiles}', 'fileshares.index.php'); $html = "\n\tvar {$prefix}timeout=0;\n\t\n\n\n\tfunction {$prefix}LoadPage(){\n\t\tYahooWin2(450,'{$page}?popup=yes','{$title}');\n\t\n\t}\n\t\nvar X_EnableProfileSamba= function (obj) {\n\tvar results=trim(obj.responseText);\n\tif(results.length>0){alert(results);}\n\t{$prefix}LoadPage();\n\t}\t\n\t\n\tfunction EnableProfileSamba(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('SambaRoamingEnabled',document.getElementById('SambaRoamingEnabled').value);\n\t\tdocument.getElementById('roamingdiv').innerHTML='<center><img src=\"img/wait_verybig.gif\"></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',X_EnableProfileSamba);\t\n\t}\n\t\n\t{$prefix}LoadPage();\n"; echo $html;