Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3751660
D1171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1171.diff
View Options
diff --git a/includes/core.php b/includes/core.php
--- a/includes/core.php
+++ b/includes/core.php
@@ -22,8 +22,14 @@
//Reports all errors, help notices (including STRICT in PHP 6)
error_reporting(E_ALL & ~E_NOTICE);
+//Load config
+require_once("default-config.php");
+
+if (file_exists("config.php")) {
+ include_once("config.php");
+}
+
//Load libraries
-include_once("config.php"); //Site config
include_once("error.php"); //Error management
include_once("mysqli.php"); //MySQL layer
include_once("session.php"); //Sessions handler
diff --git a/includes/default-config.php b/includes/default-config.php
new file mode 100644
--- /dev/null
+++ b/includes/default-config.php
@@ -0,0 +1,16 @@
+<?php
+
+$Config = [
+ // Theme
+ 'Theme' => 'RalfFallsIntoFoundation',
+
+ // Router configuration
+ 'SiteURL' => get_server_url(),
+ 'BaseURL' => '',
+ 'AllowTopicArticleRequest' => true,
+ 'Homepage' => '_index/index.html',
+];
+
+$Config['Pages'] = [
+ 'Error404' => 'themes/' . $Config['Theme'] . '/404.php',
+];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 11:30 (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250595
Default Alt Text
D1171.diff (1 KB)
Attached To
Mode
D1171: Provide default configuration
Attached
Detach File
Event Timeline
Log In to Comment