<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.ldap.inc'); $user=new usersMenus(); if(!$user->AsSystemAdministrator){echo "alert('no privileges');";die();} if(isset($_POST["DirectoryFSPath"])){DirectoryFSPath();exit;} if(isset($_GET["popup"])){popup();exit;} js(); function js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $virtual_disks=$tpl->_ENGINE_parse_body("{move_filesystem}"); $html="YahooWin3('650','$page?popup=yes','$virtual_disks');"; echo $html; } function popup(){ $page=CurrentPageName(); $tpl=new templates(); $sock=new sockets(); $size=$sock->GET_INFO("SystemTotalSize"); $DirectoryFSPath=$sock->GET_INFO("DirectoryFSPath"); $move_fs_to=$tpl->javascript_parse_text("{move_fs_to}"); $size=FormatBytes($size/1024);
<?php include_once 'ressources/class.templates.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.ldap.inc'; $user = new usersMenus(); if (!$user->AsSystemAdministrator) { echo "alert('no privileges');"; die; } if (isset($_POST["DirectoryFSPath"])) { DirectoryFSPath(); exit; } if (isset($_GET["popup"])) { popup(); exit; } js(); function js() { header("content-type: application/x-javascript"); $page = CurrentPageName(); $tpl = new templates(); $virtual_disks = $tpl->_ENGINE_parse_body("{move_filesystem}"); $html = "YahooWin3('650','{$page}?popup=yes','{$virtual_disks}');"; echo $html; } function popup() { $page = CurrentPageName();