-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.php
executable file
·43 lines (37 loc) · 1.1 KB
/
sitemap.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
<?php
require ( 'admin/coreclass.php' );
$db = new database;
$x = new online_tracker;
$x->tracker();
$gerger = new gerger_timer();
$gerger->start();
$gerger->setprecision(4);
$sql = " select * from other_site_content where status='Published' and title='sitemap' order by created desc ";
if (!($result = $db->query($sql))) {
die('Error:'.$db->error() );
}
$about = array();
while( $about[] = $db->fetcharray() );
$db->freeresult();
$title = $about[0]->title;
$body = $about[0]->body;
/*
* Get the default stylesheets
*/
include( 'admin/template.configuration.php' );
$stylesheet = ' themes/'.$default_template_name.'/'.$default_template_stylesheet;
$db->close();
$gerger->stop();
$pagegenerated = $gerger->display();
// Generate the page now
$tpl = new template_parser( 'themes/templates/sitemap.tpl.php' );
$tags = array(
'{TITLE}' => $title,
'{BODY}' => $body,
'{PAGE_GENERATED}' => ' '.$pagegenerated,
'{FOOTER}' => 'themes/templates/footer.tpl.php' ,
'{STYLESHEET}' => $stylesheet
);
$tpl->parse_template( $tags );
print $tpl->display();
?>