@@ -2087,11 +2087,18 @@ class Prpcrypt
{
public $key;
+ /**
+ * 兼容老版本php构造函数
+ */
function Prpcrypt($k)
$this->key = base64_decode($k . "=");
}
+ function __construct($k) {
+ $this->key = base64_decode($k . "=");
+ }
+
/**
* 对明文进行加密
* @param string $text 需要加密的明文
@@ -3210,11 +3210,18 @@ class Prpcrypt