@@ -60,27 +60,27 @@ define('ISPC_APP_VERSION', '3.0.3');
6060
6161
6262//** Database
63- $conf[" db_type" ] = 'mysql';
64- $conf[" db_host" ] = '{mysql_server_host}';
65- $conf[" db_database" ] = '{mysql_server_database}';
66- $conf[" db_user" ] = '{mysql_server_ispconfig_user}';
67- $conf[" db_password" ] = '{mysql_server_ispconfig_password}';
68- $conf[" db_charset" ] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")
63+ $conf[' db_type' ] = 'mysql';
64+ $conf[' db_host' ] = '{mysql_server_host}';
65+ $conf[' db_database' ] = '{mysql_server_database}';
66+ $conf[' db_user' ] = '{mysql_server_ispconfig_user}';
67+ $conf[' db_password' ] = '{mysql_server_ispconfig_password}';
68+ $conf[' db_charset' ] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")
6969
70- define(" DB_TYPE" ,$conf[" db_type" ]);
71- define(" DB_HOST" ,$conf[" db_host" ]);
72- define(" DB_DATABASE" ,$conf[" db_database" ]);
73- define(" DB_USER" ,$conf[" db_user" ]);
74- define(" DB_PASSWORD" ,$conf[" db_password" ]);
75- define(" DB_CHARSET" ,$conf[" db_charset" ]);
70+ define(' DB_TYPE' ,$conf[' db_type' ]);
71+ define(' DB_HOST' ,$conf[' db_host' ]);
72+ define(' DB_DATABASE' ,$conf[' db_database' ]);
73+ define(' DB_USER' ,$conf[' db_user' ]);
74+ define(' DB_PASSWORD' ,$conf[' db_password' ]);
75+ define(' DB_CHARSET' ,$conf[' db_charset' ]);
7676
7777
7878//** Database settings for the master DB. This setting is only used in multiserver setups
79- $conf[" dbmaster_type" ] = 'mysql';
80- $conf[" dbmaster_host" ] = '{mysql_master_server_host}';
81- $conf[" dbmaster_database" ] = '{mysql_master_server_database}';
82- $conf[" dbmaster_user" ] = '{mysql_master_server_ispconfig_user}';
83- $conf[" dbmaster_password" ] = '{mysql_master_server_ispconfig_password}';
79+ $conf[' dbmaster_type' ] = 'mysql';
80+ $conf[' dbmaster_host' ] = '{mysql_master_server_host}';
81+ $conf[' dbmaster_database' ] = '{mysql_master_server_database}';
82+ $conf[' dbmaster_user' ] = '{mysql_master_server_ispconfig_user}';
83+ $conf[' dbmaster_password' ] = '{mysql_master_server_ispconfig_password}';
8484
8585
8686//** Paths
@@ -91,27 +91,27 @@ define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web');
9191define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes');
9292define('ISPC_WEB_TEMP_PATH', ISPC_WEB_PATH.'/temp'); // Path for downloads, accessible via browser
9393define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache');
94- define('ISPC_LOG_PATH', '/var/log/ispconfig' );
94+ define('ISPC_LOG_PATH', $conf['ispconfig_log_dir'] );
9595
9696//** Paths (Do not change!)
97- $conf[" rootpath" ] = substr(dirname(__FILE__),0,-4);
98- $conf[" fs_div" ] = "/" ; // File system separator, "\\" on Windows and "/" " on Linux and UNIX
99- $conf[" classpath" ] = $conf[" rootpath" ].$conf[" fs_div"]." lib" .$conf[" fs_div"]." classes" ;
100- $conf[" temppath" ] = $conf[" rootpath" ].$conf[" fs_div"]." temp" ;
101- $conf[" logpath" ] = ISPC_LOG_PATH;
97+ $conf[' rootpath' ] = substr(dirname(__FILE__),0,-4);
98+ $conf[' fs_div' ] = '/' ; // File system separator, "\\" on Windows and "/" on Linux and UNIX
99+ $conf[' classpath' ] = $conf[' rootpath' ].$conf[' fs_div'].' lib' .$conf[' fs_div'].' classes' ;
100+ $conf[' temppath' ] = $conf[' rootpath' ].$conf[' fs_div'].' temp' ;
101+ $conf[' logpath' ] = ISPC_LOG_PATH; // Actually just a copy of $conf['ispconfig_log_dir'], might be removed in a later version
102102
103- define(" FS_DIV" ,$conf[" fs_div" ]);
104- define(" SERVER_ROOT" ,$conf[" rootpath" ]);
105- define(" INCLUDE_ROOT" ,SERVER_ROOT.FS_DIV." lib" );
106- define(" CLASSES_ROOT" ,INCLUDE_ROOT.FS_DIV." classes" );
103+ define(' FS_DIV' ,$conf[' fs_div' ]);
104+ define(' SERVER_ROOT' ,$conf[' rootpath' ]);
105+ define(' INCLUDE_ROOT' ,SERVER_ROOT.FS_DIV.' lib' );
106+ define(' CLASSES_ROOT' ,INCLUDE_ROOT.FS_DIV.' classes' );
107107
108108
109109//** Server
110110$conf['app_title'] = ISPC_APP_TITLE;
111111$conf['app_version'] = ISPC_APP_VERSION;
112112$conf['app_link'] = 'http://www.ispconfig.org/';
113113$conf['modules_available'] = 'dashboard,admin,mail,sites,monitor,client,dns,help';
114- $conf[" server_id" ] = " {server_id}" ;
114+ $conf[' server_id' ] = ' {server_id}' ;
115115
116116
117117//** Interface
@@ -128,38 +128,38 @@ $conf['demo_mode'] = false;
128128
129129
130130//** Logging
131- $conf[" log_file" ] = $conf["logpath" ].$conf[" fs_div"]." ispconfig.log" ;
132- $conf[" log_priority" ] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
131+ $conf[' log_file' ] = $conf['ispconfig_log_dir' ].$conf[' fs_div'].' ispconfig.log' ;
132+ $conf[' log_priority' ] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
133133
134134
135135//** Allow software package installations
136136$conf['software_updates_enabled'] = false;
137137
138138
139139//** Themes
140- $conf[" theme" ] = 'default';
141- $conf[" html_content_encoding" ] = 'utf-8'; // example: utf-8, iso-8859-1, ...
142- $conf[" logo" ] = 'themes/default/images/ispc_logo.png';
140+ $conf[' theme' ] = 'default';
141+ $conf[' html_content_encoding' ] = 'utf-8'; // example: utf-8, iso-8859-1, ...
142+ $conf[' logo' ] = 'themes/default/images/ispc_logo.png';
143143
144144
145145//** Default Language
146- $conf[" language" ] = '{language}';
147- $conf[" debug_language" ] = false;
146+ $conf[' language' ] = '{language}';
147+ $conf[' debug_language' ] = false;
148148
149149
150150//** Misc.
151- $conf[" interface_logout_url" ] = "" ; // example: http://www.domain.tld/
151+ $conf[' interface_logout_url' ] = '' ; // example: http://www.domain.tld/
152152
153153
154154//** Auto Load Modules
155- $conf[" start_db" ] = true;
156- $conf[" start_session" ] = true;
155+ $conf[' start_db' ] = true;
156+ $conf[' start_session' ] = true;
157157
158158
159159//** Constants
160- define(" LOGLEVEL_DEBUG" ,0);
161- define(" LOGLEVEL_WARN" ,1);
162- define(" LOGLEVEL_ERROR" ,2);
160+ define(' LOGLEVEL_DEBUG' ,0);
161+ define(' LOGLEVEL_WARN' ,1);
162+ define(' LOGLEVEL_ERROR' ,2);
163163
164164//** include a local config-file if there is one
165165//** IMPORTANT!!!
0 commit comments