Compare commits

...

5 Commits

Author SHA1 Message Date
459663e069 Update README.md 2025-09-22 08:50:14 +00:00
ccbb9806f5 Testo del copyright 2025-09-11 10:30:21 +02:00
07b197c89a Link al codice sorgente 2025-09-11 10:21:10 +02:00
fff1e6cddf altra piccola modifica 2025-09-11 09:58:22 +02:00
9c044b051c Piccola modifica 2025-09-11 09:29:59 +02:00
9 changed files with 16 additions and 16 deletions

View File

@@ -65,10 +65,10 @@ $pass = "password123";
```php
$oidc = new OpenIDConnectClient(
'https://keycloak.local/realms/master/',
'orario',
'abcdefghijklmnop'
'orario', // Client ID Keycloak
'abcdefghijklmnop' // Client secret Keycloak
);
$oidc->setRedirectURL('https://orario.local/admin/login.php');
$oidc->setRedirectURL('https://orario.local/admin/login.php'); // orario.local è il dominio base di questa piattaforma
```
- Esempio (``logout.php`` con keycloak):
```php

View File

@@ -57,7 +57,7 @@ if (isset($_GET['delete'])) {
<p>
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</div>
</body>
</html>

View File

@@ -34,7 +34,7 @@ if (!isset($_SESSION['admin'])) {
<p>
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</div>
</body>
</html>

View File

@@ -45,6 +45,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<button type="submit">Login</button>
</form>
</div>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</body>
</html>

View File

@@ -72,7 +72,7 @@ if (isset($_GET['delete'])) {
<p>
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</div>
</body>

View File

@@ -155,7 +155,7 @@ if ($class_id > 0) {
<p style="text-align: center;">
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</div>
<script>

View File

@@ -10,9 +10,9 @@ $hours = [
5 => "Quinta ora<br>11:55 - 12:50",
6 => "Sesta ora<br>12:50 - 13:50"
];
if ($teacher == "No Lezione") {
header("Location: index.php");
exit;
if ($teacher == "No Lezione" || $teacher == "sconosciuto") {
header("Location: index.php");
exit;
}
else if (!isset($_GET['teacher'])) {
header("Location: index.php");
@@ -23,7 +23,6 @@ $teacher = $conn->real_escape_string($_GET['teacher']);
$res = $conn->query("SELECT DISTINCT teacher FROM subjects WHERE teacher = '$teacher' LIMIT 1");
if ($res->num_rows === 0) {
// Insegnante non trovato
header("Location: index.php");
exit;
}
@@ -72,6 +71,6 @@ if ($res->num_rows === 0) {
}
?>
</table>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</body>
</html>

View File

@@ -15,6 +15,7 @@ include("db.php");
<div class="links">
<a href="index.php">Home</a>
<a href="admin/index.php">Admin</a>
<a href="https://git.vichingo455.freeddns.org/emmev-code/orario" target="_blank">Codice sorgente</a>
</div>
</div>
<h1>Orario - a.s. 2025/26</h1>
@@ -41,7 +42,7 @@ include("db.php");
<?php
$res = $conn->query("SELECT DISTINCT teacher FROM subjects ORDER BY teacher");
while($row = $res->fetch_assoc()){
if ($row['teacher'] != "No Lezione") {
if ($row['teacher'] != "No Lezione" && $row['teacher'] != "sconosciuto") {
$teacher_name = htmlspecialchars($row['teacher']);
echo "<ul><li><b>$teacher_name</b></li>";
echo "<li><a href='docenti.php?teacher=".urlencode($teacher_name)."'>Visualizza orario</a></li>";
@@ -65,6 +66,6 @@ while($row = $res->fetch_assoc()){
?>
</div>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</body>
</html>

View File

@@ -66,6 +66,6 @@ if ($res->num_rows === 0) {
}
?>
</table>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. All rights reserved.</p>
<p style="text-align: center;">Copyright (C) 2025 EmmeV. - Released under <a href="https://git.vichingo455.freeddns.org/emmev-code/orario/src/branch/stable/LICENSE.txt" target="_blank">GNU AGPL 3.0 License</a>.</p>
</body>
</html>