Commit mineur

This commit is contained in:
xdrm-brackets 2015-11-09 09:56:34 +01:00
parent 8257019c8f
commit 4caf4df7bd
6 changed files with 35 additions and 34 deletions

View File

@ -54,11 +54,11 @@ body{
/* @blurred */ /* @blurred */
*.blurred{ *.blurred{
filter: blur(2px); filter: blur(5px);
-moz-filter: blur(2px); -moz-filter: blur(5px);
-webkit-filter: blur(2px); -webkit-filter: blur(5px);
-ms-filter: blur(2px); -ms-filter: blur(5px);
-o-filter: blur(2px); -o-filter: blur(5px);
} }

View File

@ -45,6 +45,10 @@ require_once __ROOT__.'/manager/database.php';
$semestreCheck = $etudiantCheck && preg_match('/^[1-4]{1}$/i', $request->semestre); // semestre (semestre) bon format $semestreCheck = $etudiantCheck && preg_match('/^[1-4]{1}$/i', $request->semestre); // semestre (semestre) bon format
$anneeCheck = $semestreCheck && preg_match('/^[0-9]{4}$/i', $request->annee); // semestre (annee) bon format $anneeCheck = $semestreCheck && preg_match('/^[0-9]{4}$/i', $request->annee); // semestre (annee) bon format
// si c'est pas un admin et que l'année est définie manuellement (alors on met l'année courante)
if( !permission('admin') ) $request->annee = $_SESSION['annee'];
if( $anneeCheck ){ // si tout les paramètres sont bons if( $anneeCheck ){ // si tout les paramètres sont bons
$UEList = DataBase::getInstance()->getModulesByUEByEtudiant($request->etudiant, $request->semestre, $request->annee); $UEList = DataBase::getInstance()->getModulesByUEByEtudiant($request->etudiant, $request->semestre, $request->annee);

View File

@ -56,8 +56,6 @@
/* [1] SESSIONS & REDIRECTION /* [1] SESSIONS & REDIRECTION
============================================================*/ ============================================================*/

View File

@ -1,36 +1,17 @@
{ {
"eleve1": {
"permissions": ["student"],
"password" : "password"
},
"mrd1609a": { "mrd1609a": {
"permissions": ["student"],
"password" : "password" "password" : "password"
}, },
"eleve2": { "eleve2": {
"permissions": ["student"],
"password" : "password" "password" : "password"
}, },
"lbh1609a": { "lbh1609a": {
"permissions": ["teacher"],
"password" : "password"
},
"prof2": {
"permissions": ["master"],
"password" : "password" "password" : "password"
}, },
"admin": { "admin": {
"permissions": ["admin"],
"password" : "password"
},
"admin2": {
"permissions": ["admin"],
"password" : "password" "password" : "password"
} }

View File

@ -1,14 +1,7 @@
<?php define('__ROOT__', dirname(__FILE__) ); <?php define('__ROOT__', dirname(__FILE__) );
require_once __ROOT__.'/manager/security.php'; require_once __ROOT__.'/manager/security.php';
$annee = Date('Y', time()); var_dump( $_SESSION['droits'] );
$mois = (int) Date('m', time());
$annee = 2015; $mois = 8;
if( $mois < 8 ) $annee--;
echo ($mois<8) ? Date('Y', time()) - 1 : Date('Y', time());
/***************/ /***************/
/*** A FAIRE ***/ /*** A FAIRE ***/

25
xdoc/exemple parcours Normal file
View File

@ -0,0 +1,25 @@
*** [NORMAL] ***
S1 - 1, 2000
S2 - 2, 2000
S3 - 3, 2000
S4 - 4, 2000
*** [S1/S2 RATE] ***
S1 - 1, 2000
S2 - 2, 2000
S1 - 1, 2001
S2 - 2, 2001
S3 - 3, 2001
S4 - 4, 2001
*** [S3/S4 RATE] ***
S1 - 1, 2000
S2 - 2, 2000
S3 - 3, 2000
S4 - 4, 2000
S3 - 3, 2001
S4 - 4, 2001