include_once(dirname(__FILE__) . '/ressources/class.main_cf.inc'); include_once(dirname(__FILE__) . '/ressources/class.ldap.inc'); include_once(dirname(__FILE__) . "/ressources/class.sockets.inc"); include_once(dirname(__FILE__) . "/ressources/class.os.system.inc"); include_once(dirname(__FILE__) . "/ressources/class.samba.inc"); if(isset($_GET["verbose"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;} $user=new usersMenus(); if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator==false)) { $tpl=new templates(); echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');"); die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["usblist"])){echo usblist();exit;} js(); function js(){ $page=CurrentPageName(); $prefix=str_replace('.','_',$page); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{APP_DEVICE_CONTROL}'); $html="
exit; } if (isset($_GET["form-add-js"])) { form_add_js(); exit; } if (isset($_GET["form-add-popup"])) { form_add_popup(); exit; } if (isset($_GET["form-add-details"])) { form_add_details(); exit; } if (isset($_GET["form-add-usblist"])) { usblist(); exit; } if (isset($_GET["FTP_SERVER"])) { PROTO_FTP_ADD(); exit; } if (isset($_GET["CIFS_SERVER"])) { PROTO_CIFS_ADD(); exit; } if (isset($_GET["NFS_SERVER"])) { PROTO_NFS_ADD(); exit; } if (isset($_GET["HTTP_SERVER"])) {
ini_set('error_reporting', E_ALL); $GLOBALS["VERBOSE"] = true; } $user = new usersMenus(); if ($user->AsSystemAdministrator == false or $user->AsSambaAdministrator == false) { $tpl = new templates(); echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');"); die; exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["usblist"])) { echo usblist(); exit; } js(); function js() { $page = CurrentPageName(); $prefix = str_replace('.', '_', $page); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{APP_DEVICE_CONTROL}'); $html = "\n\tfunction {$prefix}LoadPage(){\n\t\tLoadWinORG(650,'{$page}?popup=yes&t={$_GET["t"]}&t2={$_GET["t2"]}','{$title}');\n\t}\n\t\n\t{$prefix}LoadPage();\n"; echo $html; } function popup() { $t3 = time();
echo "alert('$error')"; die(); } } if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["autofs-status"])){status_service();exit;} if(isset($_GET["EnableAutoFSDebug"])){EnableAutoFSDebugSave();exit;} if(isset($_GET["mounts"])){mounts_list();exit;} if(isset($_GET["form-add-js"])){form_add_js();exit;} if(isset($_GET["form-add-popup"])){form_add_popup();exit;} if(isset($_GET["form-add-details"])){form_add_details();exit;} if(isset($_GET["form-add-usblist"])){usblist();exit;} if(isset($_GET["FTP_SERVER"])){PROTO_FTP_ADD();exit;} if(isset($_GET["CIFS_SERVER"])){PROTO_CIFS_ADD();exit;} if(isset($_GET["NFS_SERVER"])){PROTO_NFS_ADD();exit;} if(isset($_GET["HTTP_SERVER"])){PROTO_WEBDAVFS_ADD();exit;} if(isset($_GET["USB_UUID"])){PROTO_USB_ADD();exit;} if(isset($_GET["AutoFSDeleteDN"])){mounts_delete();exit;} if(isset($_GET["logs"])){mounts_events();exit;} if(isset($_GET["syslog-table"])){mounts_events_query();exit;} js();