diff options
Diffstat (limited to 'common/config_cls.php')
| -rw-r--r-- | common/config_cls.php | 26 | 
1 files changed, 26 insertions, 0 deletions
diff --git a/common/config_cls.php b/common/config_cls.php new file mode 100644 index 0000000..b4174be --- /dev/null +++ b/common/config_cls.php @@ -0,0 +1,26 @@ +<?php +namespace mcoop; + +class Config { +	public $pdo_connstring = null; +	public $db_username = null; +	public $db_password = null; +	public $recaptcha_sitekey = null; +	public $recaptcha_secret = null; +	public $email_from_address = null; +	public $webapp_base_uri = null; +	public $website_name = null; + +	function __construct($pdo_connstring, $db_uname, $db_passwd, $recaptcha_sitekey, $recaptcha_sec, $email_from_addr, $webapp_base_uri, $website_name) { +		$this->pdo_connstring = $pdo_connstring; +		$this->db_username = $db_uname; +		$this->db_password = $db_passwd; +		$this->recaptcha_sitekey = $recaptcha_sitekey; +		$this->recaptcha_secret = $recaptcha_sec; +		$this->email_from_address = $email_from_addr; +		$this->webapp_base_uri = $webapp_base_uri; +		$this->website_name = $website_name; +	} +} + +?>  | 
