wp/wp-includes/class-pop3.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    57                 $this->MAILSERVER = $server;
    57                 $this->MAILSERVER = $server;
    58         }
    58         }
    59         if(!empty($timeout)) {
    59         if(!empty($timeout)) {
    60             settype($timeout,"integer");
    60             settype($timeout,"integer");
    61             $this->TIMEOUT = $timeout;
    61             $this->TIMEOUT = $timeout;
       
    62             // Extend POP3 request timeout to the specified TIMEOUT property.
    62             if(function_exists("set_time_limit")){
    63             if(function_exists("set_time_limit")){
    63                 set_time_limit($timeout);
    64                 set_time_limit($timeout);
    64             }
    65             }
    65         }
    66         }
    66         return true;
    67         return true;
    72 	public function POP3( $server = '', $timeout = '' ) {
    73 	public function POP3( $server = '', $timeout = '' ) {
    73 		self::__construct( $server, $timeout );
    74 		self::__construct( $server, $timeout );
    74 	}
    75 	}
    75 
    76 
    76     function update_timer () {
    77     function update_timer () {
       
    78         // Extend POP3 request timeout to the specified TIMEOUT property.
    77         if(function_exists("set_time_limit")){
    79         if(function_exists("set_time_limit")){
    78             set_time_limit($this->TIMEOUT);
    80             set_time_limit($this->TIMEOUT);
    79         }
    81         }
    80         return true;
    82         return true;
    81     }
    83     }