mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
New file for debugging purposes, simply shows phpinfo()
This commit is contained in:
parent
d805c3462e
commit
0e3e960a33
1 changed files with 22 additions and 0 deletions
22
admin/phpinfo.php
Normal file
22
admin/phpinfo.php
Normal file
|
@ -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();
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue