Location: PHPKode > projects > ACollab > prefs/index.php
<?php
/****************************************************************************************/
/* ACollab                                                                              */
/****************************************************************************************/
/* Copyright (c) 2002-2004  Adaptive Technology Resource Centre / University of Toronto */
/*                                                                                      */
/* http://atutor.ca/acollab                                                             */
/*                                                                                      */
/* This program is free software. You may redistribute it and/or                        */
/* modify it under the terms of the GNU General Public License                          */
/* as published by the Free Software Foundation; either version 2 of the License,       */
/* or (at your option) any later version.                                               */
/*                                                                                      */
/* 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 may access the GNU General Public License at:                                    */
/* http://www.opensource.org/licenses/gpl-license.php                                   */
/*                                                                                      */
/* You may contact the Adaptive Technology Resource Centre at                           */
/* Robarts Library, University of Toronto                                               */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5                              */
/* Further contact information is available at http://www.utoronto.ca/atrc/             */
/****************************************************************************************/
/* Programmer:                                                                          */
/* Joel Kronenberg - ATRC                                                               */
/****************************************************************************************/
// $Id: index.php 487 2005-04-01 15:00:28Z shozubq $

define('AC_INCLUDE_PATH', '../include/');

require(AC_INCLUDE_PATH.'vitals.inc.php');
authenticate(USER_CLIENT, USER_GROUP_ADMIN, USER_ADMIN);

$_SECTION[0][0] = $_SESSION['course_title'].' '._AC('groups');
$_SECTION[0][1] = 'index.php';
$_SECTION[1][0] = _AC('options');
$_SECTION[1][1] = 'prefs/';

require(AC_INCLUDE_PATH.'pub/header.inc.php');
echo '<br /><br /><br />';
if (!$_SESSION['course_id']) {
?>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="50%">
	<tr><td>
		<a href="sign_out.php" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('sign_out'); ?></a>
	</td></tr>
</table>
<?php
} //end if
?>

<table border="0" cellspacing="0" cellpadding="0" align="center" class="box" width="50%">
	<tr>
		<th colspan="4" class="box"><h3><?php echo _AC('options'); ?></h3></th>
	</tr>
	<tr>
		<td style="border-bottom: 1px solid #006699; background: #EFEFEF;"><table border="0" width="100%" cellspacing="2" cellpadding="2" class="w">
			<tr>
				<td class="bread" valign="middle"><h4><?php
				
					$delim = ' ยป ';
					$num_sections = count($_SECTION);
					for($i = 0; $i < $num_sections-1; $i++) {
						echo '<a href="'.$_SECTION[$i][1] . '" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">';
						echo $_SECTION[$i][0];
						echo '</a>';
						echo $delim;
					}

					echo $_SECTION[$num_sections-1][0];
				?></h4></td>
			</tr>
		</table></td>
	</tr><tr>
		<td><table border="0" cellspacing="0" cellpadding="4" class="border" width="100%">
				<tr>
					<td>
						<ul><?php
							if ($_GET['f']) {
								print_feedback($_GET['f']);
							}
						?>
							<li><a href="prefs/password.php" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('change_password'); ?></a></li>
							<li><a href="prefs/profile.php" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('change_profile'); ?></a></li>
							<li><a href="prefs/notifications.php" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('notification_settings'); ?></a></li>
						</ul>
					</td>
				</tr>
			</table>

<?php
	require(AC_INCLUDE_PATH.'footer.inc.php');
?>
Return current item: ACollab