Show
Ignore:
Timestamp:
06/18/08 20:00:00 (5 months ago)
Author:
llaumgui
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/myutils/trunk/classes/myutilsfunction.php

    r180 r181  
    3535         * Permet de nettoyer une string avec tidy 
    3636         * 
    37          * @param unknown_type $str 
     37         * @param string $str 
    3838         */ 
    3939        static function cleanTidy( &$str ) { 
     
    4242                { 
    4343                        $tidy           = new tidy; 
    44                         /* Mettre dans un ini */ 
     44                        /* Mettre dans un ini pour faire plus propre */ 
    4545                        $config   = array(      'show-body-only'     => true, 
    4646                                                                'output-xhtml'       => true, 
     
    5757 
    5858        /** 
    59          * Enter description here... 
     59         * Recopie de la fonction eZHTTPTool::getDataByURL mais avec des options cURL en plus... 
    6060         * 
    6161         * @param unknown_type $url 
     
    7171                         
    7272                        /* Ajout d'un timeout sur cURL*/ 
    73                         /* Mettre dans un ini */ 
    74                         curl_setopt( $ch, CURLOPT_TIMEOUT, 15 ); 
     73                        $iniCurl                = eZINI::instance( "curl.ini" ); 
     74                        curl_setopt( $ch, CURLOPT_LOW_SPEED_TIME,  $iniCurl->variable( 'cURLOption', 'CURLOPT_LOW_SPEED_TIME' ) ); 
     75                        curl_setopt( $ch, CURLOPT_TIMEOUT,  $iniCurl->variable( 'cURLOption', 'CURLOPT_TIMEOUT' ) ); 
     76                         
     77                         
    7578                        if ( $justCheckURL ) 
    7679                        {