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