summaryrefslogtreecommitdiff
path: root/common/config.php.example
diff options
context:
space:
mode:
Diffstat (limited to 'common/config.php.example')
-rw-r--r--common/config.php.example34
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
+));
+
+?>