forked from HuubMons/HuMo-genealogy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgezin.php
29 lines (22 loc) · 959 Bytes
/
gezin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<head>
<!-- THIS SCRIPT IS FOR BACKWARDS COMPATIBLY AND GENDEX SITES ONLY!!!! -->
<?php
// *** Example: ?database=humo_&id=F59&hoofdpersoon=I151 ***
$database=''; // *** standard: show first family ***
if (isset($_GET["database"])){ $database=$_GET["database"]; }
if (isset($_POST["database"])){ $database=$_POST["database"]; }
$id=1; // *** standard: show first family ***
if (isset($_GET["id"])){ $id=$_GET["id"]; }
if (isset($_POST["id"])){ $id=$_POST["id"]; }
$main_person=''; // *** Mainperson of a family ***
if (isset($_GET["hoofdpersoon"])){ $main_person=$_GET["hoofdpersoon"]; }
if (isset($_POST["hoofdpersoon"])){ $main_person=$_POST["hoofdpersoon"]; }
$location="family.php?database=".$database.'&id='.$id;
if ($main_person!=''){ $location.='&main_person='.$main_person; }
echo '<script language="JavaScript">'."\n";
echo '<!--'."\n";
echo 'window.location="'.$location.'"'."\n";
echo '//-->'."\n";
echo '</script>'."\n";
?>
</head>