This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggiunta la visualizzazione dell'orario Aggiunti gli obiettivi nei voti Cambiata la barra per la navigazione da mobile
- Loading branch information
Showing
16 changed files
with
371 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
header('Content-Type: text/plane; charset=utf-8'); | ||
|
||
// server should keep session data for AT LEAST 1 hour | ||
ini_set('session.gc_maxlifetime', 7200); | ||
|
||
// each client should remember their session id for EXACTLY 1 hour | ||
session_set_cookie_params(7200); | ||
|
||
session_start(); // ready to go! | ||
|
||
//Controllo login | ||
if (strpos($_SERVER['PHP_SELF'], 'login') === false) { | ||
if (empty($_SESSION["cookies"]["__AntiXsrfToken"]) || empty($_SESSION["cookies"]["ASP.NET_SessionId"]) || $_SESSION["expire"] < time()){ | ||
header("location: /login?page=".$_SERVER['PHP_SELF']); | ||
exit; | ||
} | ||
} | ||
|
||
include "../../vendor/autoload.php"; | ||
include "../class.php"; | ||
|
||
use DiDom\Document; | ||
use DiDom\Query; | ||
use DiDom\Element; | ||
|
||
$axios = new axios; | ||
|
||
$axios->postREFamilyData = $_SESSION["getPostREFamily"]; | ||
$axios->QuadrimestreFT = $_COOKIE["QuadrimestreFT"]; | ||
$axios->QuadrimestreFTAll = $_SESSION["QuadrimestreFTAll"]; | ||
$axios->student = $_SESSION["getStudentId"][$_COOKIE['studentNumber']]; | ||
$axios->cookies = $_SESSION["cookies"]; | ||
|
||
$result = $axios->getSchedule(); | ||
// echo "<pre>"; | ||
// print_r($result); | ||
// var_dump($result); | ||
echo json_encode($result); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
<br> | ||
<div class="pos-f-t d-md-none"> | ||
<!-- <div class="collapse" id="navbarToggleExternalContent"> | ||
<div style="background: #aa0836;" class="p-4"> | ||
<h5 class="text-white h4">Collapsed content</h5> | ||
<span class="text-muted">Toggleable via the navbar brand.</span> | ||
</div> | ||
</div> --> | ||
<nav style="background: #aa0836;" class="navbar navbar-dark"> | ||
<button class="navbar-toggler sidebarCollapse" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<a class="navbar-brand text-white sidebarCollapse">REDignus</a> | ||
</nav> | ||
</div> | ||
|
||
<nav class="navbar d-md-none" id="tastomenu" style="display: none;"> | ||
<!-- <nav class="navbar d-md-none" id="tastomenu" style="display: none;"> | ||
<button type="button" id="sidebarCollapse" class="btn btn-outline-danger"> | ||
<i class="fas fa-align-left"></i> | ||
Menù | ||
</button> | ||
</nav> | ||
</nav> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.