Commit cae55a290f7806e0cf02a4b070ef7d1e243a276b
1 parent
4adc0216
Exists in
master
and in
7 other branches
Criação das pastas utilizadas pelo i3Geo na inicialização
Showing
1 changed file
with
19 additions
and
2 deletions
Show diff stats
init/index.php
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> | 1 | +<?php |
2 | +/** | ||
3 | + * Cria as pastas temporarias que o i3Geo precisa, caso nao existam | ||
4 | + */ | ||
5 | +include(dirname(__FILE__)."/../ms_configura.php"); | ||
6 | +if(!file_exists($dir_tmp)){ | ||
7 | + @mkdir ($dir_tmp,0777); | ||
8 | +} | ||
9 | +if(file_exists($dir_tmp)){ | ||
10 | + @mkdir($dir_tmp."/comum",0777); | ||
11 | + @mkdir($dir_tmp."/saiku-datasources",0777); | ||
12 | + chmod($dir_tmp."/saiku-datasources",0777); | ||
13 | + @mkdir($dir_tmp."/cache",0777); | ||
14 | + chmod($dir_tmp."/cache",0777); | ||
15 | + @mkdir($dir_tmp."/cache/googlemaps",0777); | ||
16 | + chmod($dir_tmp."/cache/googlemaps",0777); | ||
17 | +} | ||
18 | +?> | ||
19 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
2 | <html> | 20 | <html> |
3 | <head> | 21 | <head> |
4 | <meta name="url" content="http://www.softwarepublico.gov.br" /> | 22 | <meta name="url" content="http://www.softwarepublico.gov.br" /> |
@@ -11,7 +29,6 @@ $cache_expire = 1; | @@ -11,7 +29,6 @@ $cache_expire = 1; | ||
11 | header("Pragma: public"); | 29 | header("Pragma: public"); |
12 | header("Cache-Control: max-age=".$cache_expire); | 30 | header("Cache-Control: max-age=".$cache_expire); |
13 | header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); | 31 | header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); |
14 | -include(dirname(__FILE__)."/../ms_configura.php"); | ||
15 | ?> | 32 | ?> |
16 | <script type="text/javascript" src="../classesjs/i3geo.js"></script> | 33 | <script type="text/javascript" src="../classesjs/i3geo.js"></script> |
17 | <script type="text/javascript" src="dicionario.js"></script> | 34 | <script type="text/javascript" src="dicionario.js"></script> |