| 
      1
     | 
    
      <?php
 
     | 
  
  
    | 
      2
     | 
    
      
 
     | 
  
  
    | 
      3
     | 
    
      // $Id: index.php 458 2007-05-12 18:14:53Z doc $
 
     | 
  
  
    | 
      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
 
     | 
  
  
    | 
      42
     | 
    
      if(function_exists('register_frontend_modfiles')) {
     | 
  
  
    | 
      43
     | 
    
        register_frontend_modfiles('css');
     | 
  
  
    | 
      44
     | 
    
        register_frontend_modfiles('js');
     | 
  
  
    | 
      45
     | 
    
      } ?>
 
     | 
  
  
    | 
      46
     | 
    
      </head>
 
     | 
  
  
    | 
      47
     | 
    
      <body>
 
     | 
  
  
    | 
      48
     | 
    
      
 
     | 
  
  
    | 
      49
     | 
    
      <div class="main">
 
     | 
  
  
    | 
      50
     | 
    
      	
 
     | 
  
  
    | 
      51
     | 
    
      	<div class="banner">
 
     | 
  
  
    | 
      52
     | 
    
      		<a href="<?php echo WB_URL; ?>/" target="_top"><?php echo WEBSITE_TITLE; ?></a>
 
     | 
  
  
    | 
      53
     | 
    
      		<font color="#D0D0D0">| <?php echo PAGE_TITLE; ?></font>
 
     | 
  
  
    | 
      54
     | 
    
      	</div>
 
     | 
  
  
    | 
      55
     | 
    
      	
 
     | 
  
  
    | 
      56
     | 
    
      	<div class="search_box">
 
     | 
  
  
    | 
      57
     | 
    
      		<?php if(SHOW_SEARCH) { ?>
     | 
  
  
    | 
      58
     | 
    
      		<form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="get">
 
     | 
  
  
    | 
      59
     | 
    
      		<input type="text" name="string" class="search_string" />
 
     | 
  
  
    | 
      60
     | 
    
      		<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" class="search_submit" />
 
     | 
  
  
    | 
      61
     | 
    
      		</form>
 
     | 
  
  
    | 
      62
     | 
    
      		<?php } ?>
 
     | 
  
  
    | 
      63
     | 
    
      	</div>
 
     | 
  
  
    | 
      64
     | 
    
      	
 
     | 
  
  
    | 
      65
     | 
    
      	<?php
 
     | 
  
  
    | 
      66
     | 
    
      	// Only show menu items if we are supposed to
 
     | 
  
  
    | 
      67
     | 
    
      	if(SHOW_MENU) {
     | 
  
  
    | 
      68
     | 
    
      	?>	
 
     | 
  
  
    | 
      69
     | 
    
      	<div class="menu">
 
     | 
  
  
    | 
      70
     | 
    
      		<?php page_menu(0, 1, '<li class="menu_main"[class]>[a] [menu_title] [/a]</li>', '<ul>', '</ul>', '', ' style="font-weight: bold;"'); ?>
 
     | 
  
  
    | 
      71
     | 
    
      		
 
     | 
  
  
    | 
      72
     | 
    
      		<?php
 
     | 
  
  
    | 
      73
     | 
    
      		if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
     | 
  
  
    | 
      74
     | 
    
      		?>
 
     | 
  
  
    | 
      75
     | 
    
      		<form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
 
     | 
  
  
    | 
      76
     | 
    
      			<h1><?php echo $TEXT['LOGIN']; ?></h1>
 
     | 
  
  
    | 
      77
     | 
    
      			<?php echo $TEXT['USERNAME']; ?>:
 
     | 
  
  
    | 
      78
     | 
    
      			<input type="text" name="username" style="text-transform: lowercase;" />
 
     | 
  
  
    | 
      79
     | 
    
      			<?php echo $TEXT['PASSWORD']; ?>:
 
     | 
  
  
    | 
      80
     | 
    
      			<input type="password" name="password" />
 
     | 
  
  
    | 
      81
     | 
    
      			<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
 
     | 
  
  
    | 
      82
     | 
    
      			<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
 
     | 
  
  
    | 
      83
     | 
    
      				<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
     | 
  
  
    | 
      84
     | 
    
      					<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
 
     | 
  
  
    | 
      85
     | 
    
      				<?php } ?>
 
     | 
  
  
    | 
      86
     | 
    
      		</form>
 
     | 
  
  
    | 
      87
     | 
    
      		<?php
 
     | 
  
  
    | 
      88
     | 
    
      		} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
     | 
  
  
    | 
      89
     | 
    
      		?>
 
     | 
  
  
    | 
      90
     | 
    
      		<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
 
     | 
  
  
    | 
      91
     | 
    
      			<h1><?php echo $TEXT['LOGGED_IN']; ?></h1>
 
     | 
  
  
    | 
      92
     | 
    
      			<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
 
     | 
  
  
    | 
      93
     | 
    
      			<br />
 
     | 
  
  
    | 
      94
     | 
    
      			<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
 
     | 
  
  
    | 
      95
     | 
    
      			<br />
 
     | 
  
  
    | 
      96
     | 
    
      			<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
 
     | 
  
  
    | 
      97
     | 
    
      			<a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a>
 
     | 
  
  
    | 
      98
     | 
    
      		</form>
 
     | 
  
  
    | 
      99
     | 
    
      		<?php
 
     | 
  
  
    | 
      100
     | 
    
      		}
 
     | 
  
  
    | 
      101
     | 
    
      		?>
 
     | 
  
  
    | 
      102
     | 
    
      	</div>
 
     | 
  
  
    | 
      103
     | 
    
      	<?php } ?>
 
     | 
  
  
    | 
      104
     | 
    
      	
 
     | 
  
  
    | 
      105
     | 
    
      	<div class="content">
 
     | 
  
  
    | 
      106
     | 
    
      		<?php page_content(); ?>
 
     | 
  
  
    | 
      107
     | 
    
      	</div>
 
     | 
  
  
    | 
      108
     | 
    
      	
 
     | 
  
  
    | 
      109
     | 
    
      	<div class="footer">
 
     | 
  
  
    | 
      110
     | 
    
      		<?php page_footer(); ?>
 
     | 
  
  
    | 
      111
     | 
    
      	</div>
 
     | 
  
  
    | 
      112
     | 
    
      	
 
     | 
  
  
    | 
      113
     | 
    
      </div>
 
     | 
  
  
    | 
      114
     | 
    
      
 
     | 
  
  
    | 
      115
     | 
    
      <div class="powered_by">
 
     | 
  
  
    | 
      116
     | 
    
      	Powered by <a href="http://www.websitebaker.org" target="_blank">Website Baker</a>
 
     | 
  
  
    | 
      117
     | 
    
      </div>
 
     | 
  
  
    | 
      118
     | 
    
      
 
     | 
  
  
    | 
      119
     | 
    
      </body>
 
     | 
  
  
    | 
      120
     | 
    
      </html>
 
     |