debug temporaneo
This commit is contained in:
parent
b55e9f483f
commit
0845ad62a9
@ -10,6 +10,18 @@ include('include/headscript.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;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Verifica che iduserlogin sia definito
|
// Verifica che iduserlogin sia definito
|
||||||
if (!isset($iduserlogin)) {
|
if (!isset($iduserlogin)) {
|
||||||
die("Errore: ID utente non definito.");
|
die("Errore: ID utente non definito.");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user