Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/src/wp-admin/includes/class-ftp-pure.php

    r63523 r63523  
    11<?php
    22/**
    3  * PemFTP - An Ftp implementation in pure PHP
     3 * PemFTP - A Ftp implementation in pure PHP
    44 *
    55 * @package PemFTP
    … …  
    99 * @copyright Alexey Dotsenko
    1010 * @author Alexey Dotsenko
    11  * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
    12  * @license LGPL https://opensource.org/licenses/lgpl-license.html
     11 * @link http://www.phpclasses.org/browse/package/1743.html Site
     12 * @license LGPL http://www.opensource.org/licenses/lgpl-license.html
    1313 */
    1414
    … …  
    2323 * @copyright Alexey Dotsenko
    2424 * @author Alexey Dotsenko
    25  * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
    26  * @license LGPL https://opensource.org/licenses/lgpl-license.html
     25 * @link http://www.phpclasses.org/browse/package/1743.html Site
     26 * @license LGPL http://www.opensource.org/licenses/lgpl-license.html
    2727 */
    28 class ftp_pure extends ftp_base {
     28class ftp extends ftp_base {
    2929
    3030        function __construct($verb=FALSE, $le=FALSE) {
    3131                parent::__construct(false, $verb, $le);
     32        }
     33
     34        function ftp($verb=FALSE, $le=FALSE) {
     35                $this->__construct($verb, $le);
    3236        }
    3337
    … …  
    107111                                return FALSE;
    108112                        }
    109                         $ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message));
     113                        $ip_port = explode(",", ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message));
    110114                        $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3];
    111115            $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]);
Note: See TracChangeset for help on using the changeset viewer.