############################################################################### # Rules.pl # # Created By S.M.art.Y | smarty@my-mail.ch | http://mac68k.de # # Features combined and rewritten for SP1 by Zone # # (runningman77@hotmail.com | www.pcandnetworking.com # # Version 2.0 # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Project started by Zef Hemel (zef@zefnet.com) # # Software Version: YaBB 1 Gold - SP1 # # =========================================================================== # # Software Distributed by: http://yabb.xnull.com # # Support, News, Updates at: http://yabb.xnull.com/community/ # # =========================================================================== # # Copyright (c) 2000-2001 X-Null - All Rights Reserved # # Software by: The YaBB Development Team # ############################################################################### $newbieguideplver="1 Gold - SP1"; sub NewbieGuide { $yytitle = "$txt{'950'}"; $yymain .= qq~
~; { fopen(FILE, "$vardir/newbieguide.txt"); @regeln = ; fclose(FILE); $newbieguide = join( "", @regeln ); $newbieguide =~ s/\n/
/g; $yymain .= qq~
$txt{'951'}

$newbieguide
Back
~; } &template; exit; } sub EditNewbieGuide { &is_admin; my( $fullrule, $line ); fopen(FILE, "$vardir/rules.txt"); while( $line = ) { $line =~ tr/\r//d; $line =~ tr/\n//d; $line =~ s/&/&/g; $line =~ s//>/g; $line =~ s/\|/\|/g; $line =~ s/\%/%/g; $line =~ s/"/"/g; $fullrule .= qq~$line\n~; } fclose(FILE); $yytitle = "$txt{'951'}"; $yymain .= qq~
$txt{'951'}

$txt{'952'}




~; &template; exit; } sub EditNewbieGuide2 { &is_admin; $FORM{'rules'} =~ tr/\r//d; $FORM{'rules'} =~ s~\A\n~~; $FORM{'rules'} =~ s~\n\Z~~; fopen(FILE, ">$vardir/rules.txt"); print FILE $FORM{'rules'}; fclose(FILE); $yySetLocation = qq~$cgi;action=admin~; &redirectexit; } 1;