24if ( ! defined (
'ALLOWED')) die (_(
'Non autorisé'));
26include_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
35 error_log($exc->getTraceAsString());
40$r=
$cn->exec_sql(
"select jr_def_id from jrn where jr_id=$1",array(
$jr_id));
44 echo_error(
"Invalid operation id jr_id=$jr_id");
58$ret=
$cn->exec_sql(
"select jr_pj,jr_pj_name,jr_pj_type,jr_pj_number from jrn where jr_id=$1",
66if (
$row[
'jr_pj']==
null )
68 ini_set(
'zlib.output_compression',
'Off');
69 header(
"Pragma: public");
70 header(
"Expires: Mon, 26 Jul 1997 05:00:00 GMT");
71 header(
"Last-Modified: " . gmdate(
"D, d M Y H:i:s") .
" GMT");
72 header(
"Cache-Control: must-revalidate");
73 header(
'Content-type: '.
'text/plain');
74 header(
'Content-Disposition: attachment;filename=vide.txt',FALSE);
75 header(
"Accept-Ranges: bytes");
76 echo
"******************";
77 echo _(
"Fichier effacé");
78 echo
"******************";
81$tmp=tempnam($_ENV[
'TMP'],
'document_');
93ini_set(
'zlib.output_compression',
'Off');
94header(
"Pragma: public");
95header(
"Expires: Mon, 26 Jul 1997 05:00:00 GMT");
96header(
"Last-Modified: " . gmdate(
"D, d M Y H:i:s") .
" GMT");
97header(
"Cache-Control: must-revalidate");
98header(
'Content-type: '.
$row[
'jr_pj_type']);
99header(
'Content-Disposition: attachment;filename="'.
$new_name.
'"',FALSE);
100header(
"Accept-Ranges: bytes");
103 echo fread(
$file,8192);
noalyss_str_replace($search, $replace, $string)
NoAccess($js=1)
Echo no access and stop.
echo_error($p_log, $p_line="", $p_message="")
log error into the /tmp/noalyss_error.log it doesn't work on windows
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
for($e=0; $e< count($afiche); $e++) exit
if( $row['jr_pj']==null) $tmp
if(Database::num_row($r)==0) $a
catch(Exception $exc) $cn
clean_filename($p_filename)
sanitize the filename remove character which could be a problem,