mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
new module creation
This commit is contained in:
34
e107_admin/phpinfo.php
Normal file
34
e107_admin/phpinfo.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <20>Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/phpinfo.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:33:27 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
if (!getperms("0")) {
|
||||
header("location:".e_BASE."index.php");
|
||||
exit;
|
||||
}
|
||||
$e_sub_cat = 'phpinfo';
|
||||
require_once("auth.php");
|
||||
|
||||
ob_start();
|
||||
phpinfo();
|
||||
$phpinfo .= ob_get_contents();
|
||||
$phpinfo = preg_replace("#^.*<body>#is", "", $phpinfo);
|
||||
ob_end_clean();
|
||||
$ns->tablerender("PHPInfo", $phpinfo);
|
||||
require_once("footer.php");
|
||||
?>
|
Reference in New Issue
Block a user