Compare commits
5 Commits
stable
...
459663e069
Author | SHA1 | Date | |
---|---|---|---|
459663e069 | |||
ccbb9806f5 | |||
07b197c89a | |||
fff1e6cddf | |||
9c044b051c |
@@ -65,10 +65,10 @@ $pass = "password123";
|
|||||||
```php
|
```php
|
||||||
$oidc = new OpenIDConnectClient(
|
$oidc = new OpenIDConnectClient(
|
||||||
'https://keycloak.local/realms/master/',
|
'https://keycloak.local/realms/master/',
|
||||||
'orario',
|
'orario', // Client ID Keycloak
|
||||||
'abcdefghijklmnop'
|
'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):
|
- Esempio (``logout.php`` con keycloak):
|
||||||
```php
|
```php
|
||||||
|
@@ -57,7 +57,7 @@ if (isset($_GET['delete'])) {
|
|||||||
<p>
|
<p>
|
||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -34,7 +34,7 @@ if (!isset($_SESSION['admin'])) {
|
|||||||
<p>
|
<p>
|
||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -45,6 +45,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
<button type="submit">Login</button>
|
<button type="submit">Login</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -72,7 +72,7 @@ if (isset($_GET['delete'])) {
|
|||||||
<p>
|
<p>
|
||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@@ -155,7 +155,7 @@ if ($class_id > 0) {
|
|||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
Nota: Questa pagina si vede meglio da computer desktop. Se sei da computer, puoi ignorare questo messaggio.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@@ -10,7 +10,7 @@ $hours = [
|
|||||||
5 => "Quinta ora<br>11:55 - 12:50",
|
5 => "Quinta ora<br>11:55 - 12:50",
|
||||||
6 => "Sesta ora<br>12:50 - 13:50"
|
6 => "Sesta ora<br>12:50 - 13:50"
|
||||||
];
|
];
|
||||||
if ($teacher == "No Lezione") {
|
if ($teacher == "No Lezione" || $teacher == "sconosciuto") {
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,6 @@ $teacher = $conn->real_escape_string($_GET['teacher']);
|
|||||||
$res = $conn->query("SELECT DISTINCT teacher FROM subjects WHERE teacher = '$teacher' LIMIT 1");
|
$res = $conn->query("SELECT DISTINCT teacher FROM subjects WHERE teacher = '$teacher' LIMIT 1");
|
||||||
|
|
||||||
if ($res->num_rows === 0) {
|
if ($res->num_rows === 0) {
|
||||||
// Insegnante non trovato
|
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -72,6 +71,6 @@ if ($res->num_rows === 0) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -15,6 +15,7 @@ include("db.php");
|
|||||||
<div class="links">
|
<div class="links">
|
||||||
<a href="index.php">Home</a>
|
<a href="index.php">Home</a>
|
||||||
<a href="admin/index.php">Admin</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>
|
||||||
</div>
|
</div>
|
||||||
<h1>Orario - a.s. 2025/26</h1>
|
<h1>Orario - a.s. 2025/26</h1>
|
||||||
@@ -41,7 +42,7 @@ include("db.php");
|
|||||||
<?php
|
<?php
|
||||||
$res = $conn->query("SELECT DISTINCT teacher FROM subjects ORDER BY teacher");
|
$res = $conn->query("SELECT DISTINCT teacher FROM subjects ORDER BY teacher");
|
||||||
while($row = $res->fetch_assoc()){
|
while($row = $res->fetch_assoc()){
|
||||||
if ($row['teacher'] != "No Lezione") {
|
if ($row['teacher'] != "No Lezione" && $row['teacher'] != "sconosciuto") {
|
||||||
$teacher_name = htmlspecialchars($row['teacher']);
|
$teacher_name = htmlspecialchars($row['teacher']);
|
||||||
echo "<ul><li><b>$teacher_name</b></li>";
|
echo "<ul><li><b>$teacher_name</b></li>";
|
||||||
echo "<li><a href='docenti.php?teacher=".urlencode($teacher_name)."'>Visualizza orario</a></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>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -66,6 +66,6 @@ if ($res->num_rows === 0) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user