|
@ -33,15 +33,15 @@ require_once '../prgdmug/login.php'; |
|
|
//$_SESSION['loggedin'] = true;
|
|
|
//$_SESSION['loggedin'] = true;
|
|
|
//$_SESSION['username'] = 'Test';
|
|
|
//$_SESSION['username'] = 'Test';
|
|
|
if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") { |
|
|
if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") { |
|
|
$_SESSION['loggedin'] = true; |
|
|
|
|
|
$_SESSION['username'] = $username; |
|
|
|
|
|
$_SESSION['start'] = time(); |
|
|
|
|
|
$_SESSION['expire'] = $_SESSION['start'] + (5 * 60); |
|
|
|
|
|
} else { |
|
|
|
|
|
session_destroy(); |
|
|
|
|
|
header("Location: ../index.html"); |
|
|
|
|
|
die(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$_SESSION['loggedin'] = true; |
|
|
|
|
|
$_SESSION['username'] = $username; |
|
|
|
|
|
$_SESSION['start'] = time(); |
|
|
|
|
|
$_SESSION['expire'] = $_SESSION['start'] + (5 * 60); |
|
|
|
|
|
} else { |
|
|
|
|
|
session_destroy(); |
|
|
|
|
|
header("Location: ../index.html"); |
|
|
|
|
|
die(); |
|
|
|
|
|
} |
|
|
?>
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -64,7 +64,7 @@ if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") { |
|
|
<div class="col-5 col-md-3 col-lg-2 offset-lg-1 order-2"> |
|
|
<div class="col-5 col-md-3 col-lg-2 offset-lg-1 order-2"> |
|
|
<div class="d-none d-md-block text-right"> |
|
|
<div class="d-none d-md-block text-right"> |
|
|
<a class="btn btn-secondary btn-sm btn-block" href="logout.php"> |
|
|
<a class="btn btn-secondary btn-sm btn-block" href="logout.php"> |
|
|
<?php print $_SESSION['username'] ?>
|
|
|
|
|
|
|
|
|
<?php print $_SESSION['username'] ? $_SESSION['username'] : 'Cerrar sesión'; ?>
|
|
|
<i class="fa fa-times ml-2" aria-hidden="true"></i> |
|
|
<i class="fa fa-times ml-2" aria-hidden="true"></i> |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
@ -77,7 +77,7 @@ if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") { |
|
|
</div> |
|
|
</div> |
|
|
<div class="collapse navbar-collapse justify-content-start mt-3" id="mainNavbar"> |
|
|
<div class="collapse navbar-collapse justify-content-start mt-3" id="mainNavbar"> |
|
|
<a class="btn btn-secondary btn-sm btn-block" href="logout.php"> |
|
|
<a class="btn btn-secondary btn-sm btn-block" href="logout.php"> |
|
|
<?php print $_SESSION['username'] ? $_SESSION['username'] : 'Cerrar sesión' ?>
|
|
|
|
|
|
|
|
|
<?php print $_SESSION['username'] ? $_SESSION['username'] : 'Cerrar sesión'; ?>
|
|
|
<i class="fa fa-times ml-2" aria-hidden="true"></i> |
|
|
<i class="fa fa-times ml-2" aria-hidden="true"></i> |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|