summaryrefslogtreecommitdiff
path: root/common/config_cls.php
diff options
context:
space:
mode:
authorKyle McFarland <tfkyle@gmail.com>2018-01-31 00:51:07 -0600
committerKyle McFarland <tfkyle@gmail.com>2018-01-31 00:51:07 -0600
commit61d1aa04d8d44b17bfe6dace90088669fc6c3df8 (patch)
tree7ede15c880e4c41a18cded46fe6d03fb2dc4543b /common/config_cls.php
downloadmcoop-master.zip
mcoop-master.tar.gz
mcoop-master.tar.bz2
Initial importHEADmaster
* Registration system's almost done * Just part way through implementing tasks So not much done yet, but it's a start.
Diffstat (limited to 'common/config_cls.php')
-rw-r--r--common/config_cls.php26
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;
+ }
+}
+
+?>