vwf updates and reports
This commit is contained in:
75
login.php
75
login.php
@@ -111,35 +111,66 @@ if (!empty($_POST)):
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row row-cols-2">
|
||||
|
||||
<!-- SITE CHANGER -->
|
||||
<div class="container-fluid">
|
||||
<div class="row row-cols-3 mb-2">
|
||||
<div class="col d-grid gap-2">
|
||||
<p><b><?php echo $transLang['STR_COMMON_SITE']; ?>:</b> <?php echo $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_name"]; ?>
|
||||
<br><b><?php echo $transLang['STR_COMMON_TIMEZONE']; ?>:</b> <?php echo $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_timezone"]; ?>
|
||||
<br><b><?php echo $transLang['STR_COMMON_REGION']; ?>:</b> <?php echo $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"]; ?></p>
|
||||
<h2><i class="fas fa-globe"></i> <?php echo $transLang['STR_COMMON_SITE']; ?></h2>
|
||||
</div>
|
||||
<div class="col d-grid gap-2">
|
||||
<button type="button" class="btn btn-block btn-lg btn-success" data-bs-toggle="modal" data-bs-target="#sitetimeModal"><?php echo $transLang['STR_COMMON_CHANGE']; ?></button>
|
||||
<div class="col text-start">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text form-control-sm"><?php echo $transLang['STR_COMMON_SITE']; ?></span>
|
||||
<input type="text" class="form-control form-control-sm bg-white" id="created" name="created" value="<?php echo $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_name"]; ?>" readonly/>
|
||||
<span class="input-group-text form-control-sm"><?php echo $transLang['STR_COMMON_TIMEZONE']; ?></span>
|
||||
<input type="text" class="form-control form-control-sm bg-white" id="created" name="created" value="<?php echo $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_timezone"]; ?>" readonly/>
|
||||
<span class="input-group-text form-control-sm"><?php echo $transLang['STR_COMMON_REGION']; ?></span>
|
||||
<input type="text" class="form-control form-control-sm bg-white" id="created" name="created" value="<?php echo $SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"]; ?>" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
<button type="button" class="btn btn-success btn-lg" data-bs-toggle="modal" data-bs-target="#sitetimeModal"><i class="fas fa-random"></i> <?php echo $transLang['STR_COMMON_CHANGE']; ?></button>
|
||||
<a href="login.php" type="button" class="btn btn-primary btn-lg"><i class="fa fa-redo"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<hr />
|
||||
<br />
|
||||
<form class="form-signin" action="login.php" method="post">
|
||||
<?php echo Csrf::getInputToken('home') ?>
|
||||
<div class="input-group input-group-lg">
|
||||
</div>
|
||||
<hr />
|
||||
<!-- SITE CHANGER END -->
|
||||
|
||||
<!-- LOGIN SECTION -->
|
||||
<div class="container-fluid">
|
||||
<form method="post">
|
||||
<?php echo Csrf::getInputToken('home') ?>
|
||||
<div class="row row-cols-3 mb-2">
|
||||
<div class="col d-grid gap-2">
|
||||
<h2><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['LOGIN']; ?></h2>
|
||||
</div>
|
||||
<div class="col text-start">
|
||||
<?php if (Registry::AUTHMETHOD == 'INTERNAL') { ?>
|
||||
<input type="text" class="form-control" aria-describedby="button-addon2" id="username" name="username" placeholder="<?php echo $transLang['USER-USERNAME']; ?>" required autofocus>
|
||||
<input type="password" class="form-control" aria-describedby="button-addon2" id="password" name="password" placeholder="<?php echo $transLang['PASSWORD']; ?>" required autofocus>
|
||||
<div class="input-group-text">
|
||||
<button class="btn btn-success btn-block" type="submit" id="button-addon2" name="login"><?php echo $transLang['LOGIN']; ?></button>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text form-control-sm"><?php echo $transLang['STR_COMMON_SITE']; ?></span>
|
||||
<input type="text" class="form-control form-control-sm bg-white" id="username" name="username" placeholder="<?php echo $transLang['USER-USERNAME']; ?>" required autofocus />
|
||||
<span class="input-group-text form-control-sm"><?php echo $transLang['STR_COMMON_TIMEZONE']; ?></span>
|
||||
<input type="text" class="form-control form-control-sm bg-white" id="password" name="password" placeholder="<?php echo $transLang['PASSWORD']; ?>" required autofocus />
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<a class="btn btn-success btn-block" id="button-addon2" name="login" href="<?php echo str_replace("http%3A%2F%2F","https%3A%2F%2F",$auth->getLoginURL()); ?>"><?php echo $transLang['LOGIN']; ?></a>
|
||||
<?php } elseif (Registry::AUTHMETHOD == 'SAML') { ?>
|
||||
<p><?php echo $transLang['LOGIN_SSO_DESCR']; ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
<?php if (Registry::AUTHMETHOD == 'INTERNAL') { ?>
|
||||
<button type="submit" class="btn btn-success btn-lg" name="login"><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['LOGIN']; ?></button>
|
||||
<?php } elseif (Registry::AUTHMETHOD == 'SAML') { ?>
|
||||
<a type="button" class="btn btn-success btn-lg" name="login" href="<?php echo str_replace("http%3A%2F%2F","https%3A%2F%2F",$auth->getLoginURL()); ?>"><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['LOGIN']; ?></a>
|
||||
<?php } ?>
|
||||
<a href="login.php" type="button" class="btn btn-primary btn-lg"><i class="fa fa-redo"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<hr />
|
||||
<!-- LOGIN SECTION END -->
|
||||
|
||||
<!-- END CONTENT -->
|
||||
|
||||
<!-- CONTENT END -->
|
||||
<?php } require_once("inc/footer.inc.php");
|
||||
|
||||
Reference in New Issue
Block a user