This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/elevator.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var string $message - Instructions message to be displayed
* @var array $messages - Feedback messages to be displayed, if any
* @var array $customerUserContext - The logged in user's context
* @var string $verificationMethod - The method of verification (possible value: 'PASSWORD', 'EMAIL', 'AUTH-APP')
* @var bool $showBackupCode - Whether to show the backup code form by default
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-elevator');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
define('LOAD_CSS_MODAL',1);
$showBackupCode = isset($showBackupCode) && $showBackupCode;
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['elevator_header'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<section class="contr" style="margin-top: 20px;">
<h1 class="article__heading article__heading--form">
<span class="icon-in-circle" aria-hidden="true">
<svg class="icon icon-document">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-lock"></use>
</svg>
</span>
<span class="ml-1"><?php echo $hesklang['elevator_header']; ?></span>
</h1>
<section class="ticket__body_block">
<?php hesk3_show_messages($messages); ?>
<div id="mfa-verify"<?php if ($showBackupCode) { echo ' style="display: none"'; } ?>>
<p><?php echo $message; ?></p>
<form action="elevator.php" method="post" name="form1" id="verify-form" class="form ticket-create" novalidate>
<section class="form-groups">
<div class="form-group">
<?php if ($verificationMethod === 'PASSWORD'): ?>
<label class="label" for="regInputPassword"><?php echo $hesklang['pass']; ?></label>
<input type="password" name="verification-code"
id="regInputPassword"
class="form-control"
required>
<div class="input-group-append--icon passwordIsHidden">
<svg class="icon icon-eye-close">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>img/sprite.svg#icon-eye-close"></use>
</svg>
</div>
<?php else: ?>
<label class="label" for="verify-input"><?php echo $hesklang['mfa_code']; ?></label>
<input name="verification-code" id="verify-input" type="text" class="form-control" maxlength="6" placeholder="000000" autocomplete="off">
<?php endif; ?>
</div>
</section>
<div class="form-footer">
<button id="verify-submit" type="submit" class="btn btn-full" ripple="ripple"><?php echo $hesklang['mfa_verify']; ?></button>
<input type="hidden" name="mfa-method" value="<?php echo $verificationMethod; ?>">
<input type="hidden" name="a" value="verify">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
</div>
</form>
<?php if ($verificationMethod === 'EMAIL'): ?>
<form action="elevator.php" class="form" id="send-another-email-form" method="post" name="send-another-email-form" novalidate>
<button class="btn btn-link" type="submit">
<?php echo $hesklang['mfa_send_another_email']; ?>
</button>
<input type="hidden" name="a" value="backup_email">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
</form>
<?php endif; ?>
<?php if ($verificationMethod !== 'PASSWORD'): ?>
<br>
<a href="javascript:HESK_FUNCTIONS.toggleLayerDisplay('verify-another-way');HESK_FUNCTIONS.toggleLayerDisplay('mfa-verify')">
<?php echo $hesklang['mfa_verify_another_way']; ?>
</a>
<?php endif; ?>
</div>
<?php if ($verificationMethod !== 'PASSWORD'): ?>
<div id="verify-another-way" style="display: <?php echo $showBackupCode ? 'block' : 'none'; ?>">
<ul>
<?php if ($verificationMethod === 'AUTH-APP'): ?>
<li>
<div class="flex">
<div class="mfa-alt-icon" aria-hidden="true">
<svg class="icon icon-mail">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-mail"></use>
</svg>
</div>
<div class="mfa-alt-text">
<form action="elevator.php" class="form" id="email-backup-form" method="post" name="email-backup-form" novalidate>
<button class="btn btn-link" type="submit">
<?php echo sprintf($hesklang['mfa_verify_another_way_email'], hesk_maskEmailAddress($customerUserContext['email'])); ?>
</button>
<input type="hidden" name="a" value="backup_email">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
</form>
</div>
</div>
</li>
<?php endif; ?>
<li>
<div class="flex">
<div class="mfa-alt-icon" aria-hidden="true">
<svg class="icon icon-lock">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-lock"></use>
</svg>
</div>
<div class="mfa-alt-text">
<a href="javascript:HESK_FUNCTIONS.toggleLayerDisplay('backup-code-field')">
<?php echo $hesklang['mfa_verify_another_way_code']; ?>
</a>
<div id="backup-code-field" style="display: <?php echo $showBackupCode ? 'block' : 'none'; ?>">
<form action="elevator.php" class="form" id="backup-form" method="post" name="backup-form" novalidate>
<div class="form-group">
<label for="backupCode"><?php echo $hesklang['mfa_backup_code']; ?></label>
<input type="text" class="form-control" id="backupCode" name="backup-code" minlength="8" maxlength="9" autocomplete="off">
</div>
<div class="form__submit mfa">
<button class="btn btn-full" ripple="ripple" type="submit" id="backup-code-submit">
<?php echo $hesklang['s']; ?>
</button>
</div>
<input type="hidden" name="a" value="do_backup_code_verification">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
</form>
</div>
</div>
</div>
</li>
</ul>
<p style="text-align: center">
<a href="javascript:HESK_FUNCTIONS.toggleLayerDisplay('verify-another-way');HESK_FUNCTIONS.toggleLayerDisplay('mfa-verify')">
<?php echo $hesklang['back']; ?>
</a>
</p>
</div>
<?php endif; ?>
</section>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
var $verifyForm = $('#verify-form');
var $backupForm = $('#backup-form');
$verifyForm.preventDoubleSubmission();
$backupForm.preventDoubleSubmission();
$('#verify-input').keyup(function() {
if (this.value.length === 6) {
$('#verify-form').submit();
}
});
$('#backupCode').keyup(function() {
if (this.value.length === 8 || this.value.length === 9) {
$('#backup-form').submit();
}
});
$verifyForm.submit(function() {
$('#verify-submit').attr('disabled', 'disabled')
.addClass('disabled');
});
$backupForm.submit(function() {
$('#backup-code-submit').attr('disabled', 'disabled')
.addClass('disabled');
});
});
</script>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/login.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $messages - Feedback messages to be displayed, if any
* @var array $model - User's entered email if login attempt failed
* @var array $validationFailures - Form fields that resulted in an error when attempting to register, if any
* @var bool $displayForgotPasswordLink - `true` if customers are allowed to submit a "forgot password" request
* @var bool $submittedForgotPasswordForm - `true` if the user submitted the "forgot password" form
* @var bool $displayForgotPasswordModal - `true` if the "forgot password" form should be visible on page load
* @var string $redirectUrl - URL to redirect the user to after logging in, if any
* @var bool $allowAutologin - `true` if the user is permitted to autologin, `false` otherwise
* @var bool $selectAutologin - `true` if the "automatically log in user" radio option should be selected
* @var bool $selectSaveEmail - `true` if the "save email" radio option / checkbox should be selected/checked
* @var bool $selectDoNotRemember - `true` if the "No thanks" radio option should be selected
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-login');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
define('LOAD_CSS_MODAL',1);
define('LOAD_JS_JQUERY_MODAL',1);
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['customer_login'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<div style="margin-bottom: 20px;">
<?php hesk3_show_messages($serviceMessages); ?>
<?php
if (!$submittedForgotPasswordForm) {
hesk3_show_messages($messages);
}
?>
</div>
<h1 class="article__heading article__heading--form">
<span class="icon-in-circle" aria-hidden="true">
<svg class="icon icon-document">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-team"></use>
</svg>
</span>
<span class="ml-1"><?php echo $hesklang['customer_login']; ?></span>
</h1>
<form action="login.php" method="post" name="form1"
id="formNeedValidation"
class="form form-submit-ticket ticket-create <?php echo count($validationFailures) ? 'invalid' : '' ?>"
novalidate>
<section class="form-groups centered">
<div class="form-group required">
<label class="label" for="email"><?php echo $hesklang['customer_email']; ?></label>
<input type="text" id="email" name="email" maxlength="255"
class="form-control <?php echo in_array('login_email', $validationFailures) ? 'iserror' : '' ?>"
value="<?php echo stripslashes(hesk_input($model['email'])); ?>" required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label" for="password"><?php echo $hesklang['pass']; ?></label>
<input type="password" id="password" name="password" class="form-control" required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<?php if ($hesk_settings['customer_autologin']): ?>
<div class="radio-group">
<div class="radio-list">
<div class="radio-custom" style="margin-top: 5px;">
<input type="radio" id="remember_userAUTOLOGIN" name="remember_user" value="AUTOLOGIN" <?php echo $selectAutologin ? 'checked' : ''; ?>>
<label for="remember_userAUTOLOGIN"><?php echo $hesklang['autologin']; ?></label>
</div>
<div class="radio-custom" style="margin-top: 5px;">
<input type="radio" id="remember_userJUSTUSER" name="remember_user" value="JUSTUSER" <?php echo $selectSaveEmail ? 'checked' : ''; ?>>
<label for="remember_userJUSTUSER"><?php echo $hesklang['customer_login_remember_just_email']; ?></label>
</div>
<div class="radio-custom" style="margin-top: 5px;">
<input type="radio" id="remember_userNOTHANKS" name="remember_user" value="NOTHANKS" <?php echo $selectDoNotRemember ? 'checked' : ''; ?>>
<label for="remember_userNOTHANKS"><?php echo $hesklang['nothx']; ?></label>
</div>
</div>
</div>
<?php else: ?>
<div class="reg__checkboxes">
<div class="form-group">
<div class="checkbox-custom">
<input type="checkbox" id="tableCheckboxId2" name="remember_user" value="JUSTUSER" <?php echo $selectSaveEmail ? 'checked' : ''; ?> />
<label for="tableCheckboxId2"><?php echo $hesklang['customer_login_remember_email']; ?></label>
</div>
</div>
</div>
<?php endif;
if ($hesk_settings['question_use'] || ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] !== 1)):
?>
<div class="captcha-block">
<h3><?php echo $hesklang['verify_header']; ?></h3>
<?php if ($hesk_settings['question_use']): ?>
<div class="form-group">
<label class="required" for="question"><?php echo $hesk_settings['question_ask']; ?></label>
<?php
$value = '';
if (isset($_SESSION['c_question']))
{
$value = stripslashes(hesk_input($_SESSION['c_question']));
}
?>
<input type="text" class="form-control <?php echo in_array('question',$validationFailures) ? 'isError' : ''; ?>"
id="question" name="question" size="20" value="<?php echo $value; ?>">
</div>
<?php
endif;
if ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] != 1)
{
?>
<div class="form-group">
<?php
// SPAM prevention verified for this session
if (isset($_SESSION['img_verified']))
{
echo $hesklang['vrfy'];
}
// Use reCAPTCHA V2?
elseif ($hesk_settings['recaptcha_use'] == 2)
{
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>"></div>
<?php
}
// At least use some basic PHP generated image (better than nothing)
else
{
$cls = in_array('mysecnum',$validationFailures) ? 'isError' : '';
?>
<img data-sec-img="1" name="secimg" id="secimgLogin" src="print_sec_img.php?<?php echo rand(10000,99999); ?>" width="150" height="40" alt="<?php echo $hesklang['sec_img']; ?>" title="<?php echo $hesklang['sec_img']; ?>" style="vertical-align:text-bottom">
<a class="btn btn-refresh" href="javascript:void(0)" onclick="javascript:document.getElementById('secimgLogin').src='print_sec_img.php?'+ ( Math.floor((90000)*Math.random()) + 10000);">
<svg class="icon icon-refresh">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-refresh"></use>
</svg>
</a>
<label class="required" for="mysecnum"><?php echo $hesklang['sec_enter']; ?></label>
<input type="text" id="mysecnum" name="mysecnum" size="20" maxlength="5" autocomplete="off" class="form-control <?php echo $cls; ?>">
<?php
}
?>
</div>
<?php
}
?>
</div>
<?php endif; ?>
<div class="divider"></div>
</section>
<div class="form-footer">
<input type="hidden" name="a" value="login">
<input type="hidden" name="goto" value="<?php echo hesk_htmlspecialchars($redirectUrl); ?>">
<button type="submit" class="btn btn-full" ripple="ripple" id="recaptcha-submit"><?php echo $hesklang['customer_login']; ?></button>
<?php if ($displayForgotPasswordLink): ?>
<a href="login.php?forgot=1#modal-contents" data-modal="#forgot-modal" title="<?php echo $hesklang['opens_dialog']; ?>" role="button" class="link"><?php echo $hesklang['customer_forgot_password']; ?></a>
<?php endif; ?>
<?php if ($hesk_settings['customer_accounts_customer_self_register']): ?>
<a href="register.php" class="link"><?php echo $hesklang['create_account']; ?></a>
<?php endif; ?>
</div>
<?php
// Use Invisible reCAPTCHA?
if ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] == 1 && ! isset($_SESSION['img_verified']))
{
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>" data-bind="recaptcha-submit" data-callback="recaptcha_submitForm"></div>
<?php
}
?>
</form>
<?php
if ($hesk_settings['alink'] && $hesk_settings['customer_accounts_required'] === 2):
?>
<div class="article__footer">
<a href="<?php echo $hesk_settings['admin_dir']; ?>/" class="link"><?php echo $hesklang['ap']; ?></a>
</div>
<?php endif; ?>
<!-- Start forgot password form -->
<div id="forgot-modal" role="dialog" aria-modal="true" aria-label="<?php echo $hesklang['reset_your_password']; ?>" class="<?php echo !$displayForgotPasswordModal ? 'modal' : ''; ?>">
<div id="modal-contents" class="<?php echo !$displayForgotPasswordModal ? '' : 'notification orange'; ?>" style="padding-bottom:15px">
<?php
if ($submittedForgotPasswordForm) {
hesk3_show_messages($messages);
}
?>
<b><?php echo $hesklang['reset_your_password']; ?></b><br><br>
<?php echo $hesklang['reset_password_instructions']; ?>
<form action="login.php" method="post" name="form2" id="form2" class="form">
<div class="form-group">
<label class="label screen-reader-text skiplink" for="forgot-email"><?php echo $hesklang['email']; ?></label>
<input id="forgot-email" type="email" class="form-control" name="reset-email" value="<?php echo $model['email']; ?>">
</div>
<?php
// Use Invisible reCAPTCHA?
if (isset($_SESSION['img_verified'])) {
//-- No-op; user is verified
} elseif ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] == 1) {
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>" data-bind="forgot-password-submit" data-callback="recaptcha_submitForgotPasswordForm"></div>
<?php
} elseif ($hesk_settings['secimg_use']) {
?>
<div class="captcha-remind">
<div class="form-group">
<?php
// Use reCAPTCHA V2?
if ($hesk_settings['recaptcha_use'] == 2) {
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>"></div>
<?php } else { ?>
<img data-sec-img="1" name="secimg" id="secimgReset" src="print_sec_img.php?p=reset&<?php echo rand(10000,99999); ?>" width="150" height="40" alt="<?php echo $hesklang['sec_img']; ?>" title="<?php echo $hesklang['sec_img']; ?>" style="vertical-align:text-bottom">
<a class="btn btn-refresh" href="javascript:void(0)" onclick="javascript:document.getElementById('secimgReset').src='print_sec_img.php?p=reset&'+ ( Math.floor((90000)*Math.random()) + 10000);">
<svg class="icon icon-refresh">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-refresh"></use>
</svg>
</a>
<label class="required" for="mysecnum"><?php echo $hesklang['sec_enter']; ?></label>
<input type="text" id="mysecnum" name="mysecnum" size="20" maxlength="5" autocomplete="off" class="form-control">
<?php
}
?>
</div>
</div>
<?php
}
?>
<input type="hidden" name="a" value="forgot_password">
<input type="hidden" id="js" name="forgot" value="<?php echo (hesk_GET('forgot') ? '1' : '0'); ?>">
<button id="forgot-password-submit" type="submit" class="btn btn-full"><?php echo $hesklang['passs']; ?></button>
</form>
</div>
</div>
<!-- End ticket reminder form -->
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
$('#select_category').selectize();
$('a[data-modal]').on('click', function() {
$($(this).data('modal')).modal();
return false;
});
<?php if ($submittedForgotPasswordForm) { ?>
$('#forgot-modal').modal();
$('#forgot-email').select();
<?php } ?>
});
// Override default RECAPTCHA handling functions
function recaptcha_submitForm() {
document.getElementById("formNeedValidation").submit();
}
function recaptcha_submitForgotPasswordForm() {
document.getElementById("form2").submit();
}
</script>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/mfa-needed.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $messages - Feedback messages to be displayed, if any
* @var array $model - Relevant information for the page:
* - token - A verification token used by the backend for security purposes
* - verifyMethod - 'EMAIL' if user is authenticating via email, or 'AUTH-APP' if authenticating via an authenticator app
* - email - The user's email address
* - showBackupCode - Whether to show the backup code form by default
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-mfa-needed');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
define('LOAD_CSS_MODAL',1);
define('LOAD_JS_JQUERY_MODAL',1);
$showBackupCode = isset($model['showBackupCode']) && $model['showBackupCode'];
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['customer_login'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<h1 class="article__heading article__heading--form">
<span class="icon-in-circle" aria-hidden="true">
<svg class="icon icon-document">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-team"></use>
</svg>
</span>
<span class="ml-1"><?php echo $hesklang['customer_login']; ?></span>
</h1>
<section class="ticket__body_block">
<?php hesk3_show_messages($messages); ?>
<div id="mfa-verify"<?php if ($showBackupCode) { echo ' style="display: none"'; } ?>>
<form action="login.php" method="post" name="form1" id="verify-form" class="form ticket-create" novalidate>
<section class="form-groups centered">
<div class="form-group">
<label class="label"><?php echo $hesklang['mfa_verification_code']; ?></label>
<input type="text" name="verification-code" maxlength="6"
id="verify-input"
class="form-control"
placeholder="000000"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
</section>
<div class="form-footer">
<input type="hidden" name="a" value="mfa_verify">
<input type="hidden" name="token" value="<?php echo $model['token']; ?>">
<button id="verify-submit" type="submit" class="btn btn-full" ripple="ripple"><?php echo $hesklang['mfa_verify']; ?></button>
</div>
</form>
<?php if ($model['verifyMethod'] === 'EMAIL'): ?>
<form action="login.php" class="form" id="send-another-email-form" method="post" name="send-another-email-form" novalidate>
<button class="btn btn-link underline" type="submit">
<?php echo $hesklang['mfa_send_another_email']; ?>
</button>
<input type="hidden" name="a" value="mfa_backup_email">
<input type="hidden" name="token" value="<?php echo $model['token']; ?>">
</form>
<br>
<?php endif; ?>
<a href="javascript:HESK_FUNCTIONS.toggleLayerDisplay('verify-another-way');HESK_FUNCTIONS.toggleLayerDisplay('mfa-verify')" class="underline">
<?php echo $hesklang['mfa_verify_another_way']; ?>
</a>
</div>
<div id="verify-another-way" style="display: <?php echo $showBackupCode ? 'block' : 'none'; ?>">
<ul>
<?php if ($model['verifyMethod'] === 'AUTH-APP'): ?>
<li>
<div class="flex">
<div class="mfa-alt-icon" aria-hidden="true">
<svg class="icon icon-mail">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-mail"></use>
</svg>
</div>
<div class="mfa-alt-text">
<form action="login.php" class="form" id="email-backup-form" method="post" name="email-backup-form" novalidate>
<button class="btn btn-link underline" type="submit">
<?php echo sprintf($hesklang['mfa_verify_another_way_email'], hesk_maskEmailAddress($model['email'])); ?>
</button>
<input type="hidden" name="a" value="mfa_backup_email">
<input type="hidden" name="token" value="<?php echo $model['token']; ?>">
</form>
</div>
</div>
</li>
<?php endif; ?>
<li>
<div class="flex">
<div class="mfa-alt-icon" aria-hidden="true">
<svg class="icon icon-lock">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-lock"></use>
</svg>
</div>
<div class="mfa-alt-text">
<a href="javascript:HESK_FUNCTIONS.toggleLayerDisplay('backup-code-field')" class="underline">
<?php echo $hesklang['mfa_verify_another_way_code']; ?>
</a>
<div id="backup-code-field" style="display: <?php echo $showBackupCode ? 'block' : 'none'; ?>">
<form action="login.php" class="form" id="backup-form" method="post" name="backup-form" novalidate>
<div class="form-group">
<label for="backupCode"><?php echo $hesklang['mfa_backup_code']; ?>:</label>
<input type="text" class="form-control" id="backupCode" name="backup-code" minlength="8" maxlength="9" autocomplete="off">
</div>
<div class="form__submit mfa">
<button class="btn btn-full" ripple="ripple" type="submit" id="backup-code-submit">
<?php echo $hesklang['s']; ?>
</button>
</div>
<input type="hidden" name="a" value="mfa_backup_code">
<input type="hidden" name="token" value="<?php echo $model['token']; ?>">
</form>
</div>
</div>
</div>
</li>
</ul>
<p style="text-align: center">
<a href="javascript:HESK_FUNCTIONS.toggleLayerDisplay('verify-another-way');HESK_FUNCTIONS.toggleLayerDisplay('mfa-verify')" class="underline">
<?php echo $hesklang['back']; ?>
</a>
</p>
</div>
</section>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
var $verifyForm = $('#verify-form');
var $backupForm = $('#backup-form');
$verifyForm.preventDoubleSubmission();
$backupForm.preventDoubleSubmission();
$('#verify-input').keyup(function() {
if (this.value.length === 6) {
$('#verify-form').submit();
}
});
$('#backupCode').keyup(function() {
if (this.value.length === 8 || this.value.length === 9) {
$('#backup-form').submit();
}
});
$verifyForm.submit(function() {
$('#verify-submit').attr('disabled', 'disabled')
.addClass('disabled');
});
$backupForm.submit(function() {
$('#backup-code-submit').attr('disabled', 'disabled')
.addClass('disabled');
});
});
</script>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/profile.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $customerUserContext - User info for the customer.
* @var array|null $pendingEmailChange - Indicates if the user has a pending email change. Will contain an array with the new email address, or `null` otherwise.
* @var boolean $userCanChangeEmail - Indicates if the user is permitted to change their own email address
* @var array $messages - Feedback messages to display, if any
* @var array $serviceMessages - Service messages to display, if any
* @var array $validationFailures - Fields that vailed validation when updating profile
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-profile');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['customer_profile'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<div style="margin-bottom: 20px;">
<?php hesk3_show_messages($serviceMessages); ?>
<?php hesk3_show_messages($messages); ?>
</div>
<div class="ticket ticket--profile">
<section class="ticket__body_block naked">
<div class="profile__info">
<h1><?php echo $hesklang['customer_edit_profile']; ?></h1>
<?php if ( ! $userCanChangeEmail): ?>
<div class="form-group">
<label class="label"><?php echo $hesklang['email']; ?>:</label>
<?php echo $customerUserContext['email']; ?>
</div>
<?php endif; ?>
<form action="profile.php" method="post" aria-label="<?php echo $hesklang['customer_edit_profile']; ?>" class="form ticket-create" novalidate>
<div class="form-group required">
<label class="label" for="name"><?php echo $hesklang['name']; ?>:</label>
<input type="text" id="name" name="name" maxlength="255"
class="form-control <?php if (in_array('name', $validationFailures)) {echo 'isError';} ?>"
value="<?php echo $customerUserContext['name']; ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<?php if ($hesk_settings['can_sel_lang']): ?>
<div class="form-group">
<label class="label" for="preferred-language"><?php echo $hesklang['chol']; ?>:</label>
<select class="" name="language" id="preferred-language">
<?php
foreach ($hesk_settings['languages'] as $lang => $info) {
echo '<option value="'.$lang.'" ' . ($lang == $customerUserContext['language'] ? 'selected' : '') . '>'.$lang.'</option>';
}
?>
</select>
</div>
<?php endif; ?>
<div class="profile__control">
<div class="profile__edit">
<input type="hidden" name="action" value="profile">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
<button type="submit" class="btn btn-full wider">
<?php echo $hesklang['save_changes']; ?>
</button>
</div>
</div>
</form>
</div>
</section>
<section class="ticket__body_block naked">
<div class="profile__info">
<h2><?php echo $hesklang['customer_edit_pass']; ?></h2>
<form action="profile.php" method="post" aria-label="<?php echo $hesklang['customer_edit_pass']; ?>" class="form ticket-create" novalidate>
<?php hesk_show_info($hesklang['cur_pass2'] . '<br><br>' . $hesklang['cur_pass3'], ' ', false); ?>
<div class="form-group required">
<label class="label" for="current-password"><?php echo $hesklang['cur_pass']; ?></label>
<input type="password" id="current-password" name="current-password" maxlength="255"
class="form-control <?php if (in_array('current-password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label" for="password"><?php echo $hesklang['new_pass']; ?></label>
<input type="password" id="password" name="password" maxlength="255"
class="form-control <?php if (in_array('password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label" for="confirm-password"><?php echo $hesklang['confirm_new_pass']; ?></label>
<input type="password" id="confirm-password" name="confirm-password" maxlength="255"
class="form-control <?php if (in_array('confirm-password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group">
<label class="label"><?php echo $hesklang['pwdst']; ?></label>
<div style="border: 1px solid var(--white-8); width: 100%; height: 14px">
<div id="progressBar" style="font-size: 1px; height: 12px; width: 0px; border: none;">
</div>
</div>
</div>
<div class="profile__control">
<div class="profile__edit">
<input type="hidden" name="action" value="password">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
<button type="submit" class="btn btn-full wider">
<?php echo $hesklang['save_changes']; ?>
</button>
</div>
</div>
</form>
</div>
</section>
</div>
<div class="ticket ticket--profile">
<?php if ($userCanChangeEmail): ?>
<section class="ticket__body_block naked">
<div class="profile__info">
<h2><?php echo $hesklang['customer_change_email']; ?></h2>
<?php
if ( ! is_null($pendingEmailChange)) {
$resend_link = 'profile.php?action=email-resend&token=' . hesk_token_echo(0);
$resend_message = str_replace('profile.php?action=email-resend', $resend_link, $hesklang['customer_change_resend']);
hesk_show_notice(sprintf($hesklang['customer_change_email_pending'], $pendingEmailChange['new_email']) . ($pendingEmailChange['email_sent_too_recently'] ? '' : '<br><br>' . $resend_message), ' ', false);
}
?>
<form action="profile.php" method="post" aria-label="<?php echo $hesklang['customer_change_email']; ?>" class="form ticket-create" novalidate>
<div class="form-group required">
<label class="label" for="email"><?php echo $hesklang['email']; ?></label>
<input type="email" id="email" name="email" maxlength="255"
class="form-control <?php if (in_array('email', $validationFailures)) {echo 'isError';} ?>"
value="<?php echo $customerUserContext['email']; ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="profile__control">
<div class="profile__edit">
<input type="hidden" name="action" value="email">
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>">
<button type="submit" class="btn btn-full wider">
<?php echo $hesklang['save_changes']; ?>
</button>
</div>
</div>
</form>
</div>
</section>
<?php endif; ?>
<section class="ticket__body_block naked">
<div class="profile__info">
<h2><?php echo $hesklang['mfa']; ?></h2>
<div class="subtext">
<?php if ($customerUserContext['mfa_enrollment'] === '0'): ?>
<?php if ($hesk_settings['require_mfa_customers'] && strlen($customerUserContext['email'])): ?>
<div class="text-success">
<?php echo sprintf($hesklang['mfa_enabled'], $hesklang['mfa_method_email']); ?>
</div>
<?php else: ?>
<div class="text-danger">
<?php echo $hesklang['mfa_disabled']; ?>
</div>
<?php endif; ?>
<?php elseif ($customerUserContext['mfa_enrollment'] === '1'): ?>
<div class="text-success">
<?php echo sprintf($hesklang['mfa_enabled'], $hesklang['mfa_method_email']); ?>
</div>
<?php elseif ($customerUserContext['mfa_enrollment'] === '2'): ?>
<div class="text-success">
<?php echo sprintf($hesklang['mfa_enabled'], $hesklang['mfa_method_auth_app']); ?>
</div>
<?php endif; ?>
</div>
</div>
<div class="profile__control">
<div class="profile__edit">
<a href="manage_mfa.php">
<button class="btn btn-full wider">
<?php echo $hesklang['mfa_manage_profile']; ?>
</button>
</a>
</div>
</div>
</section>
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
$('input[name="password"]').keyup(function() {
HESK_FUNCTIONS.checkPasswordStrength(this.value);
});
});
<?php if ($hesk_settings['can_sel_lang']): ?>
document.addEventListener("DOMContentLoaded", function() {
$('#preferred-language').selectize();
});
<?php endif; ?>
</script>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/register-success.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $messages - Feedback messages to be displayed, if any
* @var array $model - User information (name, email, language)
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-register-success');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['customer_register'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<div style="margin-bottom: 20px;">
<?php hesk3_show_messages($serviceMessages); ?>
<?php hesk3_show_messages($messages); ?>
</div>
<div class="main__content notice-flash">
<div role="alert" class="notification orange">
<p><b><?php echo $hesklang['customer_registration_check_your_email']; ?></b></p>
<p><?php echo $hesklang['customer_registration_check_your_email_content']; ?></p>
</div>
</div>
</div>
</div>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/register.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $validationFailures - Form fields that resulted in an error when attempting to register, if any
* @var array $messages - Feedback messages to be displayed, if any
* @var array $model - User model, populated if registration attempt resulted in an error
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-register');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
define('LOAD_CSS_MODAL',1);
define('LOAD_JS_JQUERY_MODAL',1);
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['customer_register'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<div style="margin-bottom: 20px;">
<?php hesk3_show_messages($serviceMessages); ?>
<?php hesk3_show_messages($messages); ?>
</div>
<h1 class="article__heading article__heading--form">
<span class="icon-in-circle" aria-hidden="true">
<svg class="icon icon-document">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-team"></use>
</svg>
</span>
<span class="ml-1"><?php echo $hesklang['customer_register']; ?></span>
</h1>
<div class="article-heading-tip">
<span><?php echo $hesklang['req_marked_with']; ?></span>
<span class="label required"></span>
</div>
<form action="register.php" method="post" name="form1" id="formNeedValidation"
class="form form-submit-ticket ticket-create <?php echo count($validationFailures) ? 'invalid' : ''; ?>"
novalidate>
<section class="form-groups centered">
<div class="form-group required">
<label class="label" for="name"><?php echo $hesklang['name']; ?></label>
<input type="text" id="name" name="name" maxlength="255"
class="form-control <?php if (in_array('name', $validationFailures)) {echo 'isError';} ?>"
value="<?php echo isset($model['name']) ? stripslashes(hesk_input($model['name'])) : ''; ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label" for="email"><?php echo $hesklang['customer_email']; ?></label>
<input type="text" id="email" name="email" maxlength="255"
class="form-control <?php if (in_array('email', $validationFailures)) {echo 'isError';} ?>"
value="<?php echo isset($model['email']) ? stripslashes(hesk_input($model['email'])) : ''; ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label" for="password"><?php echo $hesklang['pass']; ?></label>
<input type="password" id="password" name="password"
class="form-control <?php if (in_array('password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label" for="confirm-password"><?php echo $hesklang['confirm_pass']; ?></label>
<input type="password" id="confirm-password" name="confirm-password"
class="form-control <?php if (in_array('password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group">
<label class="label"><?php echo $hesklang['pwdst']; ?></label>
<div style="border: 1px solid var(--white-8); width: 100%; height: 14px">
<div id="progressBar" style="font-size: 1px; height: 12px; width: 0px; border: none;">
</div>
</div>
</div>
<?php
if ($hesk_settings['question_use'] || ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] !== 1)):
?>
<div class="captcha-block">
<h2><?php echo $hesklang['verify_header']; ?></h2>
<?php if ($hesk_settings['question_use']): ?>
<div class="form-group">
<label class="required" for="question"><?php echo $hesk_settings['question_ask']; ?></label>
<?php
$value = '';
if (isset($_SESSION['c_question']))
{
$value = stripslashes(hesk_input($_SESSION['c_question']));
}
?>
<input type="text" class="form-control <?php echo in_array('question',$validationFailures) ? 'isError' : ''; ?>"
id="question" name="question" size="20" value="<?php echo $value; ?>">
</div>
<?php
endif;
if ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] != 1)
{
?>
<div class="form-group">
<?php
// SPAM prevention verified for this session
if (isset($_SESSION['img_verified']))
{
echo $hesklang['vrfy'];
}
// Use reCAPTCHA V2?
elseif ($hesk_settings['recaptcha_use'] == 2)
{
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>"></div>
<?php
}
// At least use some basic PHP generated image (better than nothing)
else
{
$cls = isset($_SESSION['iserror']) && in_array('mysecnum',$_SESSION['iserror']) ? 'isError' : '';
?>
<img name="secimg" src="print_sec_img.php?<?php echo rand(10000,99999); ?>" width="150" height="40" alt="<?php echo $hesklang['sec_img']; ?>" title="<?php echo $hesklang['sec_img']; ?>" style="vertical-align:text-bottom">
<a class="btn btn-refresh" href="javascript:void(0)" onclick="javascript:document.form1.secimg.src='print_sec_img.php?'+ ( Math.floor((90000)*Math.random()) + 10000);">
<svg class="icon icon-refresh">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-refresh"></use>
</svg>
</a>
<label class="required" for="mysecnum"><?php echo $hesklang['sec_enter']; ?></label>
<input type="text" id="mysecnum" name="mysecnum" size="20" maxlength="5" autocomplete="off" class="form-control <?php echo $cls; ?>">
<?php
}
?>
</div>
<?php
}
?>
</div>
<div class="divider"></div>
<?php
endif;
?>
</section>
<div class="form-footer">
<button type="submit" class="btn btn-full" ripple="ripple" id="recaptcha-submit"><?php echo $hesklang['customer_register']; ?></button>
</div>
<?php
// Use Invisible reCAPTCHA?
if ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] == 1 && ! isset($_SESSION['img_verified']))
{
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>" data-bind="recaptcha-submit" data-callback="recaptcha_submitForm"></div>
<?php
}
?>
</form>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
console.log("content loaded load");
$('input[name="password"]').keyup(function() {
HESK_FUNCTIONS.checkPasswordStrength(this.value);
});
});
<?php if (defined('RECAPTCHA')) : ?>
// Override default RECAPTCHA handling functions
function recaptcha_submitForm() {
document.getElementById("formNeedValidation").submit();
}
<?php endif; ?>
</script>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/reset-password.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $validationFailures - Form fields that resulted in an error when attempting to reset password, if any
* @var array $messages - Feedback messages to be displayed, if any
* @var string $validHash - `true` if hash provided is valid, `false` otherwise.
* @var string $resetPasswordHash - The hash provided via email. Needed to verify identity of user resetting their password
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-reset-password');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
define('LOAD_CSS_MODAL',1);
define('LOAD_JS_JQUERY_MODAL',1);
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['passs'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<div style="margin-bottom: 20px;">
<?php hesk3_show_messages($messages); ?>
</div>
<?php if ($validHash): ?>
<h1 class="article__heading article__heading--form">
<span class="icon-in-circle" aria-hidden="true">
<svg class="icon icon-document">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-team"></use>
</svg>
</span>
<span class="ml-1"><?php echo $hesklang['passs']; ?></span>
</h1>
<div class="article-heading-tip">
<span><?php echo $hesklang['req_marked_with']; ?></span>
<span class="label required"></span>
</div>
<form action="reset_password.php" method="post" name="form1" id="formNeedValidation"
class="form form-submit-ticket ticket-create <?php echo count($validationFailures) ? 'invalid' : ''; ?>"
novalidate>
<section class="form-groups centered">
<div class="form-group required">
<label class="label"><?php echo $hesklang['new_pass']; ?></label>
<input type="password" name="password"
class="form-control <?php if (in_array('password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group required">
<label class="label"><?php echo $hesklang['confirm_new_pass']; ?></label>
<input type="password" name="confirm-password"
class="form-control <?php if (in_array('password', $validationFailures)) {echo 'isError';} ?>"
required>
<div class="form-control__error"><?php echo $hesklang['this_field_is_required']; ?></div>
</div>
<div class="form-group">
<label class="label"><?php echo $hesklang['pwdst']; ?></label>
<div style="border: 1px solid var(--white-8); width: 100%; height: 14px">
<div id="progressBar" style="font-size: 1px; height: 12px; width: 0px; border: none;">
</div>
</div>
</div>
<?php
if ($hesk_settings['question_use'] || ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] !== 1)):
?>
<div class="captcha-block">
<h2><?php echo $hesklang['verify_header']; ?></h2>
<?php if ($hesk_settings['question_use']): ?>
<div class="form-group">
<label class="required"><?php echo $hesk_settings['question_ask']; ?></label>
<?php
$value = '';
if (isset($_SESSION['c_question']))
{
$value = stripslashes(hesk_input($_SESSION['c_question']));
}
?>
<input type="text" class="form-control <?php echo in_array('question',$_SESSION['a_iserror']) ? 'isError' : ''; ?>"
name="question" size="20" value="<?php echo $value; ?>">
</div>
<?php
endif;
if ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] != 1)
{
?>
<div class="form-group">
<?php
// SPAM prevention verified for this session
if (isset($_SESSION['img_verified']))
{
echo $hesklang['vrfy'];
}
// Use reCAPTCHA V2?
elseif ($hesk_settings['recaptcha_use'] == 2)
{
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>"></div>
<?php
}
// At least use some basic PHP generated image (better than nothing)
else
{
$cls = in_array('mysecnum',$_SESSION['a_iserror']) ? 'isError' : '';
?>
<img name="secimg" src="print_sec_img.php?<?php echo rand(10000,99999); ?>" width="150" height="40" alt="<?php echo $hesklang['sec_img']; ?>" title="<?php echo $hesklang['sec_img']; ?>" style="vertical-align:text-bottom">
<a class="btn btn-refresh" href="javascript:void(0)" onclick="javascript:document.form1.secimg.src='print_sec_img.php?'+ ( Math.floor((90000)*Math.random()) + 10000);">
<svg class="icon icon-refresh">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-refresh"></use>
</svg>
</a>
<label class="required"><?php echo $hesklang['sec_enter']; ?></label>
<input type="text" name="mysecnum" size="20" maxlength="5" autocomplete="off" class="form-control <?php echo $cls; ?>">
<?php
}
?>
</div>
<?php
}
?>
</div>
<div class="divider"></div>
<?php
endif;
?>
</section>
<div class="form-footer">
<input type="hidden" name="hash" value="<?php echo $resetPasswordHash ?>">
<button type="submit" class="btn btn-full" ripple="ripple" id="recaptcha-submit"><?php echo $hesklang['passs']; ?></button>
</div>
<?php
// Use Invisible reCAPTCHA?
if ($hesk_settings['secimg_use'] && $hesk_settings['recaptcha_use'] == 1 && ! isset($_SESSION['img_verified']))
{
?>
<div class="g-recaptcha" data-sitekey="<?php echo $hesk_settings['recaptcha_public_key']; ?>" data-bind="recaptcha-submit" data-callback="recaptcha_submitForm"></div>
<?php
}
?>
</form>
<?php endif; ?>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
$('input[name="password"]').keyup(function() {
HESK_FUNCTIONS.checkPasswordStrength(this.value);
});
});
<?php if (defined('RECAPTCHA')) : ?>
// Override default RECAPTCHA handling functions
function recaptcha_submitForm() {
document.getElementById("formNeedValidation").submit();
}
<?php endif; ?>
</script>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/account/verify-registration.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $messages - Feedback messages to be displayed, if any
*/
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
define('EXTRA_PAGE_CLASSES','page-verify-registration');
define('ALERTS',1);
define('RENDER_COMMON_ELEMENTS',1);
global $BREADCRUMBS;
$BREADCRUMBS = array(
array('url' => $hesk_settings['site_url'], 'title' => $hesk_settings['site_title']),
array('url' => $hesk_settings['hesk_url'], 'title' => $hesk_settings['hesk_title']),
array('title' => $hesklang['customer_registration_verify_header'])
);
/* Print header */
require_once(TEMPLATE_PATH . 'customer/inc/header.inc.php');
?>
<div class="main__content">
<div class="contr">
<div style="margin-bottom: 20px;">
<?php hesk3_show_messages($messages); ?>
</div>
</div>
</div>
<?php
/* Print Footer */
require_once(TEMPLATE_PATH . 'customer/inc/footer.inc.php');
?>