Files
sld-php-template/config/settings.php
T
sld-admin 64f3c76f92 revert a2f36b6fac
revert Fixed the READMEs and small fix around the project
2026-08-19 17:44:20 +01:00

39 lines
1.0 KiB
PHP

<?php
// -- GENERAL SETTING --
$debug="off";
$php_debug="off";
// --- DB SETTINGS ---
$db_needed="yes";
$db_debug="yes";
$db_host="localhost";
$db_name="blocknotes_db";
$db_user="simone";
$db_pass="Angela";
//-------------------------------------------------------------------------------------
// --- DON'T CHANGE ALL THE CODE BELOW!!! ---
//-------------------------------------------------------------------------------------
// --- 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);
define("DB_USER", $db_user);
define("DB_PASS", $db_pass);
define("DB_NAME", $db_name);
define("DB_DEBUG", $db_debug);
require_once(CONFIG_FOLD . "db.php");
}
?>