3 * Eventum setup for PLD Linux.
5 * This configuration file sets up system paths for Eventum.
6 * You should not change anything in this file.
8 * All changes should go to %{SYSCONFDIR}%/config.php instead.
10 * But, if You do need to change something in this config, open bug on that in
11 * http://bugs.pld-linux.org.
15 set_magic_quotes_runtime(0);
17 // prevent session from messing up the browser cache
18 ini_set('session.cache_limiter', 'nocache');
20 // definitions of path related variables
21 define('APP_PATH', '%{APP_PATH}%/htdocs/');
22 define('APP_INC_PATH', '%{APP_PATH}%/include/');
23 define('APP_PEAR_PATH', '%{PHP_PEAR_DIR}%/');
24 define('APP_TPL_PATH', '%{APP_PATH}%/templates/');
25 define('APP_SMARTY_PATH', '%{SMARTY_DIR}%/');
26 define('APP_JPGRAPH_PATH', APP_INC_PATH . 'jpgraph/');
27 define('APP_LOG_PATH', '/var/log/eventum/');
28 define('APP_LOCKS_PATH', '/var/run/eventum/');
29 ini_set('include_path', '.:' . APP_PEAR_PATH);
31 define('APP_SETUP_PATH', APP_PATH);
32 define('APP_SETUP_FILE', '%{SYSCONFDIR}%/setup.php');
34 define('APP_ERROR_LOG', APP_LOG_PATH . 'errors.log');
35 define('APP_CLI_LOG', APP_LOG_PATH . 'cli.log');
36 define('APP_IRC_LOG', APP_LOG_PATH . 'irc_bot.log');
37 define('APP_LOGIN_LOG', APP_LOG_PATH . 'login_attempts.log');
39 define('APP_VERSION', '%{APP_VERSION}%');
42 include_once '%{SYSCONFDIR}%/config.php';
44 // define the user_id of system user
45 if (!defined('APP_SYSTEM_USER_ID')) {
46 define('APP_SYSTEM_USER_ID', 1);
49 // if full text searching is enabled
50 if (!defined('APP_ENABLE_FULLTEXT')) {
51 define('APP_ENABLE_FULLTEXT', false);
54 if (!defined('APP_BENCHMARK')) {
55 define('APP_BENCHMARK', false);
58 if (!defined('APP_DEFAULT_ASSIGNED_EMAILS')) {
59 define('APP_DEFAULT_ASSIGNED_EMAILS', 1);
61 if (!defined('APP_DEFAULT_NEW_EMAILS')) {
62 define('APP_DEFAULT_NEW_EMAILS', 0);
64 if (!defined('APP_COOKIE_URL')) {
65 define('APP_COOKIE_URL', APP_RELATIVE_URL);
67 if (!defined('APP_COOKIE_DOMAIN')) {
68 define('APP_COOKIE_DOMAIN', APP_HOSTNAME);
70 if (!defined('APP_HASH_TYPE')) {
71 define('APP_HASH_TYPE', 'MD5');
73 if (!defined('APP_DEFAULT_LOCALE')) {
74 define('APP_DEFAULT_LOCALE', 'en_US');
76 if (!defined('APP_EMAIL_ENCODING')) {
77 if (APP_CHARSET == 'UTF-8') {
78 define('APP_EMAIL_ENCODING', '8bit');
80 define('APP_EMAIL_ENCODING', '7bit');
85 // always benchmark the scripts
86 require_once 'Benchmark/Timer.php';
87 $bench = new Benchmark_Timer;
91 // handle the language preferences now
94 # 'ru_RU' => 'Russian',
95 # 'de_DE' => 'German',
96 # 'fr_FR' => 'French',
98 # 'fi_FI' => 'Finish',
99 # 'es_ES' => 'Spanish',
100 # 'nl_NL' => 'Dutch',
101 'sv_SE' => 'Swedish',
104 include_once(APP_INC_PATH . 'class.language.php');
105 include_once(APP_INC_PATH . 'db_access.php');
106 include_once(APP_INC_PATH . 'class.auth.php');
107 include_once(APP_INC_PATH . 'class.misc.php');
109 // fix magic_quote_gpc'ed values
110 if (get_magic_quotes_gpc()) {
111 $_GET = Misc::dispelMagicQuotes($_GET);
112 $_POST = Misc::dispelMagicQuotes($_POST);
113 $_REQUEST = Misc::dispelMagicQuotes($_REQUEST);
119 Header('Content-Type: text/html; charset=' . APP_CHARSET);
121 /* vim: set expandtab tabstop=4 shiftwidth=4 encoding=utf-8: */