include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["tab"])){tabs();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["SquidBoosterMem"])){Save();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["cache-mem"])){cache_mem();exit;} if(isset($_GET["cache-rock"])){cache_rock();exit;} js(); function js() { header("content-type: application/x-javascript"); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{squid_booster}"); $page=CurrentPageName(); echo " AnimateDiv('BodyContent'); LoadAjax('BodyContent','$page?tabs=yes');";
function Script($n) { if ($n->hasChildNodes()) { $i = 0; while ($i < $n->childNodes->length) { $cur = $n->childNodes->item($i); if ($cur->nodeType == XML_DOCUMENT_NODE || $cur->nodeType == XML_ELEMENT_NODE) { $curname = $cur->nodeName; if (substr($curname, 0, 4) == "txs:") { $xpath = new DOMXPath($n->ownerDocument); $xpath->registerNameSpace("txs", "http://www.agencexml.com/txs"); $xpath->registerNameSpace("xsl", "http://www.w3.org/1999/XSL/Transform"); if ($cur->getAttribute("node") != '') { if ($xpath->query($cur->getAttribute("node"), $cur)->length == 0) { $curname = "dummy"; } } else { if ($xpath->query("ancestor::xsl:stylesheet", $cur)->length != 0 || $xpath->query("ancestor::txs:model", $cur)->length != 0) { $curname = "dummy"; } } } switch ($curname) { case "txs:load": Load($cur); break; case "txs:save": Script($cur); Save($cur); break; case "txs:transform": Script($cur); Transform($cur); continue 2; case "txs:httprequest": Httprequest($cur); break; case "txs:call": Call($cur); continue 2; case "txs:fileexists": FileExists($cur); break; case "txs:folderexists": FolderExists($cur); break; case "txs:from-model": Script($cur); FromModel($cur, $cur); break; case "txs:process": Process($cur); break; default: Script($cur); } } $i++; } } }
include_once('ressources/class.system.network.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.ccurl.inc'); include_once("ressources/class.compile.ufdbguard.expressions.inc"); $user=new usersMenus(); if($user->AsDansGuardianAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["page"])){page();exit;} if(isset($_GET["parameters"])){parameters();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_POST["ufdbCatInterface"])){Save();exit;} tabs(); function tabs(){ $tpl=new templates(); $page=CurrentPageName(); $users=new usersMenus(); $sock=new sockets(); $fontsize=18; $array["page"]='{APP_UFDBCAT}'; $array["verify"]='{databases_status}'; $AsCategoriesAppliance=intval($sock->GET_INFO("AsCategoriesAppliance")); if($AsCategoriesAppliance==1){
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.backuppc.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSystemAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["popup-status"])){popup_status();exit;} if(isset($_GET["popup-settings"])){popup_settings();exit;} if(isset($_GET["EnableBackupPc"])){Save();exit;} js(); function js() { $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{APP_BACKUPPC}"); $page=CurrentPageName(); $start="BACKUPPC_START()"; if(isset($_GET["in-front-ajax"])){$start="BACKUPPC_START2()";} $html=" function BACKUPPC_START(){YahooWin2('650','$page?popup=yes','$title');}
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.groups.inc'); include_once('ressources/class.artica.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsDansGuardianAdministrator==false){ $tpl=new templates(); echo "<script>alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');</script>"; die();exit(); } if(isset($_POST["AllowSquidDropBox"])){Save();exit;} page(); function page(){ $tpl=new templates(); $page=CurrentPageName(); $sock=new sockets(); $t=time(); $AllowSquidDropBox=intval($sock->GET_INFO("AllowSquidDropBox")); $AllowSquidSkype=intval($sock->GET_INFO("AllowSquidSkype")); $AllowSquidOffice365=intval($sock->GET_INFO("AllowSquidOffice365")); $AllowSquidGoogle=intval($sock->GET_INFO("AllowSquidGoogle")); $DropBox=Paragraphe_switch_img("{AllowSquidDropBox}", "{AllowSquidDropBox_explain}","AllowSquidDropBox", $AllowSquidDropBox,null,650);
include_once('ressources/class.users.menus.inc'); include_once('ressources/class.ini.inc'); 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;
include_once('ressources/class.squid.inc'); include_once('ressources/class.mysql.inc'); if(!isset($_GET["t"])){$_GET["t"]=time();} if(!is_numeric($_GET["t"])){$_GET["t"]=time();} $user=new usersMenus(); if(($user->AsSquidAdministrator==false)) { $tpl=new templates(); $text=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); $text=replace_accents(html_entity_decode($text)); echo "<script>alert('$text');</script>"; exit; } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["SSL_BUMP_WHITE_LIST"])){Save();exit;} if(isset($_GET["SSL_CERTIF_DOWN"])){SSL_CERTIF_DOWN();exit;} tabs(); function tabs(){ $tpl=new templates(); $users=new usersMenus(); $page=CurrentPageName(); $squid=new squidbee(); $fontsize=20; $sock=new sockets(); $compilefile="ressources/logs/squid.compilation.params"; if(!is_file($compilefile)){$sock->getFrameWork("squid.php?compil-params=yes");}
<?php if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.ActiveDirectory.inc'); include_once('ressources/class.compile.ufdbguard.inc'); if(isset($_POST["servername_squidguard"])){Save();exit;} if(isset($_GET["popup"])){popup();exit;} js(); function js(){ $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body("{webpage_deny_url}"); header("content-type: application/x-javascript"); $html="YahooWin5('650','$page?popup=yes','$title');"; echo $html; } function popup(){ $page=CurrentPageName(); $sock=new sockets(); $users=new usersMenus();
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsSquidAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["watchdog"])){Save();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["events"])){events_table();exit;} if(isset($_GET["rows-table"])){rows_table();exit;} if(isset($_GET["notifs"])){smtp_notifs();exit;} if(isset($_POST["ENABLED_SQUID_WATCHDOG"])){save_watchdog_notif();exit;} js(); function Save(){ $sock=new sockets(); $final=base64_encode(serialize($_POST)); $sock->SaveConfigFile($final, "SquidWatchdogMonitConfig"); $sock->SET_INFO("SquidCacheReloadTTL", $_POST["SquidCacheReloadTTL"]); $sock->getFrameWork("squid.php?watchdog-config=yes");
if(!isset($_SESSION["uid"])){die();} include_once(dirname(__FILE__)."/ressources/class.templates.inc"); include_once(dirname(__FILE__)."/ressources/class.users.menus.inc"); include_once(dirname(__FILE__)."/ressources/class.mysql.archive.builder.inc"); include_once(dirname(__FILE__)."/ressources/class.user.inc"); include_once(dirname(__FILE__).'/ressources/smtp/smtp.php'); $users=new usersMenus(); if(!$users->AsHotSpotManager){die();} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["smtp-params"])){smtp_notifs();exit;} if(isset($_POST["ENABLED_AUTO_LOGIN"])){Save();exit;} if(isset($_POST["tls_enabled"])){Save();exit;} if(isset($_GET["test-smtp-js"])){tests_smtp();exit;} js(); function tabs(){ $page=CurrentPageName(); $tpl=new templates(); $users=new usersMenus(); if(!$users->WIFIDOG_INSTALLED){ echo FATAL_ERROR_SHOW_128("{ERROR_SERVICE_NOT_INSTALLED} <hr><center>".button("{manual_update}", "Loadjs('update.upload.php')",32)."</center>"); return; }
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.system.network.inc'); include_once('ressources/class.squid.inc'); $user=new usersMenus(); if($user->AsDansGuardianAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_POST["ENABLED"])){Save();exit;} if(isset($_GET["js"])){js();exit;} page(); function js(){ header("content-type: application/x-javascript"); $t=$_GET["t"]; $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->javascript_parse_text("{smtp_notifications}"); echo "LoadWinORG2('705','$page','$title')"; } function page(){
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["AOL"])){Save();exit;} js(); function js(){ $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{instant_messengers}"); $page=CurrentPageName(); echo "YahooWin3('330','$page?popup=yes','$title');"; } function popup(){
$usersmenus=new usersMenus(); if(!$usersmenus->AsSquidAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["step0"])){step0();exit;} if(isset($_GET["step1"])){step1();exit;} if(isset($_GET["step2"])){step2();exit;} if(isset($_GET["step3"])){step3();exit;} if(isset($_GET["step4"])){step4();exit;} if(isset($_POST["DOMAIN"])){Save();exit;} if(isset($_POST["LOCALNET"])){Save();exit;} if(isset($_POST["PROXY"])){Save();exit;} if(isset($_POST["agree"])){agree();exit;} start_js(); function start_js(){ header("content-type: application/x-javascript"); $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->javascript_parse_text("{autoconfiguration_wizard}"); echo "YahooWin2(900,'$page?step0=yes','$title',true)"; }
include_once('ressources/class.groups.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["EnablePagePeeker"])){Save();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $html="YahooWin4('550','$page?popup=yes','PagePeeker')"; echo $html; }
$row[] = '<div class="callapp_checkbox"> <input type="checkbox" id="callapp_checkbox_detail_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" /> <label for="callapp_checkbox_detail_' . $aRow[$hidden] . '"></label> </div>'; } } $data['aaData'][] = $row; } break; case 'save': if ($name != '') { if (!CheckExist($name)) { if ($new_str == 1) { Add($id, $name); } else { Save($id, $name); } } else { $error = '"' . $name . '" უკვე არის სიაში!'; } } break; case 'save_detail': if ($value != '') { if (!CheckDetailExist($value)) { if ($id_detail == '') { AddDetail($id_original, $value); } else { SaveDetail($id_detail, $value); } } else {
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["auth_param_ntlm_children"])){Save();exit;} js(); function js() { $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{squid_plugins}"); $page=CurrentPageName(); $html="YahooWin6('600','$page?popup=yes','$title')"; echo $html; }
include_once('ressources/class.groups.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["YoutubeForSchoolsID"])){Save();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $html="YahooWin4('550','$page?popup=yes','Youtube For Schools')"; echo $html; }
include_once('ressources/class.ini.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); 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["title"])){tables_title();exit;} if(isset($_GET["schedules"])){schedules();exit;} if(isset($_POST["ArticaProxyStatisticsRestoreFolder"])){Save();exit;} if(isset($_GET["restored"])){restored_table();exit;} if(isset($_GET["restored-list"])){restored_items();exit;} if(isset($_GET["zoom-restored"])){zoom_restored();exit;} if(isset($_POST["RecoverDelete"])){RecoverDelete();exit;} if(isset($_GET["form-restore"])){form_restore();exit;} if(isset($_POST["RestoreSingle"])){RestoreSingle();exit;} if(isset($_POST["RecoverAll"])){RecoverAll();exit;} if(isset($_POST["DeleteAll"])){DeleteAll();exit;} js(); function js(){ header("content-type: application/x-javascript");
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["DisableGoogleSSL"])){Save();exit;} if(isset($_GET["google-dns"])){google_dns();exit;} js(); function js() { $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{disable_google_ssl}"); $page=CurrentPageName(); $html="YahooWin3('850','$page?popup=yes','$title')"; echo $html; } function popup(){
include_once('ressources/class.groups.inc'); include_once('ressources/class.artica.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["ftp_user"])){Save();exit;} if(isset($_GET["main"])){popup_main();exit;} if(isset($_GET["restrictions"])){restrictions();exit;} if(isset($_GET["ftp_restriction_list"])){ftp_restriction_list();exit;} if(isset($_GET["ftp_restriction_add"])){ftp_restriction_add();exit;} if(isset($_GET["ftp_restriction_del"])){ftp_restriction_del();exit;} if(isset($_GET["enable_ftp_restrictions"])){enable_ftp_restrictions();exit;} js(); function js(){ $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{squid_ftp_user}"); $page=CurrentPageName();
} $filename = 'user.txt'; switch ($action) { case 'select': // Leer el archivo de texto en un string $users = file_get_contents($filename); // separar por saltos de linea en una array $users = explode("\n", $users); // recorrer el array de usuario include '../modules/Application/views/user/select.phtml'; break; case 'insert': if ($_POST) { $array = $_POST; $array['photo'] = $_FILES['photo']['name']; Save($array, $filename); header("Location: /ControllerUser.php?action=select"); } else { $form = file_get_contents($formdef); include '../modules/Application/views/user/insert.phtml'; } break; case 'update': if ($_POST) { $array = $_POST; $array['photo'] = $_FILES['photo']['name']; Update($array, $filename); header("Location: ./ControllerUser.php?action=select"); } else { $users = file_get_contents($filename); $users = explode("\n", $users);
<?php header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["EnableKavICAPRemote"])){Save();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{kaspersky_antivirus_connector}"); $html="YahooWin5('350','$page?popup=yes','$title')"; echo $html; } function popup(){ $page=CurrentPageName(); $tpl=new templates(); $sock=new sockets(); $EnableKavICAPRemote=$sock->GET_INFO("EnableKavICAPRemote");
<?php if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} if(isset($_GET["force"])){$GLOBALS["FORCE"]=true;} include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsSquidAdministrator){echo FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}");die(); } if(isset($_POST["SquidServerPersistentConnections"])){Save();exit;} page(); function page(){ $page=CurrentPageName(); $tpl=new templates(); $sock=new sockets(); $SquidClientPersistentConnections=intval($sock->GET_INFO("SquidClientPersistentConnections")); $SquidServerPersistentConnections=intval($sock->GET_INFO("SquidServerPersistentConnections")); $t=time(); $html=" <div style='font-size:26px;margin-bottom:20px'>{persistent_connections}</div> <div class=text-info style='font-size:18px'>{persistent_connections_explain}</div> <p> </p> ". Paragraphe_switch_img("{server_persistent_connections}", "{server_persistent_connections_explain}" ,"SquidServerPersistentConnections",$SquidServerPersistentConnections,null,750 )."<p> </p>". Paragraphe_switch_img("{client_persistent_connections}", "{client_persistent_connections_explain}" ,"SquidClientPersistentConnections",$SquidClientPersistentConnections,null,750 ).
include_once('ressources/class.artica.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.cyrus.inc'); include_once('ressources/class.cron.inc'); include_once('ressources/class.system.network.inc'); $users=new usersMenus(); if(!$users->AsPostfixAdministrator){ $tpl=new templates(); $error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_POST["ZarafaCacheCellSize"])){Save();exit;} if(isset($_POST["ZARAFA_LANG"])){ZARAFA_LANG();exit;} if(isset($_POST["ZarafaStoreOutside"])){ZarafaStoreOutside_save();exit;} if(isset($_POST["ZarafaServerSMTPIP"])){SaveZarafaNet();exit;} if(isset($_POST["build-locales"])){BuildLocales();exit;} if(isset($_GET["locales-gen-running"])){locales_gen_running();exit;} page(); function page(){ $sock=new sockets(); $tpl=new templates(); $users=new usersMenus(); $memdispo=$users->MEM_TOTAL_INSTALLEE*1024; $page=CurrentPageName();
include_once(dirname(__FILE__) . "/ressources/class.pdns.inc"); include_once(dirname(__FILE__) . '/ressources/class.system.network.inc'); include_once(dirname(__FILE__) . '/ressources/class.squid.inc'); $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["step1"])){step1();exit;} if(isset($_GET["step2"])){step2();exit;} if(isset($_POST["rulename"])){Save();exit;} if(isset($_POST["html"])){SaveMysql();exit;} js(); function js(){ header("content-type: application/x-javascript"); $tpl=new templates(); $page=CurrentPageName(); $t=time(); $tpl=new templates(); $title=$tpl->javascript_parse_text("Hyper Cache: {new_rule}");
include_once('ressources/class.groups.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["SquidActHasReverse"])){Save();exit;} if(isset($_GET["website"])){add_website();exit;} if(isset($_GET["websites-list"])){websites_list();exit;} if(isset($_GET["AccelAddReverseSiteDelete"])){del_website();exit;} js(); function js(){ $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{squid_reverse_proxy}"); $page=CurrentPageName(); $html=" function squid_reverse_websites_proxy_load(){ YahooWin3('600','$page?popup=yes','$title');
include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsWebStatisticsAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["title"])){tables_title();exit;} if(isset($_GET["schedules"])){schedules();exit;} if(isset($_GET["purge-bydate"])){purge_bydate();exit;} if(isset($_POST["ArticaProxyStatisticsBackupFolder"])){Save();exit;} if(isset($_GET["backup-db-js"])){backup_db_js();exit;} if(isset($_POST["backup-db-perform"])){backup_db_perform();exit;} if(isset($_GET["remove-db-js"])){remove_database_js();exit;} if(isset($_POST["remove-all-data"])){remove_database_perform();exit;} js(); function js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates();
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.system.nics.inc'); include_once('ressources/class.maincf.multi.inc'); include_once('ressources/class.tcpip.inc'); $usersmenus=new usersMenus(); if($usersmenus->AsSystemAdministrator==false){exit();} if(isset($_GET["virtual-list"])){nics_list();exit;} if(isset($_GET["add-js"])){add_js();exit;} if(isset($_GET["add-form"])){add_form();exit;} if(isset($_POST["ipaddr"])){Save();exit;} if(isset($_POST["vde-del"])){Del();exit;} page(); //vde_tunctl -t virt1 //vde_switch -s /var/run/switch1 -t virt1 -daemon -p /var/run/switch1.pid //vde_pcapplug -s /var/run/switch1 -d -P /var/run/switch1p.pid eth0 //vde_switch -tap virt1 -sock /var/run/switch1/ctl -daemon -p /var/run/switch1.pid function page(){ $page=CurrentPageName(); $t=time(); $tpl=new templates(); $date=$tpl->_ENGINE_parse_body("{zDate}"); $organization=$tpl->_ENGINE_parse_body("{organization}"); $context=$tpl->_ENGINE_parse_body("{context}");
ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.wifidog.settings.inc'; $usersmenus = new usersMenus(); if (!$usersmenus->AsSquidAdministrator) { echo FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}"); die; } if (isset($_POST["ruleid"])) { Save(); exit; } Page(); function Page() { $ruleid = $_GET["ID"]; $t = time(); $page = CurrentPageName(); $tpl = new templates(); $sock = new wifidog_templates($ruleid); $this_feature_is_disabled_corp_license = $tpl->javascript_parse_text("{this_feature_is_disabled_corp_license}"); $users = new usersMenus(); $CORP = 0; if ($users->CORP_LICENSE) { $CORP = 1;
<?php if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);} include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.images.inc'); if(isset($_POST["SKIN_FONT_SIZE"])){Save();exit;} page(); function page(){ $sock=new sockets(); $page=CurrentPageName(); $tpl=new templates(); $users=new usersMenus(); $t=time(); $ArticaHotSpotSMTP=unserialize(base64_decode($sock->GET_INFO("ArticaHotSpotSMTP"))); if(trim($ArticaHotSpotSMTP["SKIN_FONT_SIZE"])==null){$ArticaHotSpotSMTP["SKIN_FONT_SIZE"]="22px";} if(trim($ArticaHotSpotSMTP["SKIN_BUTTON_SIZE"])==null){$ArticaHotSpotSMTP["SKIN_BUTTON_SIZE"]="32px";} if(trim($ArticaHotSpotSMTP["SKIN_FONT_FAMILY"]==null)){$ArticaHotSpotSMTP["SKIN_FONT_FAMILY"]="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif";} if(trim($ArticaHotSpotSMTP["SKIN_FONT_COLOR"])==null){$ArticaHotSpotSMTP["SKIN_FONT_COLOR"]="000000";} if(trim($ArticaHotSpotSMTP["SKIN_BACKGROUND_COLOR"])==null){$ArticaHotSpotSMTP["SKIN_BACKGROUND_COLOR"]="263849";} if(trim($ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR"])==null){$ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR"]="5CB85C";} if(trim($ArticaHotSpotSMTP["SKIN_BUTTON_BD_COLOR"])==null){$ArticaHotSpotSMTP["SKIN_BUTTON_BD_COLOR"]="398439";} if(trim($ArticaHotSpotSMTP["SKIN_BUTTON_TXT_COLOR"])==null){$ArticaHotSpotSMTP["SKIN_BUTTON_TXT_COLOR"]="FFFFFF";} if(trim($ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR_HOVER"])==null){$ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR_HOVER"]="47A447";}