Skip to content

Commit

Permalink
dont_get_modalite_elect
Browse files Browse the repository at this point in the history
  • Loading branch information
crob27 committed Oct 20, 2024
1 parent 8046021 commit edf92a6
Show file tree
Hide file tree
Showing 44 changed files with 212 additions and 20 deletions.
4 changes: 4 additions & 0 deletions cahier_notes/add_modif_cc_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
if (getSettingValue("active_carnets_notes")!='y') {
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

/**
* Calcul des arrondis
*/
Expand Down
4 changes: 4 additions & 0 deletions cahier_notes/add_modif_cc_eval.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
if (getSettingValue("active_carnets_notes")!='y') {
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

/**
* Calcul des arrondis
*/
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/add_modif_conteneur.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

isset($id_conteneur);
$id_conteneur = isset($_POST["id_conteneur"]) ? $_POST["id_conteneur"] : (isset($_GET["id_conteneur"]) ? $_GET["id_conteneur"] : NULL);

Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/add_modif_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$msg="";

isset($id_retour);
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/affiche_tri.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$titre=isset($_POST["titre"]) ? $_POST["titre"] : (isset($_GET["titre"]) ? $_GET["titre"] : NULL);
$chaine1= isset($_POST["chaine1"]) ? $_POST["chaine1"] : (isset($_GET["chaine1"]) ? $_GET["chaine1"] : NULL);
$chaine2= isset($_POST["chaine2"]) ? $_POST["chaine2"] : (isset($_GET["chaine2"]) ? $_GET["chaine2"] : NULL);
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/autorisation_exceptionnelle_saisie.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

/*
DROP TABLE IF EXISTS acces_cn;
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/cc_lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$nom_cc = getSettingValue('nom_cc');
if ($nom_cc == '') {
$nom_cc = "evaluation-cumul";
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/copie_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$msg="";

unset($id_devoir);
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/export_cahier_notes.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

unset($id_racine);
$id_racine=isset($_POST["id_racine"]) ? $_POST["id_racine"] : (isset($_GET["id_racine"]) ? $_GET["id_racine"] : NULL);
$type_export=isset($_POST["type_export"]) ? $_POST["type_export"] : (isset($_GET["type_export"]) ? $_GET["type_export"] : NULL);
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/export_sacoche.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//debug_var();

$msg="";
Expand Down
2 changes: 2 additions & 0 deletions cahier_notes/extraction_notes_cn.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$id_classe=isset($_POST['id_classe']) ? $_POST['id_classe'] : NULL;

Expand Down
2 changes: 2 additions & 0 deletions cahier_notes/import_cahier_notes.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;


unset($id_racine);
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@

//debug_var();

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$msg="";

// 20210301
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/index2.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$id_classe = isset($_POST['id_classe']) ? $_POST['id_classe'] : (isset($_GET['id_classe']) ? $_GET['id_classe'] : NULL);

// On fait quelques tests si le statut est 'prof', pour vérifier les restrictions d'accès
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/index_cc.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

require('cc_lib.php');

$id_racine = isset($_POST["id_racine"]) ? $_POST["id_racine"] : (isset($_GET["id_racine"]) ? $_GET["id_racine"] : NULL);
Expand Down
4 changes: 4 additions & 0 deletions cahier_notes/param_releve_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
header("Location: ../logout.php?auto=1");
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$reg_ok = 'yes';
$msg = '';
$bgcolor = "#DEDEDE";
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/releve_pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//debug_var();
/*
foreach($_SESSION['classe'] as $key => $value) {
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/saisie_notes.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$msg = "";

// 20120509
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/saisie_notes_cc.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

// Si le témoin temoin_check_srv() doit être affiché, on l'affichera dans la page à côté de Enregistrer.
$aff_temoin_serveur_hors_entete="y";

Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/toutes_notes.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//Initialisation pour le pdf
$w_pdf=array();
$w1 = "i"; //largeur de la première colonne
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/transfert_cc_vers_cn.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
}
//======================================================================================

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$msg="";

$id_racine=isset($_POST['id_racine']) ? $_POST['id_racine'] : (isset($_GET['id_racine']) ? $_GET['id_racine'] : NULL);
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/visu_cc.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

@setlocale(LC_NUMERIC,'C');

require('cc_lib.php');
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/visu_cc_elv.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ function connectMysqli ($dbHost, $dbUser, $dbPass, $dbDb) {
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

// recherche de l'utilisateur avec propel
$utilisateur = UtilisateurProfessionnelPeer::getUtilisateursSessionEnCours();
if ($utilisateur == null) {
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/visu_releve_notes.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

// rajout christian

function verif_num($texte_ver) {
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/visu_releve_notes_bis.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//debug_var();

//================================
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/visu_releve_notes_ter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

$nom_cc=getSettingValue('nom_cc');
if($nom_cc=='') {
$nom_cc="evaluation-cumul";
Expand Down
3 changes: 3 additions & 0 deletions cahier_notes/visu_toutes_notes2.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//Initialisation

// Modifié pour pouvoir récupérer ces variables en GET pour les CSV
Expand Down
7 changes: 6 additions & 1 deletion cahier_texte/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//debug_var();

$message_avertissement_navigateur = "";
Expand Down Expand Up @@ -170,7 +173,9 @@
// $id_document : tableau des identifiants des documents joints

if (is_numeric($id_groupe)) {
$current_group = get_group($id_groupe);
// 20241019
//$current_group = get_group($id_groupe);
$current_group = get_group($id_groupe, array('classes'));
} else {
$current_group = false;
}
Expand Down
2 changes: 2 additions & 0 deletions cahier_texte_2/acces_cdt.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
die("Le module n'est pas activé.");
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

require($prefixe_arbo_acces_cdt."/cahier_texte_2/cdt_lib.php");

Expand Down
11 changes: 10 additions & 1 deletion cahier_texte_2/ajax_liste_notices_privees.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
include("../lib/initialisationsPropel.inc.php");
require_once("../lib/initialisations.inc.php");

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

// Resume session
$resultat_session = $session_gepi->security_check();
if ($resultat_session == 'c') {
Expand Down Expand Up @@ -95,7 +98,13 @@
}
echo "</div>\n";

$groups=get_groups_for_prof($_SESSION['login']);


// 20241019
//$groups=get_groups_for_prof($_SESSION['login']);
$tab_champs=array('classes', 'matieres', 'profs');
$groups=get_groups_for_prof($_SESSION['login'], NULL, $tab_champs);

if(count($groups)==1) {
$current_group=$groups[0];
echo "<p class='bold'>".$current_group['name']." (<em>".$current_group['description']."</em>) en ".$current_group['classlist_string']."</p>\n";
Expand Down
3 changes: 3 additions & 0 deletions cahier_texte_2/archivage_cdt.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//On vérifie si le module est activé
if ((!getSettingAOui("active_cahiers_texte"))&&(!getSettingAOui("acces_cdt_prof"))) {
die("Le module n'est pas activé.");
Expand Down
5 changes: 5 additions & 0 deletions cahier_texte_2/cdt_lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/


// 20241019
$GLOBALS['dont_get_modalite_elect']=true;


function html_entete($titre='Cahier de textes',$n_arbo=1,$avec_init_php='n',$chaine_login_prof="") {
$entete="";

Expand Down
11 changes: 9 additions & 2 deletions cahier_texte_2/consultation.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function aff_debug($tableau){
die();
}

// 20241019
$GLOBALS['dont_get_modalite_elect']=true;

//On vérifie si le module est activé
if (!acces_cdt()) {
tentative_intrusion(1, "Tentative d'accès au cahier de textes en consultation alors que le module n'est pas activé.");
Expand All @@ -75,8 +78,12 @@ function aff_debug($tableau){
// modification Régis : traité "matiere" au cas où le javascript est désactivé
$id_groupe = isset($_POST["id_groupe"]) ? $_POST["id_groupe"] :(isset($_GET["id_groupe"]) ? $_GET["id_groupe"] : (isset($_POST['matiere']) ? mb_substr(strstr($_POST['matiere'],"id_groupe="),10) : (isset($_GET["matiere"]) ? mb_substr(strstr($_GET["matiere"],"id_groupe="),10) : NULL)));
if (is_numeric($id_groupe)) {
$current_group = get_group($id_groupe);
//if ($id_classe == NULL) $id_classe = $current_group["classes"]["list"][0];
// 20241019
//$current_group = get_group($id_groupe);
$tab_champs=array('matieres', 'classes', 'profs');
$current_group = get_group($id_groupe, $tab_champs);

//if ($id_classe == NULL) $id_classe = $current_group["classes"]["list"][0];
} else {
$current_group = false;
}
Expand Down
Loading

0 comments on commit edf92a6

Please sign in to comment.