Location: PHPKode > projects > WaypointHR > waypointhr/conf/installation_template.php
<?php
/*  ================================================================================================
	WaypointHR
	www.waypointhr.com
	Copyright 2009 HR-Fundamentals ltd.
----------------------------------------------------------------------------------------------------
	This file is part of WaypointHR.
	
	WaypointHR is free software: you can redistribute it and/or modify it under the terms of the
	GNU General Public License as published by the Free Software Foundation, either version 3 of
	the License, or (at your option) any later version.
	
	WaypointHR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
	even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License along with WaypointHR.
	If not, see <http://www.gnu.org/licenses/>.
----------------------------------------------------------------------------------------------------
	CONFIGURATION CLASS
	$Revision: 532 $
	$LastChangedDate: 2009-07-20 02:10:15 +0100 (Mon, 20 Jul 2009) $
----------------------------------------------------------------------------------------------------
	IMPORTANT NOTE
	The installation_template.php file is copied to the installation_settings.php file by the web
	interface to the installation settings (within the options pages).
	Therefore, any changes made directly to the installation_settings.php will be LOST if the
	web interface is subsequently used to make changes to the settings. 
================================================================================================= */

class config_sys {
	var $database_config;
	
	function config_sys() {
		// Local and remote add-on configuration
		define('addons_local_dir','##addons_local_dir:/../waypointhr-addons##');
		define('addons_remote_enabled',##addons_remote_enabled:true##);		
		
		// Database configuration - written by the installation script
		$this->database_config['server']='##database_server:localhost##';
		$this->database_config['server_port']='##database_server_port:3306##';
		$this->database_config['username']='##database_username:waypointhr_admin##';
		
		// Consider storing the password in a separate text file outside the public
		// accessible directory structure (and using the getfilecontents() line below)
		// NOTE: If you do need to change this manually, change the installation_template.php file,
		//       not the installation_settings.php file, then rewrite the settings using the web
		//		 interface to the installation settings (within options), otherwise your changes
		//		 will disappear if you ever rewrite the settings manually.
		//		 (The web interface copies the '_template' file to become the active '_settings' file.)
		$this->database_config['password']='##database_password:admin_pass##';	// Permissable characters: A-Z, a-z, 0-9, !£%^&*#@[]?,.
		//$this->database_config['password']=file_get_contents('replace with the fully qualified path to your password text file');
		
		$this->database_config['schema']='##database_schema:waypointhr##';
		$this->database_config['table_prefix']='##database_table_prefix:whr_##';

		// Data Centre Edition - available under commercial licence
		define('dce_enabled',false);
		define('dce_local_dir','/dce');
		
		define('db_verified_build',##db_verified_build:0##);
	}
	
	function get_database_setting($setting_value) {
		if(array_key_exists($setting_value, $this->database_config)) {
			return $this->database_config[$setting_value];
		} else {
			return NULL;
		}
	}
}

?>
Return current item: WaypointHR