Diff of /branches/2.5.4/cgi-bin/yabb2/Sources/LogInOut.pm [r1084] .. [r1085]  Maximize  Restore

Switch to side-by-side view

--- a/branches/2.5.4/cgi-bin/yabb2/Sources/LogInOut.pm
+++ b/branches/2.5.4/cgi-bin/yabb2/Sources/LogInOut.pm
@@ -1,6 +1,6 @@
 ###############################################################################
 # LogInOut.pm                                                                 #
-# $Date: 2013-06-25 15:33:13 +0000 (Tue, 25 Jun 2013) $
+# $Date: 2013-07-03 15:15:05 +0000 (Wed, 03 Jul 2013) $
 ###############################################################################
 # YaBB: Yet another Bulletin Board                                            #
 # Open-Source Community Software for Webmasters                               #
@@ -15,7 +15,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.5.4';
 
-$loginoutpmver = 'YaBB 2.5.4 $Revision: 1081 $';
+$loginoutpmver = 'YaBB 2.5.4 $Revision: 1085 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 if ($regcheck) { require Sources::Decoder; }
@@ -115,13 +115,11 @@
     }
     banning();
 
-    if ( $FORM{'cookielength'} ) {
+    if ( $FORM{'cookielength'} == 1 ) {
         $ck{'len'} = 'Sunday, 17-Jan-2038 00:00:00 GMT';
     }
     else { $ck{'len'} = q{}; }
 
-    #elsif ( $FORM{'cookielength'} == 2 ) { $ck{'len'} = q{}; }
-    #else { $ck{'len'} = "+$FORM{'cookielength'}m"; }
     ${ $uid . $username }{'session'} = encode_password($user_ip);
     UpdateCookie(
         'write', $username,

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks