diff options
author | Michal Čihař <michal@cihar.com> | 2003-11-18 18:20:45 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2003-11-18 18:20:45 +0300 |
commit | 6884f9701a4052cf03c2af98ce799d2fd41241f5 (patch) | |
tree | 0037946d485432525dcf0d55b3e5399113192e1b /phpinfo.php | |
parent | 4edf711ada5dc95ed7bb1ff2f57f1f8a1f67bd86 (diff) |
no more support for php3
Diffstat (limited to 'phpinfo.php')
-rw-r--r-- | phpinfo.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phpinfo.php b/phpinfo.php new file mode 100644 index 0000000000..29f0ea690a --- /dev/null +++ b/phpinfo.php @@ -0,0 +1,20 @@ +<?php +/* $Id$ */ +// vim: expandtab sw=4 ts=4 sts=4: + + +/** + * Gets core libraries and defines some variables + */ +require('./libraries/grab_globals.lib.php'); +require('./libraries/common.lib.php'); + + +/** + * Displays PHP information + */ +$is_superuser = @PMA_mysql_query('USE mysql', $userlink); +if ($is_superuser || $cfg['ShowPhpInfo']) { + phpinfo(); +} +?> |