-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.php
29 lines (23 loc) · 1.12 KB
/
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
<?php
#basically this takes all the variables and settings from the config.php file, includes files needed and then manipulates the variables for use in the template (.tpl) file selected. No HTML is done in this file - please do this in a .tpl file.
include('config.php');
if($settings->first_run == 1){
header("Location: admin/settings.php");
exit;
}
include('lib/parsedown.php'); #convert markdown to pure HTML
include('lib/parsedownextra.php'); #extra functions for parsedown
include('lib/puppystats.php'); #PuppyStats
require 'lib/pass.php'; #css preprocessor
$site_title = $title ? $title : $default_title;
$site_description = $meta_desc ? $meta_desc.'' : '';
// Parsing the contents
$Parsedown = new ParsedownExtra();
$contents = $Parsedown->text($content);
// Themes default stylesheet (style.css) which get generated by Pass
$pass = new pass($site_template . '/style.txt');
$theme_stylesheet = '<link rel="stylesheet" href="'.$pass->name.'">';
// Including selected temeplate/theme's index.php to load the UI
$theme_index = $site_template.'/index.php';
include $theme_index;
?>