`input/phone` et `input/facebook` fonctionnels [FUNC] reste à faire l'export

This commit is contained in:
xdrm-brackets 2016-11-23 13:38:15 +01:00
parent f2da5085f7
commit 05aacfdad3
6 changed files with 331 additions and 147 deletions

View File

@ -24,11 +24,14 @@
public static function phone($params){ public static function phone($params){
extract($params); extract($params);
$START_TIME = microtime(true);
/* [1] On récupère l'id unique actuel /* [1] On récupère l'id unique actuel
=========================================================*/ =========================================================*/
$funiq = fopen( __BUILD__.'/lightdb/storage/uniqid', 'r+' ); $funiq = fopen( __BUILD__.'/lightdb/storage/uniqid', 'r+' );
flock($funiq, LOCK_EX); // On verrouille le fichier flock($funiq, LOCK_EX); // On verrouille le fichier
$uniqid = fgets( $funiq ); $uniqid = trim( fgets( $funiq ) );
if( !is_numeric($uniqid) ) if( !is_numeric($uniqid) )
$uniqid = 0; $uniqid = 0;
@ -77,13 +80,16 @@
$subject_set['subject']['surveys'][] = 'phone'; $subject_set['subject']['surveys'][] = 'phone';
/* (5) On récupère les noms des contacts */ /* (5) On récupère les noms des contacts */
$contactsById = []; // idContact -> nomContact $contactsById = []; // idContact -> nomContact, typeEnquete ('mini' ou 'fiche')
foreach($subject_set['contacts'] as $contactId){ foreach($subject_set['contacts'] as $contactId){
$contactId = intval($contactId); $contactId = intval($contactId);
$contactData = $contactdb->fetch( $contactId ); $contactData = $contactdb->fetch( $contactId );
$contactsById[$contactId] = $contactData['name']; $contactsById[$contactId] = [
'name' => $contactData['name'],
'type' => isset($contactData['studies2']) ? 'fiche' : 'mini'
];
} }
@ -98,26 +104,39 @@
foreach($fiches as $f=>$ficheData){ foreach($fiches as $f=>$ficheData){
/* (1) On récupère les données du contact associé */ /* (1) On récupère les données du contact associé */
if( !isset($contacts[$ficheData['contact']]) ) if( !isset($contacts[$ficheData['uid']]) )
continue; continue;
$contact = $contacts[ $ficheData['contact'] ]; $contact = $contacts[ $ficheData['uid'] ];
/* (2) Si le contact a été importé d'une autre enquête */ /* (2) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) ){ if( isset($contact['existing']) && is_numeric($contact['existing']) ){
$newId = (int) $contact['existing']; $newId = (int) $contact['existing'];
$uname = $contactsById[ intval($contact['existing']) ]; $existingData = null;
$existingData = $dbcontact->fetch( intval($contact['existing']) ); // si le contact existe bien déja -> on recup. ses données
if( isset($contactsById[ $newId ]) )
$existingData = $contactsById[$newId];
$uname = $existingData['name'];
// si aucune référence existante -> on oublie ce contact
if( $existingData === null ){
$finalid[ intval($contact['uid']) ] = null;
continue;
}
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja une fiche ou qu'on a déja fait une fiche, on quitte // S'il a déja une fiche ou qu'on a déja fait une fiche, on quitte
if( is_array($existingData) && isset($existingData['studies2']) || in_array($contact['existing'], $contactsDone['existing']) ) if( $existingData['type'] === 'fiche' || isset($contactsDone['existing'][$newId]) )
continue; continue;
// On l'ajoute à la liste des contacts 'existing' fait
$contactsDone['existing'][$newId] = $newId;
/* (3) Si nouveau contact */ /* (3) Si nouveau contact */
}else{ }else{
@ -126,11 +145,17 @@
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja été saisi, on quitte // S'il a déja été saisi, on met l'ancienne référence puis on passe au suivant
if( in_array($contact['username'], $contactsDone['username']) ) if( isset($contactsDone['username'][$uname]) ){
$finalid[ intval($contact['uid']) ] = $contactsDone['username'][$uname];
continue; continue;
} }
// On l'ajoute à la liste des contacts 'username' fait
$contactsDone['username'][$uname] = $newId;
}
/* (4) Update du @maxId */ /* (4) Update du @maxId */
if( $newId > $maxId ) if( $newId > $maxId )
$maxId = (int) $newId; $maxId = (int) $newId;
@ -169,12 +194,6 @@
]; ];
/* (x) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) )
$contactsDone['existing'][] = $contact['existing'];
/* (x+1) Si nouveau contact */
else
$contactsDone['username'][] = $contact['username'];
} }
@ -183,25 +202,38 @@
foreach($mini as $miniData){ foreach($mini as $miniData){
/* (1) On récupère les données du contact associé */ /* (1) On récupère les données du contact associé */
if( !isset($contacts[$miniData['contact']]) ) if( !isset($contacts[$miniData['uid']]) )
continue; continue;
$contact = $contacts[ $miniData['contact'] ]; $contact = $contacts[ $miniData['uid'] ];
/* (2) Si le contact a été importé d'une autre enquête */ /* (2) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) ){ if( isset($contact['existing']) && is_numeric($contact['existing']) ){
$newId = (int) $contact['existing']; $newId = (int) $contact['existing'];
$uname = $contactsById[ intval($contact['existing']) ]; $existingData = null;
$existingData = $dbcontact->fetch( intval($contact['existing']) ); // si le contact existe bien déja -> on recup. ses données
if( isset($contactsById[ $newId ]) )
$existingData = $contactsById[$newId];
$uname = $existingData['name'];
// si aucune référence existante -> on oublie ce contact
if( $existingData === null ){
$finalid[ intval($contact['uid']) ] = null;
continue;
}
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja une fiche ou qu'on a déja fait une fiche (ou mini), on quitte // S'il a déja une fiche ou qu'on a déja fait une fiche, on quitte
if( is_array($existingData) && isset($existingData['studies2']) || in_array($contact['existing'], $contactsDone['existing']) ) if( $existingData['type'] === 'fiche' || isset($contactsDone['existing'][$newId]) )
continue; continue;
// On l'ajoute à la liste des contacts 'existing' fait
$contactsDone['existing'][$newId] = $newId;
/* (3) Si nouveau contact */ /* (3) Si nouveau contact */
}else{ }else{
@ -210,11 +242,17 @@
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja été saisi, on quitte // S'il a déja été saisi, on met l'ancienne référence puis on passe au suivant
if( in_array($contact['username'], $contactsDone['username']) ) if( isset($contactsDone['username'][$uname]) ){
$finalid[ intval($contact['uid']) ] = $contactsDone['username'][$uname];
continue; continue;
} }
// On l'ajoute à la liste des contacts 'username' fait
$contactsDone['username'][$uname] = $newId;
}
/* (4) Update du @maxId */ /* (4) Update du @maxId */
if( $newId > $maxId ) if( $newId > $maxId )
$maxId = (int) $newId; $maxId = (int) $newId;
@ -243,45 +281,60 @@
]; ];
/* (x) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) )
$contactsDone['existing'][] = $contact['existing'];
/* (x+1) Si nouveau contact */
else
$contactsDone['username'][] = $contact['username'];
} }
/* [6] On enregistre les relations de la MATRICE /* [6] On enregistre les relations de la MATRICE
=========================================================*/ =========================================================*/
var_dump('finalid\'s', $finalid);
$clen = count($finalid); $clen = count($finalid);
/* (1) On récupére les ids des contacts */ /* (1) On récupére les ids (initiaux) des contacts de manière unique */
$doneNewId = [];
$cIdList = []; $cIdList = [];
foreach($finalid as $lastid=>$newid){ foreach($finalid as $lastid=>$newid){
$id = (int) $lastid;
if( !in_array($id, $cIdList) ) // si id (ou reference) déja fait -> suivant
$cIdList[$id] = null; if( array_key_exists($newid, $doneNewId) )
continue;
$cIdList[$lastid] = null;
$doneNewId[$newid] = false;
} }
ksort($cIdList); ksort($cIdList);
/* (2) On remplit les relations */ /* (2) On remplit les relations */
foreach($cIdList as $y=>$yNull){ foreach($cIdList as $x=>$yNull){
foreach($cIdList as $x=>$xNull) foreach($cIdList as $y=>$xNull)
if( $x < $y ){ // On affiche que sous la diagonale if( $x < $y ){ // On affiche que sous la diagonale
// Si relation alter-alter // Si relation alter-alter
$relationXY = isset($matrice[$y]) && in_array($x, $matrice[$y]) $relation_type = isset($matrice[$y]) && in_array($x, $matrice[$y])
|| ( isset($matrice[$x]) && in_array($y, $matrice[$x]) ); || ( isset($matrice[$x]) && in_array($y, $matrice[$x]) );
$relation_type = $relation_type ? 1 : 0; // 0->aucune relation 1->relation alter alter
/* (3) Si la relation existe déja, on ne fait rien */
foreach($subject_set['relations'] as $relation){
// si même A / B
$sameAB = $relation['idA'] == $finalid[$x] && $relation['idB'] == $finalid[$y];
// si même B / A
$sameBA = $relation['idA'] == $finalid[$y] && $relation['idB'] == $finalid[$x];
// si même type
$sameType = $relation['type'] == $relation_type;
// si relation existante -> suivante
if( ($sameAB || $sameBA) && $sameType )
continue;
}
$subject_set['relations'][] = [ $subject_set['relations'][] = [
'idA' => $finalid[$x], 'idA' => $finalid[$x],
'idB' => $finalid[$y], 'idB' => $finalid[$y],
'type' => $relationXY ? 1 : 0 // 0->aucune relation 1->relation alter alter 'type' => $relation_type
]; ];
} }
@ -312,7 +365,10 @@
=========================================================*/ =========================================================*/
return [ return [
'ModuleError' => ManagerError::Success, 'ModuleError' => ManagerError::Success,
'subject_id' => $subject_id 'subject_id' => $subject_id,
'nb_contacts' => count($subject_set['contacts']),
'nb_relations' => count($subject_set['relations']),
'elapsed_time' => microtime(true) - $START_TIME
]; ];
} }
@ -334,11 +390,14 @@
public static function facebook($params){ public static function facebook($params){
extract($params); extract($params);
$START_TIME = microtime(true);
/* [1] On récupère l'id unique actuel /* [1] On récupère l'id unique actuel
=========================================================*/ =========================================================*/
$funiq = fopen( __BUILD__.'/lightdb/storage/uniqid', 'r+' ); $funiq = fopen( __BUILD__.'/lightdb/storage/uniqid', 'r+' );
flock($funiq, LOCK_EX); // On verrouille le fichier flock($funiq, LOCK_EX); // On verrouille le fichier
$uniqid = fgets( $funiq ); $uniqid = trim( fgets( $funiq ) );
if( !is_numeric($uniqid) ) if( !is_numeric($uniqid) )
$uniqid = 0; $uniqid = 0;
@ -383,17 +442,20 @@
$subject_set['relations'] = []; $subject_set['relations'] = [];
/* (4) Ajout de l'enquête */ /* (4) Ajout de l'enquête */
if( !in_array('facebook', $subject_set['surveys']) ) if( !in_array('facebook', $subject_set['subject']['surveys']) )
$subject_set['surveys'][] = 'facebook'; $subject_set['subject']['surveys'][] = 'facebook';
/* (5) On récupère les noms des contacts */ /* (5) On récupère les noms des contacts */
$contactsById = []; // idContact -> nomContact $contactsById = []; // idContact -> nomContact, typeEnquete ('mini' ou 'fiche')
foreach($subject_set['contacts'] as $contactId){ foreach($subject_set['contacts'] as $contactId){
$contactId = intval($contactId); $contactId = intval($contactId);
$contactData = $contactdb->fetch( $contactId ); $contactData = $contactdb->fetch( $contactId );
$contactsById[$contactId] = $contactData['name']; $contactsById[$contactId] = [
'name' => $contactData['name'],
'type' => isset($contactData['studies2']) ? 'fiche' : 'mini'
];
} }
@ -406,25 +468,40 @@
$finalid = []; // id_contact -> id_final_contact (existant ou nouveau) $finalid = []; // id_contact -> id_final_contact (existant ou nouveau)
foreach($fiches as $f=>$ficheData){ foreach($fiches as $f=>$ficheData){
/* (1) On récupère les données du contact associé */
if( !isset($contacts[$ficheData['contact']]) )
break;
$contact = $contacts[ $ficheData['contact'] ]; /* (1) On récupère les données du contact associé */
if( !isset($contacts[$ficheData['uid']]) )
continue;
$contact = $contacts[ $ficheData['uid'] ];
/* (2) Si le contact a été importé d'une autre enquête */ /* (2) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) ){ if( isset($contact['existing']) && is_numeric($contact['existing']) ){
$newId = (int) $contact['existing']; $newId = (int) $contact['existing'];
$uname = $contactsById[ intval($contact['existing']) ]; $existingData = null;
$existingData = $dbcontact->fetch( intval($contact['existing']) ); // si le contact existe bien déja -> on recup. ses données
if( isset($contactsById[ $newId ]) )
$existingData = $contactsById[$newId];
$uname = $existingData['name'];
// si aucune référence existante -> on oublie ce contact
if( $existingData === null ){
$finalid[ intval($contact['uid']) ] = null;
continue;
}
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja une fiche ou qu'on a déja fait une fiche, on quitte // S'il a déja une fiche ou qu'on a déja fait une fiche, on quitte
if( is_array($existingData) && isset($existingData['studies2']) || in_array($contact['existing'], $contactsDone['existing']) ) if( $existingData['type'] === 'fiche' || isset($contactsDone['existing'][$newId]) )
break; continue;
// On l'ajoute à la liste des contacts 'existing' fait
$contactsDone['existing'][$newId] = $newId;
/* (3) Si nouveau contact */ /* (3) Si nouveau contact */
}else{ }else{
@ -434,11 +511,17 @@
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja été saisi, on quitte // S'il a déja été saisi, on met l'ancienne référence puis on passe au suivant
if( in_array($contact['username'], $contactsDone['username']) ) if( isset($contactsDone['username'][$uname]) ){
break; $finalid[ intval($contact['uid']) ] = $contactsDone['username'][$uname];
continue;
} }
// On l'ajoute à la liste des contacts 'username' fait
$contactsDone['username'][$uname] = $newId;
}
/* (4) Update du @maxId */ /* (4) Update du @maxId */
if( $newId > $maxId ) if( $newId > $maxId )
$maxId = (int) $newId; $maxId = (int) $newId;
@ -473,41 +556,49 @@
$subject_set['relations'][] = [ $subject_set['relations'][] = [
'idA' => $subject_id, 'idA' => $subject_id,
'idB' => $newId, 'idB' => $newId,
'type' => ($f<20) ? 6 : 7 // 6->historique 7->messenger 'type' => ($f<20) ? 6 : 7 // 4->historique 5->messenger
]; ];
/* (x) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) )
$contactsDone['existing'][] = $contact['existing'];
/* (x+1) Si nouveau contact */
else
$contactsDone['username'][] = $contact['username'];
} }
/* [5] On enregistre les mini + les contacts des mini /* [5] On enregistre les mini + les contacts des mini
=========================================================*/ =========================================================*/
foreach($mini as $miniData){ foreach($mini as $miniData){
/* (1) On récupère les données du contact associé */
if( !isset($contacts[$miniData['contact']]) )
break;
$contact = $contacts[ $miniData['contact'] ]; /* (1) On récupère les données du contact associé */
if( !isset($contacts[$miniData['uid']]) )
continue;
$contact = $contacts[ $miniData['uid'] ];
/* (2) Si le contact a été importé d'une autre enquête */ /* (2) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) ){ if( isset($contact['existing']) && is_numeric($contact['existing']) ){
$newId = (int) $contact['existing']; $newId = (int) $contact['existing'];
$uname = $contactsById[ intval($contact['existing']) ]; $existingData = null;
$existingData = $dbcontact->fetch( intval($contact['existing']) ); // si le contact existe bien déja -> on recup. ses données
if( isset($contactsById[ $newId ]) )
$existingData = $contactsById[$newId];
$uname = $existingData['name'];
// si aucune référence existante -> on oublie ce contact
if( $existingData === null ){
$finalid[ intval($contact['uid']) ] = null;
continue;
}
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja une fiche ou qu'on a déja fait une fiche (ou mini), on quitte // S'il a déja une fiche ou qu'on a déja fait une fiche, on quitte
if( is_array($existingData) && isset($existingData['studies2']) || in_array($contact['existing'], $contactsDone['existing']) ) if( $existingData['type'] === 'fiche' || isset($contactsDone['existing'][$newId]) )
break; continue;
// On l'ajoute à la liste des contacts 'existing' fait
$contactsDone['existing'][$newId] = $newId;
/* (3) Si nouveau contact */ /* (3) Si nouveau contact */
}else{ }else{
@ -517,11 +608,17 @@
$finalid[ intval($contact['uid']) ] = $newId; $finalid[ intval($contact['uid']) ] = $newId;
// S'il a déja été saisi, on quitte // S'il a déja été saisi, on met l'ancienne référence puis on passe au suivant
if( in_array($contact['username'], $contactsDone['username']) ) if( isset($contactsDone['username'][$uname]) ){
break; $finalid[ intval($contact['uid']) ] = $contactsDone['username'][$uname];
continue;
} }
// On l'ajoute à la liste des contacts 'username' fait
$contactsDone['username'][$uname] = $newId;
}
/* (4) Update du @maxId */ /* (4) Update du @maxId */
if( $newId > $maxId ) if( $newId > $maxId )
$maxId = (int) $newId; $maxId = (int) $newId;
@ -550,44 +647,60 @@
]; ];
/* (x) Si le contact a été importé d'une autre enquête */
if( isset($contact['existing']) && is_numeric($contact['existing']) )
$contactsDone['existing'][] = $contact['existing'];
/* (x+1) Si nouveau contact */
else
$contactsDone['username'][] = $contact['username'];
} }
/* [6] On enregistre les relations de la MATRICE /* [6] On enregistre les relations de la MATRICE
=========================================================*/ =========================================================*/
$clen = count($finalid); $clen = count($finalid);
/* (1) On récupére les ids des contacts */ /* (1) On récupére les ids (initiaux) des contacts de manière unique */
$doneNewId = [];
$cIdList = []; $cIdList = [];
foreach($finalid as $lastid=>$newid){ foreach($finalid as $lastid=>$newid){
$id = (int) $lastid;
if( !in_array($id, $cIdList) ) // si id (ou reference) déja fait -> suivant
$cIdList[$id] = null; if( array_key_exists($newid, $doneNewId) )
continue;
$cIdList[$lastid] = null;
$doneNewId[$newid] = false;
} }
ksort($cIdList); ksort($cIdList);
/* (2) On remplit les relations */ /* (2) On remplit les relations */
foreach($cIdList as $y=>$yNull){ foreach($cIdList as $x=>$yNull){
foreach($cIdList as $x=>$xNull) foreach($cIdList as $y=>$xNull)
if( $x < $y ){ // On affiche que sous la diagonale if( $x < $y ){ // On affiche que sous la diagonale
// Si relation alter-alter // Si relation alter-alter
$relationXY = isset($matrice[$y]) && in_array($x, $matrice[$y]) $relation_type = isset($matrice[$y]) && in_array($x, $matrice[$y])
|| ( isset($matrice[$x]) && in_array($y, $matrice[$x]) ); || ( isset($matrice[$x]) && in_array($y, $matrice[$x]) );
$relation_type = $relation_type ? 1 : 0; // 0->aucune relation 1->relation alter alter
/* (3) Si la relation existe déja, on ne fait rien */
foreach($subject_set['relations'] as $relation){
// si même A / B
$sameAB = $relation['idA'] == $finalid[$x] && $relation['idB'] == $finalid[$y];
// si même B / A
$sameBA = $relation['idA'] == $finalid[$y] && $relation['idB'] == $finalid[$x];
// si même type
$sameType = $relation['type'] == $relation_type;
// si relation existante -> suivante
if( ($sameAB || $sameBA) && $sameType )
continue;
}
$subject_set['relations'][] = [ $subject_set['relations'][] = [
'idA' => $finalid[$x], 'idA' => $finalid[$x],
'idB' => $finalid[$y], 'idB' => $finalid[$y],
'type' => $relationXY ? 1 : 0 // 0->aucune relation 1->relation alter alter 'type' => $relation_type
]; ];
} }
@ -596,14 +709,14 @@
/* [6] On les données du sujet /* [6] On les données du sujet
=========================================================*/ =========================================================*/
$subjectdb->delete($subject_id);
$subjectdb->insert($subject_id, $subject_set); $subjectdb->insert($subject_id, $subject_set);
/* [7] On enregistre les données des contacts /* [7] Ferme les bases de données
=========================================================*/ =========================================================*/
/* (1) On enregistre chaque contact */ $subjectdb->close();
foreach($file['contacts'] as $c=>$contactData) $contactdb->close();
$contactdb->insert($contactData['id'], $contactData);
/* [7] On met à jour le nouvel ID unique /* [7] On met à jour le nouvel ID unique
@ -618,7 +731,10 @@
=========================================================*/ =========================================================*/
return [ return [
'ModuleError' => ManagerError::Success, 'ModuleError' => ManagerError::Success,
'subject_id' => $subject_id 'subject_id' => $subject_id,
'nb_contacts' => count($subject_set['contacts']),
'nb_relations' => count($subject_set['relations']),
'elapsed_time' => microtime(true) - $START_TIME
]; ];
} }

View File

@ -1,43 +1,95 @@
{"id":1,"name":"contact-x","sexe":"1","age":"6","studies2":"01","reltype":"7","dist":"1","job":"82","famsit":"0","city":"35","cp":"10025","quartier":"25","duration":["25","125"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":91,"name":"contact-x","sexe":"1","age":"6","studies2":"01","reltype":"7","dist":"1","job":"82","famsit":"0","city":"35","cp":"10025","quartier":"25","duration":["25","125"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":2,"name":"contact-1","sexe":"0","age":"6","studies2":"06","reltype":"6","dist":"2","job":"36","famsit":"0","city":"16","cp":"10006","quartier":"6","duration":["6","16"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":92,"name":"contact-1","sexe":"0","age":"6","studies2":"06","reltype":"6","dist":"2","job":"36","famsit":"0","city":"16","cp":"10006","quartier":"6","duration":["6","16"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":3,"name":"contact-2","sexe":"1","age":"7","studies2":"07","reltype":"7","dist":"3","job":"41","famsit":"0","city":"17","cp":"10007","quartier":"7","duration":["7","17"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":93,"name":"contact-2","sexe":"1","age":"7","studies2":"07","reltype":"7","dist":"3","job":"41","famsit":"0","city":"17","cp":"10007","quartier":"7","duration":["7","17"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":4,"name":"contact-3","sexe":"2","age":"8","studies2":"08","reltype":"autre","dist":"0","job":"46","famsit":"0","city":"18","cp":"10008","quartier":"8","duration":["8","18"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":94,"name":"contact-3","sexe":"2","age":"8","studies2":"08","reltype":"autre","dist":"0","job":"46","famsit":"0","city":"18","cp":"10008","quartier":"8","duration":["8","18"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":5,"name":"contact-4","sexe":"0","age":"9","studies2":"09","reltype":"0","dist":"1","job":"47","famsit":"0","city":"19","cp":"10009","quartier":"9","duration":["9","19"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":95,"name":"contact-4","sexe":"0","age":"9","studies2":"09","reltype":"0","dist":"1","job":"47","famsit":"0","city":"19","cp":"10009","quartier":"9","duration":["9","19"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":6,"name":"contact-5","sexe":"1","age":"10","studies2":"10","reltype":"1","dist":"2","job":"48","famsit":"0","city":"20","cp":"10010","quartier":"10","duration":["10","110"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":96,"name":"contact-5","sexe":"1","age":"10","studies2":"10","reltype":"1","dist":"2","job":"48","famsit":"0","city":"20","cp":"10010","quartier":"10","duration":["10","110"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":7,"name":"contact-6","sexe":"2","age":"11","studies2":"11","reltype":"2","dist":"3","job":"51","famsit":"0","city":"21","cp":"10011","quartier":"11","duration":["11","111"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":97,"name":"contact-6","sexe":"2","age":"11","studies2":"11","reltype":"2","dist":"3","job":"51","famsit":"0","city":"21","cp":"10011","quartier":"11","duration":["11","111"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":8,"name":"contact-7","sexe":"0","age":"12","studies2":"","reltype":"3","dist":"0","job":"54","famsit":"0","city":"22","cp":"10012","quartier":"12","duration":["12","112"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":98,"name":"contact-7","sexe":"0","age":"12","studies2":"","reltype":"3","dist":"0","job":"54","famsit":"0","city":"22","cp":"10012","quartier":"12","duration":["12","112"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":9,"name":"contact-8","sexe":"1","age":"13","studies2":"01","reltype":"4","dist":"1","job":"55","famsit":"0","city":"23","cp":"10013","quartier":"13","duration":["13","113"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":99,"name":"contact-8","sexe":"1","age":"13","studies2":"01","reltype":"4","dist":"1","job":"55","famsit":"0","city":"23","cp":"10013","quartier":"13","duration":["13","113"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":10,"name":"contact-9","sexe":"2","age":"14","studies2":"02","reltype":"5","dist":"2","job":"56","famsit":"0","city":"24","cp":"10014","quartier":"14","duration":["14","114"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":100,"name":"contact-x","sexe":"1","age":"6","studies2":"01","reltype":"7","dist":"1","job":"82","famsit":"0","city":"35","cp":"10025","quartier":"25","duration":["25","125"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":11,"name":"contact-10","sexe":"0","age":"15","studies2":"03","reltype":"6","dist":"3","job":"61","famsit":"0","city":"25","cp":"10015","quartier":"15","duration":["15","115"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":101,"name":"contact-1","sexe":"0","age":"6","studies2":"06","reltype":"6","dist":"2","job":"36","famsit":"0","city":"16","cp":"10006","quartier":"6","duration":["6","16"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":12,"name":"contact-11","sexe":"1","age":"16","studies2":"04","reltype":"7","dist":"0","job":"66","famsit":"0","city":"26","cp":"10016","quartier":"16","duration":["16","116"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":102,"name":"contact-2","sexe":"1","age":"7","studies2":"07","reltype":"7","dist":"3","job":"41","famsit":"0","city":"17","cp":"10007","quartier":"7","duration":["7","17"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":13,"name":"contact-12","sexe":"2","age":"17","studies2":"05","reltype":"autre","dist":"1","job":"69","famsit":"0","city":"27","cp":"10017","quartier":"17","duration":["17","117"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":103,"name":"contact-3","sexe":"2","age":"8","studies2":"08","reltype":"autre","dist":"0","job":"46","famsit":"0","city":"18","cp":"10008","quartier":"8","duration":["8","18"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":14,"name":"contact-13","sexe":"0","age":"18","studies2":"06","reltype":"0","dist":"2","job":"71","famsit":"0","city":"28","cp":"10018","quartier":"18","duration":["18","118"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":104,"name":"contact-4","sexe":"0","age":"9","studies2":"09","reltype":"0","dist":"1","job":"47","famsit":"0","city":"19","cp":"10009","quartier":"9","duration":["9","19"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":15,"name":"contact-14","sexe":"1","age":"0","studies2":"07","reltype":"1","dist":"3","job":"72","famsit":"0","city":"29","cp":"10019","quartier":"19","duration":["19","119"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":105,"name":"contact-5","sexe":"1","age":"10","studies2":"10","reltype":"1","dist":"2","job":"48","famsit":"0","city":"20","cp":"10010","quartier":"10","duration":["10","110"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":16,"name":"contact-15","sexe":"2","age":"1","studies2":"08","reltype":"2","dist":"0","job":"73","famsit":"0","city":"30","cp":"10020","quartier":"20","duration":["20","120"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":106,"name":"contact-6","sexe":"2","age":"11","studies2":"11","reltype":"2","dist":"3","job":"51","famsit":"0","city":"21","cp":"10011","quartier":"11","duration":["11","111"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":17,"name":"contact-16","sexe":"0","age":"2","studies2":"09","reltype":"3","dist":"1","job":"74","famsit":"0","city":"31","cp":"10021","quartier":"21","duration":["21","121"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":107,"name":"contact-7","sexe":"0","age":"12","studies2":"","reltype":"3","dist":"0","job":"54","famsit":"0","city":"22","cp":"10012","quartier":"12","duration":["12","112"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":18,"name":"contact-17","sexe":"1","age":"3","studies2":"10","reltype":"4","dist":"2","job":"75","famsit":"0","city":"32","cp":"10022","quartier":"22","duration":["22","122"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":108,"name":"contact-8","sexe":"1","age":"13","studies2":"01","reltype":"4","dist":"1","job":"55","famsit":"0","city":"23","cp":"10013","quartier":"13","duration":["13","113"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":19,"name":"contact-18","sexe":"2","age":"4","studies2":"11","reltype":"5","dist":"3","job":"76","famsit":"0","city":"33","cp":"10023","quartier":"23","duration":["23","123"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":109,"name":"contact-9","sexe":"2","age":"14","studies2":"02","reltype":"5","dist":"2","job":"56","famsit":"0","city":"24","cp":"10014","quartier":"14","duration":["14","114"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":20,"name":"contact-19","sexe":"0","age":"5","studies2":"","reltype":"6","dist":"0","job":"81","famsit":"0","city":"34","cp":"10024","quartier":"24","duration":["24","124"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":110,"name":"contact-10","sexe":"0","age":"15","studies2":"03","reltype":"6","dist":"3","job":"61","famsit":"0","city":"25","cp":"10015","quartier":"15","duration":["15","115"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":22,"name":"contact-21","sexe":"2","age":"7","studies2":"02","reltype":"autre","dist":"2","job":"10","famsit":"0","city":"36","cp":"10026","quartier":"26","duration":["26","126"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":111,"name":"contact-11","sexe":"1","age":"16","studies2":"04","reltype":"7","dist":"0","job":"66","famsit":"0","city":"26","cp":"10016","quartier":"16","duration":["16","116"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":23,"name":"contact-22","sexe":"0","age":"8","studies2":"03","reltype":"0","dist":"3","job":"21","famsit":"0","city":"37","cp":"10027","quartier":"27","duration":["27","127"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":112,"name":"contact-12","sexe":"2","age":"17","studies2":"05","reltype":"autre","dist":"1","job":"69","famsit":"0","city":"27","cp":"10017","quartier":"17","duration":["17","117"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":24,"name":"contact-23","sexe":"1","age":"9","studies2":"04","reltype":"1","dist":"0","job":"22","famsit":"0","city":"38","cp":"10028","quartier":"28","duration":["28","128"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":113,"name":"contact-13","sexe":"0","age":"18","studies2":"06","reltype":"0","dist":"2","job":"71","famsit":"0","city":"28","cp":"10018","quartier":"18","duration":["18","118"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":25,"name":"contact-24","sexe":"2","age":"10","studies2":"05","reltype":"2","dist":"1","job":"23","famsit":"0","city":"39","cp":"10029","quartier":"29","duration":["29","129"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":114,"name":"contact-14","sexe":"1","age":"0","studies2":"07","reltype":"1","dist":"3","job":"72","famsit":"0","city":"29","cp":"10019","quartier":"19","duration":["19","119"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":26,"name":"contact-25","sexe":"0","age":"11","studies2":"06","reltype":"3","dist":"2","job":"31","famsit":"0","city":"40","cp":"10030","quartier":"30","duration":["30","130"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":115,"name":"contact-15","sexe":"2","age":"1","studies2":"08","reltype":"2","dist":"0","job":"73","famsit":"0","city":"30","cp":"10020","quartier":"20","duration":["20","120"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":27,"name":"contact-26","sexe":"1","age":"12","studies2":"07","reltype":"4","dist":"3","job":"32","famsit":"0","city":"41","cp":"10031","quartier":"31","duration":["31","131"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":116,"name":"contact-16","sexe":"0","age":"2","studies2":"09","reltype":"3","dist":"1","job":"74","famsit":"0","city":"31","cp":"10021","quartier":"21","duration":["21","121"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":28,"name":"contact-27","sexe":"2","age":"13","studies2":"08","reltype":"5","dist":"0","job":"36","famsit":"0","city":"42","cp":"10032","quartier":"32","duration":["32","132"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":117,"name":"contact-17","sexe":"1","age":"3","studies2":"10","reltype":"4","dist":"2","job":"75","famsit":"0","city":"32","cp":"10022","quartier":"22","duration":["22","122"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":29,"name":"contact-28","sexe":"0","age":"14","studies2":"09","reltype":"6","dist":"1","job":"41","famsit":"0","city":"43","cp":"10033","quartier":"33","duration":["33","133"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":118,"name":"contact-18","sexe":"2","age":"4","studies2":"11","reltype":"5","dist":"3","job":"76","famsit":"0","city":"33","cp":"10023","quartier":"23","duration":["23","123"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":30,"name":"contact-29","sexe":"1","age":"15","studies2":"10","reltype":"7","dist":"2","job":"46","famsit":"0","city":"44","cp":"10034","quartier":"34","duration":["34","134"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":119,"name":"contact-19","sexe":"0","age":"5","studies2":"","reltype":"6","dist":"0","job":"81","famsit":"0","city":"34","cp":"10024","quartier":"24","duration":["24","124"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":31,"name":"contact-30","sexe":"2","age":"16","studies2":"11","reltype":"autre","dist":"3","job":"47","famsit":"0","city":"45","cp":"10035","quartier":"35","duration":["35","135"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":121,"name":"contact-21","sexe":"2","age":"7","studies2":"02","reltype":"autre","dist":"2","job":"10","famsit":"0","city":"36","cp":"10026","quartier":"26","duration":["26","126"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":32,"name":"contact-31","sexe":"0","age":"17","studies2":"","reltype":"0","dist":"0","job":"48","famsit":"0","city":"46","cp":"10036","quartier":"36","duration":["36","136"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":122,"name":"contact-22","sexe":"0","age":"8","studies2":"03","reltype":"0","dist":"3","job":"21","famsit":"0","city":"37","cp":"10027","quartier":"27","duration":["27","127"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":33,"name":"contact-32","sexe":"1","age":"18","studies2":"01","reltype":"1","dist":"1","job":"51","famsit":"0","city":"47","cp":"10037","quartier":"37","duration":["37","137"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":123,"name":"contact-23","sexe":"1","age":"9","studies2":"04","reltype":"1","dist":"0","job":"22","famsit":"0","city":"38","cp":"10028","quartier":"28","duration":["28","128"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":34,"name":"contact-33","sexe":"2","age":"0","studies2":"02","reltype":"2","dist":"2","job":"54","famsit":"0","city":"48","cp":"10038","quartier":"38","duration":["38","138"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":124,"name":"contact-24","sexe":"2","age":"10","studies2":"05","reltype":"2","dist":"1","job":"23","famsit":"0","city":"39","cp":"10029","quartier":"29","duration":["29","129"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":35,"name":"contact-34","sexe":"0","age":"1","studies2":"03","reltype":"3","dist":"3","job":"55","famsit":"0","city":"49","cp":"10039","quartier":"39","duration":["39","139"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":125,"name":"contact-25","sexe":"0","age":"11","studies2":"06","reltype":"3","dist":"2","job":"31","famsit":"0","city":"40","cp":"10030","quartier":"30","duration":["30","130"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":36,"name":"contact-35","sexe":"1","age":"2","studies2":"04","reltype":"4","dist":"0","job":"56","famsit":"0","city":"50","cp":"10040","quartier":"40","duration":["40","140"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":126,"name":"contact-26","sexe":"1","age":"12","studies2":"07","reltype":"4","dist":"3","job":"32","famsit":"0","city":"41","cp":"10031","quartier":"31","duration":["31","131"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":37,"name":"contact-36","sexe":"2","age":"3","studies2":"05","reltype":"5","dist":"1","job":"61","famsit":"0","city":"51","cp":"10041","quartier":"41","duration":["41","141"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":127,"name":"contact-27","sexe":"2","age":"13","studies2":"08","reltype":"5","dist":"0","job":"36","famsit":"0","city":"42","cp":"10032","quartier":"32","duration":["32","132"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":38,"name":"contact-37","sexe":"0","age":"4","studies2":"06","reltype":"6","dist":"2","job":"66","famsit":"0","city":"52","cp":"10042","quartier":"42","duration":["42","142"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":128,"name":"contact-28","sexe":"0","age":"14","studies2":"09","reltype":"6","dist":"1","job":"41","famsit":"0","city":"43","cp":"10033","quartier":"33","duration":["33","133"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":39,"name":"contact-38","sexe":"1","age":"5","studies2":"07","reltype":"7","dist":"3","job":"69","famsit":"0","city":"53","cp":"10043","quartier":"43","duration":["43","143"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":129,"name":"contact-29","sexe":"1","age":"15","studies2":"10","reltype":"7","dist":"2","job":"46","famsit":"0","city":"44","cp":"10034","quartier":"34","duration":["34","134"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":40,"name":"contact-39","sexe":"2","age":"6","studies2":"08","reltype":"autre","dist":"0","job":"71","famsit":"0","city":"54","cp":"10044","quartier":"44","duration":["44","144"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]} {"id":130,"name":"contact-30","sexe":"2","age":"16","studies2":"11","reltype":"autre","dist":"3","job":"47","famsit":"0","city":"45","cp":"10035","quartier":"35","duration":["35","135"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":42,"name":"contact-41","sexe":"1","age":"","studies1":"2","reltype":"1","dist":"."} {"id":131,"name":"contact-31","sexe":"0","age":"17","studies2":"","reltype":"0","dist":"0","job":"48","famsit":"0","city":"46","cp":"10036","quartier":"36","duration":["36","136"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":43,"name":"contact-42","sexe":"0","age":"2","studies1":"3","reltype":"2","dist":"."} {"id":132,"name":"contact-32","sexe":"1","age":"18","studies2":"01","reltype":"1","dist":"1","job":"51","famsit":"0","city":"47","cp":"10037","quartier":"37","duration":["37","137"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":44,"name":"contact-43","sexe":"1","age":"3","studies1":"4","reltype":"3","dist":"."} {"id":133,"name":"contact-33","sexe":"2","age":"0","studies2":"02","reltype":"2","dist":"2","job":"54","famsit":"0","city":"48","cp":"10038","quartier":"38","duration":["38","138"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":45,"name":"contact-44","sexe":"0","age":"4","studies1":"5","reltype":"4","dist":"."} {"id":134,"name":"contact-34","sexe":"0","age":"1","studies2":"03","reltype":"3","dist":"3","job":"55","famsit":"0","city":"49","cp":"10039","quartier":"39","duration":["39","139"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":135,"name":"contact-35","sexe":"1","age":"2","studies2":"04","reltype":"4","dist":"0","job":"56","famsit":"0","city":"50","cp":"10040","quartier":"40","duration":["40","140"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":136,"name":"contact-36","sexe":"2","age":"3","studies2":"05","reltype":"5","dist":"1","job":"61","famsit":"0","city":"51","cp":"10041","quartier":"41","duration":["41","141"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":137,"name":"contact-37","sexe":"0","age":"4","studies2":"06","reltype":"6","dist":"2","job":"66","famsit":"0","city":"52","cp":"10042","quartier":"42","duration":["42","142"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":138,"name":"contact-38","sexe":"1","age":"5","studies2":"07","reltype":"7","dist":"3","job":"69","famsit":"0","city":"53","cp":"10043","quartier":"43","duration":["43","143"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":139,"name":"contact-39","sexe":"2","age":"6","studies2":"08","reltype":"autre","dist":"0","job":"71","famsit":"0","city":"54","cp":"10044","quartier":"44","duration":["44","144"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":141,"name":"contact-41","sexe":"1","age":"","studies1":"2","reltype":"1","dist":"."}
{"id":142,"name":"contact-42","sexe":"0","age":"2","studies1":"3","reltype":"2","dist":"."}
{"id":143,"name":"contact-43","sexe":"1","age":"3","studies1":"4","reltype":"3","dist":"."}
{"id":144,"name":"contact-44","sexe":"0","age":"4","studies1":"5","reltype":"4","dist":"."}
{"id":145,"name":"contact-x","sexe":"1","age":"6","studies2":"01","reltype":"7","dist":"1","job":"82","famsit":"0","city":"35","cp":"10025","quartier":"25","duration":["25","125"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":146,"name":"contact-1","sexe":"0","age":"6","studies2":"06","reltype":"6","dist":"2","job":"36","famsit":"0","city":"16","cp":"10006","quartier":"6","duration":["6","16"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":147,"name":"contact-2","sexe":"1","age":"7","studies2":"07","reltype":"7","dist":"3","job":"41","famsit":"0","city":"17","cp":"10007","quartier":"7","duration":["7","17"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":148,"name":"contact-3","sexe":"2","age":"8","studies2":"08","reltype":"autre","dist":"0","job":"46","famsit":"0","city":"18","cp":"10008","quartier":"8","duration":["8","18"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":149,"name":"contact-4","sexe":"0","age":"9","studies2":"09","reltype":"0","dist":"1","job":"47","famsit":"0","city":"19","cp":"10009","quartier":"9","duration":["9","19"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":150,"name":"contact-5","sexe":"1","age":"10","studies2":"10","reltype":"1","dist":"2","job":"48","famsit":"0","city":"20","cp":"10010","quartier":"10","duration":["10","110"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":151,"name":"contact-6","sexe":"2","age":"11","studies2":"11","reltype":"2","dist":"3","job":"51","famsit":"0","city":"21","cp":"10011","quartier":"11","duration":["11","111"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":152,"name":"contact-7","sexe":"0","age":"12","studies2":"","reltype":"3","dist":"0","job":"54","famsit":"0","city":"22","cp":"10012","quartier":"12","duration":["12","112"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":153,"name":"contact-8","sexe":"1","age":"13","studies2":"01","reltype":"4","dist":"1","job":"55","famsit":"0","city":"23","cp":"10013","quartier":"13","duration":["13","113"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":154,"name":"contact-9","sexe":"2","age":"14","studies2":"02","reltype":"5","dist":"2","job":"56","famsit":"0","city":"24","cp":"10014","quartier":"14","duration":["14","114"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":155,"name":"contact-10","sexe":"0","age":"15","studies2":"03","reltype":"6","dist":"3","job":"61","famsit":"0","city":"25","cp":"10015","quartier":"15","duration":["15","115"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":156,"name":"contact-11","sexe":"1","age":"16","studies2":"04","reltype":"7","dist":"0","job":"66","famsit":"0","city":"26","cp":"10016","quartier":"16","duration":["16","116"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":157,"name":"contact-12","sexe":"2","age":"17","studies2":"05","reltype":"autre","dist":"1","job":"69","famsit":"0","city":"27","cp":"10017","quartier":"17","duration":["17","117"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":158,"name":"contact-13","sexe":"0","age":"18","studies2":"06","reltype":"0","dist":"2","job":"71","famsit":"0","city":"28","cp":"10018","quartier":"18","duration":["18","118"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":159,"name":"contact-14","sexe":"1","age":"0","studies2":"07","reltype":"1","dist":"3","job":"72","famsit":"0","city":"29","cp":"10019","quartier":"19","duration":["19","119"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":160,"name":"contact-15","sexe":"2","age":"1","studies2":"08","reltype":"2","dist":"0","job":"73","famsit":"0","city":"30","cp":"10020","quartier":"20","duration":["20","120"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":161,"name":"contact-16","sexe":"0","age":"2","studies2":"09","reltype":"3","dist":"1","job":"74","famsit":"0","city":"31","cp":"10021","quartier":"21","duration":["21","121"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":162,"name":"contact-17","sexe":"1","age":"3","studies2":"10","reltype":"4","dist":"2","job":"75","famsit":"0","city":"32","cp":"10022","quartier":"22","duration":["22","122"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":163,"name":"contact-18","sexe":"2","age":"4","studies2":"11","reltype":"5","dist":"3","job":"76","famsit":"0","city":"33","cp":"10023","quartier":"23","duration":["23","123"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":164,"name":"contact-19","sexe":"0","age":"5","studies2":"","reltype":"6","dist":"0","job":"81","famsit":"0","city":"34","cp":"10024","quartier":"24","duration":["24","124"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":166,"name":"contact-21","sexe":"2","age":"7","studies2":"02","reltype":"autre","dist":"2","job":"10","famsit":"0","city":"36","cp":"10026","quartier":"26","duration":["26","126"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":167,"name":"contact-22","sexe":"0","age":"8","studies2":"03","reltype":"0","dist":"3","job":"21","famsit":"0","city":"37","cp":"10027","quartier":"27","duration":["27","127"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":168,"name":"contact-23","sexe":"1","age":"9","studies2":"04","reltype":"1","dist":"0","job":"22","famsit":"0","city":"38","cp":"10028","quartier":"28","duration":["28","128"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":169,"name":"contact-24","sexe":"2","age":"10","studies2":"05","reltype":"2","dist":"1","job":"23","famsit":"0","city":"39","cp":"10029","quartier":"29","duration":["29","129"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":170,"name":"contact-25","sexe":"0","age":"11","studies2":"06","reltype":"3","dist":"2","job":"31","famsit":"0","city":"40","cp":"10030","quartier":"30","duration":["30","130"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":171,"name":"contact-26","sexe":"1","age":"12","studies2":"07","reltype":"4","dist":"3","job":"32","famsit":"0","city":"41","cp":"10031","quartier":"31","duration":["31","131"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":172,"name":"contact-27","sexe":"2","age":"13","studies2":"08","reltype":"5","dist":"0","job":"36","famsit":"0","city":"42","cp":"10032","quartier":"32","duration":["32","132"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":173,"name":"contact-28","sexe":"0","age":"14","studies2":"09","reltype":"6","dist":"1","job":"41","famsit":"0","city":"43","cp":"10033","quartier":"33","duration":["33","133"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":174,"name":"contact-29","sexe":"1","age":"15","studies2":"10","reltype":"7","dist":"2","job":"46","famsit":"0","city":"44","cp":"10034","quartier":"34","duration":["34","134"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":175,"name":"contact-30","sexe":"2","age":"16","studies2":"11","reltype":"autre","dist":"3","job":"47","famsit":"0","city":"45","cp":"10035","quartier":"35","duration":["35","135"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":176,"name":"contact-31","sexe":"0","age":"17","studies2":"","reltype":"0","dist":"0","job":"48","famsit":"0","city":"46","cp":"10036","quartier":"36","duration":["36","136"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":177,"name":"contact-32","sexe":"1","age":"18","studies2":"01","reltype":"1","dist":"1","job":"51","famsit":"0","city":"47","cp":"10037","quartier":"37","duration":["37","137"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":178,"name":"contact-33","sexe":"2","age":"0","studies2":"02","reltype":"2","dist":"2","job":"54","famsit":"0","city":"48","cp":"10038","quartier":"38","duration":["38","138"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":179,"name":"contact-34","sexe":"0","age":"1","studies2":"03","reltype":"3","dist":"3","job":"55","famsit":"0","city":"49","cp":"10039","quartier":"39","duration":["39","139"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":180,"name":"contact-35","sexe":"1","age":"2","studies2":"04","reltype":"4","dist":"0","job":"56","famsit":"0","city":"50","cp":"10040","quartier":"40","duration":["40","140"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":181,"name":"contact-36","sexe":"2","age":"3","studies2":"05","reltype":"5","dist":"1","job":"61","famsit":"0","city":"51","cp":"10041","quartier":"41","duration":["41","141"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":182,"name":"contact-37","sexe":"0","age":"4","studies2":"06","reltype":"6","dist":"2","job":"66","famsit":"0","city":"52","cp":"10042","quartier":"42","duration":["42","142"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":183,"name":"contact-38","sexe":"1","age":"5","studies2":"07","reltype":"7","dist":"3","job":"69","famsit":"0","city":"53","cp":"10043","quartier":"43","duration":["43","143"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":184,"name":"contact-39","sexe":"2","age":"6","studies2":"08","reltype":"autre","dist":"0","job":"71","famsit":"0","city":"54","cp":"10044","quartier":"44","duration":["44","144"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
{"id":186,"name":"contact-41","sexe":"1","age":"","studies1":"2","reltype":"1","dist":"."}
{"id":187,"name":"contact-42","sexe":"0","age":"2","studies1":"3","reltype":"2","dist":"."}
{"id":188,"name":"contact-43","sexe":"1","age":"3","studies1":"4","reltype":"3","dist":"."}
{"id":189,"name":"contact-44","sexe":"0","age":"4","studies1":"5","reltype":"4","dist":"."}

View File

@ -1 +1 @@
{"1":{"line":0},"2":{"line":1},"3":{"line":2},"4":{"line":3},"5":{"line":4},"6":{"line":5},"7":{"line":6},"8":{"line":7},"9":{"line":8},"10":{"line":9},"11":{"line":10},"12":{"line":11},"13":{"line":12},"14":{"line":13},"15":{"line":14},"16":{"line":15},"17":{"line":16},"18":{"line":17},"19":{"line":18},"20":{"line":19},"22":{"line":20},"23":{"line":21},"24":{"line":22},"25":{"line":23},"26":{"line":24},"27":{"line":25},"28":{"line":26},"29":{"line":27},"30":{"line":28},"31":{"line":29},"32":{"line":30},"33":{"line":31},"34":{"line":32},"35":{"line":33},"36":{"line":34},"37":{"line":35},"38":{"line":36},"39":{"line":37},"40":{"line":38},"42":{"line":39},"43":{"line":40},"44":{"line":41},"45":{"line":42}} {"91":{"line":0},"92":{"line":1},"93":{"line":2},"94":{"line":3},"95":{"line":4},"96":{"line":5},"97":{"line":6},"98":{"line":7},"99":{"line":8},"100":{"line":9},"101":{"line":10},"102":{"line":11},"103":{"line":12},"104":{"line":13},"105":{"line":14},"106":{"line":15},"107":{"line":16},"108":{"line":17},"109":{"line":18},"110":{"line":19},"111":{"line":20},"112":{"line":21},"113":{"line":22},"114":{"line":23},"115":{"line":24},"116":{"line":25},"117":{"line":26},"118":{"line":27},"119":{"line":28},"121":{"line":29},"122":{"line":30},"123":{"line":31},"124":{"line":32},"125":{"line":33},"126":{"line":34},"127":{"line":35},"128":{"line":36},"129":{"line":37},"130":{"line":38},"131":{"line":39},"132":{"line":40},"133":{"line":41},"134":{"line":42},"135":{"line":43},"136":{"line":44},"137":{"line":45},"138":{"line":46},"139":{"line":47},"141":{"line":48},"142":{"line":49},"143":{"line":50},"144":{"line":51},"145":{"line":52},"146":{"line":53},"147":{"line":54},"148":{"line":55},"149":{"line":56},"150":{"line":57},"151":{"line":58},"152":{"line":59},"153":{"line":60},"154":{"line":61},"155":{"line":62},"156":{"line":63},"157":{"line":64},"158":{"line":65},"159":{"line":66},"160":{"line":67},"161":{"line":68},"162":{"line":69},"163":{"line":70},"164":{"line":71},"166":{"line":72},"167":{"line":73},"168":{"line":74},"169":{"line":75},"170":{"line":76},"171":{"line":77},"172":{"line":78},"173":{"line":79},"174":{"line":80},"175":{"line":81},"176":{"line":82},"177":{"line":83},"178":{"line":84},"179":{"line":85},"180":{"line":86},"181":{"line":87},"182":{"line":88},"183":{"line":89},"184":{"line":90},"186":{"line":91},"187":{"line":92},"188":{"line":93},"189":{"line":94}}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
45 189

View File

@ -10,7 +10,23 @@
$cl = new lightdb('contact'); $cl = new lightdb('contact');
if( true ){ $LOG = true;
if( $LOG ){
$sub = $sl->fetch(1);
foreach($sub['relations'] as $rel){
if( $rel['idA'] == 1 )
$Aname = $sub['subject']['name'];
else
$Aname = $cl->fetch((int)$rel['idA'])['name'];
echo $Aname.'('.$rel['idA'].') + '.$cl->fetch((int)$rel['idB'])['name'].'('.$rel['idB'].') = '.$rel['type']."<br>";
}
}else{
/* [1] Remove contacts /* [1] Remove contacts
=========================================================*/ =========================================================*/