forked from dignajar/nibbleblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (28 loc) · 766 Bytes
/
index.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
<?php
/*
* Nibbleblog -
* http://www.nibbleblog.com
* Author Diego Najar
* All Nibbleblog code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/
// Check installation
if( !file_exists('content/private') )
{
header('Location:install.php');
exit('<a href="./install.php">click to install Nibbleblog</a>');
}
// Boot
require('admin/boot/blog.bit');
// Plugins
foreach($plugins as $plugin)
$plugin->boot();
// Theme init.bit
if(file_exists(THEME_ROOT.'init.bit'))
include(THEME_ROOT.'init.bit');
// Load the controller if set
if(file_exists(THEME_CONTROLLERS.$layout['controller']))
require(THEME_CONTROLLERS.$layout['controller']);
// Load the template and view
require(THEME_TEMPLATES.$layout['template']);
?>