abrefontemapfile.php
978 Bytes
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
<html>
<style>
body {
font: 14pt arial, helvetica, clean, sans-serif;
color: rgb(100, 100, 100);
}
</style>
<body>
<?php
/*
Title: abrefontemapfile
Abre no navegador a página com os metadados sobre um tema.
O link para os metadados é obtido do banco de administração.
*/
error_reporting(0);
include (dirname(__FILE__)."/../classesphp/conexao.php");
include_once(dirname(__FILE__)."/safe.php");
if(!file_exists($locaplic."/temas/".$tema.".map")){
exit;
}
if(!isset($tema))
{
echo "Nenhum tema definido.";exit;
}
$r = pegaDadosAdmin("select link_tema from ".$esquemaadmin."i3geoadmin_temas where codigo_tema = '$tema'",$dbh);
error_reporting(0);
$link = $r[0]["link_tema"];
if($link == "")
{
echo "O link para a fonte não está cadastrado. Entre em contato com o administrador do sistema.";
}
else{
echo "<meta http-equiv='refresh' content='0;url=$link'>";
}
?>