Skip to content

Commit

Permalink
New file for debugging purposes, simply shows phpinfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed May 21, 2003
1 parent d805c34 commit 0e3e960
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions admin/phpinfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?PHP // $Id$
// phpinfo.php - shows phpinfo for the current server

require_once("../config.php");

require_login();

if (!isadmin()) {
error("Only the admin can use this page");
}

$stradministration = get_string("administration");
$site = get_site();

print_header("$site->shortname: phpinfo", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> phpinfo");

phpinfo();

print_footer();

?>

0 comments on commit 0e3e960

Please sign in to comment.