index.php
5.84 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php
/**
* Pagina inicial do i3Geo
* Voce pode utilizar o parametro customDir para indicar a pasta onde
* as interfaces de mapa estao. Nesse caso, os links utilizarao esse parametro
* Exemplo: localhost/i3geo/init/index.php?customDir=minhaPasta
*
* minhaPasta deve estar dentor da pasta i3geo.
*
* Se dentro da pasta $customDir existir um arquivo chamado index.php sera feito o include
* na pagina.
*/
/**
* Cria as pastas temporarias que o i3Geo precisa, caso nao existam
*/
include(dirname(__FILE__)."/../ms_configura.php");
if(!empty($_GET["customDir"])){
$customDir = strip_tags($_GET["customDir"]);
}
else if(empty($customDir)){
$customDir = "interface";
}
if(!file_exists($dir_tmp)){
@mkdir ($dir_tmp,0777);
}
if(file_exists($dir_tmp)){
@mkdir($dir_tmp."/comum",0777);
@mkdir($dir_tmp."/saiku-datasources",0777);
chmod($dir_tmp."/saiku-datasources",0777);
@mkdir($dir_tmp."/cache",0777);
chmod($dir_tmp."/cache",0777);
@mkdir($dir_tmp."/cache/googlemaps",0777);
chmod($dir_tmp."/cache/googlemaps",0777);
}
if(file_exists($locaplic."/".$customDir."/index.php")){
include($locaplic."/".$customDir."/index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="url" content="http://www.softwarepublico.gov.br" />
<meta name="description" content="i3Geo" />
<meta name="keywords" content="i3geo mapa geoprocessamento" />
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
$cache_expire = 1;
header("Pragma: public");
header("Cache-Control: max-age=".$cache_expire);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
?>
<script>
i3GEOF = [];
men = "";
<?php
include("dicionario.js");
include("../classesjs/compactados/dicionario_compacto.js");
include("../classesjs/compactados/classe_util_compacto.js");
include("../classesjs/compactados/classe_idioma_compacto.js");
include("../versao.php");
include("index.js");
if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){
echo "men = $"."trad(19,g_traducao_init);";
}
?>
</script>
<style>
body {
padding-top: 0px;
COLOR: #2F4632;
text-align: center;
font-size: 0.6cm;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: rgb(250, 250, 250);
margin: auto;
}
.r {
border: 1px solid #F0F0F0;
border-radius: 5px 5px 5px 5px;
box-shadow: 1px 1px 1px 1px lightgray;
float: left;
height: 150px;
margin: 0px 25px 20px auto;
padding: 5px;
width: 200px;
background: white;
vertical-align: middle;
font-size: 0.4cm;
position: relative;
display: block;
text-align: center;
z-index: 2;
}
.ri {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
}
table {
width: 100%;
}
td {
font-size: 0.4cm;
text-align: center;
height: 150px;
}
h1 {
font-size: 0.6cm;
text-align: left;
margin: 25px;
}
#brasil {
background-image: url("../imagens/sprite.png");
background-position: 0 -600px;
background-repeat: no-repeat;
cursor: pointer;
height: 10px;
width: 20px;
}
#uk {
background-image: url("../imagens/sprite.png");
background-position: 0 -625px;
background-repeat: no-repeat;
cursor: pointer;
height: 10px;
width: 20px;
}
#espanhol {
background-image: url("../imagens/sprite.png");
background-position: 0 -1400px;
background-repeat: no-repeat;
cursor: pointer;
height: 10px;
width: 20px;
}
#bandeiras img {
margin-left: 7px;
}
#bandeiras {
width: 100px;
text-align: left;
position: absolute;
left: 0.2cm;
z-index: 10;
}
a {
margin: 0px auto;
text-decoration: none;
font-size: 14px;
color: #26298D;
outline : none;
}
A:hover {
color: #4142ff;
}
.borda {
background-color: #4682b4;
padding: 5px 0px 5px 0px;
text-align: left;
width: 100%;
}
</style>
</head>
<body class=" yui-skin-sam " style="background-color: rgb(250, 250, 250);">
<div class="borda">
<div id="bandeiras"></div>
<div style="text-align:center">
<a href="http://www.softwarepublico.gov.br" target="_blank" style="color: white;">
<b><?php echo $mensagemInicia;?></b>
</a>
</div>
</div>
<div id="conteudo" style="position: relative; top: -10px; margin: auto; max-width: 1000px; left: 10px;">
<div style="margin-top: 5px;">
<div id="mensagemLogin" style="font-size: 14px; color: red; margin-top: 20px; text-align: left;"></div>
<br>
<div id="botoes" style="width: 100%;"></div>
<script>mostraBotoes();</script>
<div class="r">
<div class="ri" >
<script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_users.js?style=gray"></script>
</div>
</div>
</div>
<div style="float: left;">
<div class="r" style="width: 230px; height: 380px;">
<div class="ri">
<a class="twitter-timeline" href="https://twitter.com/i3geo" data-widget-id="288061915689787392" width="220" height="350">Tweets @i3Geo</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
<div class="r" style="width: 230px; height: 380px;">
<div class="ri" >
<a class="twitter-timeline" href="https://twitter.com/search?q=@i3geo" data-widget-id="288053202174222336" width="220" height="350">Tweets #i3Geo</a>
</div>
</div>
<div class="r" style="width: 345px; height: 220px;">
<div class="ri">
<script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_basic_stats.js"></script>
</div>
</div>
</div>
</div>
</body>
</html>