X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fconfig-global.php;h=94cb2c867a5a7c03fdab3fccac7f6917d41539f0;hb=e19231f39d9d6583cc5753dbd2638c597957fdd1;hp=dc5edaaacb5f98831bc7991d2486b5ac0acf1204;hpb=cf3765c38cf0a76f396aca291f71858936e92956;p=mailer.git
diff --git a/inc/config-global.php b/inc/config-global.php
index dc5edaaacb..94cb2c867a 100644
--- a/inc/config-global.php
+++ b/inc/config-global.php
@@ -10,16 +10,9 @@
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Globale Konfiguration *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -42,39 +35,22 @@ if (!defined('__SECURITY')) {
die();
} // END - if
-/************************************************************************
- * PLEASE DO NOT EDIT THE COMMENTS! install.php NEEDS THEM! *
- ************************************************************************/
-
-// CFG: ERROR_REPORTING
-error_reporting(E_ALL | E_STRICT);
-
-// CFG: REGISTER-GLOBALS
-@import_request_variables('');
-
-// Detect path
-$PATH = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));
+/********************************************************************************
+ * Please don't touch anything here. Instead set them again in config-local.php *
+ ********************************************************************************/
-// Some very important function includes
-foreach (array('config','wrapper','template','inc','stats') as $inc) {
- include($PATH . 'inc/' . $inc . '-functions.php');
-} // END - foreach
-
-// Own functions
-include($PATH.'inc/functions.php');
-
-// Auto-detection... (patched by "Stelzi" aka. profi-concept, thanks again!)
-$URL = 'http://' . detectServerName() . str_replace("\\", '/', dirname($_SERVER['PHP_SELF']));
+// Auto-detection of URL
+$URL = detectServerProtocol() . '://' . detectServerName() . str_replace(chr(92), '/', dirname($_SERVER['PHP_SELF']));
while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); }
-// Initialize the configuration
-initConfig();
-
// CFG: HOST-URL (without trailing '/' !)
setConfigEntry('URL', $URL);
-// CFG: SERVER-PATH
-setConfigEntry('PATH', $PATH);
+// CFG: FLOAT-MASK
+setConfigEntry('FLOAT_MASK', '%01.5f');
+
+// CFG: DOMAIN-NAME (without trailing '/' !)
+setConfigEntry('DOMAIN', detectDomainName());
// CFG: VERSION
setConfigEntry('VERSION', 'v0.2.1');
@@ -83,25 +59,31 @@ setConfigEntry('VERSION', 'v0.2.1');
setConfigEntry('AUTHOR' , 'Roland Häder');
// CFG: TITLE
-setConfigEntry('TITLE', 'Mailer Project');
+setConfigEntry('TITLE', 'Mailer-Project');
// CFG: COPY
-setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,
2009, 2010 by Mailer Developer Team');
+setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,
2009 - 2016 by Mailer Developer Team');
// CFG: CACHE-PATH
-setConfigEntry('CACHE_PATH', getConfig('PATH') . 'inc/cache/');
+setConfigEntry('CACHE_PATH', 'inc/cache/');
+
+// CFG: CACHE-EXTENSION
+setConfigEntry('CACHE_EXTENSION', '.cache.php');
+
+// CFG: INTERNAL-STATS (This setting is overwritten by ext-other equal and prior version 0.2.7)
+setConfigEntry('internal_stats', 'N');
-// CFG: STATS-ENABLED (temporary tables, if your database crashs all is gone)
-setConfigEntry('STATS_ENABLED', 'Y');
+// CFG: DEBUG-TEMPLATE-CACHE
+setConfigEntry('DEBUG_TEMPLATE_CACHE', 'Y');
-// GLOBAL: DEBUG-TEMPLATE-CACHE
-setConfigEntry('DEBUG_TEMPLATE_CACHE', 'N');
+// CFG: SALT-LENGTH
+setConfigEntry('salt_length', 10);
-// Connect to the MySQL database...
-loadIncludeOnce('inc/mysql-connect.php');
+// CFG: MINIMUM-ADMIN-PASS-LENGTH
+setConfigEntry('minium_admin_pass_length', 4);
-// Init stats system
-initStatsSystem();
+// Remove maybe conflicting variables
+unset($URL);
// [EOF]
?>