Bootstrap and jQuery upgrade for vulnerabilities
This commit is contained in:
101
signin_2.php
101
signin_2.php
@@ -48,53 +48,58 @@
|
||||
if ($StaticFunctions->getSessionStatus() == true) { // CHECK STATUS
|
||||
header('Location: index.php'); // ELSE HOME
|
||||
} else { ?>
|
||||
<!-- CONTENT START -->
|
||||
|
||||
<?php if (!empty($_POST)) { // PROCESS POST
|
||||
if (empty($_POST['carnum'])) { $carnum="";} else {$carnum=$_POST['carnum'];};
|
||||
if (empty($_POST['ssanum'])) { $ssanum="";} else {$ssanum=$_POST['ssanum'];};
|
||||
if (empty($_POST['firstname'])) { $firstname="";} else {$firstname=$_POST['firstname'];};
|
||||
if (empty($_POST['lastname'])) { $lastname="";} else {$lastname=$_POST['lastname'];};
|
||||
if (empty($_POST['company'])) { $company="";} else {$company=$_POST['company'];};
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<h2><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['SIGNIN']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<form name="form-signin" class="form-signin" action="signin_3.php" method="post">
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon3"><?php echo $transLang['REASON']; ?></span>
|
||||
</div>
|
||||
<select class="custom-select" id="visit_type" aria-label="Visit Type" name="visit_type" required>
|
||||
<option value="" selected><?php echo $transLang['SELECTREASON']; ?></option><?php foreach($VisitTypeInfo->getVisitTypeInfo("%") as $row): ?>
|
||||
<option value="<?php echo $row['visittypes_id']; ?>"><?php echo $transLang[$row['visittypes_name']]; ?></option><?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input type="hidden" name="carnum" id="carnum" value="<?php echo $carnum; ?>" />
|
||||
<input type="hidden" name="ssanum" id="ssanum" value="<?php echo $ssanum; ?>" />
|
||||
<input type="hidden" name="firstname" id="firstname" value="<?php echo $firstname; ?>" />
|
||||
<input type="hidden" name="lastname" id="lastname" value="<?php echo $lastname; ?>" />
|
||||
<input type="hidden" name="company" id="company" value="<?php echo $company; ?>" />
|
||||
<button type="submit" id="saveBtn" class="btn btn-lg btn-success btn-block" name="signin"><?php echo $transLang['NEXT']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php } else { // EXIT IF NO POST
|
||||
?>
|
||||
<div class="container">
|
||||
<h2><?php echo $transLang['NOSIGNIN']; ?></h2>
|
||||
</div>
|
||||
<?php }; ?>
|
||||
|
||||
<!-- CONTENT END -->
|
||||
<?php }; require_once("inc/footer.inc.php");
|
||||
|
||||
<!-- START CONTENT -->
|
||||
<?php if (!empty($_POST)) { // PROCESS POST
|
||||
if (empty($_POST['carnum'])) { $carnum="";} else {$carnum=$_POST['carnum'];};
|
||||
if (empty($_POST['ssanum'])) { $ssanum="";} else {$ssanum=$_POST['ssanum'];};
|
||||
if (empty($_POST['firstname'])) { $firstname="";} else {$firstname=$_POST['firstname'];};
|
||||
if (empty($_POST['lastname'])) { $lastname="";} else {$lastname=$_POST['lastname'];};
|
||||
if (empty($_POST['company'])) { $company="";} else {$company=$_POST['company'];};
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<h2><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['SIGNIN']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<form name="form-signin" class="form-signin" action="signin_3.php" method="post">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['REASON']; ?></span>
|
||||
<select class="form-select" id="visit_type" aria-label="Visit Type" name="visit_type" required>
|
||||
<option value="" selected><?php echo $transLang['SELECTREASON']; ?></option><?php foreach($VisitTypeInfo->getVisitTypeInfo("%") as $row): ?>
|
||||
<option value="<?php echo $row['visittypes_id']; ?>"><?php echo $transLang[$row['visittypes_name']]; ?></option><?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<input type="hidden" name="carnum" id="carnum" value="<?php echo $carnum; ?>" />
|
||||
<input type="hidden" name="ssanum" id="ssanum" value="<?php echo $ssanum; ?>" />
|
||||
<input type="hidden" name="firstname" id="firstname" value="<?php echo $firstname; ?>" />
|
||||
<input type="hidden" name="lastname" id="lastname" value="<?php echo $lastname; ?>" />
|
||||
<input type="hidden" name="company" id="company" value="<?php echo $company; ?>" />
|
||||
<button type="submit" id="saveBtn" class="btn btn-lg btn-success" name="signin"><?php echo $transLang['NEXT']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- END CONTENT -->
|
||||
<?php } else { ?>
|
||||
<!-- START ERROR -->
|
||||
<div class="container">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<h2><?php echo $transLang['NOSIGNIN']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END ERROR -->
|
||||
<?php }; ?>
|
||||
|
||||
<?php }; require_once("inc/footer.inc.php"); ?>
|
||||
|
||||
Reference in New Issue
Block a user