<?php
/************************************************************************/
/* AContent                                                             */
/************************************************************************/
/* Copyright (c) 2013                                                   */
/* Inclusive Design Institute                                           */
/*                                                                      */
/* This program is free software. You can redistribute it and/or        */
/* modify it under the terms of the GNU General Public License          */
/* as published by the Free Software Foundation.                        */
/************************************************************************/

if (!defined('TR_INCLUDE_PATH')) { exit; }

//clear session before using it
unset($_SESSION['user_id']);
unset($_SESSION['lang']);
unset($_SESSION['prefs']);
unset($_SESSION['token']);
session_unset();
$_SESSION = array();

if (isset($_POST['submit'])) {
	if ($_POST['submit'] == 'I Agree') {
		unset($_POST['submit']);
		$step++;
		unset($_POST['action']);
		return;
	} else {
		exit;
	}
}

print_progress($step);
?>
<p>AContent is licensed under the terms of the <a href="http://atutor.ca/services/licensing_gpl.php" target="_new">GNU General Public License (GPL)</a>, which essentially allows for the free distribution and modification of AContent. AContent has its own license that governs its use outside the bounds of the GPL.</p>

<p>If you do not agree to the Terms of Use then you may not install and use AContent.</p>

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
	<input type="hidden" name="action" value="process" />
	<input type="hidden" name="step" value="1" />
	<input type="hidden" name="new_version" value="<?php echo $new_version; ?>" />
	<div align="center">
		<input type="submit" name="submit" class="button" value="I Agree" /> - <input type="submit" name="submit" class="button" value="I Disagree" /><br />
	</div>
</form>