AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / install / include / ustep3.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 $_POST['db_login']    = urldecode($_POST['db_login']);
16 $_POST['db_password'] = urldecode($_POST['db_password']);
17 /* Destory session */
18 session_unset();
19 $_SESSION= array();
20 if(isset($_POST['submit']) && ($_POST['action'] == 'process')) {
21         unset($errors);
22 //      $db = @mysql_connect($_POST['step1']['db_host'] . ':' . $_POST['step1']['db_port'], $_POST['step1']['db_login'], urldecode($_POST['step1']['db_password']));
23 //      @mysql_select_db($_POST['step1']['db_name'], $db);
24
25         if (!isset($errors)) {
26                 unset($errors);
27                 unset($_POST['submit']);
28                 unset($action);
29                 store_steps($step);
30                 $step++;
31                 return;
32         }
33 }
34
35 print_progress($step);
36
37 if (isset($errors)) {
38         print_errors($errors);
39 }
40
41
42 ?>
43
44 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
45         <input type="hidden" name="action" value="process" />
46         <input type="hidden" name="step" value="<?php echo $step; ?>" />
47         <?php print_hidden($step); ?>
48         <p>There are no new configuration options for this version.</p>
49         <br />
50         <br />
51         <div align="center"><input type="submit" class="button" value=" Next &raquo;" name="submit" /></div>
52 </form>