libdir.'/adminlib.php'); admin_externalpage_setup('phpinfo'); admin_externalpage_print_header(); echo '
'; ob_start(); phpinfo(INFO_GENERAL + INFO_CONFIGURATION + INFO_MODULES); $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 '
'; admin_externalpage_print_footer(); ?>