Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sshwordpress/class-wp-filesystem-ssh2.php b/sshdropbox/class-wp-filesystem-ssh2.php
- index 79bf93b..c82accf 100644
- --- a/sshwordpress/class-wp-filesystem-ssh2.php
- +++ b/sshdropbox/class-wp-filesystem-ssh2.php
- @@ -29,7 +29,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
- var $errors = array();
- var $options = array();
- - function WP_Filesystem_SSH2($opt='') {
- + function __construct($opt='') {
- $this->method = 'ssh2';
- $this->errors = new WP_Error();
- @@ -347,4 +347,4 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
- }
- return $ret;
- }
- -}
- \ No newline at end of file
- +}
- diff --git a/sshwordpress/phpseclib/Crypt/Base.php b/sshdropbox/phpseclib/Crypt/Base.php
- index a686d6a..c06cc5d 100644
- --- a/sshwordpress/phpseclib/Crypt/Base.php
- +++ b/sshdropbox/phpseclib/Crypt/Base.php
- @@ -494,7 +494,7 @@ class Crypt_Base
- * @param optional Integer $mode
- * @access public
- */
- - function Crypt_Base($mode = CRYPT_MODE_CBC)
- + function __construct($mode = CRYPT_MODE_CBC)
- {
- // $mode dependent settings
- switch ($mode) {
- diff --git a/sshwordpress/phpseclib/Crypt/Hash.php b/sshdropbox/phpseclib/Crypt/Hash.php
- index 4ab75b2..4547da6 100644
- --- a/sshwordpress/phpseclib/Crypt/Hash.php
- +++ b/sshdropbox/phpseclib/Crypt/Hash.php
- @@ -151,7 +151,7 @@ class Crypt_Hash
- * @return Crypt_Hash
- * @access public
- */
- - function Crypt_Hash($hash = 'sha1')
- + function __construct($hash = 'sha1')
- {
- if ( !defined('CRYPT_HASH_MODE') ) {
- switch (true) {
- diff --git a/sshwordpress/phpseclib/Crypt/RSA.php b/sshdropbox/phpseclib/Crypt/RSA.php
- index 3146ca1..4e9df77 100644
- --- a/sshwordpress/phpseclib/Crypt/RSA.php
- +++ b/sshdropbox/phpseclib/Crypt/RSA.php
- @@ -484,7 +484,7 @@ class Crypt_RSA
- * @return Crypt_RSA
- * @access public
- */
- - function Crypt_RSA()
- + function __construct()
- {
- if (!class_exists('Math_BigInteger')) {
- include_once 'Math/BigInteger.php';
- diff --git a/sshwordpress/phpseclib/Crypt/Rijndael.php b/sshdropbox/phpseclib/Crypt/Rijndael.php
- index 9678efe..32709b4 100644
- --- a/sshwordpress/phpseclib/Crypt/Rijndael.php
- +++ b/sshdropbox/phpseclib/Crypt/Rijndael.php
- @@ -283,9 +283,9 @@ class Crypt_Rijndael extends Crypt_Base
- * @param optional Integer $mode
- * @access public
- */
- - function Crypt_Rijndael($mode = CRYPT_RIJNDAEL_MODE_CBC)
- + function __construct($mode = CRYPT_RIJNDAEL_MODE_CBC)
- {
- - parent::Crypt_Base($mode);
- + parent::__construct($mode);
- }
- /**
- diff --git a/sshwordpress/phpseclib/Crypt/TripleDES.php b/sshdropbox/phpseclib/Crypt/TripleDES.php
- index 5e63f36..1993995 100644
- --- a/sshwordpress/phpseclib/Crypt/TripleDES.php
- +++ b/sshdropbox/phpseclib/Crypt/TripleDES.php
- @@ -198,13 +198,13 @@ class Crypt_TripleDES extends Crypt_DES
- * @param optional Integer $mode
- * @access public
- */
- - function Crypt_TripleDES($mode = CRYPT_MODE_CBC)
- + function __construct($mode = CRYPT_MODE_CBC)
- {
- switch ($mode) {
- // In case of CRYPT_DES_MODE_3CBC, we init as CRYPT_DES_MODE_CBC
- // and additional flag us internally as 3CBC
- case CRYPT_DES_MODE_3CBC:
- - parent::Crypt_Base(CRYPT_MODE_CBC);
- + parent::__construct(CRYPT_MODE_CBC);
- $this->mode_3cbc = true;
- // This three $des'es will do the 3CBC work (if $key > 64bits)
- @@ -221,7 +221,7 @@ class Crypt_TripleDES extends Crypt_DES
- break;
- // If not 3CBC, we init as usual
- default:
- - parent::Crypt_Base($mode);
- + parent::__construct($mode);
- }
- }
- diff --git a/sshwordpress/phpseclib/Math/BigInteger.php b/sshdropbox/phpseclib/Math/BigInteger.php
- index 8e54f74..1a8d6a4 100644
- --- a/sshwordpress/phpseclib/Math/BigInteger.php
- +++ b/sshdropbox/phpseclib/Math/BigInteger.php
- @@ -251,7 +251,7 @@ class Math_BigInteger
- * @return Math_BigInteger
- * @access public
- */
- - function Math_BigInteger($x = 0, $base = 10)
- + function __construct($x = 0, $base = 10)
- {
- if ( !defined('MATH_BIGINTEGER_MODE') ) {
- switch (true) {
- diff --git a/sshwordpress/phpseclib/Net/SFTP.php b/sshdropbox/phpseclib/Net/SFTP.php
- index 0944d98..2cdcb18 100644
- --- a/sshwordpress/phpseclib/Net/SFTP.php
- +++ b/sshdropbox/phpseclib/Net/SFTP.php
- @@ -288,9 +288,9 @@ class Net_SFTP extends Net_SSH2
- * @return Net_SFTP
- * @access public
- */
- - function Net_SFTP($host, $port = 22, $timeout = 10)
- + function __construct($host, $port = 22, $timeout = 10)
- {
- - parent::Net_SSH2($host, $port, $timeout);
- + parent::__construct($host, $port, $timeout);
- $this->max_sftp_packet = 1 << 15;
- diff --git a/sshwordpress/phpseclib/Net/SSH2.php b/sshdropbox/phpseclib/Net/SSH2.php
- index c186c5d..f16d958 100644
- --- a/sshwordpress/phpseclib/Net/SSH2.php
- +++ b/sshdropbox/phpseclib/Net/SSH2.php
- @@ -854,7 +854,7 @@ class Net_SSH2
- * @return Net_SSH2
- * @access public
- */
- - function Net_SSH2($host, $port = 22, $timeout = 10)
- + function __construct($host, $port = 22, $timeout = 10)
- {
- // Include Math_BigInteger
- // Used to do Diffie-Hellman key exchange and DSA/RSA signature verification.
- diff --git a/sshwordpress/sftp.php b/sshdropbox/sftp.php
- index c192783..3b297fc 100644
- --- a/sshwordpress/sftp.php
- +++ b/sshdropbox/sftp.php
- @@ -252,4 +252,4 @@ submit_button( __( 'Proceed' ), 'button', 'upgrade' );
- </form>
- <?php
- return false;
- -}
- \ No newline at end of file
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement