Encrypt fixes, add carnum options, remove debug lines
This commit is contained in:
@@ -27,8 +27,12 @@
|
||||
session_save_path('.tmp'); // TEMP
|
||||
session_start(); // START
|
||||
require_once __DIR__ . '/autoload.php'; // AUTOLOAD
|
||||
require_once __DIR__ . '/src/Misc/defuse-crypto.phar';
|
||||
use App\LobbySIO\Config\Registry;
|
||||
use Defuse\Crypto\Crypto;
|
||||
use App\LobbySIO\Misc\Csrf; // ANTICSRF
|
||||
$StaticFunctions = new \App\LobbySIO\Misc\StaticFunctions(); // DEFAULT CLASSES
|
||||
$encKey = $StaticFunctions->loadEncryptionKeyFromConfig();
|
||||
$SiteInfo = new \App\LobbySIO\Database\SiteInfo();
|
||||
$Users = new \App\LobbySIO\Database\Users();
|
||||
if (isset($_SESSION['user_id'])) { // LOGGED IN? GET USER OBJECT
|
||||
@@ -229,13 +233,15 @@ if(empty($form_data['fd_formAction'])){
|
||||
</div>
|
||||
</div>
|
||||
<?php if($SiteInfo->getSite($form_data['fd_siteId'], $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?>
|
||||
<div class="row row-cols-2 mb-4">
|
||||
<div class="row row-cols-<?php if($StaticFunctions->getCarnumReqd() == "true") { echo "2"; } else { echo "1"; }?> mb-4">
|
||||
<?php if($StaticFunctions->getCarnumReqd() == "true") { ?>
|
||||
<div class="col d-grid gap-2">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?=$transLang['CARNUM']?></span>
|
||||
<input type="text" id="fd_carNum" name="fd_carNum" class="form-control" placeholder="<?=$transLang['CARNUM']?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col d-grid gap-2">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?=$transLang['SSANUM']?></span>
|
||||
|
||||
Reference in New Issue
Block a user