$db[$db_server_text] = trim(stripslashes($_POST[$db_server_text])); $db[$db_username_text] = trim(stripslashes($_POST[$db_username_text])); $db[$db_password_text] = trim(stripslashes($_POST[$db_password_text])); $db[$db_database_text] = $database; } if ($install_step >= 4) { define($db_database_text, $database); include DIR_FS_INCLUDES . 'database_tables.php'; if ($install_step >= 5) { $configure_php = 'configure.php'; if ($install_step != 5) { $level = ADMIN_PATH_PREFIX; require DIR_FS_INCLUDES . $configure_php; } if ($install_step <= 6) { $post_data .= '<tr><td>' . xtc_draw_hidden_field_installer($install_action_text, $process_text) . '</td></tr>'; require_once DIR_FS_INC . 'xtc_rand.inc.php'; require_once DIR_FS_INC . 'xtc_encrypt_password.inc.php'; require_once DIR_FS_INC . 'xtc_validate_email.inc.php'; require_once DIR_FS_INC . 'xtc_get_countries.inc.php'; require_once DIR_FS_INC . 'xtc_draw_pull_down_menu.inc.php'; require_once DIR_FS_INC . 'xtc_draw_input_field_installer.inc.php'; require_once DIR_FS_INC . 'xtc_get_country_list.inc.php'; define($db_server_text, $_POST[$db_server_text]); define($db_username_text, $_POST[$db_username_text]); define($db_password_text, $_POST[$db_password_text]); // connect do database $db_error = false; xtc_db_connect(); if (!$db_error) { xtc_db_test_connection(DB_DATABASE);
$old_field = $old_fields[$i]; $field_name = $old_field[0]; if ($field_name) { if (strpos($field_name, 'PASSWORD') !== false) { $field = xtc_draw_password_field_installer($field_name, EMPTY_STRING); } else { $field = xtc_draw_input_field_installer($field_name, EMPTY_STRING, $text_text, $size40); } $post_data .= ' <tr>' . $text_start . $old_field[3] . $text_end . $field_start . $field . $required_cell . ' </tr> '; unset($hidden_fields[$field_name]); } else { $post_data .= ' <tr>' . $text_start . TEXT_COUNTRY . $text_end . $field_start_2 . xtc_get_country_list($country_text, $country, 'onchange=" country_drop_down_change(this,\'' . CURRENT_SCRIPT . '\')"') . HTML_BR . $required_start . TEXT_COUNTRY_LONG . $font_strong_end . xtc_draw_hidden_field_installer($country_1_text) . '</td> </tr> <tr>' . $text_start . TEXT_STATE . $text_end . $field_start_2; if ($entry_state_has_zones) { $zones_array = array(); $zones_query = xtc_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . $country . "' order by zone_name"); while ($zones_values = xtc_db_fetch_array($zones_query)) { $zone_name = $zones_values['zone_name']; $zones_array[] = array('id' => $zone_name, 'text' => $zone_name); } $post_data .= xtc_draw_pull_down_menu($state_text, $zones_array, $country); } else { $post_data .= xtc_draw_input_field_installer($state_text, EMPTY_STRING, $text_text, $size40); } $post_data .= $required_start . $text_end . ' </tr>
?> :</label><br /> <?php echo xtc_draw_input_field_installer('login', $login, '', 'id="login"'); ?> <br /> <label for="password"><?php echo FTP_PASSWORD; ?> :</label><br /> <?php echo xtc_draw_password_field_installer('password', $password, '', 'id="password"'); ?> <br /> <?php echo xtc_draw_hidden_field_installer('action', 'ftp'); ?> <br /> <input type="submit" class="btn btn-primary" value="<?php echo CONNECT_FTP; ?> " /> </form> </div> </div> <?php } // EOC flth new permission fix system ?> </div> <?php
if ($messageStack->size('install_shopinfo_step') > 0) { ?> <div class="row"> <div class="col-xs-12 danger"><?php echo $messageStack->output('install_shopinfo_step'); ?> </div> </div> <?php } ?> <div class="row"> <form name="install" action="install_shopinfo_step.php" method="post"> <div class="well"> <?php echo xtc_draw_hidden_field_installer('action', 'process'); ?> <p> <b><?php echo TEXT_STORE; ?> </b><br /> <?php echo xtc_draw_input_field_installer('STORE_NAME', '', 'text', 'style="width: 30%;" '); ?> * <?php echo TEXT_STORE_LONG; ?> <br /> <b><?php echo TEXT_COMPANY;
<?php echo xtc_draw_hidden_field_installer('DIR_FS_DOCUMENT_ROOT', DIR_FS_DOCUMENT_ROOT); ?> <?php echo xtc_draw_input_field_installer('documentRoot', DIR_FS_DOCUMENT_ROOT, '', 'style="width: 30%;" disabled'); ?> <p><?php echo TEXT_WS_ROOT_INFO; ?> </p> <p><b><?php echo TEXT_WS_CATALOG; ?> </b></p> <?php echo xtc_draw_hidden_field_installer('DIR_WS_CATALOG', $dir_ws_www_root . '/'); ?> <?php echo xtc_draw_input_field_installer('wwwRoot', $dir_ws_www_root, '', 'style="width: 30%;" disabled'); ?> <p><?php echo TEXT_WS_ROOT_INFO; ?> </p> <p> <b><?php echo TEXT_HTTP; ?> </b><br /> <?php echo xtc_draw_input_field_installer('HTTP_SERVER', 'http://' . rtrim(getenv('HTTP_HOST'), '/'), '', 'style="width: 30%;"');
function draw_hidden_fields() { reset($_POST); $hidden_fields = ''; while (list($key, $value) = each($_POST)) { if ($key != 'x' && $key != 'y') { if (is_array($value)) { for ($i = 0; $i < sizeof($value); $i++) { $hidden_fields .= xtc_draw_hidden_field_installer($key . '[]', $value[$i]) . PHP_EOL; } } else { $hidden_fields .= xtc_draw_hidden_field_installer($key, $value) . PHP_EOL; } } } return $hidden_fields; }
<td>' . $messageStack->output($install_step) . '</td> </tr> </table> <br/><hr/><br/> ' . $post_data; } $hidden_fields_text = EMPTY_STRING; if (is_array($hidden_fields)) { $brackets = '[]'; reset($hidden_fields); while (list($key, $value) = each($hidden_fields)) { $s = strpos($key, $array_id); if ($s !== false) { $key = substr($key, 0, $s) . $brackets; } $s = xtc_draw_hidden_field_installer($key, $value); if (strpos($hidden_fields_text, $s) === false) { $hidden_fields_text .= NEW_LINE . $s; } } $hidden_fields_text = $hidden_fields_text . NEW_LINE; } } $main_content .= ' <table class="main_content_outer"> <tr> <td> ' . xtc_draw_form($install_text, $install_step_text . $action_step, EMPTY_STRING, $onsubmit) . $hidden_fields_text . $post_data . ' <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center">