diff options
author | Kyle McFarland <tfkyle@gmail.com> | 2018-01-31 00:51:07 -0600 |
---|---|---|
committer | Kyle McFarland <tfkyle@gmail.com> | 2018-01-31 00:51:07 -0600 |
commit | 61d1aa04d8d44b17bfe6dace90088669fc6c3df8 (patch) | |
tree | 7ede15c880e4c41a18cded46fe6d03fb2dc4543b /common/config.php.example | |
download | mcoop-master.zip mcoop-master.tar.gz mcoop-master.tar.bz2 |
* 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.php.example')
-rw-r--r-- | common/config.php.example | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/common/config.php.example b/common/config.php.example new file mode 100644 index 0000000..14cb84b --- /dev/null +++ b/common/config.php.example @@ -0,0 +1,34 @@ +<?php +namespace mcoop; +/* Copy this to config.php and edit the $config declaraction below + appropriately */ +require_once("config_cls.php"); +require_once("db.php"); +require_once("db_classes.php"); +require_once("vendor/autoload.php"); + +$config = new Config( + "mysql:host=localhost;dbname=mcoop", + "[username]", + "[password]", + "[recaptcha_site_key]", + "[recaptcha_secret_key]", + "Email Name <email@address>", + "[http://mcoop.example.com/]", + "[Site Name]" +); + +$db = new Database($config); + +if (!isset($logout)) + $logout = false; + +$sess_info = new SessionInfo($db, $logout); + +$twig_loader = new \Twig_Loader_Filesystem("./tmpl/"); +$twig = new \Twig_Environment($twig_loader, array( + "cache" => "./cache/", + "auto_reload" => true +)); + +?> |