4e8c620c5ed509376bf7a4176d61ef382303e042
[acontent.git] / docs / install / include / step1.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 if (!defined('TR_INCLUDE_PATH')) { exit; }
14
15 //clear session before using it
16 unset($_SESSION['user_id']);
17 unset($_SESSION['lang']);
18 unset($_SESSION['prefs']);
19 unset($_SESSION['token']);
20 session_unset();
21 $_SESSION = array();
22
23 if (isset($_POST['submit'])) {
24         if ($_POST['submit'] == 'I Agree') {
25                 unset($_POST['submit']);
26                 $step++;
27                 unset($_POST['action']);
28                 return;
29         } else {
30                 exit;
31         }
32 }
33
34 print_progress($step);
35 ?>
36 <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>
37
38 <p>If you do not agree to the Terms of Use then you may not install and use AContent.</p>
39
40 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
41         <input type="hidden" name="action" value="process" />
42         <input type="hidden" name="step" value="1" />
43         <input type="hidden" name="new_version" value="<?php echo $new_version; ?>" />
44         <div align="center">
45                 <input type="submit" name="submit" class="button" value="I Agree" /> - <input type="submit" name="submit" class="button" value="I Disagree" /><br />
46         </div>
47 </form>