commit | author | age
|
6c9b8b
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
Copyright (c) 2007, Till Brehm, projektfarm Gmbh |
|
5 |
All rights reserved. |
|
6 |
|
|
7 |
Redistribution and use in source and binary forms, with or without modification, |
|
8 |
are permitted provided that the following conditions are met: |
|
9 |
|
|
10 |
* Redistributions of source code must retain the above copyright notice, |
|
11 |
this list of conditions and the following disclaimer. |
|
12 |
* Redistributions in binary form must reproduce the above copyright notice, |
|
13 |
this list of conditions and the following disclaimer in the documentation |
|
14 |
and/or other materials provided with the distribution. |
|
15 |
* Neither the name of ISPConfig nor the names of its contributors |
|
16 |
may be used to endorse or promote products derived from this software without |
|
17 |
specific prior written permission. |
|
18 |
|
|
19 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
|
20 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
21 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
22 |
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
|
23 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|
24 |
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
25 |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
|
26 |
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
27 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
|
28 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
29 |
*/ |
|
30 |
|
|
31 |
//** Web-only |
|
32 |
if( !empty($_SERVER['DOCUMENT_ROOT']) ) { |
|
33 |
|
7fe908
|
34 |
header("Pragma: no-cache"); |
MC |
35 |
header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate"); |
|
36 |
header("Content-Type: text/html; charset=utf-8"); |
6c9b8b
|
37 |
|
7fe908
|
38 |
ini_set('register_globals', 0); |
6c9b8b
|
39 |
} |
T |
40 |
|
|
41 |
//** SVN Revision |
|
42 |
$svn_revision = '$Revision: 1525 $'; |
7fe908
|
43 |
$revision = str_replace(array('Revision:', '$', ' '), '', $svn_revision); |
6c9b8b
|
44 |
|
T |
45 |
//** Application |
|
46 |
define('ISPC_APP_TITLE', 'ISPConfig'); |
ba5d83
|
47 |
define('ISPC_APP_VERSION', '3.1dev'); |
8cf78b
|
48 |
define('DEVSYSTEM', 0); |
6c9b8b
|
49 |
|
T |
50 |
|
|
51 |
//** Database |
|
52 |
$conf['db_type'] = 'mysql'; |
|
53 |
$conf['db_host'] = 'localhost'; |
82e9b9
|
54 |
$conf['db_port'] = 3306; |
c3d8a8
|
55 |
$conf['db_database'] = 'ispconfig3_305'; |
6c9b8b
|
56 |
$conf['db_user'] = 'root'; |
T |
57 |
$conf['db_password'] = ''; |
|
58 |
$conf['db_charset'] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1") |
c84a6d
|
59 |
$conf['db_new_link'] = false; |
T |
60 |
$conf['db_client_flags'] = 0; |
6c9b8b
|
61 |
|
7fe908
|
62 |
define('DB_TYPE', $conf['db_type']); |
MC |
63 |
define('DB_HOST', $conf['db_host']); |
82e9b9
|
64 |
define('DB_PORT', $conf['db_port']); |
7fe908
|
65 |
define('DB_DATABASE', $conf['db_database']); |
MC |
66 |
define('DB_USER', $conf['db_user']); |
|
67 |
define('DB_PASSWORD', $conf['db_password']); |
|
68 |
define('DB_CHARSET', $conf['db_charset']); |
6c9b8b
|
69 |
|
T |
70 |
|
|
71 |
//** Database settings for the master DB. This setting is only used in multiserver setups |
7fe908
|
72 |
$conf['dbmaster_type'] = 'mysql'; |
MC |
73 |
$conf['dbmaster_host'] = '{mysql_master_server_host}'; |
82e9b9
|
74 |
$conf['dbmaster_port'] = '{mysql_master_server_port}'; |
7fe908
|
75 |
$conf['dbmaster_database'] = '{mysql_master_server_database}'; |
MC |
76 |
$conf['dbmaster_user'] = '{mysql_master_server_ispconfig_user}'; |
|
77 |
$conf['dbmaster_password'] = '{mysql_master_server_ispconfig_password}'; |
|
78 |
$conf['dbmaster_new_link'] = false; |
c84a6d
|
79 |
$conf['dbmaster_client_flags'] = 0; |
6c9b8b
|
80 |
|
T |
81 |
|
|
82 |
//** Paths |
|
83 |
$conf['ispconfig_log_dir'] = '/var/log/ispconfig'; |
|
84 |
define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); // The main ROOT is the parent directory to this file, ie Interface/. NO trailing slashes. |
|
85 |
define('ISPC_LIB_PATH', ISPC_ROOT_PATH.'/lib'); |
|
86 |
define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes'); |
|
87 |
define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web'); |
|
88 |
define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes'); |
|
89 |
define('ISPC_WEB_TEMP_PATH', ISPC_WEB_PATH.'/temp'); // Path for downloads, accessible via browser |
|
90 |
define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache'); |
|
91 |
|
|
92 |
//** Paths (Do not change!) |
7fe908
|
93 |
$conf['rootpath'] = substr(dirname(__FILE__), 0, -4); |
6c9b8b
|
94 |
$conf['fs_div'] = '/'; // File system separator (divider), "\\" on Windows and "/" on Linux and UNIX |
T |
95 |
$conf['classpath'] = $conf['rootpath'].$conf['fs_div'].'lib'.$conf['fs_div'].'classes'; |
|
96 |
$conf['temppath'] = $conf['rootpath'].$conf['fs_div'].'temp'; |
|
97 |
|
7fe908
|
98 |
define('FS_DIV', $conf['fs_div']); |
MC |
99 |
define('SERVER_ROOT', $conf['rootpath']); |
|
100 |
define('INCLUDE_ROOT', SERVER_ROOT.FS_DIV.'lib'); |
|
101 |
define('CLASSES_ROOT', INCLUDE_ROOT.FS_DIV.'classes'); |
6c9b8b
|
102 |
|
T |
103 |
|
|
104 |
//** Server |
|
105 |
$conf['app_title'] = ISPC_APP_TITLE; |
|
106 |
$conf['app_version'] = ISPC_APP_VERSION; |
|
107 |
$conf['app_link'] = 'http://www.howtoforge.com/forums/showthread.php?t=26988'; |
|
108 |
$conf['modules_available'] = 'admin,mail,sites,monitor,client,dns,help'; |
|
109 |
$conf['server_id'] = '1'; |
|
110 |
|
|
111 |
|
|
112 |
//** Interface |
|
113 |
$conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools'; |
|
114 |
|
|
115 |
//** Demo mode |
7fe908
|
116 |
/* The demo mode is an option to restrict certain actions in the interface like |
MC |
117 |
* changing the password of users with sys_userid < 3 etc. to be |
6c9b8b
|
118 |
* able to run the ISPConfig interface as online demo. It does not |
T |
119 |
* affect the server part. The demo mode should be always set to false |
|
120 |
* on every normal installation |
|
121 |
*/ |
|
122 |
$conf['demo_mode'] = false; |
|
123 |
|
|
124 |
|
|
125 |
//** Logging |
|
126 |
$conf['log_file'] = $conf['ispconfig_log_dir'].'/ispconfig.log'; |
|
127 |
$conf['log_priority'] = 0; // 0 = Debug, 1 = Warning, 2 = Error |
|
128 |
|
|
129 |
|
|
130 |
//** Allow software package installations |
|
131 |
$conf['software_updates_enabled'] = false; |
|
132 |
|
|
133 |
|
|
134 |
//** Themes |
|
135 |
$conf['theme'] = 'default'; |
|
136 |
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ... |
02bf99
|
137 |
$conf['logo'] = 'themes/default/images/header_logo.png'; |
6c9b8b
|
138 |
|
T |
139 |
//** Templates |
|
140 |
$conf['templates'] = '/usr/local/ispconfig/server/conf'; |
|
141 |
|
|
142 |
//** Default Language |
|
143 |
$conf['language'] = 'en'; |
|
144 |
$conf['debug_language'] = false; |
ccbf14
|
145 |
$conf['language_file_import_enabled'] = true; // Bool value: true / false |
6c9b8b
|
146 |
|
T |
147 |
//** Default Country |
|
148 |
$conf['country'] = 'DE'; |
|
149 |
|
|
150 |
|
|
151 |
//** Misc. |
|
152 |
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/ |
|
153 |
|
|
154 |
|
|
155 |
//** Auto Load Modules |
|
156 |
$conf['start_db'] = true; |
|
157 |
$conf['start_session'] = true; |
|
158 |
|
|
159 |
|
|
160 |
//** Constants |
7fe908
|
161 |
define('LOGLEVEL_DEBUG', 0); |
MC |
162 |
define('LOGLEVEL_WARN', 1); |
|
163 |
define('LOGLEVEL_ERROR', 2); |
6c9b8b
|
164 |
|
T |
165 |
?> |