`upload.php` gestion de `checkFiche`

This commit is contained in:
xdrm-brackets 2016-11-27 16:37:40 +01:00
parent 601c7f4ab6
commit 164f3cd4ef
2 changed files with 21 additions and 0 deletions

View File

@ -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']);

View File

@ -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"
}
},