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