Compare commits

..

7 Commits

Author SHA1 Message Date
4614cd330c Update README.md 2025-09-22 08:48:54 +00:00
7d8760febb Update htdocs/index.php 2025-09-11 08:39:05 +00:00
940426e45c Testo del copyright 2025-09-11 10:35:01 +02:00
78eb485ef7 Link al codice sorgente 2025-09-11 08:21:45 +00:00
060f05247a Altra piccola modifica 2025-09-11 07:58:53 +00:00
e5fb838445 piccola modifica 2025-09-11 07:31:02 +00:00
72ca358139 bruh 2025-09-11 07:18:25 +00:00
10 changed files with 15 additions and 17 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>