forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New file for debugging purposes, simply shows phpinfo()
- Loading branch information
moodler
committed
May 21, 2003
1 parent
d805c34
commit 0e3e960
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
?> |