"Fossies" - the Fresh Open Source Software Archive

Member "ispconfig3_install/install/tpl/config.inc.php.master" (8 Jun 2021, 6926 Bytes) of package /linux/privat/ISPConfig-3.2.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.inc.php.master": 3.2.4_vs_3.2.5.

    1 <?php
    2 /*
    3 Copyright (c) 2007 - 2013, Till Brehm, 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 
   30 //** Web-only
   31 if( !empty($_SERVER['DOCUMENT_ROOT']) ) {
   32 
   33 	Header("Pragma: no-cache");
   34 	Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
   35 	Header("Content-Type: text/html; charset=utf-8");
   36 
   37 	//** Set a few php.ini values
   38 	ini_set('register_globals',0);
   39 	ini_set('magic_quotes_gpc', 0);
   40 
   41 	if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_REQUEST['s']) || isset($_REQUEST['s_old']) || isset($_REQUEST['conf'])) {
   42 		die('Internal Error: var override attempt detected');
   43 		exit;
   44 	}
   45 }
   46 
   47 //** Set a few php.ini values
   48 if(isset($app)) unset($app);
   49 if(isset($conf)) unset($conf);
   50 
   51 
   52 //** SVN Revision
   53 $svn_revision = '$Revision$';
   54 $revision = str_replace(array('Revision:','$',' '), '', $svn_revision);
   55 
   56 //** Application
   57 define('ISPC_APP_TITLE', 'ISPConfig');
   58 define('ISPC_APP_VERSION', '3.2.5');
   59 define('DEVSYSTEM', 0);
   60 
   61 
   62 //** Database
   63 $conf['db_type'] = 'mysql';
   64 $conf['db_host'] = '{mysql_server_host}';
   65 $conf['db_port'] = '{mysql_server_port}';
   66 $conf['db_database'] = '{mysql_server_database}';
   67 $conf['db_user'] = '{mysql_server_ispconfig_user}';
   68 $conf['db_password'] = '{mysql_server_ispconfig_password}';
   69 $conf['db_charset'] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")
   70 $conf['db_new_link'] = false;
   71 $conf['db_client_flags'] = 0;
   72 
   73 define('DB_TYPE',$conf['db_type']);
   74 define('DB_HOST',$conf['db_host']);
   75 define('DB_PORT',$conf['db_port']);
   76 define('DB_DATABASE',$conf['db_database']);
   77 define('DB_USER',$conf['db_user']);
   78 define('DB_PASSWORD',$conf['db_password']);
   79 define('DB_CHARSET',$conf['db_charset']);
   80 
   81 
   82 //** Database settings for the master DB. This setting is only used in multiserver setups
   83 $conf['dbmaster_type']			= 'mysql';
   84 $conf['dbmaster_host']			= '{mysql_master_server_host}';
   85 $conf['dbmaster_port']			= '{mysql_master_server_port}';
   86 $conf['dbmaster_database']		= '{mysql_master_server_database}';
   87 $conf['dbmaster_user']			= '{mysql_master_server_ispconfig_user}';
   88 $conf['dbmaster_password']		= '{mysql_master_server_ispconfig_password}';
   89 $conf['dbmaster_new_link'] 		= false;
   90 $conf['dbmaster_client_flags'] 	= 0;
   91 
   92 
   93 //** Paths
   94 $conf['ispconfig_log_dir'] = '/var/log/ispconfig';
   95 define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); // Main ROOT is the parent directory to this file, ie interface/ or server/. NO trailing slashes.
   96 define('ISPC_LIB_PATH', ISPC_ROOT_PATH.'/lib');
   97 define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes');
   98 define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web');
   99 define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes');
  100 define('ISPC_WEB_TEMP_PATH', ISPC_WEB_PATH.'/temp'); // Path for downloads, accessible via browser
  101 define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache');
  102 define('ISPC_LOG_PATH', $conf['ispconfig_log_dir']);
  103 
  104 //** Paths (Do not change!)
  105 $conf['rootpath'] = substr(dirname(__FILE__),0,-4);
  106 $conf['fs_div'] = '/'; // File system separator, "\\" on Windows and "/" on Linux and UNIX
  107 $conf['classpath'] = $conf['rootpath'].$conf['fs_div'].'lib'.$conf['fs_div'].'classes';
  108 $conf['temppath'] = $conf['rootpath'].$conf['fs_div'].'temp';
  109 $conf['logpath'] = ISPC_LOG_PATH; // Actually just a copy of $conf['ispconfig_log_dir'], might be removed in a later version
  110 
  111 define('FS_DIV',$conf['fs_div']);
  112 define('SERVER_ROOT',$conf['rootpath']);
  113 define('INCLUDE_ROOT',SERVER_ROOT.FS_DIV.'lib');
  114 define('CLASSES_ROOT',INCLUDE_ROOT.FS_DIV.'classes');
  115 
  116 
  117 //** Server
  118 $conf['app_title'] = ISPC_APP_TITLE;
  119 $conf['app_version'] = ISPC_APP_VERSION;
  120 $conf['app_link'] = 'https://www.ispconfig.org/';
  121 $conf['modules_available'] = 'dashboard,admin,mail,sites,monitor,client,dns,help';
  122 $conf['server_id'] = '{server_id}';
  123 $conf['init_scripts'] = '/etc/init.d';
  124 
  125 
  126 //** Interface
  127 $conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools,help';
  128 
  129 //** Demo mode
  130 /* The demo mode is an option to restrict certain actions in the interface like
  131 *  changing the password of users with sys_userid < 3 etc. to be
  132 *  able to run the ISPConfig interface as online demo. It does not
  133 *  affect the server part. The demo mode should be always set to false
  134 *  on every normal installation
  135 */
  136 $conf['demo_mode'] = false;
  137 
  138 
  139 //** Logging
  140 $conf['log_file'] = $conf['ispconfig_log_dir'].$conf['fs_div'].'ispconfig.log';
  141 $conf['log_priority'] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
  142 
  143 
  144 //** Themes
  145 $conf['theme'] = '{theme}';
  146 $conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...
  147 $conf['logo'] = 'themes/default/images/header_logo.png';
  148 
  149 
  150 //** Default Language and Timezone
  151 $conf['language'] = '{language}';
  152 $conf['debug_language'] = false;
  153 $conf['language_file_import_enabled'] = {language_file_import_enabled}; // Bool value: true / false
  154 
  155 //* Complete timezone list: http://php.net/manual/en/timezones.php
  156 $conf['timezone'] = '{timezone}';
  157 
  158 
  159 //** Misc.
  160 $conf['interface_logout_url'] = ''; // example: http://www.domain.tld/
  161 
  162 
  163 //** Auto Load Modules
  164 $conf['start_db'] = true;
  165 $conf['start_session'] = true;
  166 
  167 //** Constants
  168 define('LOGLEVEL_DEBUG',0);
  169 define('LOGLEVEL_WARN',1);
  170 define('LOGLEVEL_ERROR',2);
  171 
  172 //** include a local config-file if there is one
  173 //** IMPORTANT!!!
  174 //** DO NOT MAKE A COPY OF THIS FILE AS LOCAL CONFIG-FILE
  175 //** USE A EMPTY FILE AND ONLY COPY THE SETTINGS IN IT, YOU NEED TO OVERRIDE
  176 if (is_file(dirname(__FILE__) . '/config.inc.local.php')) include_once 'config.inc.local.php';
  177 ?>