echo $_SERVER['PHP_SELF']; ?> ', { method:'get',parameters:'action=updateCollation&charset='+val } ); } </script> <fieldset> <legend><?php echo LEGEND_DATABASE; ?> </legend> <?php echo xoFormField('DB_NAME', $vars['DB_NAME'], DB_NAME_LABEL, DB_NAME_HELP); ?> <?php echo xoFormField('DB_PREFIX', $vars['DB_PREFIX'], DB_PREFIX_LABEL, DB_PREFIX_HELP); ?> <?php echo xoFormFieldCharset('DB_CHARSET', $vars['DB_CHARSET'], DB_CHARSET_LABEL, DB_CHARSET_HELP, $link); ?> <?php echo xoFormBlockCollation('DB_COLLATION', $vars['DB_COLLATION'], DB_COLLATION_LABEL, DB_COLLATION_HELP, $link, $vars['DB_CHARSET']); ?> </fieldset> <?php $content = ob_get_contents(); ob_end_clean(); include './include/install_tpl.php';
{ method:'get',parameters:'action=updateCollation&charset='+val } ); } </script> <div class="blokSQL"> <fieldset> <h3><?php echo LEGEND_DATABASE; ?> </h3> <?php echo xoFormField('DB_NAME', $vars['DB_NAME'], DB_NAME_LABEL, 255, DB_NAME_HELP); ?> <?php echo xoFormField('DB_PREFIX', $vars['DB_PREFIX'], DB_PREFIX_LABEL, 10, DB_PREFIX_HELP); ?> <?php echo xoFormField('DB_SALT', $vars['DB_SALT'], DB_SALT_LABEL, 255, DB_SALT_HELP); ?> <?php echo xoFormFieldCharset('DB_CHARSET', $vars['DB_CHARSET'], DB_CHARSET_LABEL, DB_CHARSET_HELP, $link); ?> <?php echo xoFormBlockCollation('DB_COLLATION', $vars['DB_COLLATION'], DB_COLLATION_LABEL, DB_COLLATION_HELP, $link, $vars['DB_CHARSET']); ?> </fieldset> </div> <?php $content = ob_get_contents(); ob_end_clean(); include 'install_tpl.php';
echo DB_DATABASE_LABEL; ?> <select size="1" name="DB_TYPE"> <?php foreach ($wizard->configs['db_types'] as $db_type) { $selected = $vars['DB_TYPE'] == $db_type ? 'selected' : ''; echo "<option value='{$db_type}' selected='{$selected}'>{$db_type}</option>"; } ?> </select> </label> <?php echo xoFormField('DB_HOST', $vars['DB_HOST'], DB_HOST_LABEL, DB_HOST_HELP); ?> <?php echo xoFormField('DB_USER', $vars['DB_USER'], DB_USER_LABEL, DB_USER_HELP); ?> <?php echo xoPassField('DB_PASS', $vars['DB_PASS'], DB_PASS_LABEL, DB_PASS_HELP); ?> <label class="xolabel" for="DB_PCONNECT" class="center"> <?php echo DB_PCONNECT_LABEL; ?> <input class="checkbox" type="checkbox" name="DB_PCONNECT" value="1" <?php echo $vars['DB_PCONNECT'] ? "'checked'" : ''; ?> /> <div class="xoform-help"><?php
<br /> <select size="2" name="DB_TYPE" class="db_select"> <option value="mysql" selected="selected">mysql</option> </select> </label> <div class='clear'> </div> </div> <div class="dbconn_line"><?php echo xoFormField('DB_HOST', $vars['DB_HOST'], DB_HOST_LABEL, DB_HOST_HELP); ?> </div> <div class="dbconn_line"><?php echo xoFormField('DB_USER', $vars['DB_USER'], DB_USER_LABEL, DB_USER_HELP); ?> </div> <div class="dbconn_line"><?php echo xoFormField('DB_PASS', $vars['DB_PASS'], DB_PASS_LABEL, DB_PASS_HELP, 'password'); ?> </div> </div> <label> <?php echo htmlspecialchars(DB_PCONNECT_LABEL); ?> <input class="checkbox" type="checkbox" name="DB_PCONNECT" value="1" onclick="alert('<?php echo htmlspecialchars(DB_PCONNECT_HELPS); ?> ');" <?php echo $vars['DB_PCONNECT'] ? "'checked'" : "";
echo '<div class="x2-note errorMsg">' . $error . "</div>\n"; } ?> <fieldset> <legend><?php echo LEGEND_CONNECTION; ?> <?php echo $wizard->configs['db_types'][$settings['DB_DRIVER']]['desc']; ?> </legend> <?php foreach ($driver_params as $param) { $name = $wizard->configs['db_param_names'][$param]; if ($wizard->configs['db_param_types'][$param] == 'string') { echo xoFormField($name, $settings[$name], constant($name . '_LABEL'), constant($name . '_HELP')); } elseif ($wizard->configs['db_param_types'][$param] == 'boolean') { echo xoBoolField($name, $settings[$name], constant($name . '_LABEL'), constant($name . '_HELP')); } elseif ($wizard->configs['db_param_types'][$param] == 'password') { echo xoPassField($name, $settings[$name], constant($name . '_LABEL'), constant($name . '_HELP')); } } ?> </fieldset> <?php /* <label class="xolabel" for="DB_PCONNECT" class="center"> <?php echo DB_PCONNECT_LABEL; ?> <input class="checkbox" type="checkbox" name="DB_PCONNECT" value="1" <?php echo $settings['DB_PCONNECT'] ? "'checked'" : ""; ?>/>
<?php if (!empty($availableDatabases)) { echo '<legend>' . LEGEND_DATABASE . '</legend>'; echo '<div class="xoform-help">' . DB_AVAILABLE_HELP . '</div>'; echo '<label class="xolabel" for="DB_DATABASE_LABEL" class="center">'; echo DB_AVAILABLE_LABEL; echo ' <select size="1" name="DB_AVAILABLE" id="DB_AVAILABLE" onchange="updateDbName();">'; $selected = $settings['DB_NAME'] == '' ? 'selected' : ''; echo '<option value="" {$selected}>-----------</option>'; foreach ($availableDatabases as $dbase) { $selected = $settings['DB_NAME'] == $dbase ? 'selected' : ''; echo "<option value=\"{$dbase}\" {$selected}>{$dbase}</option>"; } } ?> </select> </label> <?php echo xoFormField('DB_NAME', $settings['DB_NAME'], DB_NAME_LABEL, DB_NAME_HELP); ?> </fieldset> <?php $content = ob_get_contents(); ob_end_clean(); $_SESSION['pageHasHelp'] = true; $_SESSION['pageHasForm'] = true; $_SESSION['content'] = $content; $_SESSION['settings'] = $settings; include XOOPS_INSTALL_PATH . '/include/install_tpl.php';
desc[1] = "' . PASSWORD_VERY_WEAK . '"; desc[2] = "' . PASSWORD_WEAK . '"; desc[3] = "' . PASSWORD_BETTER . '"; desc[4] = "' . PASSWORD_MEDIUM . '"; desc[5] = "' . PASSWORD_STRONG . '"; desc[6] = "' . PASSWORD_STRONGEST . '"; </script>'; echo xoFormField('adminname', $vars['adminname'], ADMIN_LOGIN_LABEL); if (!empty($error["name"])) { echo '<ul class="diags">'; foreach ($error["name"] as $errmsg) { echo '<li class="failure">' . $errmsg . '</li>'; } echo '</ul>'; } echo xoFormField('adminmail', $vars['adminmail'], ADMIN_EMAIL_LABEL); if (!empty($error["email"])) { echo '<ul class="diags">'; foreach ($error["email"] as $errmsg) { echo '<li class="failure">' . $errmsg . '</li>'; } echo '</ul>'; } ?> <div id="password"> <div id="passwordinput"> <?php echo xoPassField('adminpass', '', ADMIN_PASS_LABEL); echo xoPassField('adminpass2', '', ADMIN_CONFIRMPASS_LABEL); if (!empty($error["pass"])) {
desc[1] = "' . PASSWORD_VERY_WEAK . '"; desc[2] = "' . PASSWORD_WEAK . '"; desc[3] = "' . PASSWORD_BETTER . '"; desc[4] = "' . PASSWORD_MEDIUM . '"; desc[5] = "' . PASSWORD_STRONG . '"; desc[6] = "' . PASSWORD_STRONGEST . '"; </script>'; echo xoFormField('adminname', $siteconfig['adminname'], ADMIN_LOGIN_LABEL); if (!empty($error["name"])) { echo '<ul class="diags1">'; foreach ($error["name"] as $errmsg) { echo '<li class="failure">' . $errmsg . '</li>'; } echo '</ul>'; } echo xoFormField('adminmail', $siteconfig['adminmail'], ADMIN_EMAIL_LABEL); if (!empty($error["email"])) { echo '<ul class="diags1">'; foreach ($error["email"] as $errmsg) { echo '<li class="failure">' . $errmsg . '</li>'; } echo '</ul>'; } ?> <div id="password"> <div id="passwordinput"> <?php echo xoPassField('adminpass', '', ADMIN_PASS_LABEL); echo xoPassField('adminpass2', '', ADMIN_CONFIRMPASS_LABEL); if (!empty($error["pass"])) {
</div> <legend><?php echo LEGEND_DRIVER; ?> </legend> <label class="xolabel" for="DB_DATABASE_LABEL" class="center"> <?php echo DB_DRIVER_LABEL; ?> <select size="1" name="DB_DRIVER"> <?php foreach ($wizard->configs['db_types'] as $db_driver => $db_info) { $selected = $settings['DB_DRIVER'] == $db_driver ? 'selected' : ''; echo "<option value=\"{$db_driver}\" {$selected}>{$db_info['desc']}</option>"; } ?> </select> </label> <?php echo xoFormField('DB_PREFIX', $settings['DB_PREFIX'], DB_PREFIX_LABEL, DB_PREFIX_HELP); ?> </fieldset> <?php $content = ob_get_contents(); ob_end_clean(); $_SESSION['pageHasHelp'] = true; $_SESSION['pageHasForm'] = true; $_SESSION['content'] = $content; $_SESSION['settings'] = $settings; include XOOPS_INSTALL_PATH . '/include/install_tpl.php';