Qual: Removed php code sniffer errors
This commit is contained in:
parent
4502ad2a88
commit
d385a2875b
@ -481,7 +481,7 @@ else
|
|||||||
//var_dump($contents);
|
//var_dump($contents);
|
||||||
//var_dump($buff);
|
//var_dump($buff);
|
||||||
|
|
||||||
$nboflines=sizeof($contents);
|
$nboflines=count($contents);
|
||||||
$var=true;
|
$var=true;
|
||||||
$rawlisthasfailed=false;
|
$rawlisthasfailed=false;
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -629,11 +629,11 @@ llxFooter();
|
|||||||
/**
|
/**
|
||||||
* Connect to FTP server
|
* Connect to FTP server
|
||||||
*
|
*
|
||||||
* @param $ftp_server
|
* @param string $ftp_server Server name
|
||||||
* @param $ftp_port
|
* @param string $ftp_port Server port
|
||||||
* @param $ftp_user
|
* @param string $ftp_user FTP user
|
||||||
* @param $ftp_password
|
* @param string $ftp_password FTP password
|
||||||
* @param $section
|
* @param string $section Directory
|
||||||
* @return int <0 if OK, >0 if KO
|
* @return int <0 if OK, >0 if KO
|
||||||
*/
|
*/
|
||||||
function dol_ftp_connect($ftp_server, $ftp_port, $ftp_user, $ftp_password, $section)
|
function dol_ftp_connect($ftp_server, $ftp_port, $ftp_user, $ftp_password, $section)
|
||||||
@ -686,9 +686,9 @@ function dol_ftp_connect($ftp_server, $ftp_port, $ftp_user, $ftp_password, $sect
|
|||||||
/**
|
/**
|
||||||
* Tell if an entry is a FTP directory
|
* Tell if an entry is a FTP directory
|
||||||
*
|
*
|
||||||
* @param $connect_id
|
* @param resource $connect_id Connection handler
|
||||||
* @param $dir
|
* @param string $dir Directory
|
||||||
* @return
|
* @return int 1=directory, 0=not a directory
|
||||||
*/
|
*/
|
||||||
function ftp_isdir($connect_id,$dir)
|
function ftp_isdir($connect_id,$dir)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -25,6 +25,15 @@ require ("../main.inc.php");
|
|||||||
|
|
||||||
$user->getrights('ecm');
|
$user->getrights('ecm');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replace the default llxHeader function
|
||||||
|
*
|
||||||
|
* @param string $head Optionnal head lines
|
||||||
|
* @param string $title HTML title
|
||||||
|
* @param string $help_url Link to online url help
|
||||||
|
* @param string $morehtml More content into html header
|
||||||
|
* @return none
|
||||||
|
*/
|
||||||
function llxHeader($head = '', $title='', $help_url='', $morehtml='')
|
function llxHeader($head = '', $title='', $help_url='', $morehtml='')
|
||||||
{
|
{
|
||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user