-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
44 lines (32 loc) · 839 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
38
39
40
41
42
43
44
<?php
include_once('config.php');
if (!file_exists('cache/caches/site_root.html')) {
ob_start();
include_once('site_root.php');
ob_end_clean();
}
if ($GLOBALS['use_cache'] == true) {
include_once('cache/begin_caching.php');
}
if (is_numeric($_SERVER['QUERY_STRING'])) {
include_once('themes/'.$theme.'/top.php');
more_posts();
} elseif ($_SERVER['QUERY_STRING']) {
ob_start();
single_post();
$guts = ob_get_contents();
ob_end_clean();
include_once('themes/'.$theme.'/top.php');
echo $guts;
if($_SERVER['QUERY_STRING'] == 'archive') {
include_once('archive.php');
}
} else {
include_once('themes/'.$theme.'/top.php');
main_page();
}
include_once('themes/'.$theme.'/bottom.php');
if ($GLOBALS['use_cache'] == true) {
include_once('cache/end_caching.php');
}
?>