commit | author | age
|
9200ad
|
1 |
<?php |
T |
2 |
/* |
|
3 |
Copyright (c) 2007, Till Brehm, Falko Timme, projektfarm Gmbh |
|
4 |
All rights reserved. |
|
5 |
|
|
6 |
Redistribution and use in source and binary forms, with or without modification, |
|
7 |
are permitted provided that the following conditions are met: |
|
8 |
|
|
9 |
* Redistributions of source code must retain the above copyright notice, |
|
10 |
this list of conditions and the following disclaimer. |
|
11 |
* Redistributions in binary form must reproduce the above copyright notice, |
|
12 |
this list of conditions and the following disclaimer in the documentation |
|
13 |
and/or other materials provided with the distribution. |
|
14 |
* Neither the name of ISPConfig nor the names of its contributors |
|
15 |
may be used to endorse or promote products derived from this software without |
|
16 |
specific prior written permission. |
|
17 |
|
|
18 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
|
19 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
20 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
21 |
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
|
22 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
23 |
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
24 |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
|
25 |
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
26 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
|
27 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
28 |
*/ |
|
29 |
|
008770
|
30 |
//** Web-only |
O |
31 |
if( !empty($_SERVER['DOCUMENT_ROOT']) ) { |
9200ad
|
32 |
|
008770
|
33 |
Header("Pragma: no-cache"); |
O |
34 |
Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate"); |
|
35 |
Header("Content-Type: text/html"); |
|
36 |
|
|
37 |
ini_set('register_globals',0); |
|
38 |
} |
9200ad
|
39 |
|
T |
40 |
$conf["app_title"] = "ISPConfig"; |
|
41 |
$conf["app_version"] = "3.0.0"; |
54fb59
|
42 |
$conf["modules_available"] = "admin,mail,sites,monitor,client,dns"; |
T |
43 |
|
008770
|
44 |
//** Key paramaters |
O |
45 |
define('ISPC_APP_TITLE', 'ISPConfig'); |
|
46 |
$conf['app_title'] = 'ISPConfig'; |
|
47 |
define('ISPC_APP_VERSION', '3.0.0'); |
|
48 |
$conf['app_version'] = '3.0.0'; |
|
49 |
$conf['modules_available'] = 'admin,mail,sites,monitor,client,dns'; |
|
50 |
|
|
51 |
//** The main ROOT is the parent directory to this file, ie Interface/. NO trailing slashes. |
|
52 |
define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); |
|
53 |
define('ISPC_LIB_PATH', ISPC_ROOT_PATH.'/lib'); |
|
54 |
define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes'); |
|
55 |
define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web'); |
|
56 |
define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes'); |
|
57 |
|
|
58 |
define('ISPC_TEMP_PATH', ISPC_ROOT_PATH.'/temp'); |
|
59 |
define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache'); |
|
60 |
|
b5a23a
|
61 |
//** Interface settings |
T |
62 |
define('ISPC_INTERFACE_MODULES_ENABLED', 'mail,sites,dns'); |
|
63 |
|
008770
|
64 |
|
54fb59
|
65 |
/* |
T |
66 |
Server variables |
|
67 |
*/ |
|
68 |
|
b4c750
|
69 |
$conf["server_id"] = "{server_id}"; |
9200ad
|
70 |
|
T |
71 |
|
|
72 |
/* |
|
73 |
Database Settings |
|
74 |
*/ |
|
75 |
|
|
76 |
$conf["db_type"] = 'mysql'; |
|
77 |
$conf["db_host"] = '{mysql_server_host}'; |
|
78 |
$conf["db_database"] = '{mysql_server_database}'; |
|
79 |
$conf["db_user"] = '{mysql_server_ispconfig_user}'; |
|
80 |
$conf["db_password"] = '{mysql_server_ispconfig_password}'; |
|
81 |
|
|
82 |
|
|
83 |
/* |
|
84 |
Path Settings (Do not change!) |
|
85 |
*/ |
|
86 |
|
|
87 |
$conf["rootpath"] = substr(dirname(__FILE__),0,-4); |
|
88 |
$conf["fs_div"] = "/"; // File system divider, \\ on windows and / on linux and unix |
|
89 |
$conf["classpath"] = $conf["rootpath"].$conf["fs_div"]."lib".$conf["fs_div"]."classes"; |
|
90 |
$conf["temppath"] = $conf["rootpath"].$conf["fs_div"]."temp"; |
|
91 |
|
|
92 |
|
|
93 |
define("DIR_TRENNER",$conf["fs_div"]); |
|
94 |
define("SERVER_ROOT",$conf["rootpath"]); |
|
95 |
define("INCLUDE_ROOT",SERVER_ROOT.DIR_TRENNER."lib"); |
|
96 |
define("CLASSES_ROOT",INCLUDE_ROOT.DIR_TRENNER."classes"); |
|
97 |
|
|
98 |
define("DB_TYPE",$conf["db_type"]); |
|
99 |
define("DB_HOST",$conf["db_host"]); |
|
100 |
define("DB_DATABASE",$conf["db_database"]); |
|
101 |
define("DB_USER",$conf["db_user"]); |
|
102 |
define("DB_PASSWORD",$conf["db_password"]); |
|
103 |
|
|
104 |
/* |
ba747c
|
105 |
Logging |
T |
106 |
*/ |
|
107 |
|
|
108 |
$conf["log_file"] = $conf["rootpath"].$conf["fs_div"]."ispconfig.log"; |
3845f1
|
109 |
$conf["log_priority"] = 2; // 0 = Debug, 1 = Warning, 2 = Error |
ba747c
|
110 |
|
T |
111 |
/* |
9200ad
|
112 |
Themes |
T |
113 |
*/ |
|
114 |
|
|
115 |
$conf["theme"] = 'default'; |
|
116 |
$conf["html_content_encoding"] = 'text/html; charset=iso-8859-1'; |
|
117 |
$conf["logo"] = 'themes/default/images/mydnsconfig_logo.gif'; |
|
118 |
|
|
119 |
/* |
|
120 |
Default Language |
|
121 |
*/ |
|
122 |
|
|
123 |
$conf["language"] = 'en'; |
|
124 |
|
|
125 |
|
|
126 |
/* |
|
127 |
Auto Load Modules |
|
128 |
*/ |
|
129 |
|
|
130 |
$conf["start_db"] = true; |
|
131 |
$conf["start_session"] = true; |
|
132 |
|
|
133 |
/* |
54fb59
|
134 |
Constants |
9200ad
|
135 |
*/ |
T |
136 |
|
ba747c
|
137 |
define("LOGLEVEL_DEBUG",0); |
T |
138 |
define("LOGLEVEL_WARN",1); |
|
139 |
define("LOGLEVEL_ERROR",2); |
|
140 |
|
9200ad
|
141 |
?> |