includes/rijndael.php
changeset 440 105457df35e5
parent 286 b2f985e4cef3
child 458 c433348f3628
--- a/includes/rijndael.php	Thu Dec 27 11:35:00 2007 -0500
+++ b/includes/rijndael.php	Mon Dec 31 21:16:27 2007 -0500
@@ -10,8 +10,6 @@
  * @license BSD-style license
  */
 
-error_reporting(E_ALL);
-
 define ('ENC_HEX', 201);
 define ('ENC_BASE64', 202);
 define ('ENC_BINARY', 203);
@@ -1028,7 +1026,8 @@
       return (int)$n;
   }
    
-  function encrypt($str, $key) {
+  // The third parameter is to ensure compatibility with php 6.0-dev
+  function encrypt($str, $key, $unused = ENC_HEX) {
       if ($str == "")
       {
           return "";
@@ -1062,7 +1061,8 @@
       return $this->long2str($v, false);
   }
    
-  function decrypt($str, $key) {
+  // The third parameter is to ensure compatibility with php 6.0-dev
+  function decrypt($str, $key, $unused = ENC_HEX) {
       if ($str == "") {
           return "";
       }