-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathignition.sample.php
More file actions
41 lines (32 loc) · 1.36 KB
/
ignition.sample.php
File metadata and controls
41 lines (32 loc) · 1.36 KB
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
35
36
37
38
39
40
41
<?php
error_reporting(E_ERROR | E_PARSE);
define("IGN_TITLE", "An Ignition Blog");
define("IGN_SUBTITLE", "A flat-file blogging system");
define("IGN_TIMEZONE", "America/Chicago");
define("IGN_URL", "http://localhost/ignition/");
define("IGN_PATH", "/home/jacob/www/ignition/");
define("LANG", "en");
define("USER_NAME", "Alice");
define("USER_EMAIL", "alice@example.com");
define("USER_LOCATION", "The Internet");
/* MODULE: Email */
define("SMTP_SERVER", "mail.bob.com");
define("SMTP_PORT", 465);
define("SMTP_USER", "bob");
define("SMTP_PASS", "bobandalice");
define("SMTP_FROM", "alice@bob.com");
date_default_timezone_set(IGN_TIMEZONE);
require_once(IGN_PATH."inc/lang/".LANG.".php");
foreach (glob(IGN_PATH."modules/_*.php") as $includes) require_once $includes;
foreach (glob(IGN_PATH."modules/*.php") as $includes) require_once $includes;
foreach (glob(IGN_PATH."plugins/*.php") as $includes) require_once $includes;
ign_action_run("init");
require_once(IGN_PATH."lib/smarty/Smarty.class.php");
$smarty = new Smarty;
$smarty->left_delimiter = '{{';
$smarty->right_delimiter = '}}';
$smarty->setTemplateDir(IGN_PATH."inc/templates/");
$smarty->setCompileDir(IGN_PATH."inc/templates_c/");
$smarty->assign("headerCode", ign_action_run("display-header"));
$smarty->assign("footerCode", ign_action_run("display-footer"));
require_once(IGN_PATH."lib/Parsedown/Parsedown.php");