DEBUG kapcsoló a utils-ba

This commit is contained in:
Kováts Levente 2021-01-25 08:26:02 +01:00
parent 0ffaf09ae0
commit cda9c66306
2 changed files with 11 additions and 7 deletions

View File

@ -2,13 +2,6 @@
include_once "utils.php";
// hibakeresés
if (DEBUG_MODE) {
ini_set("display_errors", "On");
} else {
ini_set("display_errors", "Off");
}
// feltöltési limit 10 percen belül
define("UPLOAD_LIMIT_10MIN", 10);

View File

@ -2,6 +2,17 @@
include_once "globals.php";
// hibakeresés
if (DEBUG_MODE) {
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
} else {
ini_set('display_errors', '0');
ini_set('display_startup_errors', '0');
error_reporting(0); // Turn off all error reporting
}
// olyan szöveget ad vissza, amibe csak angol ABC betűi és számok szerepelnek (KL)
function only_alpha_numeric($input)
{