forked from mhoegh/MyGeoCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
html_header.php
executable file
·58 lines (53 loc) · 2.25 KB
/
html_header.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
session_start();
include 'conf/main.php';
include 'libs/oauth/EpiCurl.php';
include 'libs/oauth/EpiOAuth.php';
include 'libs/oauth/EpiTwitter.php';
include 'libs/functions.php';
include 'inc/user_name_from_uri.php';
include 'model/users.php';
include 'model/databases.php';
include 'model/classes.php';
include 'model/wmslayers.php';
include 'model/settings_viewer.php'; // we need to get pw for http authentication
include 'libs/FirePHPCore/FirePHP.class.php';
include 'libs/FirePHPCore/fb.php';
//$_SESSION['screen_name'] = $parts[2];
if ($parts[1]=="store" || $parts[1]=="editor") {
$db = new databases();
if (!$parts[2]) {
die("<script>window.location='/?db=false'</script>");
}
if (!$db->doesDbExist($parts[2])) {
if ($db->doesDbExist(postgis::toAscii($parts[2],NULL,"_"))) {
die("<script>window.location='/store/".postgis::toAscii($parts[2])."'</script>");
}
else{
die("<script>window.location='/?db=false'</script>");
}
}
include("inc/oauthcheck.php");
}
?>
<!DOCTYPE html>
<html >
<head>
<title>MyGeoCloud - Online GIS - Store geographical data and make online maps - WFS and WMS</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Analyze and visualize your data. Use a powerful API for adding maps to your own apps." />
<meta name="description" content="The core component of MyGeoCloud is the rock solid PostGIS database with endless possibilities." />
<meta name="description" content="With a powerful adminstration tool you can manage your data online." />
<meta name="keywords" content="map, visualize, geo, cloud, analyze, gis, geographical data, maps, web mapping, shape file, GPX, MapInfo, WMS, OGC" />
<meta name="author" content="Martin Hoegh" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28178450-1']);
_gaq.push(['_setDomainName', 'mygeocloud.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>