Variabili dentro il file compose e alcuni fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['admin'])) { header("Location: login.php"); exit; }
|
||||
else if (!defined(API_URL) || API_URL == "") { header("Location: index.php"); exit; }
|
||||
include("../lib/db.php");
|
||||
$message = "";
|
||||
$messageType = "";
|
||||
|
||||
@@ -30,7 +30,11 @@ if (!isset($_SESSION['admin'])) {
|
||||
<a href="classes.php">Gestisci Classi</a>
|
||||
<a href="subjects.php">Gestisci Materie</a>
|
||||
<a href="timetable.php">Gestisci Orario</a>
|
||||
<a href="importer.php" style="background: #28a745;">🔄 Importa Orario</a>
|
||||
<?php
|
||||
if (defined(API_URL) || API_URL != "") {
|
||||
echo '<a href="importer.php" style="background: #28a745;">🔄 Importa Orario</a>';
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if ($_SESSION['auth_type'] === 'local') {
|
||||
echo '<a href="password.php">Cambia Password</a>';
|
||||
|
||||
Reference in New Issue
Block a user