Project

General

Profile

1 4 ryan
<?php
2
3 57 stefan
// $Id$
4 4 ryan
5
/*
6
7
 Website Baker Project <http://www.websitebaker.org/>
8 399 Ruebenwurz
 Copyright (C) 2004-2007, Ryan Djurovich
9 4 ryan
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 395 Ruebenwurz
if(!defined('WB_URL')) {
27
	header('Location: ../index.php');
28
	exit(0);
29
}
30
31 4 ryan
?>
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 256 ryan
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
37 4 ryan
<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
</head>
42
<body>
43
44
<table cellpadding="0" cellspacing="0" border="0" align="center" class="main" width="750">
45
<tr>
46
	<td colspan="2" class="header" height="80">
47
		<a href="<?php echo WB_URL; ?>"><img src="<?php echo TEMPLATE_DIR; ?>/banner.jpg" border="0" width="750" height="80" alt="<?php page_title('', '[WEBSITE_TITLE]'); ?>" /></a>
48
	</td>
49
</tr>
50
<tr>
51
	<?php
52
	// Only show menu items if we are supposed to
53
	if(SHOW_MENU) {
54
	?>
55
	<td style="padding: 10px; background-color: #FFFFFF;" valign="top">
56
		<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" class="menu">
57
		<tr>
58
			<td class="border">
59
				<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" />
60
			</td>
61
		</tr>
62
		<tr>
63
			<td width="170">
64
				<?php page_menu(); ?>
65
			</td>
66
		</tr>
67
		<tr>
68
			<td class="border">
69
				<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" />
70
			</td>
71
		</tr>
72
		</table>
73
74
		<?php if(SHOW_SEARCH) { ?>
75 389 Ruebenwurz
		<form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="get">
76 4 ryan
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
77
				<tr>
78
					<td class="border">
79
						<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" />
80
					</td>
81
				</tr>
82
				<tr>
83
					<td class="login">
84
						<input type="text" name="string" />
85
					</td>
86
				</tr>
87
				<tr>
88
					<td class="login">
89
90
						<input type="submit" name="submit" value="<?php if(isset($TEXT['SUBMIT'])) { echo $TEXT['SEARCH']; } else { echo 'Search'; } ?>" />
91
					</td>
92
				</tr>
93
				<tr>
94
					<td class="border">
95
						<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" />
96
					</td>
97
				</tr>
98
			</table>
99
		</form>
100
		<?php } ?>
101
102
		<?php
103 241 stefan
		if(FRONTEND_LOGIN AND !$wb->is_authenticated()) {
104 4 ryan
		?>
105
		<form name="login" action="<?php echo LOGIN_URL; ?>" method="post">
106
107
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
108
			<tr>
109
				<td class="border">
110
					<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" />
111
				</td>
112
			</tr>
113
			<tr>
114
				<td class="login" style="text-transform: uppercase;">
115
					<b><?php echo $TEXT['LOGIN']; ?></b>
116
				</td>
117
			</tr>
118
			<tr>
119
				<td class="login" style="text-align: left;">
120
					<?php echo $TEXT['USERNAME']; ?>:
121
				</td>
122
			</tr>
123
			<tr>
124
				<td class="login">
125
					<input type="text" name="username" />
126
				</td>
127
			</tr>
128
			<tr>
129
				<td class="login" style="text-align: left;">
130
					<?php echo $TEXT['PASSWORD']; ?>:
131
				</td>
132
			</tr>
133
			<tr>
134
				<td class="login">
135
					<input type="password" name="password" />
136
				</td>
137
			</tr>
138
			<tr>
139
				<td class="login">
140
					<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
141
				</td>
142
			</tr>
143
			<tr>
144
				<td class="login">
145
					<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
146
					<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
147
						<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
148
					<?php } ?>
149
				</td>
150
			</tr>
151
			<tr>
152
				<td class="border">
153
					<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" />
154
				</td>
155
			</tr>
156
			</table>
157
158
		</form>
159
		<?php
160 241 stefan
		} elseif(FRONTEND_LOGIN AND $wb->is_authenticated()) {
161 4 ryan
		?>
162
		<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
163
164
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
165
			<tr>
166
				<td class="border">
167
					<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" />
168
				</td>
169
			</tr>
170
			<tr>
171
				<td class="login" style="text-transform: uppercase;">
172
					<b><?php echo $TEXT['LOGGED_IN']; ?></b>
173
				</td>
174
			</tr>
175
			<tr>
176
				<td class="login" style="padding-top: 15px; padding-bottom: 15px;">
177 241 stefan
					<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
178 4 ryan
				</td>
179
			</tr>
180
			<tr>
181
				<td class="login">
182
					<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
183
				</td>
184
			</tr>
185
			<tr>
186
				<td class="login">
187
					<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
188
				</td>
189
			</tr>
190
			<tr>
191
				<td class="border">
192
					<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" />
193
				</td>
194
			</tr>
195
			</table>
196
197
		</form>
198
		<?php
199
		}
200
		?>
201
	</td>
202
	<?php } ?>
203
	<td class="content" width="600" rowspan="2">
204
		<?php page_content(); ?>
205
	</td>
206
</tr>
207
<tr>
208
	<?php
209
	// Only show menu items if we are supposed to
210
	if(defined('SHOW_MENU') AND SHOW_MENU == true) {
211
	?>
212
	<td height="20" width="155" valign="bottom" class="powered_by">
213
		<a href="http://www.websitebaker.org/" target="_blank">
214
			<img src="<?php echo TEMPLATE_DIR; ?>/powered.jpg" border="0" alt="Powered By Website Baker" />
215
		</a>
216
	</td>
217
	<?php } ?>
218
</tr>
219
<tr>
220
	<td colspan="2" class="border">
221
		<img src="<?php echo TEMPLATE_DIR; ?>/footer.png" border="0" alt="" />
222
	</td>
223
</tr>
224
<tr>
225
	<td colspan="2" class="footer">
226
		<?php page_footer(); ?>
227
	</td>
228
</tr>
229
</table>
230
231
</body>
232
</html>