12 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
12 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
13 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
13 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
14 */ |
14 */ |
15 |
15 |
16 if ( !defined('IN_ENANO_INSTALL') ) |
16 if ( !defined('IN_ENANO_INSTALL') ) |
17 die(); |
17 die(); |
18 |
18 |
19 require_once( ENANO_ROOT . '/includes/constants.php' ); |
19 require_once( ENANO_ROOT . '/includes/constants.php' ); |
20 |
20 |
21 $ui->show_header(); |
21 $ui->show_header(); |
22 ?> |
22 ?> |
23 <h3><?php echo $lang->get('confirm_title'); ?></h3> |
23 <h3><?php echo $lang->get('confirm_title'); ?></h3> |
24 <p><?php echo $lang->get('confirm_body'); ?></p> |
24 <p><?php echo $lang->get('confirm_body'); ?></p> |
25 <p style="font-size: smaller;"><b><?php echo $lang->get('confirm_info_aes_title'); ?></b> |
25 <p style="font-size: smaller;"><b><?php echo $lang->get('confirm_info_aes_title'); ?></b> |
26 <?php echo $lang->get('confirm_info_aes_body', array('aes_bits' => AES_BITS)); ?> |
26 <?php echo $lang->get('confirm_info_aes_body', array('aes_bits' => AES_BITS)); ?> |
27 </p> |
27 </p> |
28 <?php |
28 <?php |
29 if ( $installer_version['type'] !== 'stable' ) |
29 if ( $installer_version['type'] !== 'stable' ) |
30 { |
30 { |
31 echo '<div class="sysreqs_error">'; |
31 echo '<div class="sysreqs_error">'; |
32 echo '<h3>' . $lang->get('confirm_msg_installing_unstable_title') . '</h3>'; |
32 echo '<h3>' . $lang->get('confirm_msg_installing_unstable_title') . '</h3>'; |
33 echo '<p>' . $lang->get('confirm_msg_installing_unstable_body') . '</p>'; |
33 echo '<p>' . $lang->get('confirm_msg_installing_unstable_body') . '</p>'; |
34 echo '</div>'; |
34 echo '</div>'; |
35 } |
35 } |
36 ?> |
36 ?> |
37 <form action="install.php?stage=install" method="post" name="install_login"><?php |
37 <form action="install.php?stage=install" method="post" name="install_login"><?php |
38 foreach ( $_POST as $key => &$value ) |
38 foreach ( $_POST as $key => &$value ) |
39 { |
39 { |
40 if ( !preg_match('/^[a-z0-9_]+$/', $key) ) |
40 if ( !preg_match('/^[a-z0-9_]+$/', $key) ) |
41 die('You idiot hacker...'); |
41 die('You idiot hacker...'); |
42 if ( $key == '_cont' ) |
42 if ( $key == '_cont' ) |
43 continue; |
43 continue; |
44 $value_clean = str_replace(array('\\', '"', '<', '>'), array('\\\\', '\\"', '<', '>'), $value); |
44 $value_clean = str_replace(array('\\', '"', '<', '>'), array('\\\\', '\\"', '<', '>'), $value); |
45 echo "\n <input type=\"hidden\" name=\"$key\" value=\"$value_clean\" />"; |
45 echo "\n <input type=\"hidden\" name=\"$key\" value=\"$value_clean\" />"; |
46 } |
46 } |
47 ?> |
47 ?> |
48 |
48 |
49 <div style="text-align: center;"> |
49 <div style="text-align: center;"> |
50 <input type="submit" name="_cont" value="<?php echo $lang->get('confirm_btn_install_enano'); ?>" /> |
50 <input type="submit" name="_cont" value="<?php echo $lang->get('confirm_btn_install_enano'); ?>" /> |
51 </div> |
51 </div> |
52 </form> |
52 </form> |