]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-config.php
- add post 1.5.4 fixes
[packages/eventum.git] / eventum-config.php
CommitLineData
20b87346
ER
1<?php
2/*
3 * Eventum setup for PLD Linux.
4 *
5 * This configuration file sets up system paths for eventum.
6 * You shouldn't be needing to change anything in this file.
7 * All changes should go to /etc/eventum/config.php
8 * But, if You do need to change something in this config, please let us know!
9 */
10
11ini_set('allow_url_fopen', 0);
12ini_set("display_errors", 0);
20b87346 13set_time_limit(0);
21ee8543
ER
14set_magic_quotes_runtime(0);
15
20b87346
ER
16// prevent session from messing up the browser cache
17ini_set('session.cache_limiter', 'nocache');
18
19// definitions of path related variables
08437ed1
ER
20define("APP_PATH", '/usr/share/eventum/htdocs/');
21define("APP_INC_PATH", "/usr/share/eventum/include/");
22define("APP_PEAR_PATH", APP_INC_PATH . "pear/");
23define("APP_TPL_PATH", "/usr/share/eventum/templates/");
24define("APP_SMARTY_PATH", "/usr/share/pear/Smarty/");
25define("APP_JPGRAPH_PATH", APP_INC_PATH . "jpgraph/");
26define("APP_LOG_PATH", "/var/log/eventum/");
27define("APP_LOCKS_PATH", "/var/run/eventum/");
20b87346
ER
28ini_set("include_path", ".:" . APP_PEAR_PATH);
29
08437ed1
ER
30define("APP_SETUP_PATH", APP_PATH);
31define("APP_SETUP_FILE", "/etc/eventum/setup.php");
20b87346 32
08437ed1
ER
33define("APP_ERROR_LOG", APP_LOG_PATH . "errors.log");
34define("APP_CLI_LOG", APP_LOG_PATH . "cli.log");
35define("APP_IRC_LOG", APP_LOG_PATH . "irc_bot.log");
36define("APP_LOGIN_LOG", APP_LOG_PATH . "login_attempts.log");
20b87346 37
08437ed1 38define("APP_VERSION", "%{APP_VERSION}%");
20b87346 39
20b87346
ER
40# include site config
41include_once '/etc/eventum/config.php';
42
881228a7
ER
43// define the user_id of system user
44if (!defined('APP_SYSTEM_USER_ID')) {
45 define("APP_SYSTEM_USER_ID", 1);
46}
47
21ee8543
ER
48// if full text searching is enabled
49if (!defined('APP_ENABLE_FULLTEXT')) {
50 define("APP_ENABLE_FULLTEXT", false);
51}
52
881228a7
ER
53if (!defined('APP_BENCHMARK')) {
54 define("APP_BENCHMARK", false);
55}
56
20b87346
ER
57if (APP_BENCHMARK) {
58 // always benchmark the scripts
59 include_once("Benchmark/Timer.php");
60 $bench = new Benchmark_Timer;
61 $bench->start();
62}
63
64include_once(APP_INC_PATH . "class.misc.php");
65
66if (isset($_GET)) {
67 $HTTP_POST_VARS = $_POST;
68 $HTTP_GET_VARS = $_GET;
69 $HTTP_SERVER_VARS = $_SERVER;
70 $HTTP_ENV_VARS = $_ENV;
71 $HTTP_POST_FILES = $_FILES;
72 // seems like PHP 4.1.0 didn't implement the $_SESSION auto-global...
73 if (isset($_SESSION)) {
74 $HTTP_SESSION_VARS = $_SESSION;
75 }
76 $HTTP_COOKIE_VARS = $_COOKIE;
77}
78
79// fix magic_quote_gpc'ed values (i wish i knew who is the person behind this)
80$HTTP_GET_VARS =& Misc::dispelMagicQuotes($HTTP_GET_VARS);
81$HTTP_POST_VARS =& Misc::dispelMagicQuotes($HTTP_POST_VARS);
55722cce 82$_REQUEST =& Misc::dispelMagicQuotes($_REQUEST);
20b87346
ER
83
84// handle the language preferences now
08437ed1 85include_once(APP_INC_PATH . "class.language.php");
20b87346
ER
86Language::setPreference();
87
88// set charset
89header("Content-Type: text/html; charset=" . APP_CHARSET);
90
91/* vim: set expandtab tabstop=4 shiftwidth=4: */
92?>
This page took 0.039335 seconds and 4 git commands to generate.