Added new features: adding new constant in a loop

This commit is contained in:
2026-08-10 17:48:24 +01:00
parent 40b41f8930
commit f782c6f531
5 changed files with 60 additions and 0 deletions
+10
View File
@@ -1,6 +1,7 @@
<?php
// -- GENERAL SETTING --
$debug="on";
$php_debug="on";
// --- DB SETTINGS ---
$db_needed="no";
@@ -17,6 +18,15 @@ $db_pass="database-user-password";
// --- GENERAL SECTION CONFIGURATION
if ($debug == "on"){ define("DEBUG",true);} else { define("DEBUG", false); }
if ($php_debug == "on") {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
} else {
ini_set('display_errors', 0);
error_reporting(0);
}
// --- DB SECTION CONFIGURATION
if ($db_needed == "yes"){
define("DB_HOST", $db_host);