function debug() { $tpl = new templates(); $users = new usersMenus(); if ($users->VIRTUALBOX_INSTALLED) { echo "<H2>" . $tpl->_ENGINE_parse_body("{success}") . "</H2>\n\t\t<input type='hidden' id='sucess-vdi' value='1'><hr>" . status_service(); return; } $datas = @file_get_contents("ressources/logs/vdi-install.dbg"); $datas = explode("\n", $datas); if (!is_array($datas)) { echo "<center><img src=img/wait_verybig.gif></center>"; return; } krsort($datas); while (list($num, $line) = each($datas)) { if (preg_match("#[0-9\\.,]+%#", $line)) { continue; } $color = "black"; if (preg_match("#Unable to#", $line)) { $color = "red"; } if (preg_match("#Unpacking#", $line)) { $color = "blue"; } if (preg_match("#Setting up#i", $line)) { $color = "blue"; } $html = $html . "<div><code style='font-size:12px;color:{$color}'>{$line}</code></div>\n"; } $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
if (!$usersmenus->AsAnAdministratorGeneric) { $tpl = new templates(); $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('{$alert}');"; die; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["status"])) { status(); exit; } if (isset($_GET["status-service"])) { status_service(); exit; } if (isset($_GET["conf"])) { popup_settings(); exit; } if (isset($_GET["EnableSabnZbdPlus"])) { save(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates();
include_once 'ressources/class.maincf.multi.inc'; if (!Isright()) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text('{ERROR_NO_PRIVS}') . "');"; die; } if (isset($_GET["tabs"])) { echo tabs(); exit; } if (isset($_GET["status"])) { echo status(); exit; } if (isset($_GET["service-status"])) { echo status_service(); exit; } if (isset($_GET["rules"])) { echo rules(); exit; } if (isset($_GET["DeleteRuleMaster"])) { DeleteRuleMaster(); exit; } if (isset($_GET["rules-list"])) { echo rules_list(); exit; } if (isset($_GET["rule-form"])) {
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.lvm.org.inc'); include_once('ressources/class.os.system.inc'); include_once('ressources/class.maincf.multi.inc'); if(!Isright()){ $tpl=new templates(); echo "alert('".$tpl->javascript_parse_text('{ERROR_NO_PRIVS}')."');"; die(); } if(isset($_GET["tabs"])){echo tabs();exit;} if(isset($_GET["status"])){echo status();exit;} if(isset($_GET["service-status"])){echo status_service();exit;} if(isset($_GET["rules"])){echo rules();exit;} if(isset($_GET["DeleteRuleMaster"])){DeleteRuleMaster();exit;} if(isset($_GET["rules-list"])){echo rules_list();exit;} if(isset($_GET["rule-form"])){echo rule_form();exit;} if(isset($_GET["EnablePOSTFWD2"])){EnablePOSTFWD2();exit;} if(isset($_GET["reconfigure"])){reconfigure();exit;} if(isset($_GET["postfwd2-action"])){echo postfwd2_action_form();exit;} if(isset($_GET["postfwd2-mod-action"])){echo postfwd2_action_edit();exit;} if(isset($_GET["postfwd2-item"])){echo postfwd2_item_form();exit;} if(isset($_GET["postfwd2-add-item"])){echo postfwd2_item_save();exit;}
if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsVirtualBoxManager==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["machines"])){machines_section();exit;} if(isset($_GET["virtualbox-machines-list"])){machines_list();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["virtual-box-status"])){status_service();exit;} if(isset($_GET["thinclient"])){thinclient_popup();exit;} if(isset($_GET["thinclients-rebuild"])){thinclient_rebuild();exit;} if(isset($_GET["addthinclient"])){add_thinclient();exit;} if(isset($_GET["thinclient-list"])){thinclient_list();exit;} if(isset($_GET["delthinclient"])){del_thinclient();exit;} if(isset($_GET["STOP_VBOX"])){STOP_VBOX();exit;} if(isset($_GET["SATRT_VBOX"])){START_VBOX();exit;} if(isset($_GET["SNAP_VBOX"])){SNAP_VBOX();exit;} if(isset($_GET["tftp-infos"])){TFTP_INFOS();exit;} if(isset($_GET["dhcp-howto-js"])){DHCPD_HOWTO_JS();exit;} if(isset($_GET["dhcp-howto"])){DHCPD_HOWTO();exit;} if(isset($_GET["thinclient_compile_logs"])){thinclient_events();exit;} if(isset($_GET["thinclient_events_popup"])){thinclient_events_popup();exit;} if(isset($_GET["ShowThinClientLogsDetails"])){thinclient_events_details();exit;}
include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsPostfixAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["events"])){events();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["status-service"])){status_service();exit;} if(isset($_GET["settings"])){settings();exit;} if(isset($_GET["backend-form-add"])){backend_form_add();exit;} if(isset($_GET["servername"])){backend_add();exit;} if(isset($_GET["delete-servername"])){backend_delete();exit;} if(isset($_GET["backends-servers"])){backend_list();exit;} if(isset($_GET["EnableCrossRoads"])){SAVECONF();exit;} if(isset($_GET["cross-events"])){events_details();exit;} if(isset($_GET["cross-notify"])){cross_notify();exit;} js(); function js(){ $page=CurrentPageName(); $users=new usersMenus(); $tpl=new templates();
include_once(dirname(__FILE__).'/ressources/class.autofs.inc'); include_once(dirname(__FILE__).'/ressources/class.samba.inc'); if(posix_getuid()<>0){ $users=new usersMenus(); if((!$users->AsSambaAdministrator) OR (!$users->AsSystemAdministrator)){ $tpl=new templates(); $error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } } if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["greyhole-status"])){status_service();exit;} if(isset($_GET["pools"])){pools();exit;} if(isset($_GET["pools-list"])){pools_list();exit;} if(isset($_GET["greyhole-pools"])){pools_add();exit;} if(isset($_GET["logs"])){mounts_events();exit;} if(isset($_GET["syslog-table"])){mounts_events_query();exit;} if(isset($_GET["EnableGreyHoleDebug"])){EnableGreyHoleDebugSave();exit;} js(); function js(){ $page=CurrentPageName(); $html="
include_once(dirname(__FILE__).'/ressources/class.computers.inc'); include_once(dirname(__FILE__).'/ressources/class.autofs.inc'); if(posix_getuid()<>0){ $users=new usersMenus(); if((!$users->AsSambaAdministrator) OR (!$users->AsSystemAdministrator)){ $tpl=new templates(); $error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); 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($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["title"])){tables_title();exit;} if(isset($_GET["schedules"])){schedules();exit;} if(isset($_POST["ListenPort"])){SaveParams();exit;} if(isset($_POST["per_thread_buffers"])){per_thread_buffers();exit;} if(isset($_POST["server_buffers"])){server_buffers();exit;} if(isset($_POST["total_memory"])){total_memory();exit;} if(isset($_GET["squid-db-status"])){status_service();exit;} if(isset($_GET["squid-db-mysql"])){status_mysql();exit;} if(isset($_POST["SquidStatsDatabasePath"])){SquidStatsDatabasePath();exit;} js(); function js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{mysql_statistics_engine}"); $html="YahooWin('900','$page?tabs=yes','$title');"; echo $html; } function tabs(){