libdir.'/adminlib.php'); admin_externalpage_setup('phpinfo'); echo $OUTPUT->header(); echo '
'; ob_start(); phpinfo(INFO_GENERAL + INFO_CONFIGURATION + INFO_MODULES + INFO_VARIABLES); $html = ob_get_contents(); ob_end_clean(); /// Delete styles from output $html = preg_replace('#(\n?]*?>.*?]*?>)|(\n?]*?/>)#is', '', $html); $html = preg_replace('#(\n?]*?>.*?]*?>)|(\n?]*?/>)#is', '', $html); /// Delete DOCTYPE from output $html = preg_replace('//is', '', $html); /// Delete body and html tags $html = preg_replace('/.*?/is', '', $html); $html = preg_replace('/<\/body><\/html>/is', '', $html); echo $html; echo '
'; echo $OUTPUT->footer();