function __construct($option = null, $state = 'off') { global $smarty; switch ($state) { case 1: case 'on': ob_start(); switch ($option) { case 'os': os_info(); break; case 'browser': browser_info(); break; case 'session': session_info(); break; case 'server': server_info(); break; case 'request': request_info(); break; case 'class': class_info(); break; case 'includes': includes_info(); break; case 'mail': mail_info(); break; case 'system': default: system_info(); break; } $output = ob_get_clean(); $smarty->assign('output', $output); $smarty->display(DEBUG_PATH . 'debug.phtml'); break; case 0: case 'off': default: break; } }
// BOOKMARKS //------------------------------------------------------------------------------ // BOOKMARKS case 'modify_bookmark': $task = extGetParam($_REQUEST, 'task'); require_once _EXT_PATH . '/include/bookmarks.php'; modify_bookmark($task, $dir); break; //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ case 'show_error': ext_Result::sendResult('', false, ''); break; case 'get_about': require_once _EXT_PATH . "/include/system_info.php"; system_info(); break; //------------------------------------------------------------------------------ // DEFAULT: LIST FILES & DIRS //------------------------------------------------------------------------------ // DEFAULT: LIST FILES & DIRS case "getdircontents": require_once _EXT_PATH . "/include/list.php"; $requestedDir = stripslashes(str_replace('_RRR_', '/', extGetParam($_REQUEST, 'node'))); if (empty($requestedDir) || $requestedDir == 'ext_root') { $requestedDir = $dir; } send_dircontents($requestedDir, extGetParam($_REQUEST, 'sendWhat', 'files')); break; case 'get_dir_selects': echo get_dir_selects($dir);
<?php mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('cache'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <?php } show_header($GLOBALS['messages']['simamsysinfo'] . ' <a href="index2.php?option=' . $option . '">[ ' . $GLOBALS['error_msg']['back'] . ']</a>'); system_info($version, $option);