<?php
/**
 * Module object file
 * @author Lauri Lüüs <mad@webpoint.ee>
 * @version $Id: InitConfig.php 9 2005-05-26 16:06:47Z madest $
 * @package AccountManager
 * @filesource
 */
 
/**
 * Configuration object definition
 * @author Lauri Lüüs <mad@webpoint.ee>
 * @version $Id: InitConfig.php 9 2005-05-26 16:06:47Z madest $
 * @package AccountManager
 */
class InitConfig extends AccountManager 
{
	/**
	 * Sql settings
	 * @var array;
	 */
	var $sql;
	
	/**
	 * Array of manager admin accounts
	 * @var array;
	 */
	var $logins;
	
	/**
	 * Array of manager specific settings
	 * @var array;
	 */	
	var $manager;
	
	/**
	 * Admin specific settings
	 * @var array;
	 */	
	var $user;
	
	/**
	 * User specific settings
	 * @var array;
	 */	
	var $admin;
	
	/**
	 * Init configuration object
	 */
	function InitConfig()
	{
		/**
		 * Include configuration file
		 */
		require('classes/configuration.php');	//[JOJO]
		
		if(isset($login))
		{
			$this->logins = $login;
		}
		
		// All from manager to Config
		//foreach ($manager as $key => $val)
		//{
			//$this->$key = $val;
		//}
		
		/**
		 * Sql settings
		 */
		$this->sql = $sql;
		
		/**
		 * manager settings
		 */
		$this->manager = $manager;
		
		/**
		 * Admin settings
		 */
		$this->admin = $admin;
		
		/**
		 * User settings
		 */
		$this->user = $user;		
	}
}
?>