[openelec-Commits] r1843 - branches/5.4.0-develop/obj

0 views
Skip to first unread message

sof...@adullact.net

unread,
Mar 18, 2019, 6:15:09 AM3/18/19
to openmairi...@googlegroups.com
Author: softime
Date: 2019-03-14 18:28:47 +0100 (Thu, 14 Mar 2019)
New Revision: 1843

Modified:
branches/5.4.0-develop/obj/inscription.class.php
Log:
* Correction de l'utilisation des variables get et post

Modified: branches/5.4.0-develop/obj/inscription.class.php
===================================================================
--- branches/5.4.0-develop/obj/inscription.class.php 2019-03-14 13:23:04 UTC (rev 1842)
+++ branches/5.4.0-develop/obj/inscription.class.php 2019-03-14 17:28:47 UTC (rev 1843)
@@ -402,8 +402,8 @@
if ($recherche_par == "ine") {
(isset($_GET['ine']) ? $ine = $this->f->get_submitted_get_value("ine") : $ine = "");
} elseif ($recherche_par == "etat_civil" || $recherche_par == "") {
- (isset($_GET['nom']) ? $nom = $_GET['nom'] : $nom = "");
- (isset($_GET['prenom']) ? $prenom = $_GET['prenom'] : $prenom = "");
+ (isset($_GET['nom']) ? $nom = $this->f->get_submitted_get_value('nom') : $nom = "");
+ (isset($_GET['prenom']) ? $prenom = $this->f->get_submitted_get_value('prenom') : $prenom = "");
(isset($_GET['exact']) && $_GET['exact']==true ? $exact = true : $exact = false);
(isset($_GET['datenaissance']) ? $datenaissance = $_GET['datenaissance'] : $datenaissance = "");
(isset($_GET['sexe']) ? $sexe = $_GET['sexe'] : $sexe = "");
@@ -415,8 +415,8 @@
if ($recherche_par == "ine") {
(isset($_POST['ine']) ? $ine = $this->f->get_submitted_post_value("ine") : $ine = "");
} elseif ($recherche_par == "etat_civil" || $recherche_par == "") {
- (isset($_POST['nom']) ? $nom = $_POST['nom'] : $nom = "");
- (isset($_POST['prenom']) ? $prenom = $_POST['prenom'] : $prenom = "");
+ (isset($_POST['nom']) ? $nom = $this->f->get_submitted_post_value('nom') : $nom = "");
+ (isset($_POST['prenom']) ? $prenom = $this->f->get_submitted_post_value('prenom') : $prenom = "");
(isset($_POST['exact']) && $_POST['exact']==true ? $exact = true : (isset($exact) ? $exact = $exact : $exact = false));
(isset($_POST['datenaissance']) ? $datenaissance = $_POST['datenaissance'] : $datenaissance = "");
(isset($_POST['sexe']) ? $sexe = $_POST['sexe'] : $sexe = "");
@@ -799,9 +799,9 @@
(isset($_GET['choix_ine']) ? $choix_ine = $_GET['choix_ine'] : $choix_ine = "");
(isset($_GET['datenaissance']) ? $datenaissance = $_GET['datenaissance'] : $datenaissance = "");
(isset($_GET['exact']) && $_GET['exact']==true ? $exact = true : $exact = false);
- (isset($_GET['ine']) ? $ine = $_GET['ine'] : $ine = "");
- (isset($_GET['nom']) ? $nom = $_GET['nom'] : $nom = "");
- (isset($_GET['prenom']) ? $prenom = $_GET['prenom'] : $prenom = "");
+ (isset($_GET['ine']) ? $ine = $this->f->get_submitted_get_value('ine') : $ine = "");
+ (isset($_GET['nom']) ? $nom = $this->f->get_submitted_get_value('nom') : $nom = "");
+ (isset($_GET['prenom']) ? $prenom = $this->f->get_submitted_get_value('prenom') : $prenom = "");
(isset($_GET['recherche_par']) ? $recherche_par = $_GET['recherche_par'] : $recherche_par = "");
(isset($_GET['sexe']) ? $sexe = $_GET['sexe'] : $sexe = "");
}

Reply all
Reply to author
Forward
0 new messages