#### Show Help Files on ikonboard.cgi,
#### by C.v. Marle (C.A.vanMarle@inter.NL.net)
#### This hack will show all the help files
#### on the first page of your forum (ikonboard.cgi)
# Some things may differ, because I've a very modified board...
# Sorry... If you can't find any thing, please mail me...
# BACK-UP all your files before editing!!!
# Don't blame me if your board's messed up
[ikonboard.cgi]
>> After:
|
$total_users user(s) active in the past 15 minutes
|
|
Guests: $guests, Total members: $members
$memberoutput
|
~;
#------- END OF HTML
>> Add this:
# --- Help files
$output .= qq~
|
Help Files:
|
~;
$dirtoopen = "$ikondir" . "help";
opendir (DIR, "$dirtoopen") or die "Could not find the help dir at $dirtoopen";
@dirdata = readdir(DIR);
closedir (DIR);
@sorteddirdata = grep(/cgi/,@dirdata);
@newdirdata = sort alphabetically(@sorteddirdata);
foreach (@newdirdata) {
chomp $_;
$filename = $_;
$filename =~ s/\.cgi//g;
$cleanname = $filename;
$cleanname =~ s/\_/ /g;
$output .= qq~
|
$cleanname
|
~;
}
$output .= qq~
|
~;
# --- end help files
# That's it...
# Mzzl, Chris
# C.A.vanMarle@inter.NL.net
# P.S. if you find any bugs/errors please send me an e-mail