<h1>Please login</h1><?php  if (isset($errors)) : ?><?php  if (isset($errors)) : ?><div data-alert class="alert alert-danger alert-dismissible fade show p-2 ps-4" ng-non-bindable><?php  if (!isset($hideErrorButton)) : ?><button type="button" class="btn-close pt-1 pe-1" data-bs-dismiss="alert" aria-label="Close"></button><?php  endif;?><ul class="ps-1 m-0"><?php  foreach ($errors as $err) : ?><li><?php  echo $err?></li><?php  endforeach;?></ul></div><?php  endif;?><?php  endif; ?><?php  if (isset($logout_reason)) : ?><?php  $errors = array('You were logged out because another user logged under same account'); ?><?php  if (isset($errors)) : ?><div data-alert class="alert alert-danger alert-dismissible fade show p-2 ps-4" ng-non-bindable><?php  if (!isset($hideErrorButton)) : ?><button type="button" class="btn-close pt-1 pe-1" data-bs-dismiss="alert" aria-label="Close"></button><?php  endif;?><ul class="ps-1 m-0"><?php  foreach ($errors as $err) : ?><li><?php  echo $err?></li><?php  endforeach;?></ul></div><?php  endif;?><?php  endif;?><?php  if (isset($session_ended)) : ?><?php  $errors = array('Your session has ended. Please login!'); ?><?php  if (isset($errors)) : ?><div data-alert class="alert alert-danger alert-dismissible fade show p-2 ps-4" ng-non-bindable><?php  if (!isset($hideErrorButton)) : ?><button type="button" class="btn-close pt-1 pe-1" data-bs-dismiss="alert" aria-label="Close"></button><?php  endif;?><ul class="ps-1 m-0"><?php  foreach ($errors as $err) : ?><li><?php  echo $err?></li><?php  endforeach;?></ul></div><?php  endif;?><?php  endif;?><form id="form-start-chat" method="post" action="/us/alphachat/index.php/site_admin/user/login"><?php  if (isset($crossdomain) && $crossdomain == true) : ?><input type="hidden" name="cookie" value="crossdomain" /><?php  endif; ?><div class="form-group"><label>Username OR E-mail</label><input class="form-control" type="text" name="Username" value="" /></div><div class="form-group"><label>Password</label><input type="password" class="form-control" name="Password" value="" /></div><div class="form-group"><label class="mb-1"><input class="input-checkbox me-1" type="checkbox" name="rememberMe" value="1">Remember me</label></div><input type="hidden" name="csfr_token" value="<?php  echo erLhcoreClassUser::instance()->getCSFRToken()?>" /><div class="btn-group btn-group-sm" role="group" aria-label="Login"><input type="submit" class="btn btn-primary" value="Login" name="Login" /><a class="btn btn-outline-secondary" href="/us/alphachat/index.php/site_admin/user/forgotpassword">Password reminder</a></div><input type="hidden" name="redirect" value="<?php  echo htmlspecialchars($redirect_url);?>" /><?php  $recaptchaData = array (0 => false,'site_key' => '','secret_key' => '','enabled' => 0,); ?><?php  if (is_array($recaptchaData) && isset($recaptchaData['enabled']) && $recaptchaData['enabled'] == 1) : ?><input type="hidden" name="g-recaptcha" id="recaptcha-content" value=""><script src='https://www.google.com/recaptcha/api.js?render=<?php  echo htmlspecialchars($recaptchaData['site_key'])?>'></script>
<script>grecaptcha.ready(function() {grecaptcha.execute('<?php  echo htmlspecialchars($recaptchaData['site_key'])?>', {action: 'login_action'}).then(function(token) {$('#recaptcha-content').val(token);});});</script><?php  endif; ?></form>