<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.main_cf.inc'); $usersmenus=new usersMenus(); if($usersmenus->AsArticaAdministrator==false){header('location:users.index.php');exit;} if(isset($_GET["js"])){echo js();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["SwapEnabled"])){SaveSwapAuto();exit;} function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{memory_info}'); $html=" YahooWin5('650','$page?popup=yes','$title'); "; echo $html; } function SaveSwapAuto(){ $sock=new sockets();
exit; } if (isset($_GET["frontend-psmem-used"])) { frontend_psmem_used(); exit; } if (isset($_GET["js"])) { echo js(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_POST["SwapEnabled"])) { SaveSwapAuto(); exit; } function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{memory_info}'); $html = "\n\t YahooWin5('990','{$page}?popup=yes','{$title}');"; echo $html; } function SaveSwapAuto() { $sock = new sockets(); $SwapOffOn = unserialize(base64_decode($sock->GET_INFO("SwapOffOn"))); $sock->SET_INFO("DisableSWAPP", $_POST["DisableSWAPP"]);