diff --git a/bureau/admin/bro_editor.php b/bureau/admin/bro_editor.php index ff8565f5..e9eec0df 100644 --- a/bureau/admin/bro_editor.php +++ b/bureau/admin/bro_editor.php @@ -71,14 +71,14 @@ include_once("head.php"); ?>

$error

"; ?> -$R/$editfile
"; ?> +

$R/$editfile
"; ?>


-
px; height: px; cursor: auto;"> ".$err->errstr()."

"; ?> " /> diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index be9ea4bb..bad26d71 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -671,19 +671,11 @@ class m_bro { function content($R,$file) { global $err; $absolute=$this->convertabsolute($R,0); + $std=""; if (!strpos($file,"/")) { $absolute.="/".$file; if (file_exists($absolute)) { - $f=fopen($absolute,"rb"); - if ($f) { - while ($s=fgets($f,1024)) { - echo str_replace("<","<",str_replace("&","&",$s)); - } - fclose($f); - } else { - $err->raise("bro",6); - return false; - } + $std=str_replace("<","<",str_replace("&","&",file_get_contents($absolute))); } else { $err->raise("bro",6); return false; @@ -692,6 +684,7 @@ class m_bro { $err->raise("bro",1); return false; } + return $std; } /** Cache des urls pour VIEW