Project

General

Profile

1
<?php
2

    
3
// $Id: index.php 440 2007-03-12 14:25:39Z Ruebenwurzel $
4

    
5
/*
6

    
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2007, Ryan Djurovich
9

    
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

    
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

    
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

    
24
*/
25

    
26
if(!defined('WB_URL')) {
27
	header('Location: ../index.php');
28
	exit(0);
29
}
30

    
31
?>
32
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
33
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
34
<head>
35
<title><?php page_title(); ?></title>
36
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
37
<meta name="description" content="<?php page_description(); ?>" />
38
<meta name="keywords" content="<?php page_keywords(); ?>" />
39
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
40
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" />
41
<?php page_css(); ?>
42
<?php page_javascript(); ?>
43
</head>
44
<body>
45

    
46
<table cellpadding="5" cellspacing="0" border="0" width="750" align="center">
47
<tr>
48
	<td colspan="2" class="header">
49
		<?php page_title('','[WEBSITE_TITLE]'); ?>
50
	</td>
51
</tr>
52
<tr>
53
	<td colspan="2" class="footer">
54
		&nbsp;
55
	</td>
56
</tr>
57
<tr>
58
	<td class="menu">
59
		<?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?>	
60
			Menu: <br />
61
			<?php page_menu(); ?>
62
		<?php } ?>
63
		
64
		<?php if(SHOW_SEARCH) { /* Only show search box if search is enabled */ ?>
65
			<br />
66
			Search: <br />
67
			<form name="search" action="<?php echo WB_URL; ?>/search/index<?php echo PAGE_EXTENSION; ?>" method="get">
68
				<input type="text" name="string" style="width: 100%;" />
69
				<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" style="width: 100%;" />
70
			</form>
71
		<?php } ?>
72
		
73
		<br />
74
		<a href="http://www.websitebaker.org" target="_blank">Powered by <br /> Website Baker</a>
75
	</td>
76
	<td class="content">
77
		<?php page_content(); ?>
78
	</td>
79
</tr>
80
<tr>
81
	<td colspan="2" class="footer">
82
		<?php page_footer(); ?>
83
	</td>
84
</tr>
85
</table>
86

    
87
</body>
88
</html>
(1-1/4)