Commit 0f0bfc09956c5e0492a8aa994406baef30f143ac
1 parent
a641f66b
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
42 additions
and
4 deletions
Show diff stats
admin/js/editormapfile.js
... | ... | @@ -239,7 +239,7 @@ function montaNosRaiz(redesenha) |
239 | 239 | conteudo += " <img style=\"position:relative;cursor:pointer;top:2px\" onclick=\"clonarMapfile('"+$mapfiles[i].codigo+"')\" title='cria uma cópia' src=\"../imagens/clonar.png\" />" |
240 | 240 | conteudo += " <img style=\"position:relative;cursor:pointer;top:2px\" onclick=\"limparCacheMapfile('"+$mapfiles[i].codigo+"')\" title='limpa o chache de imagens se houver' src=\"../imagens/limparcache.png\" />" |
241 | 241 | conteudo += " <img style=\"position:relative;cursor:pointer;top:2px\" onclick=\"editorTemaMapfile('"+$mapfiles[i].codigo+"')\" title='editar tema associado' src=\"../imagens/06.png\" />" |
242 | - conteudo += " <img style=\"position:relative;cursor:pointer;top:2px\" onclick=\"testarMapfile('"+$mapfiles[i].codigo+"')\" title='testar!' src=\"../imagens/41.png\" /><b> <span>"+$mapfiles[i].codigo+" <span style=color:gray >"+$mapfiles[i].nome+"</span></span>" | |
242 | + conteudo += " <img style=\"position:relative;cursor:pointer;top:2px\" onclick=\"testarMapfile('"+$mapfiles[i].codigo+"')\" title='testar!' src=\"../imagens/41.png\" /><a href='../php/editortexto.php?mapfile="+$mapfiles[i].codigo+"' target=_self ><b> <span>"+$mapfiles[i].codigo+" <span style=color:gray >"+$mapfiles[i].nome+"</span></span></a>" | |
243 | 243 | if($mapfiles[i].imagem != "" && $i("mostraMini").checked == true){ |
244 | 244 | conteudo += "</b><br><img src='../../temas/miniaturas/"+$mapfiles[i].imagem+"'/>"; |
245 | 245 | } | ... | ... |
... | ... | @@ -0,0 +1,30 @@ |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
2 | +<html> | |
3 | +<head> | |
4 | + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> | |
5 | + <title>Editor texto</title> | |
6 | + <style type="text/css"> | |
7 | + body { | |
8 | + margin:20; | |
9 | + padding:20; | |
10 | + font-size:14px; | |
11 | + } | |
12 | + </style> | |
13 | +</head> | |
14 | +<body> | |
15 | +<?php | |
16 | +include_once("admin.php"); | |
17 | +error_reporting(0); | |
18 | +if(verificaEditores($editores) == "nao") | |
19 | +{echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;} | |
20 | +$mapfile = "../../temas/".$_GET["mapfile"].".map"; | |
21 | +if(!file_exists($mapfile)) | |
22 | +{echo "Arquivo $mapfile não existe.";exit;} | |
23 | +if($_POST["tipo"] == "gravar"){ | |
24 | + | |
25 | +exit; | |
26 | +} | |
27 | +echo "<TEXTAREA name=texto cols=100 rows=20 >"; | |
28 | +echo file_get_contents($mapfile); | |
29 | +echo "</TEXTAREA>"; | |
30 | +?> | |
0 | 31 | \ No newline at end of file | ... | ... |
classesjs/compactajs.php
... | ... | @@ -258,22 +258,30 @@ function packer($src,$out,$tipo="None") |
258 | 258 | function salvatudojs($jsfiles,$buffer,$final,$tipo) |
259 | 259 | { |
260 | 260 | //junta todos os js em um unico |
261 | + | |
261 | 262 | foreach ($jsfiles as $f) |
262 | 263 | { |
263 | 264 | echo $f; |
265 | +/* | |
264 | 266 | $abre = fopen($f, "r"); |
265 | 267 | while (!feof($abre)) |
266 | 268 | { |
267 | - $linha = fgets($abre); | |
268 | - //$linha = str_replace("\n","",$linha); | |
269 | + $linha = fgets($abre,FILE_IGNORE_NEW_LINES); | |
270 | + if($linha != "\r\n") | |
269 | 271 | $buffer .= $linha; |
270 | 272 | } |
271 | 273 | fclose($abre); |
272 | - //$buffer .= "\n"; | |
274 | +*/ | |
275 | + $linhas = file($f); | |
276 | + foreach($linhas as $linha){ | |
277 | + $buffer .= $linha; | |
278 | + } | |
273 | 279 | } |
274 | 280 | $abre = fopen($final, "wt"); |
275 | 281 | $escreve = fwrite ($abre,$buffer); |
276 | 282 | $fecha = fclose ($abre); |
283 | + | |
284 | + | |
277 | 285 | chmod($final,0777); |
278 | 286 | //gzip |
279 | 287 | $abre = fopen($final, "r"); | ... | ... |