-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettlements.php
More file actions
38 lines (32 loc) · 1.28 KB
/
settlements.php
File metadata and controls
38 lines (32 loc) · 1.28 KB
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
30
31
32
33
34
35
36
37
38
<?php
include ('includes/connect.php');
include ("includes/language.php");
include ('includes/class.settlements.php');
$settlements = new settlements();
$settlements->setUser($_SESSION["osm_user"]);
$settlements->setEditor($_SESSION["use_josm"]);
$settlements->setPDO($dbh);
$pagetitle = $settlements->pageTitle($_GET["idc"], $_GET["region"], $_GET["sub"]);
$imagerylink = "imagery.php?idc=".$_GET["idc"]."®ion=".$_GET["region"]."&sub=".$_GET["sub"];
$imagerytext = "evaluate imagery for ".$_GET["sub"].", ".$_GET["region"];
include ('includes/header.php');
include("includes/javascripts.php");
$settlements->trailMaker($_GET["idc"], $_GET["region"], $_GET["sub"]);
?>
<div style="float:right;margin:5px; padding:10px;border:5px solid #990000;max-width:150px"><a href="<?= $imagerylink;?>"><?= $imagerytext;?></a></div>
<?php
if ($_GET["idc"] == "")
{
$settlements->countryOverview();
}
elseif ($_GET["idc"] != "" && $_GET["region"] == "")
{
$settlements->regionOverview($_GET["idc"]);
}
elseif ($_GET["region"] != "")
{
echo $settlements->getSettlements($_GET["idc"], $_GET["region"], $_GET["sub"], $_GET["p"], $_GET["n"], $_GET["s"], $_GET["b"], $_GET["i"], $_GET["a"], $_GET["e"], $_GET["t"], $_GET["m"]);
}
?>
<?php
include("includes/footer.php");?>