|
@ -37,11 +37,11 @@ if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") { |
|
|
$_SESSION['username'] = $username; |
|
|
$_SESSION['username'] = $username; |
|
|
$_SESSION['start'] = time(); |
|
|
$_SESSION['start'] = time(); |
|
|
$_SESSION['expire'] = $_SESSION['start'] + (5 * 60); |
|
|
$_SESSION['expire'] = $_SESSION['start'] + (5 * 60); |
|
|
} else { |
|
|
|
|
|
|
|
|
} else { |
|
|
session_destroy(); |
|
|
session_destroy(); |
|
|
header("Location: ../index.html"); |
|
|
header("Location: ../index.html"); |
|
|
die(); |
|
|
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> |
|
|