Page MenuHomeDevCentral

D1171.diff
No OneTemporary

D1171.diff

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

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)

Event Timeline