Commit 36047ebed634b5a7681f9f0d0cff3f4ff14cf759
1 parent
d077d0ec
Exists in
master
and in
7 other branches
Incluido programa para abrir a fonte de um tema com base no código do mapfile
Showing
1 changed file
with
34 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | +<?php | |
| 2 | +error_reporting(0); | |
| 3 | +if(!isset($locaplic)) | |
| 4 | +{ | |
| 5 | + $locaplic = ""; | |
| 6 | + if(file_exists("../../../ms_configura.php")) | |
| 7 | + {include_once("../../../ms_configura.php");} | |
| 8 | + else | |
| 9 | + { | |
| 10 | + if(file_exists("../../ms_configura.php")) | |
| 11 | + {include_once("../../ms_configura.php");} | |
| 12 | + else | |
| 13 | + { | |
| 14 | + if(file_exists("../ms_configura.php")) | |
| 15 | + {include_once("../ms_configura.php");} | |
| 16 | + else | |
| 17 | + include_once("ms_configura.php"); | |
| 18 | + } | |
| 19 | + } | |
| 20 | +} | |
| 21 | +include_once($locaplic."/classesphp/pega_variaveis.php"); | |
| 22 | +include_once($locaplic."/admin/php/admin.php"); | |
| 23 | +if(!isset($tema)) | |
| 24 | +{echo "Nenhum tema definido.";exit;} | |
| 25 | +$editor = verificaEditores($editores); | |
| 26 | +$dbh = ""; | |
| 27 | +include($locaplic."/admin/php/conexao.php"); | |
| 28 | +$r = pegaDados("select * from i3geoadmin_temas where codigo_tema = '$tema'"); | |
| 29 | +$link = $r[0]["link_tema"]; | |
| 30 | +if($link == "") | |
| 31 | +{echo "Link não encontrado";} | |
| 32 | +else | |
| 33 | +{echo "<meta http-equiv='refresh' content='0;url=$link'>";} | |
| 34 | +?> | |
| 0 | 35 | \ No newline at end of file | ... | ... |