-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·49 lines (42 loc) · 1.16 KB
/
index.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
<?php
//Detección de browser, para poder bannear a Internet Explorer.
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match('/MSIE/i',$user_agent) && !preg_match('/Opera/i',$user_agent))
{
//El usuario usa Internet Explorer.
//Esto es intolerable.
header ("Location: ./noie.html");
die("");
}
session_start();
include_once("class/orm.class.php");
include_once("class/template.class.php");
include_once("class/util/UILib.class.php");
if (!isset($_SESSION["app_path"])){
$_SESSION["app_path"] = Config::get_field("app_path");
}
$template = null;
if (isset($_REQUEST["template"])){
$id_template = (int)$_REQUEST["template"];
$template = new Template($id_template);
} else {
$template = new Template(1);
}
$_SESSION["template"] = $template;
?>
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>Desgrabaciones Comunitarias - v. Alfa #1</title>
<?php
echo UILib::get_common_js();
echo UILib::get_common_css();
echo UILib::get_template_js();
echo UILib::get_template_css();
?>
</head>
<?php
//die(var_dump($template));
include "./templates/".$template->get("folder")."/default.php";
?>
</html>