diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 16:21:48 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 16:21:48 +1100 |
| commit | defe48be8ebebcead2f7cba16d8da7f2ebf5fff8 (patch) | |
| tree | 2d1fe8f030711c43d57680ecdf975045bfa5250f | |
| parent | c237b016e60c6073eeee14f08463f20c47169a79 (diff) | |
Change of instance-config defaults
| -rw-r--r-- | inc/instance-config.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/inc/instance-config.php b/inc/instance-config.php index 31fb9a17..f2dafe6f 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -20,32 +20,4 @@ //$config['root'] = '/';
-
- // 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 |
