include_once 'ressources/class.users.menus.inc'; $usersmenus = new usersMenus(); if ($usersmenus->AsArticaAdministrator == false) { header('location:users.index.php'); exit; } if (isset($_GET["clocks"])) { echo GetSysDate(); exit; } if (isset($_GET["hard"])) { echo HARD(); exit; } if (isset($_GET["disk"])) { echo disk(); exit; } if (isset($_GET["env"])) { echo env(); exit; } if (isset($_GET["changeClock"])) { changeClock(); exit; } if (isset($_GET["ConvertSystemToHard"])) { ConvertSystemToHard(); exit; } if (isset($_GET["popup-index"])) {
<?php // TODO exit if there is more than 1 skyqs -- issue when a css has a relative file path header("Expires: " . gmdate("D, d M Y H:i:s", strtotime('+6 months')) . " GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s", strtotime('+30 days')) . " GMT"); header("Content-Type: text/css"); $cache_name = IDE; echo disk('stylesheet/' . $cache_name);
?> </td></tr> <tr><td class=head><b>PostgreSQL :</td><td><?php echo function_exists('pg_connect') ? "<b>Enable" : "Disable"; ?> </td></tr> <tr><td class=head><b>Disable functions :</td><td><?php dis(); ?> </td></tr> <tr><td class=head><b>Total Disk Space : </td><td><?php echo disk(1); ?> </td></tr> <tr><td class=head><b>Free Space : </td><td><?php echo disk(2); ?> </td></tr> <tr><td class=head><b>OS</td><td><?php echo php_uname(); ?> </td></tr> <tr><td class=head><b>Server Software : </td><td><?php echo $_SERVER['SERVER_SOFTWARE']; ?> </td></tr> </table> <?php } 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.main_cf.inc'); $usersmenus=new usersMenus(); if($usersmenus->AsArticaAdministrator==false){header('location:users.index.php');exit;} if(isset($_GET["clocks"])){echo GetSysDate();exit;} if(isset($_GET["hard"])){echo HARD();exit;} if(isset($_GET["disk"])){echo disk();exit;} if(isset($_GET["env"])){echo env();exit;} if(isset($_GET["changeClock"])){changeClock();exit;} if(isset($_GET["ConvertSystemToHard"])){ConvertSystemToHard();exit;} if(isset($_GET["popup-index"])){popup();exit;} js(); function js(){ $page=CurrentPageName(); $prefix=str_replace(".","_",$page); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{hardware_info}'); $users=new usersMenus(); if(!$users->AsAnAdministratorGeneric){ $error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die();
<?php header("Expires: " . gmdate("D, d M Y H:i:s", strtotime('+6 months')) . " GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s", strtotime('+30 days')) . " GMT"); header("Content-Type: text/javascript"); $cache_name = IDE; echo disk('javascript/' . $cache_name);
/** * Makes a fetcher function for the given key * @param string $key * @return Function */ private function _getFetchFn($key) { $check_mem = function ($key) { return aql2array::$aqlArrays[$key]; }; $fns = array('mem' => function () use($key, $check_mem) { return $check_mem($key) ?: mem($key); }, 'disk' => function () use($key, $check_mem) { return $check_mem($key) ?: unserialize(disk($key)); }); if (!array_key_exists(self::$mem_type, $fns)) { throw new Exception('Invalid mem type.'); } return $fns[self::$mem_type]; }
<?php include dirname(__FILE__) . "/../library.php"; list($disk_errno, $disk_msg) = disk(); if ($disk_errno == '001') { $disk_img = "http://www.godo.co.kr/userinterface/img/disk_guide_add_text.gif"; } else { if ($disk_errno == '002') { $disk_img = "http://www.godo.co.kr/userinterface/img/disk_guide_date_text.gif"; } } ?> <title>이미지 등록하기</title> <style> body {background:buttonface} body,td,input {font:9pt 굴림} </style> <script language="javascript"><!-- function webftp(){ var hrefStr = '../../admin/design/popup.webftp.php'; var win = window.open( hrefStr, 'webftp', "loaction=no, directories=no, Width=900, Height=800, left=50, top=50, scrollbars=1" ); win.focus(); } function imghost(){ var hrefStr = 'http://image.godo.co.kr/login/imghost_login.php'; var win = window.open( hrefStr, 'imghost', "loaction=no, directories=no, Width=980, Height=700, left=50, top=50, scrollbars=1" ); win.focus(); } --></script>
/** * cahces a minified array of files to `/$type_folder/$cache_name.$type` * @param array $files array with keys as paths to file * @param string $type text/css * @return string | null null if no files or invalid type, * cache_name otherwise */ public function cache_files($files, $type) { // set up so we can have other caching in the future // an array of acceptable types and their configurations $types = array('js' => array('folder' => 'javascript', 'class' => 'JSMin', 'method' => 'minify'), 'css' => array('folder' => 'stylesheet', 'class' => 'Minify_CSS_Compressor', 'method' => 'process')); // if invalid params return null if (!array_key_exists($type, $types)) { return null; } if (!is_array($files) || !$files) { return null; } // set vars used when caching the files // conditionals only happen once (to not repeat logic) $current = (object) $types[$type]; $type_folder = $current->folder; $callback = array($current->class, $current->method); include_once sprintf('lib/minify-2.1.3/%s.php', $current->class); // get cache name by imploding filenames $cache_name = implode('-', array_map(function ($file) use($type) { return str_replace('.' . $type, '', array_pop(explode('/', $file))); }, array_keys($files))); $cache_name = sprintf('/%s/%s.%s', $type_folder, $cache_name, $type); // return early if cache exists and we're not refreshing it if (!$_GET['refresh'] && disk($cache_name)) { return $cache_name; } // get files' contents ob_start(); foreach (array_keys($files) as $file) { $file = substr($file, 1); @(include $file); echo str_repeat("\n", 4); } $file_contents = ob_get_contents(); ob_end_clean(); if (!$file_contents) { return $cache_name; } // store file contents $file_contents = call_user_func($callback, $file_contents); \disk($cache_name, $file_contents); return $cache_name; }