diff --git a/doc/INSTALL-fr.sgml b/doc/INSTALL-fr.sgml index 788b883c2..3af040bb4 100644 --- a/doc/INSTALL-fr.sgml +++ b/doc/INSTALL-fr.sgml @@ -244,6 +244,19 @@ session.use_trans_sid = 1 include_path=".:../include:addon"

+ configuration de .htaccess +

Dans le cas oł vous ne pouvez pas changer le fichier php.ini, il faut +simplement ajouter un fichier .htaccess qui contiendrait + + php_value include_path ".:../include:addon" + php_value session.use_trans_sid true + php_value session.auto_start true + php_value max_execution_time 120 + php_value magic_quotes_gpc 0 + + + + Installation de PhpCompta diff --git a/html/index.php b/html/index.php index 5b20c2376..8ca31e782 100644 --- a/html/index.php +++ b/html/index.php @@ -29,7 +29,7 @@ BODY { -Version 1.2.2 patch 3 +Version 1.2.2 patch 5

Il est conseillé de ne PAS utiliser Internet Explorer.

diff --git a/html/show_document.php b/html/show_document.php index 1d0f7f680..a005313e6 100644 --- a/html/show_document.php +++ b/html/show_document.php @@ -58,8 +58,14 @@ if ( pg_num_rows ($ret) == 0 ) $row=pg_fetch_array($ret,0); $tmp=tempnam('/tmp/','document_'); pg_lo_export($cn,$row['jr_pj'],$tmp); +ini_set('zlib.output_compression','Off'); +header("Pragma: public"); +header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); +header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header("Cache-Control: must-revalidate"); header('Content-type: '.$row['jr_pj_type']); header('Content-Disposition: attachment;filename="'.$row['jr_pj_name'].'"',FALSE); +header("Accept-Ranges: bytes"); $file=fopen($tmp,'r'); while ( !feof ($file) ) echo fread($file,8192); diff --git a/include/ac_common.php b/include/ac_common.php index ce7cb3d58..e0c9844c3 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -135,7 +135,7 @@ function html_page_start($p_theme="",$p_script="") { include_once ("postgres.php"); ini_set('magic_quotes_gpc','Off'); - ini_set('session.use_trans_sid',1); + $cn=DbConnect(); if ( $p_theme != "") { $Res=ExecSql($cn,"select the_filestyle from theme