function show_install_html_header() { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>LiteCommerce v.<?php echo LC_VERSION; ?> <?php echo xtr('Installation Wizard'); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Script-Type" content="type/javascript" /> <meta name="ROBOTS" content="NOINDEX" /> <meta name="ROBOTS" content="NOFOLLOW" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <?php }
function show_install_html_header() { if (!headers_sent()) { header('Content-Type: text/html; charset=utf-8'); } ?> <head> <title>X-Cart v.<?php echo LC_VERSION; ?> <?php echo xtr('Installation Wizard'); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Script-Type" content="type/javascript" /> <meta name="ROBOTS" content="NOINDEX" /> <meta name="ROBOTS" content="NOFOLLOW" /> <link rel="shortcut icon" href="public/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="skins/common/css/font-awesome/font-awesome.min.css"> <link rel="stylesheet" href="skins/common/bootstrap/css/bootstrap.min.css"> <?php }
function get_lc_docblocks_support_description() { return xtr('lc_docblocks_support_description'); }
/** * cfg_create_admin module "Next" button validator * * @return string */ function module_cfg_create_admin_js_next() { ?> function step_next() { // validate login // if (!checkEmailAddress(document.getElementById('param-login'))) { return false; } // validate password and password confirm // if (document.ifrm.elements['params[password]'].value == "") { document.ifrm.elements['params[password]'].className += ' error'; document.ifrm.elements['params[password]'].focus(); alert('<?php echo xtr('Please, enter non-empty password'); ?> '); return false; } return true; } <?php }
<br /> <br /> <div class="section-title"><?php echo xtr('Additional comments'); ?> </div> <textarea name="user_note" class="report-notes" rows="4" cols="70"></textarea> <br /> <br /> <div style="text-align: center;"> <input type="submit" value="<?php echo xtr('Send report'); ?> " /> </div> </form> </div> <div class="clear"></div> </div> <?php }
print get_step("check_cfg"); ?> " /> <?php } ?> <br /> <span class="checkbox-field"> <input type="checkbox" id="agree" name="agree" onclick="javascript:setNextButtonDisabled(!this.checked);" /> <label for="agree"><?php echo xtr('I accept the License Agreement'); ?> </label> <img src="http://www.litecommerce.com/img/spacer1.gif" width="1" height="1" alt="" /> </span> <?php } else { $error = true; ?> <div class="install_error"><?php echo xtr('Could not find license agreement file.<br />Aborting installation.'); ?> </div> <?php }
} else if (window.getSelection) { var selection = window.getSelection(); var range = document.createRange(); range.selectNodeContents(box); selection.removeAllRanges(); selection.addRange(range); } } }); clip.on('complete', function(client, args) { // `this` is the element that was clicked var alertBox = jQuery(this).parents('.error-text').find('.alert').get(0); if (0 < jQuery(alertBox).length) { alertBox.innerHTML = '<?php echo xtr('Copied to clipboard'); ?> '; jQuery(alertBox).fadeIn(); } setTimeout( function() { jQuery('.error-text.lc_file_permissions .alert').fadeOut(); }, 2000 ); }); }); } );
/** * cfg_create_admin module "Next" button validator * * @return string */ function module_cfg_create_admin_js_next() { ?> function step_next() { // validate login // if (!checkEmailAddress(document.ifrm.elements['params[login]'])) { return false; } // validate password and password confirm // if (document.ifrm.elements['params[password]'].value == "") { alert('<?php echo xtr('Please, enter non-empty password'); ?> '); return false; } if (document.ifrm.elements['params[confirm_password]'].value == "") { alert('<?php echo xtr('Please, enter non-empty password confirmation'); ?> '); return false; } if (document.ifrm.elements['params[password]'].value != document.ifrm.elements['params[confirm_password]'].value) { alert("<?php echo xtr('Password doesn\'t match confirmation!'); ?> "); return false; } return true; } function checkEmailAddress(field) { var goodEmail = field.value.search(/^(\S+@)[^\.][A-Za-z0-9_\-\.]+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.biz)|(\.us)|(\.bizz)|(\.coop)|(\..{2,2}))[ ]*$/gi); if (goodEmail != -1) { return true; } else { alert("<?php echo xtr('Please, specify a valid e-mail address!'); ?> "); field.focus(); field.select(); return false; } } <?php }
function get_kb_lc_https_bouncer_description() { return xtr('kb_lc_https_bouncer_description'); }
?> <br /> <br /> <div class="section-title"><?php echo xtr('Additional comments'); ?> </div> <textarea name="user_note" class="report-notes form-control" rows="4" cols="70"></textarea> <br /> <div style="text-align: center;"> <input type="submit" class="btn btn-warning" value="<?php echo xtr('Send a report'); ?> " onclick="javascript: ga('send', 'event', 'button', 'click', 'send-report');" /> </div> </form> </div> <div class="clear"></div> </div> <?php }
?> <td> <input id="try-button" name="try_again" type="button" class="btn btn-default btn-lg" value="<?php echo xtr('Try again'); ?> " onclick="javascript:document.ifrm.go_back.value='2'; document.ifrm.current.value='2'; ga('send', 'event', 'button', 'click', 'try'); document.ifrm.submit();" /> </td> <?php } ?> <td> <input id="next-button" name="next_button" type="submit" class="btn btn-warning btn-lg" value="<?php echo xtr('Next'); ?> "<?php echo $error || $current == 1 ? ' disabled="disabled"' : ''; ?> onclick="javascript: if (step_next()) { ifrm.submit(); return true; } else { return false; }" /> </td> </tr> </table> <?php } } ?>