-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_guia.php
38 lines (29 loc) · 987 Bytes
/
index_guia.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
<?php
class ControllerIndex{
private $_system;
private $_hat;
private $_shoe;
function __construct()
{
require_once 'libs/config.php';
$this->_system = System::singleton();
$this->_hat = new Hat();
$this->_shoe = new Shoe();
$data["baseHref"] = $this->_system->GetBaseRef();
$data["skin"] = $this->_system->get('skin');
$data['env'] = $this->_system->getEnviroment();
$data['token'] = session_id(); //token for cross site injection
$data['urlWMS'] = $this->_system->get('urlWMS');
$data['urlWMSqgis'] = $this->_system->get('urlWMSqgis');
$detect = new Mobile_Detect();
$data['isMobile'] = ($detect->isMobile() === true && $detect->isTablet() === false)? '1' : '0';
// set to POUM by default
$data['mapid'] = "guia";
$data['mapname'] = "Mapa guia";
$data['title'] = "Guia urbana";
$this->_system->fShow($this->_system->get('skin')."/tpl_home.php",$data);
$this->_shoe->pintaShoe();
}
}
new ControllerIndex();
?>