Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/phpinfo.php
Go to the documentation of this file.
00001 <?php
00002        // phpinfo.php - shows phpinfo for the current server
00003 
00004     require_once("../config.php");
00005     require_once($CFG->libdir.'/adminlib.php');
00006 
00007     admin_externalpage_setup('phpinfo');
00008 
00009     echo $OUTPUT->header();
00010 
00011     echo '<div class="phpinfo">';
00012 
00013     ob_start();
00014     phpinfo(INFO_GENERAL + INFO_CONFIGURATION + INFO_MODULES);
00015     $html = ob_get_contents();
00016     ob_end_clean();
00017 
00019     $html = preg_replace('#(\n?<style[^>]*?>.*?</style[^>]*?>)|(\n?<style[^>]*?/>)#is', '', $html);
00020     $html = preg_replace('#(\n?<head[^>]*?>.*?</head[^>]*?>)|(\n?<head[^>]*?/>)#is', '', $html);
00022     $html = preg_replace('/<!DOCTYPE html PUBLIC.*?>/is', '', $html);
00024     $html = preg_replace('/<html.*?>.*?<body.*?>/is', '', $html);
00025     $html = preg_replace('/<\/body><\/html>/is', '', $html);
00026 
00027     echo $html;
00028 
00029     echo '</div>';
00030 
00031     echo $OUTPUT->footer();
00032 
00033 
 All Data Structures Namespaces Files Functions Variables Enumerations