-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmpl.dev.php
39 lines (28 loc) · 1.08 KB
/
smpl.dev.php
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
<?php
/*------------------------------------------------------------------------------
SMPL Version: 0.1.0
Issue Date: August 1, 2013
Copyright (c): 2013 Gowon Patterson, Gowon Designs
License: This program is distributed under the terms of the
GNU General Public License v3
<http://www.gnu.org/licenses/gpl-3.0.html>
------------------------------------------------------------------------------*/
Debug::Set(Debug::DEBUG_ON, Debug::STRICT_OFF, Debug::VERBOSE_OFF, Debug::LOGGING_OFF, __DIR__);
IncludeFromFolder("classes/");
// Include all of the classes located in the classes/ folder
function IncludeFromFolder($folder)
{
foreach (glob("{$folder}*.php") as $filename)
require_once($filename);
}
function __autoload($class_name)
{
include_once('classes/Class.'.$class_name.'.php');
}
//////////////////////////////////////////////////////////////
// Always update the database, un/publishing content based on the current date
Security::EnforceHttps();
Security::Authenticate();
Content::Initialize();
Content::Hook();
?>