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