Compare commits
7 Commits
0a3de8a846
...
stable
Author | SHA1 | Date | |
---|---|---|---|
4614cd330c | |||
7d8760febb | |||
940426e45c | |||
78eb485ef7 | |||
060f05247a | |||
e5fb838445 | |||
72ca358139 |
@@ -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
|
# Orario Scuola
|
||||||
Una piattaforma web per visualizzare gli orari scolastici delle classi, degli insegnanti e dei vari laboratori (se presenti)
|
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
|
```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;
|
||||||
}
|
}
|
||||||
@@ -72,6 +72,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 GNU AGPL 3.0 License.</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -74,6 +74,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>
|
||||||
|
@@ -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