1 |
4
|
ryan
|
<?php
|
2 |
|
|
|
3 |
57
|
stefan
|
// $Id$
|
4 |
4
|
ryan
|
|
5 |
|
|
/*
|
6 |
|
|
|
7 |
|
|
Website Baker Project <http://www.websitebaker.org/>
|
8 |
519
|
Ruebenwurz
|
Copyright (C) 2004-2008, 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 |
458
|
doc
|
<?php
|
42 |
691
|
doc
|
// this allows to include the optional module files (frontend.css, frontend.js) into the head section
|
43 |
458
|
doc
|
if(function_exists('register_frontend_modfiles')) {
|
44 |
|
|
register_frontend_modfiles('css');
|
45 |
|
|
register_frontend_modfiles('js');
|
46 |
|
|
} ?>
|
47 |
691
|
doc
|
<?php
|
48 |
|
|
// this allows to add custom information to the head section of your template (WB-->Settings-->Website Header)
|
49 |
|
|
echo WEBSITE_HEADER;
|
50 |
|
|
?>
|
51 |
4
|
ryan
|
</head>
|
52 |
|
|
<body>
|
53 |
|
|
|
54 |
|
|
<div class="main">
|
55 |
|
|
|
56 |
|
|
<div class="banner">
|
57 |
|
|
<a href="<?php echo WB_URL; ?>/" target="_top"><?php echo WEBSITE_TITLE; ?></a>
|
58 |
|
|
<font color="#D0D0D0">| <?php echo PAGE_TITLE; ?></font>
|
59 |
|
|
</div>
|
60 |
|
|
|
61 |
|
|
<div class="search_box">
|
62 |
|
|
<?php if(SHOW_SEARCH) { ?>
|
63 |
540
|
Ruebenwurz
|
<form name="search" action="<?php echo WB_URL.'/search/index.php'; ?>" method="get">
|
64 |
4
|
ryan
|
<input type="text" name="string" class="search_string" />
|
65 |
440
|
Ruebenwurz
|
<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" class="search_submit" />
|
66 |
4
|
ryan
|
</form>
|
67 |
|
|
<?php } ?>
|
68 |
|
|
</div>
|
69 |
|
|
|
70 |
|
|
<?php
|
71 |
|
|
// Only show menu items if we are supposed to
|
72 |
|
|
if(SHOW_MENU) {
|
73 |
|
|
?>
|
74 |
|
|
<div class="menu">
|
75 |
691
|
doc
|
<?php
|
76 |
|
|
show_menu();
|
77 |
4
|
ryan
|
|
78 |
241
|
stefan
|
if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
|
79 |
4
|
ryan
|
?>
|
80 |
|
|
<form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
|
81 |
|
|
<h1><?php echo $TEXT['LOGIN']; ?></h1>
|
82 |
|
|
<?php echo $TEXT['USERNAME']; ?>:
|
83 |
|
|
<input type="text" name="username" style="text-transform: lowercase;" />
|
84 |
|
|
<?php echo $TEXT['PASSWORD']; ?>:
|
85 |
|
|
<input type="password" name="password" />
|
86 |
|
|
<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
|
87 |
|
|
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
|
88 |
|
|
<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
|
89 |
|
|
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
|
90 |
|
|
<?php } ?>
|
91 |
|
|
</form>
|
92 |
|
|
<?php
|
93 |
241
|
stefan
|
} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
|
94 |
4
|
ryan
|
?>
|
95 |
|
|
<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
|
96 |
|
|
<h1><?php echo $TEXT['LOGGED_IN']; ?></h1>
|
97 |
241
|
stefan
|
<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
|
98 |
4
|
ryan
|
<br />
|
99 |
|
|
<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
|
100 |
|
|
<br />
|
101 |
|
|
<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
|
102 |
|
|
<a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a>
|
103 |
|
|
</form>
|
104 |
|
|
<?php
|
105 |
|
|
}
|
106 |
|
|
?>
|
107 |
|
|
</div>
|
108 |
|
|
<?php } ?>
|
109 |
|
|
|
110 |
|
|
<div class="content">
|
111 |
|
|
<?php page_content(); ?>
|
112 |
|
|
</div>
|
113 |
|
|
|
114 |
|
|
<div class="footer">
|
115 |
|
|
<?php page_footer(); ?>
|
116 |
|
|
</div>
|
117 |
|
|
|
118 |
|
|
</div>
|
119 |
|
|
|
120 |
|
|
<div class="powered_by">
|
121 |
|
|
Powered by <a href="http://www.websitebaker.org" target="_blank">Website Baker</a>
|
122 |
|
|
</div>
|
123 |
|
|
|
124 |
|
|
</body>
|
125 |
|
|
</html>
|