diff options
author | Minteck <contact@minteck.org> | 2022-04-12 13:47:55 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-12 13:47:55 +0200 |
commit | 6c877fecb5374905d3f49663c68c20416a847e0e (patch) | |
tree | 7dbe6e17282136a958890756926d53640a5739dd /app/genealogy/tree/index.php | |
parent | 9ce80dea90a6159496f1fe2448f8ecf0e1633e7c (diff) | |
download | core-6c877fecb5374905d3f49663c68c20416a847e0e.tar.gz core-6c877fecb5374905d3f49663c68c20416a847e0e.tar.bz2 core-6c877fecb5374905d3f49663c68c20416a847e0e.zip |
Commit
Diffstat (limited to 'app/genealogy/tree/index.php')
-rw-r--r-- | app/genealogy/tree/index.php | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/app/genealogy/tree/index.php b/app/genealogy/tree/index.php deleted file mode 100644 index 76e1ca1..0000000 --- a/app/genealogy/tree/index.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php
-
-setlocale(LC_ALL, 'fr_FR.UTF-8');
-$data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/private/data/people.json"), true);
-
-function getplace($place) {
- $info = false;
-
- if (isset($place["city"])) {
- $info = true;
- echo("<a href='/search/city/?q=" . $place["city"] . "'>" . $place["city"] . "</a><br>");
- }
-
- if (isset($place["dept"])) {
- $info = true;
- echo("<a href='/search/dept/?q=" . $place["dept"] . "'>" . $place["dept"] . "</a><br>");
- }
-
- if (isset($place["country"])) {
- $info = true;
- echo($place["country"] . "<br>");
- }
-
- if (!$info) {
- echo("Non renseigné");
- }
-}
-
-if (isset($_GET['_']) && trim($_GET['_']) !== "" && isset($data[$_GET['_']])) {
- $id = $_GET['_'];
- $person = $data[$_GET['_']];
-} else {
- header("Location: /");
- die();
-}
-
-$_TITLE = "Arbre généalogique | " . $person["famname"] . " " . $person["surname"] . " (#" . $id . ")"; require_once $_SERVER['DOCUMENT_ROOT'] . "/private/header.php"; ?>
-<div class="container">
- <h1>
- <?= $person["famname"] . " " . $person["surname"] . " <span class='text-muted'>#" . $id . "</span>" ?>
- <a style="float:right;position: relative;top: 7px;" href="/person/?_=<?= $id ?>" class="btn btn-outline-primary">Voir les détails</a>
- </h1>
- <br>
- <br>
-
- <iframe src="/tree/mktree.php?_=<?= $id ?>" style="border:none;width:100%;height:50vh;border-radius:5px;"></iframe>
-</div>
-<br>
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/private/footer.php"; ?>
\ No newline at end of file |