summaryrefslogtreecommitdiff
path: root/inc/instance-config.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-16 15:08:17 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-16 15:08:17 +1100
commitafbd0c6473f864736bacab28035dfd3702c5d231 (patch)
tree1f0b9781ce3b8baafc0f38eda11137d597147672 /inc/instance-config.php
parent392ae5f6e400c23ba0cf1e2a16137e23fb8390ba (diff)
parent44d280e120a3c7e1912f101c6ce8f8dfaf963cc8 (diff)
merged mod branch
Diffstat (limited to 'inc/instance-config.php')
-rw-r--r--inc/instance-config.php46
1 files changed, 37 insertions, 9 deletions
diff --git a/inc/instance-config.php b/inc/instance-config.php
index 408e9b85..864a956c 100644
--- a/inc/instance-config.php
+++ b/inc/instance-config.php
@@ -7,17 +7,45 @@
*
* You can copy values from config.php (defaults) and paste them here.
*/
+
+
+
+ // Database stuff
+ $config['db']['type'] = 'mysql';
+ $config['db']['server'] = 'localhost';
+ $config['db']['user'] = '';
+ $config['db']['password'] = '';
+ $config['db']['database'] = '';
+ $config['root'] = '/';
- /*
- // Database stuff
- define('MY_SERVER', '127.0.0.1');
- define('MY_USER', '');
- define('MY_PASSWORD', '');
- define('MY_DATABASE', '');
- define('ROOT', '/');
-// define('FOO', 'bar');
- */
+ // The following looks ugly. I will find a better place to put this code soon.
+ $config['post_url'] = $config['root'] . 'post.php';
+
+ $config['url_match'] = '/^' .
+ (preg_match($config['url_regex'], $config['root']) ? '' :
+ (@$_SERVER['HTTPS']?'https':'http') .
+ ':\/\/'.$_SERVER['HTTP_HOST']) .
+ preg_quote($config['root'], '/') .
+ '(' .
+ str_replace('%s', '\w{1,8}', preg_quote($config['board_path'], '/')) .
+ '|' .
+ str_replace('%s', '\w{1,8}', preg_quote($config['board_path'], '/')) .
+ preg_quote($config['file_index'], '/') .
+ '|' .
+ str_replace('%s', '\w{1,8}', preg_quote($config['board_path'], '/')) .
+ str_replace('%d', '\d+', preg_quote($config['file_page'], '/')) .
+ '|' .
+ preg_quote($config['file_mod'], '/') .
+ '\?\/.+' .
+ ')$/i';
+
+ $config['dir']['static'] = $config['root'] . 'static/';
+
+ $config['image_sticky'] = $config['dir']['static'] . 'sticky.gif';
+ $config['image_locked'] = $config['dir']['static'] . 'locked.gif';
+ $config['image_deleted'] = $config['dir']['static'] . 'deleted.png';
+ $config['image_zip'] = $config['dir']['static'] . 'zip.png';
?> \ No newline at end of file