You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
855 B
29 lines
855 B
<?php
|
|
if(!$_SESSION['AUTH']){
|
|
?>
|
|
<li>
|
|
<form method="post">
|
|
<label class="font-10">Username</label>
|
|
<input type="text" name="usr" placeholder="username">
|
|
|
|
<label class="font-10">Password</label>
|
|
<input type="password" name="pwd" placeholder="password">
|
|
<input type="submit" name="go" value="Accedi">
|
|
</form>
|
|
</li>
|
|
<li><a href="<?= $BASE_URL;?>/registrati">Richiedi dati di accesso</a></li>
|
|
<li><a href="<?= $BASE_URL;?>/recupera-password">Recupera password</a></li>
|
|
|
|
<?php
|
|
}else{
|
|
?>
|
|
|
|
<li class="text-center">
|
|
<p class="font-12">Accesso effettuato per:</p>
|
|
<p class="font-12 py-1 font-bold"><?php echo $_SESSION['AUTH']['first_name']." ".$_SESSION['AUTH']['last_name'];?></p>
|
|
<a href="<?= $BASE_URL;?>/logout"><button type="button" class="button">LOGOUT</button></a>
|
|
</li>
|
|
|
|
<?php
|
|
}
|
|
?>
|