From 0f0bfc09956c5e0492a8aa994406baef30f143ac Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 17 Jul 2011 01:42:57 +0000 Subject: [PATCH] --- admin/js/editormapfile.js | 2 +- admin/php/editortexto.php | 30 ++++++++++++++++++++++++++++++ classesjs/compactajs.php | 14 +++++++++++--- 3 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 admin/php/editortexto.php diff --git a/admin/js/editormapfile.js b/admin/js/editormapfile.js index 1d888c3..1e1e0a0 100644 --- a/admin/js/editormapfile.js +++ b/admin/js/editormapfile.js @@ -239,7 +239,7 @@ function montaNosRaiz(redesenha) conteudo += " " conteudo += " " conteudo += " " - conteudo += "  "+$mapfiles[i].codigo+" "+$mapfiles[i].nome+"" + conteudo += "  "+$mapfiles[i].codigo+" "+$mapfiles[i].nome+"" if($mapfiles[i].imagem != "" && $i("mostraMini").checked == true){ conteudo += "
"; } diff --git a/admin/php/editortexto.php b/admin/php/editortexto.php new file mode 100644 index 0000000..93637ad --- /dev/null +++ b/admin/php/editortexto.php @@ -0,0 +1,30 @@ + + + + + Editor texto + + + +"; +echo file_get_contents($mapfile); +echo ""; +?> \ No newline at end of file diff --git a/classesjs/compactajs.php b/classesjs/compactajs.php index b80cf96..822387f 100644 --- a/classesjs/compactajs.php +++ b/classesjs/compactajs.php @@ -258,22 +258,30 @@ function packer($src,$out,$tipo="None") function salvatudojs($jsfiles,$buffer,$final,$tipo) { //junta todos os js em um unico + foreach ($jsfiles as $f) { echo $f; +/* $abre = fopen($f, "r"); while (!feof($abre)) { - $linha = fgets($abre); - //$linha = str_replace("\n","",$linha); + $linha = fgets($abre,FILE_IGNORE_NEW_LINES); + if($linha != "\r\n") $buffer .= $linha; } fclose($abre); - //$buffer .= "\n"; +*/ + $linhas = file($f); + foreach($linhas as $linha){ + $buffer .= $linha; + } } $abre = fopen($final, "wt"); $escreve = fwrite ($abre,$buffer); $fecha = fclose ($abre); + + chmod($final,0777); //gzip $abre = fopen($final, "r"); -- libgit2 0.21.2