/
template.php
60 lines (39 loc) · 1.56 KB
/
template.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
// This is the script that give the file name without extension .php
// and pass it to others.
// CmsForNerd
// Idea from drupal and xampp and some codes from them
// License GNU Public License V2
// Harisfazillah Jamel v 1.1 7 Feb 2006 linuxmalaysia @ gmail dot com
// Harisfazillah Jamel v 1.2 18 November 2007 linuxmalaysia @ gmail dot com
// For http://cmsfornerd.perempuanmelayu.info/
// http://cmsfornerd.harisfazillah.info/
// For small site without database just pure php html xml code
// Remember all page copy this and please check the local
// theme or lang overwrite
// The only thing need to change is the Title
// The contents of the page will be in contents/
// and with name ???-body.inc
ob_start("ob_gzhandler");
$CONTENT['title']="Template Page For CmsForNerd";
$CONTENT['author']="Wanita";
$CONTENT['description']="This is a template page for CmsForNerd. A Content Management Software like no others.";
$CONTENT['keywords']="CmsForNerd, CMS, PHP, CSS, Malaysia, HTML";
// Ini untuk kalau masukkan ikut web browser
//$CONTENT['data']=basename($_SERVER['QUERY_STRING']);
//We read the script name
$CONTENT['data']=basename($_SERVER['SCRIPT_NAME']);
$DATAFILE = explode(".",$CONTENT['data']);
// Just in case
if (empty($CONTENT['data'])) {
$CONTENT['data']="empty";
}
include("includes/global-control.inc.php");
include("includes/common.inc.php");
// Define all the function needed call from theme
include("themes/$THEMENAME/pager.php");
//function define in theme diretory theme.php
//to change theme.php for page layout
pager();
ob_end_flush();
?>