]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-config.php
- remove samples from bot script
[packages/eventum.git] / eventum-config.php
1 <?php
2 /*
3  * Eventum setup for PLD Linux.
4  *
5  * This configuration file sets up system paths for Eventum.
6  * You should not change anything in this file.
7  *
8  * All changes should go to %{SYSCONFDIR}%/config.php instead.
9  *
10  * But, if You do need to change something in this config, open bug on that in
11  * http://bugs.pld-linux.org.
12  */
13
14 set_time_limit(0);
15 set_magic_quotes_runtime(0);
16
17 // prevent session from messing up the browser cache
18 ini_set('session.cache_limiter', 'nocache');
19
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);
30
31 define('APP_SETUP_PATH', APP_PATH);
32 define('APP_SETUP_FILE', '%{SYSCONFDIR}%/setup.php');
33
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');
38
39 define('APP_VERSION', '%{APP_VERSION}%');
40
41 # include site config
42 include_once '%{SYSCONFDIR}%/config.php';
43
44 // define the user_id of system user
45 if (!defined('APP_SYSTEM_USER_ID')) {
46     define('APP_SYSTEM_USER_ID', 1);
47 }
48
49 // if full text searching is enabled
50 if (!defined('APP_ENABLE_FULLTEXT')) {
51     define('APP_ENABLE_FULLTEXT', false);
52 }
53
54 if (!defined('APP_BENCHMARK')) {
55     define('APP_BENCHMARK', false);
56 }
57
58 if (!defined('APP_DEFAULT_ASSIGNED_EMAILS')) {
59     define('APP_DEFAULT_ASSIGNED_EMAILS', 1);
60 }
61 if (!defined('APP_DEFAULT_NEW_EMAILS')) {
62     define('APP_DEFAULT_NEW_EMAILS', 0);
63 }
64 if (!defined('APP_COOKIE_URL')) {
65     define('APP_COOKIE_URL', APP_RELATIVE_URL);
66 }
67 if (!defined('APP_COOKIE_DOMAIN')) {
68     define('APP_COOKIE_DOMAIN', APP_HOSTNAME);
69 }
70 if (!defined('APP_HASH_TYPE')) {
71     define('APP_HASH_TYPE', 'MD5');
72 }
73 if (!defined('APP_DEFAULT_LOCALE')) {
74     define('APP_DEFAULT_LOCALE', 'en_US');
75 }
76 if (!defined('APP_EMAIL_ENCODING')) {
77     if (APP_CHARSET == 'UTF-8') {
78         define('APP_EMAIL_ENCODING', '8bit');
79     } else {
80         define('APP_EMAIL_ENCODING', '7bit');
81     }
82 }
83
84 if (APP_BENCHMARK) {
85     // always benchmark the scripts
86     require_once 'Benchmark/Timer.php';
87     $bench = new Benchmark_Timer;
88     $bench->start();
89 }
90
91 // handle the language preferences now
92 $avail_langs = array(
93     'en_US' =>  'English',
94 #    'ru_RU' =>  'Russian',
95 #    'de_DE' =>  'German',
96 #    'fr_FR' =>  'French',
97     'it_IT' =>  'Italian',
98 #    'fi_FI' =>  'Finish',
99 #    'es_ES' =>  'Spanish',
100 #    'nl_NL' =>  'Dutch',
101     'sv_SE' =>  'Swedish',
102 );
103
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');
108
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);
114 }
115
116 Language::setup();
117
118 // set charset
119 Header('Content-Type: text/html; charset=' . APP_CHARSET);
120
121 /* vim: set expandtab tabstop=4 shiftwidth=4 encoding=utf-8: */
This page took 0.029168 seconds and 3 git commands to generate.