Advertisement
Guest User

Untitled

a guest
Sep 14th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. diff --git a/sshwordpress/class-wp-filesystem-ssh2.php b/sshdropbox/class-wp-filesystem-ssh2.php
  2. index 79bf93b..c82accf 100644
  3. --- a/sshwordpress/class-wp-filesystem-ssh2.php
  4. +++ b/sshdropbox/class-wp-filesystem-ssh2.php
  5. @@ -29,7 +29,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
  6. var $errors = array();
  7. var $options = array();
  8.  
  9. - function WP_Filesystem_SSH2($opt='') {
  10. + function __construct($opt='') {
  11. $this->method = 'ssh2';
  12. $this->errors = new WP_Error();
  13.  
  14. @@ -347,4 +347,4 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
  15. }
  16. return $ret;
  17. }
  18. -}
  19. \ No newline at end of file
  20. +}
  21. diff --git a/sshwordpress/phpseclib/Crypt/Base.php b/sshdropbox/phpseclib/Crypt/Base.php
  22. index a686d6a..c06cc5d 100644
  23. --- a/sshwordpress/phpseclib/Crypt/Base.php
  24. +++ b/sshdropbox/phpseclib/Crypt/Base.php
  25. @@ -494,7 +494,7 @@ class Crypt_Base
  26. * @param optional Integer $mode
  27. * @access public
  28. */
  29. - function Crypt_Base($mode = CRYPT_MODE_CBC)
  30. + function __construct($mode = CRYPT_MODE_CBC)
  31. {
  32. // $mode dependent settings
  33. switch ($mode) {
  34. diff --git a/sshwordpress/phpseclib/Crypt/Hash.php b/sshdropbox/phpseclib/Crypt/Hash.php
  35. index 4ab75b2..4547da6 100644
  36. --- a/sshwordpress/phpseclib/Crypt/Hash.php
  37. +++ b/sshdropbox/phpseclib/Crypt/Hash.php
  38. @@ -151,7 +151,7 @@ class Crypt_Hash
  39. * @return Crypt_Hash
  40. * @access public
  41. */
  42. - function Crypt_Hash($hash = 'sha1')
  43. + function __construct($hash = 'sha1')
  44. {
  45. if ( !defined('CRYPT_HASH_MODE') ) {
  46. switch (true) {
  47. diff --git a/sshwordpress/phpseclib/Crypt/RSA.php b/sshdropbox/phpseclib/Crypt/RSA.php
  48. index 3146ca1..4e9df77 100644
  49. --- a/sshwordpress/phpseclib/Crypt/RSA.php
  50. +++ b/sshdropbox/phpseclib/Crypt/RSA.php
  51. @@ -484,7 +484,7 @@ class Crypt_RSA
  52. * @return Crypt_RSA
  53. * @access public
  54. */
  55. - function Crypt_RSA()
  56. + function __construct()
  57. {
  58. if (!class_exists('Math_BigInteger')) {
  59. include_once 'Math/BigInteger.php';
  60. diff --git a/sshwordpress/phpseclib/Crypt/Rijndael.php b/sshdropbox/phpseclib/Crypt/Rijndael.php
  61. index 9678efe..32709b4 100644
  62. --- a/sshwordpress/phpseclib/Crypt/Rijndael.php
  63. +++ b/sshdropbox/phpseclib/Crypt/Rijndael.php
  64. @@ -283,9 +283,9 @@ class Crypt_Rijndael extends Crypt_Base
  65. * @param optional Integer $mode
  66. * @access public
  67. */
  68. - function Crypt_Rijndael($mode = CRYPT_RIJNDAEL_MODE_CBC)
  69. + function __construct($mode = CRYPT_RIJNDAEL_MODE_CBC)
  70. {
  71. - parent::Crypt_Base($mode);
  72. + parent::__construct($mode);
  73. }
  74.  
  75. /**
  76. diff --git a/sshwordpress/phpseclib/Crypt/TripleDES.php b/sshdropbox/phpseclib/Crypt/TripleDES.php
  77. index 5e63f36..1993995 100644
  78. --- a/sshwordpress/phpseclib/Crypt/TripleDES.php
  79. +++ b/sshdropbox/phpseclib/Crypt/TripleDES.php
  80. @@ -198,13 +198,13 @@ class Crypt_TripleDES extends Crypt_DES
  81. * @param optional Integer $mode
  82. * @access public
  83. */
  84. - function Crypt_TripleDES($mode = CRYPT_MODE_CBC)
  85. + function __construct($mode = CRYPT_MODE_CBC)
  86. {
  87. switch ($mode) {
  88. // In case of CRYPT_DES_MODE_3CBC, we init as CRYPT_DES_MODE_CBC
  89. // and additional flag us internally as 3CBC
  90. case CRYPT_DES_MODE_3CBC:
  91. - parent::Crypt_Base(CRYPT_MODE_CBC);
  92. + parent::__construct(CRYPT_MODE_CBC);
  93. $this->mode_3cbc = true;
  94.  
  95. // This three $des'es will do the 3CBC work (if $key > 64bits)
  96. @@ -221,7 +221,7 @@ class Crypt_TripleDES extends Crypt_DES
  97. break;
  98. // If not 3CBC, we init as usual
  99. default:
  100. - parent::Crypt_Base($mode);
  101. + parent::__construct($mode);
  102. }
  103. }
  104.  
  105. diff --git a/sshwordpress/phpseclib/Math/BigInteger.php b/sshdropbox/phpseclib/Math/BigInteger.php
  106. index 8e54f74..1a8d6a4 100644
  107. --- a/sshwordpress/phpseclib/Math/BigInteger.php
  108. +++ b/sshdropbox/phpseclib/Math/BigInteger.php
  109. @@ -251,7 +251,7 @@ class Math_BigInteger
  110. * @return Math_BigInteger
  111. * @access public
  112. */
  113. - function Math_BigInteger($x = 0, $base = 10)
  114. + function __construct($x = 0, $base = 10)
  115. {
  116. if ( !defined('MATH_BIGINTEGER_MODE') ) {
  117. switch (true) {
  118. diff --git a/sshwordpress/phpseclib/Net/SFTP.php b/sshdropbox/phpseclib/Net/SFTP.php
  119. index 0944d98..2cdcb18 100644
  120. --- a/sshwordpress/phpseclib/Net/SFTP.php
  121. +++ b/sshdropbox/phpseclib/Net/SFTP.php
  122. @@ -288,9 +288,9 @@ class Net_SFTP extends Net_SSH2
  123. * @return Net_SFTP
  124. * @access public
  125. */
  126. - function Net_SFTP($host, $port = 22, $timeout = 10)
  127. + function __construct($host, $port = 22, $timeout = 10)
  128. {
  129. - parent::Net_SSH2($host, $port, $timeout);
  130. + parent::__construct($host, $port, $timeout);
  131.  
  132. $this->max_sftp_packet = 1 << 15;
  133.  
  134. diff --git a/sshwordpress/phpseclib/Net/SSH2.php b/sshdropbox/phpseclib/Net/SSH2.php
  135. index c186c5d..f16d958 100644
  136. --- a/sshwordpress/phpseclib/Net/SSH2.php
  137. +++ b/sshdropbox/phpseclib/Net/SSH2.php
  138. @@ -854,7 +854,7 @@ class Net_SSH2
  139. * @return Net_SSH2
  140. * @access public
  141. */
  142. - function Net_SSH2($host, $port = 22, $timeout = 10)
  143. + function __construct($host, $port = 22, $timeout = 10)
  144. {
  145. // Include Math_BigInteger
  146. // Used to do Diffie-Hellman key exchange and DSA/RSA signature verification.
  147. diff --git a/sshwordpress/sftp.php b/sshdropbox/sftp.php
  148. index c192783..3b297fc 100644
  149. --- a/sshwordpress/sftp.php
  150. +++ b/sshdropbox/sftp.php
  151. @@ -252,4 +252,4 @@ submit_button( __( 'Proceed' ), 'button', 'upgrade' );
  152. </form>
  153. <?php
  154. return false;
  155. -}
  156. \ No newline at end of file
  157. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement