|
Server : LiteSpeed System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : dewac4139 ( 1077) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/lsws/admin/html/ |
Upload File : |
<?php
include_once('view/inc/global.php');
$authorizer = CAuthorizer::singleton();
if(isset($_GET['generateKeypair'])) {
$keypair = $authorizer->GenKeyPair();
echo $keypair;
exit;
}
$is_https = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'));
if (!$authorizer->ShowLogin($is_https, $msg)) {
header('location:/index.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en-us">
<?php
$no_main_header = true;
include 'view/inc/header.php';
if (!$is_https) {
?>
<script type="text/javascript" src="/res/js/jcryption/jquery.jcryption.min.js" ></script>
<script type="text/javascript">
$(document).ready(function() {
$("#login").jCryption();
$("input,select,textarea").removeAttr("disabled");
});
</script>
<?php } ?>
<body class="lst-bgdark lst-bg-full">
<div class="container">
<div style="margin-top:25vh"></div>
<div class="col-md-4 col-md-offset-4 padding-10">
<div class="well no-padding">
<form action="login.php" id="login" method="post" class="smart-form client-form" novalidate="novalidate">
<header><div class="text-center"><object type="image/svg+xml" data="/res/img/product_logo.svg" width="80%">Your browser doesn't support SVG</object></div></header>
<fieldset>
<?php
if ($msg != '') {
echo "<section><div class=\"note\">$msg</div></section>";
}
?>
<section>
<label class="label"><?php DMsg::EchoUIStr('l_username')?></label>
<label class="input"> <i class="icon-append fa fa-user"></i>
<input type="text" id="uid" name="userid" tabindex="1" required autofocus="autofocus">
<b class="tooltip tooltip-top-right"><i class="fa fa-user txt-color-teal"></i> <?php DMsg::EchoUIStr('service_enteruser')?></b></label>
</section>
<section>
<label class="label"><?php DMsg::EchoUIStr('l_pass')?></label>
<label class="input"> <i class="icon-append fa fa-lock"></i>
<input type="password" id="pass" name="pass" tabindex="2" required >
<b class="tooltip tooltip-top-right"><i class="fa fa-lock txt-color-teal"></i> <?php DMsg::EchoUIStr('service_enterpass')?></b> </label>
</section>
</fieldset>
<footer>
<button type="submit" class="btn btn-login">
<?php DMsg::EchoUIStr('btn_signin')?>
</button>
</footer>
</form>
</div>
</div>
<br>
</div>
<div class="row" style="margin:40px"></div>
<div class="footer">
<p class="text-center lst-copyright">Copyright © 2014-2024 <a href="https://www.litespeedtech.com">LiteSpeed Technologies, Inc.</a> </p>
</div>
<?php
if (empty($_SERVER['HTTP_REFERER'])) {
include("view/inc/scripts.php");
}
else {
?>
<script type="text/javascript">
if (typeof pageSetUp == 'function') {
pageSetUp();
var pagefunction = function() {
// clears memory even if nothing is in the function
};
// end pagefunction
// run pagefunction on load
pagefunction();
}
</script>
<?php
}
?>
</body>
</html>