HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/limestate-api/lib/Exceptions.php
<?php
/***********************************************************
*
*  Обёртка для фатальных функций
*
************************************************************/

ob_start('fatal_error_handler');

function fatal_error_handler($buffer){
    $error = error_get_last();


    if($error['type'] == 1)
    {
        $html = '<html>
    <title>Fatal Error</title>
<style>
   body{
        background: #f4e2e1;
        margin: 0;
        padding:0;
        font-family: Ubuntu;
   }

    h1{
        background: #c03d22;
        border-botom: 1px solid #983018;
        color: #f2e0dd;
        width: auto;
        padding: 40px;
        text-shadow: 0 1px 1px #000;
        font-weight: normal;
    }

    p{
        padding: 20px 40px 40px 40px;
        color: #7a2d24;
    }
</style>
<body style="margin: 0; padding: 0;">
    <h1>'.$error['message'].'</h1>
    <p>line <strong>'.$error['line'].'</strong> at <strong>'.$error['file'].'</strong></p>
</body></html>';
        return $html;
    }
    return $buffer;
}