Location: PHPKode > projects > ACollab > terms.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: terms.php 235 2004-06-07 19:55:47Z boonhau $

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

require(AC_INCLUDE_PATH.'vitals.inc.php');

if ($_POST['submit']) {
	if ($_POST['accept'] == 1) {
		$sql	= "UPDATE ".TABLE_PREFIX."members SET eusa=NOW() WHERE member_id=$_SESSION[member_id]";
		$result	= mysql_query($sql, $db);

		header('Location: index.php');
		exit;
	}
	
	$error = E_BAD_LOGIN_ACCEPT_TERMS;
}

require(AC_INCLUDE_PATH.'pub/header.inc.php');

	if (isset($error)) {
		print_errors($error);
	}

?>
<br />
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
	<table border="0" cellspacing="0" cellpadding="2" align="center" class="box" width="75%">
	<tr>
		<th colspan="3" class="box"><h3><?php echo _AC('terms'); ?></h3></th>
	</tr>
	<tr>
		<td colspan="3" style="border-left: 2px solid white; border-right: 2px solid white; border-top: 2px solid white;"><img src="images/clr.gif" /></td>
	</tr>
	<tr>
		<td style="border-left: 2px solid white;">&nbsp;</td>
		<td><?php echo _AC('terms_text'); ?></td>
		<td style="border-right: 2px solid white;">&nbsp;</td>
	</tr>
	<tr>
		<td style="border-left: 2px solid white;">&nbsp;</td>
		<td align="right"><br /><?php echo _AC('accept_terms'); ?><br />
			<input type="radio" name="accept" id="yes" value="1" /><label for="yes"><?php echo _AC('yes_accept'); ?></label>, <input type="radio" name="accept" id="no" value="0"  checked="checked" /><label for="no"><?php echo _AC('no_accept'); ?></label>.<br />
			<input type="submit" name="submit" value="<?php echo _AC('continue'); ?>" class="submit" onfocus="this.className='submit highlight'" onblur="this.className='submit'" /><br /><br /></td>
		<td style="border-right: 2px solid white;">&nbsp;</td>
	</tr>
	</table>
</form>
<?php
	require(AC_INCLUDE_PATH.'pub/footer.inc.php');
?>
Return current item: ACollab