Hallo
pyragony54 wrote on Feb 26
th, 2015 at 10:22pm:
Works fine, but what she has to say now?
Quote:Dateiüberprüfung auf Öffnen/Schliessen:
geöffnet 254 geschlossene Dateien und 252 Dateien. (sollten gleiche Zahlen sein)
... this here is not ok in your Forum.
Debug shows:
Quote:CENSOR (1.2142) /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/Languages/English/censor.txtCENSOR (1.2143) /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/Languages/German/censor.txtCENSOR (1.2145) /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/Languages/German_Du/censor.txt CENSOR (1.2146)
[main, Sources/Load.pm, 182]
... when i add the "<br" it looks like this:
Quote:CENSOR (1.2142) /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/Languages/English/censor.txt
CENSOR (1.2143) /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/Languages/German/censor.txt
CENSOR (1.2145) /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/Languages/German_Du/censor.txt CENSOR (1.2146)
[main, Sources/Load.pm, 182]
censor.txt is open
3x ... put only
1x close!!!
@ Dandello And here is the bug in the Load.pm
for my $langd (@lang) {
if ( -e "$langdir/$langd/censor.txt" ) {
fopen( CENSOR, "$langdir/$langd/censor.txt" );
while ( chomp( $buffer = <CENSOR> ) ) {
$buffer =~ s/\r(?=\n*)//gxsm;
if ( $buffer =~ m/\~/sm ) {
( $tmpa, $tmpb ) = split /\~/xsm, $buffer;
$tmpc = 0;
}
else {
( $tmpa, $tmpb ) = split /=/xsm, $buffer;
$tmpc = 1;
}
push @censored, [ $tmpa, $tmpb, $tmpc ];
}
}
}
fclose(CENSOR);
.. the "fclose" tag should be inside the ....
if ( -e "$langdir/$langd/censor.txt" ) {
... code.
lg XTC