From 164f3cd4ef5eae60b6571a181184171aabd44a83 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 27 Nov 2016 16:37:40 +0100 Subject: [PATCH] `upload.php` gestion de `checkFiche` --- build/api/module/upload.php | 5 +++++ build/lightdb/storage/dictionary.json | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/build/api/module/upload.php b/build/api/module/upload.php index 709289b..4d97c63 100644 --- a/build/api/module/upload.php +++ b/build/api/module/upload.php @@ -206,11 +206,15 @@ $checkFiche = $checkFiche && isset($fiches['contact']) && is_numeric($fiches['contact']); $checkFiche = $checkFiche && isset($fiches['sexe']) && is_numeric($fiches['sexe']); $checkFiche = $checkFiche && isset($fiches['age']) && is_string($fiches['age']); + $checkFiche = $checkFiche && isset($fiches['interest']) && is_numeric($fiches['interest']); + $checkFiche = $checkFiche && isset($fiches['relmark']) && is_numeric($fiches['relmark']); $checkFiche = $checkFiche && isset($fiches['job']) && is_string($fiches['job']); $checkFiche = $checkFiche && isset($fiches['loc']) && (is_numeric($fiches['loc']) || $fiches['loc']=='.'); $checkFiche = $checkFiche && isset($fiches['studies']) && is_string($fiches['studies']); $checkFiche = $checkFiche && isset($fiches['famsit']) && is_numeric($fiches['famsit']); $checkFiche = $checkFiche && isset($fiches['reltype']) && is_numeric($fiches['reltype']); + $checkFiche = $checkFiche && isset($fiches['medsoc']) && is_numeric($fiches['medsoc']); + $checkFiche = $checkFiche && isset($fiches['medrel']) && is_numeric($fiches['medrel']); $checkFiche = $checkFiche && isset($fiches['reltypeSpecial']) && is_string($fiches['reltypeSpecial']); $checkFiche = $checkFiche && isset($fiches['city']) && is_string($fiches['city']); $checkFiche = $checkFiche && isset($fiches['cp']) && is_string($fiches['cp']); @@ -218,6 +222,7 @@ $checkFiche = $checkFiche && isset($fiches['context']) && is_numeric($fiches['context']); $checkFiche = $checkFiche && isset($fiches['contextSpecial']) && is_array($fiches['contextSpecial']); $checkFiche = $checkFiche && isset($fiches['freq']) && is_array($fiches['freq']); + $checkFiche = $checkFiche && isset($fiches['irlfreq']) && is_array($fiches['irlfreq']); $checkFiche = $checkFiche && isset($fiches['connect']) && is_array($fiches['connect']); $checkFiche = $checkFiche && isset($fiches['connectSpecial']) && is_array($fiches['connectSpecial']); diff --git a/build/lightdb/storage/dictionary.json b/build/lightdb/storage/dictionary.json index a9eddf1..56056a2 100644 --- a/build/lightdb/storage/dictionary.json +++ b/build/lightdb/storage/dictionary.json @@ -157,6 +157,22 @@ "0": "N'ont aucun effet sur votre relation", "1": "Vous ont rapproché d'elle", "2": "Vous ont éloigné d'elle" + }, + + "interest": { + "0": "1", + "1": "2", + "2": "3", + "3": "4", + "4": "5" + }, + + "relmark": { + "0": "1", + "1": "2", + "2": "3", + "3": "4", + "4": "5" } },