forked from Wavyzz/dolibarr
Doxygen
This commit is contained in:
@@ -293,7 +293,7 @@ print '<td colspan="2">'.$langs->trans("AntiVirusCommand").'<br>';
|
|||||||
print $langs->trans("AntiVirusCommandExample");
|
print $langs->trans("AntiVirusCommandExample");
|
||||||
// Check command in inside safe_mode
|
// Check command in inside safe_mode
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="center">';
|
print '<td>';
|
||||||
if (ini_get('safe_mode') && ! empty($conf->global->MAIN_ANTIVIRUS_COMMAND))
|
if (ini_get('safe_mode') && ! empty($conf->global->MAIN_ANTIVIRUS_COMMAND))
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
@@ -321,7 +321,7 @@ print "<tr ".$bc[$var].">";
|
|||||||
print '<td colspan="2">'.$langs->trans("AntiVirusParam").'<br>';
|
print '<td colspan="2">'.$langs->trans("AntiVirusParam").'<br>';
|
||||||
print $langs->trans("AntiVirusParamExample");
|
print $langs->trans("AntiVirusParamExample");
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="center">';
|
print '<td>';
|
||||||
print '<input type="text" name="MAIN_ANTIVIRUS_PARAM" size="72" value="'.htmlentities($conf->global->MAIN_ANTIVIRUS_PARAM).'">';
|
print '<input type="text" name="MAIN_ANTIVIRUS_PARAM" size="72" value="'.htmlentities($conf->global->MAIN_ANTIVIRUS_PARAM).'">';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print '<td align="right">';
|
print '<td align="right">';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -24,12 +24,13 @@
|
|||||||
/**
|
/**
|
||||||
* Build a file from an array of events
|
* Build a file from an array of events
|
||||||
* All input params and data must be encoded in $conf->charset_output
|
* All input params and data must be encoded in $conf->charset_output
|
||||||
* @param format 'vcal' or 'ical'
|
*
|
||||||
* @param title Title of export
|
* @param string $format 'vcal' or 'ical'
|
||||||
* @param desc Description of export
|
* @param string $title Title of export
|
||||||
* @param events_array Array of events ('eid','startdate','duration','enddate','title','summary','category','email','url','desc','author')
|
* @param string $desc Description of export
|
||||||
* @param outputfile Output file
|
* @param array $events_array Array of events ('eid','startdate','duration','enddate','title','summary','category','email','url','desc','author')
|
||||||
* @return int <0 if ko, Nb of events in file if ok
|
* @param string $outputfile Output file
|
||||||
|
* @return int <0 if ko, Nb of events in file if ok
|
||||||
*/
|
*/
|
||||||
function build_calfile($format='vcal',$title,$desc,$events_array,$outputfile)
|
function build_calfile($format='vcal',$title,$desc,$events_array,$outputfile)
|
||||||
{
|
{
|
||||||
@@ -279,15 +280,16 @@ function build_calfile($format='vcal',$title,$desc,$events_array,$outputfile)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Build a file from an array of events
|
* Build a file from an array of events.
|
||||||
* All input data must be encoded in $conf->charset_output
|
* All input data must be encoded in $conf->charset_output
|
||||||
* \param format 'rss'
|
*
|
||||||
* \param title Title of export
|
* @param string $format 'rss'
|
||||||
* \param desc Description of export
|
* @param string $title Title of export
|
||||||
* \param events_array Array of events ('uid','startdate','summary','url','desc','author','category')
|
* @param string $desc Description of export
|
||||||
* \param outputfile Output file
|
* @param array $events_array Array of events ('uid','startdate','summary','url','desc','author','category')
|
||||||
* \param filter Filter
|
* @param string $outputfile Output file
|
||||||
* \return int <0 if ko, Nb of events in file if ok
|
* @param string $filter Filter
|
||||||
|
* @return int <0 if ko, Nb of events in file if ok
|
||||||
*/
|
*/
|
||||||
function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$filter='')
|
function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$filter='')
|
||||||
{
|
{
|
||||||
@@ -394,11 +396,12 @@ function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$fil
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Encode for cal export
|
* Encode for cal export
|
||||||
* \param format vcal or ical
|
* string must be encoded in conf->file->character_set_client
|
||||||
* \param string string to encode
|
*
|
||||||
* \return string string encoded
|
* @param string $format vcal or ical
|
||||||
* \remarks string must be encoded in conf->file->character_set_client
|
* @param string $string string to encode
|
||||||
|
* @return string string encoded
|
||||||
*/
|
*/
|
||||||
function format_cal($format,$string)
|
function format_cal($format,$string)
|
||||||
{
|
{
|
||||||
@@ -428,8 +431,9 @@ function format_cal($format,$string)
|
|||||||
/**
|
/**
|
||||||
* Cut string after 75 chars. Add CRLF+Space.
|
* Cut string after 75 chars. Add CRLF+Space.
|
||||||
* line must be encoded in UTF-8
|
* line must be encoded in UTF-8
|
||||||
* @param line String to convert
|
*
|
||||||
* @return string String converted
|
* @param string $line String to convert
|
||||||
|
* @return string String converted
|
||||||
*/
|
*/
|
||||||
function CalEncode($line)
|
function CalEncode($line)
|
||||||
{
|
{
|
||||||
@@ -473,6 +477,13 @@ function CalEncode($line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Encode into vcal format
|
||||||
|
*
|
||||||
|
* @param string $str String to convert
|
||||||
|
* @param int forcal 1=For cal
|
||||||
|
* @return string String converted
|
||||||
|
*/
|
||||||
function QPEncode($str,$forcal=0)
|
function QPEncode($str,$forcal=0)
|
||||||
{
|
{
|
||||||
$lines = preg_split("/\r\n/", $str);
|
$lines = preg_split("/\r\n/", $str);
|
||||||
@@ -503,7 +514,13 @@ function QPEncode($str,$forcal=0)
|
|||||||
return trim ( $out );
|
return trim ( $out );
|
||||||
}
|
}
|
||||||
|
|
||||||
function QPDecode( $str )
|
/**
|
||||||
|
* Decode vcal format
|
||||||
|
*
|
||||||
|
* @param string $str String to convert
|
||||||
|
* @return string String converted
|
||||||
|
*/
|
||||||
|
function QPDecode($str)
|
||||||
{
|
{
|
||||||
$out = preg_replace('/=\r?\n/', '', $str);
|
$out = preg_replace('/=\r?\n/', '', $str);
|
||||||
$out = preg_replace('/=([A-F0-9]{2})/e', chr( hexdec ('\\1' ) ), $out);
|
$out = preg_replace('/=([A-F0-9]{2})/e', chr( hexdec ('\\1' ) ), $out);
|
||||||
|
|||||||
Reference in New Issue
Block a user