Bootstrap and jQuery upgrade for vulnerabilities
This commit is contained in:
148
signin_4.php
148
signin_4.php
@@ -48,75 +48,83 @@
|
||||
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'];};
|
||||
if (empty($_POST['visit_type'])) { $visit_type="";} else {$visit_type=$_POST['visit_type'];};
|
||||
if (empty($_POST['v_signature'])) { $v_signature="";} else {$v_signature=$_POST['v_signature'];};
|
||||
if (empty($_POST['e_signature'])) { $e_signature="";} else {$e_signature=$_POST['e_signature'];};
|
||||
if (empty($_POST['escort'])) { $escort="";} else {$escort=$_POST['escort'];};
|
||||
?>
|
||||
<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_display.php" method="post">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input type="hidden" name="siteid" id="siteid" value="<?php echo $siteid; ?>" />
|
||||
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { echo "<p>" . $transLang['ACKNOWLEDGEMENT'] . "</p>"; } ?>
|
||||
<p><?php echo $transLang['COVID_ACKNOWLEDGEMENT']; ?><p>
|
||||
<p><?php echo $transLang['GDPR_TEXT']; ?><p>
|
||||
<p><a class="btn btn-outline-secondary btn-block" data-toggle="modal" data-target="#termsModalLong" href="<?php echo $StaticFunctions->getRules(); ?>"><?php echo $transLang['REFERENCE']; ?>: (<?php echo $transLang['ACKNOWLEDGEMENT_DOC_NAME']; ?>)</a></p>
|
||||
<input type="hidden" name="siteid" id="siteid" value="<?php echo $siteid; ?>" />
|
||||
<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; ?>" />
|
||||
<input type="hidden" name="visit_type" id="visit_type" value="<?php echo $visit_type; ?>" />
|
||||
<input type="hidden" name="v_signature" id="v_signature" value="<?php echo $v_signature; ?>" />
|
||||
<input type="hidden" name="e_signature" id="e_signature" value="<?php echo $e_signature; ?>" />
|
||||
<input type="hidden" name="escort" id="escort" value="<?php echo $escort; ?>" />
|
||||
<a class="btn btn-lg btn-danger btn-block" href="index.php"><?php echo $transLang['CANCEL']; ?></a>
|
||||
<button type="submit" id="saveBtn" class="btn btn-lg btn-success btn-block" name="signin"><?php echo $transLang['SIGNIN']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- TERMS MODAL START -->
|
||||
<div class="modal fade" id="termsModalLong" tabindex="-1" role="dialog" aria-labelledby="termsModalLongTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="termsModalLongTitle"><?php echo $transLang['TERMSTITLE']; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="<?php echo $transLang['CLOSE']; ?>">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<object type="application/pdf" data="<?php echo $StaticFunctions->getRules(); ?>" width="700" height="600">_</object>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo $transLang['CLOSE']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TERMS MODAL END -->
|
||||
<?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'];};
|
||||
if (empty($_POST['visit_type'])) { $visit_type="";} else {$visit_type=$_POST['visit_type'];};
|
||||
if (empty($_POST['v_signature'])) { $v_signature="";} else {$v_signature=$_POST['v_signature'];};
|
||||
if (empty($_POST['e_signature'])) { $e_signature="";} else {$e_signature=$_POST['e_signature'];};
|
||||
if (empty($_POST['escort'])) { $escort="";} else {$escort=$_POST['escort'];};
|
||||
?>
|
||||
<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_display.php" method="post">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col">
|
||||
<input type="hidden" name="siteid" id="siteid" value="<?php echo $siteid; ?>" />
|
||||
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "US") { ?>
|
||||
<p><?php echo $transLang['ACKNOWLEDGEMENT']; ?></p>
|
||||
<?php } ?>
|
||||
<p><?php echo $transLang['COVID_ACKNOWLEDGEMENT']; ?><p>
|
||||
<p><?php echo $transLang['GDPR_TEXT']; ?><p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<a class="btn btn-outline-secondary btn-block" data-bs-toggle="modal" data-bs-target="#termsModalLong" href="<?php echo $StaticFunctions->getRules(); ?>"><?php echo $transLang['REFERENCE']; ?>: (<?php echo $transLang['ACKNOWLEDGEMENT_DOC_NAME']; ?>)</a>
|
||||
<input type="hidden" name="siteid" id="siteid" value="<?php echo $siteid; ?>" />
|
||||
<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; ?>" />
|
||||
<input type="hidden" name="visit_type" id="visit_type" value="<?php echo $visit_type; ?>" />
|
||||
<input type="hidden" name="v_signature" id="v_signature" value="<?php echo $v_signature; ?>" />
|
||||
<input type="hidden" name="e_signature" id="e_signature" value="<?php echo $e_signature; ?>" />
|
||||
<input type="hidden" name="escort" id="escort" value="<?php echo $escort; ?>" />
|
||||
<a class="btn btn-lg btn-danger" href="index.php"><?php echo $transLang['CANCEL']; ?></a>
|
||||
<button type="submit" id="saveBtn" class="btn btn-lg btn-success" name="signin"><?php echo $transLang['SIGNIN']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- END CONTENT -->
|
||||
<!-- START TERMS MODAL -->
|
||||
<div class="modal fade" id="termsModalLong" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="termsModalLongTitle"><?php echo $transLang['TERMSTITLE']; ?></h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<object type="application/pdf" data="<?php echo $StaticFunctions->getRules(); ?>" width="700" height="600">_</object>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END TERMS MODAL -->
|
||||
<?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