Location: PHPKode > projects > ConPortal > conportal/index.php
<?php
/*
 *  ConPortal - Pomona College ITS scheduling appplication
 *  Copyright (C) 2005-2006  Pomona College
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of version 2 of the GNU General Public License
 *  as published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once('standard.php');

if (!isset($_SESSION['pid']) or !isset($_SESSION['username']) or
    !isset($_SESSION['ldap']))
{
    // we're not logged in...

    xhtml_header_general('Please login');
	//echo"	<p>Please login here.</p>\n";
    if (isset($_GET['loginfailed']))
        echo "    <div class='warn'>Unknown user or password error.</div>\n";
    if (isset($_GET['acctdisabled']))
        echo "    <div class='warn'>Account Disabled.</div>\n";

    if (isset($_GET['page']))
        printLoginForm($_GET['page']);
    else
        printLoginForm();

	
?>
<script type='text/javascript'>
<!--
/* Focus the 'user' form element by default */
x = document.getElementById('user');
x.focus();
-->
</script>
<?
    xhtml_footer();
    exit;
}

// If we're here, we're logged in. Woot! Display the normal home page
$headerstring = INDEX_HEADER_1 . GROUPNAME . INDEX_HEADER_2;
xhtml_header($headerstring);
?>
  <div id="index_content">
    <div id="index_left">
      <?php 
		if(BUCKNELL_OPTIONS == TRUE)
		{		
			index_people_on_duty();	
		}
	    	index_quick_punch();
		if(ALBANY_OPTIONS == TRUE)
		{
			index_hd_links(); // Added link list to the main page - john @ Albany
		}		
		?>
    </div>
    <div id="index_center">
      <?php index_my_shifts();
		if(BUCKNELL_OPTIONS == TRUE)
		{
            		index_appointments();
		}
		if(ALBANY_OPTIONS == TRUE)
		{
			index_people_on_duty();	
		}
		
	
?>
    </div>
    <div id="index_right">
      <?php index_announcements();
            index_upcoming_events();
        	if(USE_SHIFT_CHANGELOG)
		{
			index_shift_changelog();
		}
		if(ALBANY_OPTIONS == TRUE)
		{
			index_search_box();
		}
		
?>
    </div>
  </div>
<? xhtml_footer(); ?>
Return current item: ConPortal