Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
4614cd330c | |||
7d8760febb | |||
940426e45c | |||
78eb485ef7 | |||
060f05247a | |||
e5fb838445 | |||
72ca358139 | |||
0a3de8a846 |
@@ -1,6 +1,3 @@
|
||||
## AVVISO IMPORTANTE
|
||||
Questo è il ramo di SVILUPPO. È inteso per testare le ultime funzionalità e aiutarmi nello sviluppo. La stabilità e il funzionamento del codice non sono garantiti. Usare a proprio rischio e pericolo.
|
||||
|
||||
# Orario Scuola
|
||||
Una piattaforma web per visualizzare gli orari scolastici delle classi, degli insegnanti e dei vari laboratori (se presenti)
|
||||
|
||||
@@ -65,10 +62,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
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -10,7 +10,7 @@ $hours = [
|
||||
5 => "Quinta ora<br>11:55 - 12:50",
|
||||
6 => "Sesta ora<br>12:50 - 13:50"
|
||||
];
|
||||
if ($teacher == "No Lezione") {
|
||||
if ($teacher == "No Lezione" || $teacher == "sconosciuto") {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
@@ -72,6 +72,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>
|
||||
|
@@ -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 GNU AGPL 3.0 License.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -74,6 +74,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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user