remove debug
This commit is contained in:
parent
4aad1e35ef
commit
aba16ce7f3
@ -11,16 +11,6 @@ require_once 'class/mailer.php';
|
|||||||
$dbHandler = DBHandlerSelect::getInstance();
|
$dbHandler = DBHandlerSelect::getInstance();
|
||||||
$pdo = $dbHandler->getConnection();
|
$pdo = $dbHandler->getConnection();
|
||||||
|
|
||||||
ini_set('display_errors', 1);
|
|
||||||
ini_set('display_startup_errors', 1);
|
|
||||||
ini_set('log_errors', 1);
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
|
|
||||||
set_exception_handler(function ($e) {
|
|
||||||
http_response_code(500);
|
|
||||||
echo "<pre>UNCAUGHT EXCEPTION:\n" . $e->getMessage() . "\n\n" . $e->getTraceAsString() . "</pre>";
|
|
||||||
exit;
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!isset($iduserlogin)) {
|
if (!isset($iduserlogin)) {
|
||||||
die("Errore: utente non loggato.");
|
die("Errore: utente non loggato.");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user