PHP Classes

small modification

Recommend this page to a friend!

      Secrypt  >  All threads  >  small modification  >  (Un) Subscribe thread alerts  
Subject:small modification
Summary:Fixed two minor errors
Messages:4
Author:Effi korn
Date:2006-08-20 08:16:02
Update:2006-08-21 16:10:03
 

  1. small modification   Reply   Report abuse  
Picture of Effi korn Effi korn - 2006-08-20 08:16:02
I have made two small changes to make it run smooth with no errors
1. change line 468 from
if (strlen($Lock[$c]) > 0){
to
if (strlen($Lock) > $c){
2. added on line 611 nulling of $return -> $return='';

  2. Re: small modification   Reply   Report abuse  
Picture of Warren Smith Warren Smith - 2006-08-20 15:59:33 - In reply to message 1 from Effi korn
Great, out of curiosity, what was happening on your system ? Were any warnings generated before you made those two minor changes?

  3. Re: small modification   Reply   Report abuse  
Picture of Effi korn Effi korn - 2006-08-20 16:58:10 - In reply to message 2 from Warren Smith
I've taken the changes out and here is the output

Notice: Undefined variable: return in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 619

Notice: Undefined variable: return in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 619

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468
The encrypted data is:
O0xKOvtbO0GBOHxB


Notice: Undefined variable: return in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 619

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468

Notice: Uninitialized string offset: 63 in c:\phpdev\www\secrypt\Secrypt.class.inc.php on line 468
The decrypted data is:
abra kadabra

  4. Re: small modification   Reply   Report abuse  
Picture of Warren Smith Warren Smith - 2006-08-21 16:10:03 - In reply to message 3 from Effi korn
I have updated the class to reflect the changes proposed, thanks again.