DEFINE("URL", "http://localhost/planer"); DEFINE("BASEDIR", $_SERVER['DOCUMENT_ROOT'] . "/planer/"); // base dir of cms including document root DEFINE("ROOT", "/planer/"); // base dir of cms without document root DEFINE("TEMPLATEDIR", BASEDIR . "template/"); // directory of template files DEFINE("PLUGINDIR", BASEDIR . "plugins/"); // directory of plugins DEFINE("LANGUAGE", "de-DE"); // used language file DEFINE("FRONTENDURL", "http://localhost/planer/"); DEFINE("ORGANISATION", "Organisation Ltd."); DEFINE("COMPRESS_ENABLED", false); DEFINE("ENFORCE_SSL", false); // redirect to https DEFINE("WEBMASTER", "*****@*****.**"); require "dbConn.php"; require "template.php"; dbConn::setHost("localhost"); dbConn::setDatabase("schichtplaner"); dbConn::setUsername("root"); dbConn::setPassword("root"); dbConn::setTablePrefix("mvoe_"); template::setDoIndent(true); require_once "emailSettings.php"; emailSettings::setHost("localhost"); emailSettings::setUsername("*****@*****.**"); emailSettings::setPassword("53cur3"); emailSettings::setSender(WEBMASTER); emailSettings::setMethod(emailSendMethod::PHPMAILER);
DEFINE("ENFORCE_SSL", false); // redirect to https // // TEMPLATE SETTINGS // require_once "core/template.php"; template::setDoIndent(true); // // DATABASE SETTINGS // require_once "core/dbConn.php"; dbConn::setHost("localhost"); dbConn::setDatabase("smartdoorbell"); dbConn::setUsername("root"); dbConn::setPassword("root"); dbConn::setTablePrefix("sdb_"); // // EMAIL SETTINGS // require_once "core/emailSettings.php"; emailSettings::setHost(dbConn::querySingle("SELECT value FROM :prefix:config WHERE property = 'contact_smtp_host';")); emailSettings::setUsername(dbConn::querySingle("SELECT value FROM :prefix:config WHERE property = 'contact_smtp_username';")); emailSettings::setPassword(dbConn::querySingle("SELECT value FROM :prefix:config WHERE property = 'contact_smtp_password';")); emailSettings::setSender(dbConn::querySingle("SELECT value FROM :prefix:config WHERE property = 'contact_from';")); emailSettings::setMethod(emailSendMethod::PHPMAILER); // // OTHER STATIC RESOURCES // abstract class controller { public static $reference = null;