blob: 14cb84b3db3e60b0c4c2051f9524e7d931c94ce5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
));
?>
|