From 6c877fecb5374905d3f49663c68c20416a847e0e Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 13:47:55 +0200 Subject: Commit --- app/genealogy/search/birth/data.json/index.php | 39 ------------ app/genealogy/search/birth/index.php | 73 ----------------------- app/genealogy/search/birth/results/index.php | 38 ------------ app/genealogy/search/city/data.json/index.php | 39 ------------ app/genealogy/search/city/index.php | 73 ----------------------- app/genealogy/search/city/results/index.php | 38 ------------ app/genealogy/search/death/data.json/index.php | 39 ------------ app/genealogy/search/death/index.php | 73 ----------------------- app/genealogy/search/death/results/index.php | 38 ------------ app/genealogy/search/dept/data.json/index.php | 39 ------------ app/genealogy/search/dept/index.php | 73 ----------------------- app/genealogy/search/dept/results/index.php | 38 ------------ app/genealogy/search/index.php | 1 - app/genealogy/search/lastname/data.json/index.php | 39 ------------ app/genealogy/search/lastname/index.php | 73 ----------------------- app/genealogy/search/lastname/results/index.php | 36 ----------- app/genealogy/search/marriage/data.json/index.php | 39 ------------ app/genealogy/search/marriage/index.php | 73 ----------------------- app/genealogy/search/marriage/results/index.php | 38 ------------ app/genealogy/search/name/data.json/index.php | 39 ------------ app/genealogy/search/name/index.php | 73 ----------------------- app/genealogy/search/name/results/index.php | 36 ----------- app/genealogy/search/state/data.json/index.php | 39 ------------ app/genealogy/search/state/index.php | 73 ----------------------- app/genealogy/search/state/results/index.php | 38 ------------ 25 files changed, 1197 deletions(-) delete mode 100644 app/genealogy/search/birth/data.json/index.php delete mode 100644 app/genealogy/search/birth/index.php delete mode 100644 app/genealogy/search/birth/results/index.php delete mode 100644 app/genealogy/search/city/data.json/index.php delete mode 100644 app/genealogy/search/city/index.php delete mode 100644 app/genealogy/search/city/results/index.php delete mode 100644 app/genealogy/search/death/data.json/index.php delete mode 100644 app/genealogy/search/death/index.php delete mode 100644 app/genealogy/search/death/results/index.php delete mode 100644 app/genealogy/search/dept/data.json/index.php delete mode 100644 app/genealogy/search/dept/index.php delete mode 100644 app/genealogy/search/dept/results/index.php delete mode 100644 app/genealogy/search/index.php delete mode 100644 app/genealogy/search/lastname/data.json/index.php delete mode 100644 app/genealogy/search/lastname/index.php delete mode 100644 app/genealogy/search/lastname/results/index.php delete mode 100644 app/genealogy/search/marriage/data.json/index.php delete mode 100644 app/genealogy/search/marriage/index.php delete mode 100644 app/genealogy/search/marriage/results/index.php delete mode 100644 app/genealogy/search/name/data.json/index.php delete mode 100644 app/genealogy/search/name/index.php delete mode 100644 app/genealogy/search/name/results/index.php delete mode 100644 app/genealogy/search/state/data.json/index.php delete mode 100644 app/genealogy/search/state/index.php delete mode 100644 app/genealogy/search/state/results/index.php (limited to 'app/genealogy/search') diff --git a/app/genealogy/search/birth/data.json/index.php b/app/genealogy/search/birth/data.json/index.php deleted file mode 100644 index 851a14f..0000000 --- a/app/genealogy/search/birth/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["birth"]["date"]) && isset($person["birth"]["date"]["year"])) { - if (isset($counts[(string)$person["birth"]["date"]["year"]])) { - $counts[(string)$person["birth"]["date"]["year"]]++; - } else { - $counts[(string)$person["birth"]["date"]["year"]] = 1; - } - if (!in_array((string)$person["birth"]["date"]["year"], $names)) { - $names[] = (string)$person["birth"]["date"]["year"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/birth/index.php b/app/genealogy/search/birth/index.php deleted file mode 100644 index 6817390..0000000 --- a/app/genealogy/search/birth/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par date de naissance

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/birth/results/index.php b/app/genealogy/search/birth/results/index.php deleted file mode 100644 index 48c6392..0000000 --- a/app/genealogy/search/birth/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["birth"]["date"]) && isset($person["birth"]["date"]["year"])) { - if ((string)$person["birth"]["date"]["year"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/city/data.json/index.php b/app/genealogy/search/city/data.json/index.php deleted file mode 100644 index e61fd04..0000000 --- a/app/genealogy/search/city/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["city"])) { - if (isset($counts[$person["birth"]["place"]["city"]])) { - $counts[$person["birth"]["place"]["city"]]++; - } else { - $counts[$person["birth"]["place"]["city"]] = 1; - } - if (!in_array($person["birth"]["place"]["city"], $names)) { - $names[] = $person["birth"]["place"]["city"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/city/index.php b/app/genealogy/search/city/index.php deleted file mode 100644 index 6559927..0000000 --- a/app/genealogy/search/city/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par ville de naissance

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/city/results/index.php b/app/genealogy/search/city/results/index.php deleted file mode 100644 index cbc0e66..0000000 --- a/app/genealogy/search/city/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["city"])) { - if ($person["birth"]["place"]["city"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/death/data.json/index.php b/app/genealogy/search/death/data.json/index.php deleted file mode 100644 index f1db1ae..0000000 --- a/app/genealogy/search/death/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["death"]["date"]) && isset($person["death"]["date"]["year"])) { - if (isset($counts[(string)$person["death"]["date"]["year"]])) { - $counts[(string)$person["death"]["date"]["year"]]++; - } else { - $counts[(string)$person["death"]["date"]["year"]] = 1; - } - if (!in_array((string)$person["death"]["date"]["year"], $names)) { - $names[] = (string)$person["death"]["date"]["year"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/death/index.php b/app/genealogy/search/death/index.php deleted file mode 100644 index 0cfdc74..0000000 --- a/app/genealogy/search/death/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par date de décès

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/death/results/index.php b/app/genealogy/search/death/results/index.php deleted file mode 100644 index b3210d8..0000000 --- a/app/genealogy/search/death/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["death"]["date"]) && isset($person["death"]["date"]["year"])) { - if ((string)$person["death"]["date"]["year"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/dept/data.json/index.php b/app/genealogy/search/dept/data.json/index.php deleted file mode 100644 index fb27645..0000000 --- a/app/genealogy/search/dept/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["dept"])) { - if (isset($counts[$person["birth"]["place"]["dept"]])) { - $counts[$person["birth"]["place"]["dept"]]++; - } else { - $counts[$person["birth"]["place"]["dept"]] = 1; - } - if (!in_array($person["birth"]["place"]["dept"], $names)) { - $names[] = $person["birth"]["place"]["dept"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/dept/index.php b/app/genealogy/search/dept/index.php deleted file mode 100644 index b789f8b..0000000 --- a/app/genealogy/search/dept/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par département de naissance

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/dept/results/index.php b/app/genealogy/search/dept/results/index.php deleted file mode 100644 index 3e09605..0000000 --- a/app/genealogy/search/dept/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["dept"])) { - if ($person["birth"]["place"]["dept"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/index.php b/app/genealogy/search/index.php deleted file mode 100644 index 384c996..0000000 --- a/app/genealogy/search/index.php +++ /dev/null @@ -1 +0,0 @@ - $person) { - $name = ucfirst(strtolower($person["famname"])); - - if (isset($counts[$name])) { - $counts[$name]++; - } else { - $counts[$name] = 1; - } - if (!in_array($name, $names)) { - $names[] = $name; - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/lastname/index.php b/app/genealogy/search/lastname/index.php deleted file mode 100644 index 5e3717d..0000000 --- a/app/genealogy/search/lastname/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par nom

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/lastname/results/index.php b/app/genealogy/search/lastname/results/index.php deleted file mode 100644 index bfb80f7..0000000 --- a/app/genealogy/search/lastname/results/index.php +++ /dev/null @@ -1,36 +0,0 @@ - $person) { - if (ucfirst(strtolower($person["famname"])) === ucfirst(strtolower($q))) { - $results[] = $id; - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/marriage/data.json/index.php b/app/genealogy/search/marriage/data.json/index.php deleted file mode 100644 index 5e57689..0000000 --- a/app/genealogy/search/marriage/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["family"]) && isset($person["family"]["marriage"]["date"]) && isset($person["family"]["marriage"]["date"]["year"])) { - if (isset($counts[(string)$person["family"]["marriage"]["date"]["year"]])) { - $counts[(string)$person["family"]["marriage"]["date"]["year"]]++; - } else { - $counts[(string)$person["family"]["marriage"]["date"]["year"]] = 1; - } - if (!in_array((string)$person["family"]["marriage"]["date"]["year"], $names)) { - $names[] = (string)$person["family"]["marriage"]["date"]["year"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/marriage/index.php b/app/genealogy/search/marriage/index.php deleted file mode 100644 index 90db3e2..0000000 --- a/app/genealogy/search/marriage/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par date de mariage

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/marriage/results/index.php b/app/genealogy/search/marriage/results/index.php deleted file mode 100644 index 618f060..0000000 --- a/app/genealogy/search/marriage/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["family"]) && isset($person["family"]["marriage"]["date"]) && isset($person["family"]["marriage"]["date"]["year"])) { - if ((string)$person["family"]["marriage"]["date"]["year"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/name/data.json/index.php b/app/genealogy/search/name/data.json/index.php deleted file mode 100644 index 76ef273..0000000 --- a/app/genealogy/search/name/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - $name = ucfirst(strtolower($person["surname"])); - - if (isset($counts[$name])) { - $counts[$name]++; - } else { - $counts[$name] = 1; - } - if (!in_array($name, $names)) { - $names[] = $name; - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/name/index.php b/app/genealogy/search/name/index.php deleted file mode 100644 index afee504..0000000 --- a/app/genealogy/search/name/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par prénom

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/name/results/index.php b/app/genealogy/search/name/results/index.php deleted file mode 100644 index b316ac0..0000000 --- a/app/genealogy/search/name/results/index.php +++ /dev/null @@ -1,36 +0,0 @@ - $person) { - if (ucfirst(strtolower($person["surname"])) === ucfirst(strtolower($q))) { - $results[] = $id; - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file diff --git a/app/genealogy/search/state/data.json/index.php b/app/genealogy/search/state/data.json/index.php deleted file mode 100644 index e0bad67..0000000 --- a/app/genealogy/search/state/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["state"])) { - if (isset($counts[$person["birth"]["place"]["state"]])) { - $counts[$person["birth"]["place"]["state"]]++; - } else { - $counts[$person["birth"]["place"]["state"]] = 1; - } - if (!in_array($person["birth"]["place"]["state"], $names)) { - $names[] = $person["birth"]["place"]["state"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/state/index.php b/app/genealogy/search/state/index.php deleted file mode 100644 index 1976ac9..0000000 --- a/app/genealogy/search/state/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par région de naissance

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/state/results/index.php b/app/genealogy/search/state/results/index.php deleted file mode 100644 index 98e4c54..0000000 --- a/app/genealogy/search/state/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["state"])) { - if ($person["birth"]["place"]["state"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file -- cgit