<?php
session_start(); 
        
if (!isset($_SESSION['auth'])) 
{
    die('error');
}
ob_start();                                                                                                        
phpinfo();                                                                                                         
$info = ob_get_contents();                                                                                         
ob_end_clean();                                                                                                    
echo preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $info);
?>