header('Content-type: application/octet-stream'); header('Content-Disposition: inline; filename="exponent.phpinfo.html"'); $template = new template('administrationmodule', '_sysinfo', $loc); ob_start(); phpinfo(INFO_GENERAL + INFO_CONFIGURATION + INFO_MODULES); $str = ob_get_contents(); $str = str_replace(array('<html>', '<body>', '</body>', '</html>'), '', $str); ob_end_clean(); $template->assign('phpinfo', $str); if (!defined('SYS_MODULES')) { require_once BASE . 'subsystems/modules.php'; } if (!defined('SYS_INFO')) { require_once BASE . 'subsystems/info.php'; } $mods = array(); foreach (pathos_modules_list() as $m) { if (class_exists($m)) { $mobj = new $m(); $mods[$m] = array('name' => $mobj->name(), 'author' => $mobj->author(), 'description' => $mobj->description()); } } $template->assign('modules', $mods); $template->assign('subsystems', pathos_info_subsystems()); $template->assign('override_style', 0); $template->output(); exit(''); // Exit, since we are exporting. } else { echo SITE_403_HTML; }
# MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU # General Public License along with Exponent; if # not, write to: # # Free Software Foundation, Inc., # 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: managesubsystems.php,v 1.6 2005/04/18 15:33:34 filetreefrog Exp $ ################################################## // Part of the Extensions category if (!defined('PATHOS')) { exit(''); } if (pathos_permissions_check('extensions', pathos_core_makeLocation('administrationmodule'))) { if (!defined('SYS_INFO')) { require_once BASE . 'subsystems/info.php'; } $info = pathos_info_subsystems(); ksort($info); $template = new template('administrationmodule', '_subsystemManager', $loc); $template->assign('info', $info); $template->output(); } else { echo SITE_403_HTML; }