<?php
defined("ABSPATH") or die("");
    ob_start();
    phpinfo();
    $serverinfo = ob_get_contents();
    ob_end_clean();

    $serverinfo         = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $serverinfo);
    $serverinfo         = preg_replace('%^.*<title>(.*)</title>.*$%ms', '$1', $serverinfo);
?>


<!-- ==============================
PHP INFORMATION -->
<div class="dup-box">
    <div class="dup-box-title">
        <i class="fa fa-info-circle"></i>
        <?php DUP_PRO_U::esc_html_e("PHP Information"); ?>
        <div class="dup-box-arrow"></div>
    </div>
    <div class="dup-box-panel" style="display:none">
        <div id="dup-phpinfo" style="width:95%">
            <?php
                echo "<div id='dpro-phpinfo'>{$serverinfo}</div>";
                $serverinfo = null;
            ?>
        </div><br/>
    </div>
</div>
<br/>

