Sessions Patch for YaBB 1 Gold - SP 1.4 1.0 This mod applies a patch to session protection that allows it to be disabled or enabled only for administrators. It also fixes the "doubled up" topic summary bug. Instructions: 1) Apply this mod using BoardMod 2) Upload (in ASCII mode) the modified files: cgi-bin/yabb/Sources/AdminEdit.pl cgi-bin/yabb/Sources/Load.pl cgi-bin/yabb/Sources/Post.pl cgi-bin/yabb/English.lng (text # 802-805 added - update your other language packs if necessary) 3) Close your web browser if you already have your forum open. You must create a session, and you may have to login again. 4) Login as an administrator, go to the Admin Center Edit Settings page, change the sessions setting, and save. Monsen, Corey Chapman http://www.yabbforum.com Sources/AdminEdit.pl $admineditplver = "1 Gold - SP 1.4"; $admineditplver = "1 Gold - SP 1.4 + Sessions Patch"; $utfchecked = $usetempfile ? ' checked' : ''; $seschk[$sessionprot] = " selected"; $txt{'805'} $FORM{'maxmesslen'} =~ s/\D//g; $FORM{'sessionprot'} =~ s/\D//g; $sessionprot = $FORM{'sessionprot'}; \$cookiepassword = "$cookiepassword"; # Name of the password cookie \$sessionprot = $sessionprot; # Session Protection. 0 = disabled, 1 = Admin Only, 2 = everyone. english.lng $englishlngver = "1 Gold - SP 1.4"; $englishlngver = "1 Gold - SP 1.4 + Sessions Patch"; if($MenuType == 1) { $txt{'802'} = "Administrator Only"; $txt{'803'} = "Nobody"; $txt{'804'} = "Everyone"; $txt{'805'} = "Session protection"; Sources/Load.pl $loadplver = "1 Gold - SP 1.4"; $loadplver = "1 Gold - SP 1.4 + Sessions Patch"; if (&encode_session($user_ip,$slaveseed) ne $decryptsession && $cookiesession ne ""){$validsession = 0;} if ($sessionprot == 2 || $sessionprot == 1 && $settings[7] eq "Administrator") { if (&encode_session($user_ip,$slaveseed) ne $decryptsession && $cookiesession ne ""){$validsession = 0;} } Sources/Post.pl $postplver = "1 Gold - SP 1.4"; $postplver = "1 Gold - SP 1.4 + Sessions Patch"; } $yymain .= "\n"; } else { $yymain .= ""; } } if (!$i) {last;}