diff options
author | Andrew Dolgov <[email protected]> | 2019-02-20 08:51:48 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-02-20 08:51:48 +0300 |
commit | 205a75dfb97eaac96122194a176094eb67eae061 (patch) | |
tree | 95b3a6d8f2eaef612d9f9849e58440943857addd /classes/pref/system.php | |
parent | 6e14e575b37ac856eadc7921ee4d411bdb0146ec (diff) |
prefs: show phpinfo on system tab
Diffstat (limited to 'classes/pref/system.php')
-rw-r--r-- | classes/pref/system.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/pref/system.php b/classes/pref/system.php index f44b499c8..f36fd07bb 100644 --- a/classes/pref/system.php +++ b/classes/pref/system.php @@ -81,6 +81,20 @@ class Pref_System extends Handler_Protected { print "</div>"; + print "<div dojoType=\"dijit.layout.AccordionPane\" + title=\"<i class='material-icons'>info</i> ".__('PHP Information')."\">"; + + ob_start(); + phpinfo(); + $info = ob_get_contents(); + ob_end_clean(); + + print "<div class='phpinfo'>"; + print preg_replace( '%^.*<body>(.*)</body>.*$%ms','$1', $info); + print "</div>"; + + print "</div>"; + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB, "hook_prefs_tab", "prefSystem"); |