1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00
vichan/inc/instance-config.php

51 lines
1.6 KiB
PHP
Raw Normal View History

2010-11-04 15:02:13 +01:00
<?php
2010-11-04 15:02:13 +01:00
/*
* Instance Configuration
* ----------------------
* Edit this file and not config.php for imageboard configuration.
*
* You can copy values from config.php (defaults) and paste them here.
*/
2010-12-17 15:18:03 +01:00
2010-11-04 17:14:33 +01:00
// Database stuff
2011-02-12 07:25:15 +01:00
$config['db']['type'] = 'mysql';
$config['db']['server'] = 'localhost';
$config['db']['user'] = '';
$config['db']['password'] = '';
$config['db']['database'] = '';
2011-02-16 05:49:49 +01:00
//$config['root'] = '/';
2011-02-12 07:25:15 +01:00
// 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';
2010-11-04 15:02:13 +01:00
?>