#!/usr/bin/perl --
###############################################################################
# ModuleChecker.pl #
###############################################################################
# YaBB: Yet another Bulletin Board #
# Open-Source Community Software for Webmasters #
# Version: YaBB 2.4 #
# Packaged: April 12, 2009 #
# Distributed by: http://www.yabbforum.com #
# =========================================================================== #
# Copyright (c) 2000-2009 YaBB (www.yabbforum.com) - All Rights Reserved. #
# Software by: The YaBB Development Team #
# with assistance from the YaBB community. #
# Sponsored by: Xnull Internet Media, Inc. - http://www.ximinc.com #
# Your source for web hosting, web design, and domains. #
###############################################################################
$modulecheckerplver = 'YaBB 2.4 $Revision$';
if ($GLOBAL::ACTION eq 'detailedversion') { return 1; }
if ($ENV{'SCRIPT_FILENAME'} =~ /ModuleChecker\.\w+$/) {
# This part is only needed if you call ModuleChecker.pl directly
# as stand allone script (only the language "English" is supported).
# Make sure the ./Modules path is present
push(@INC, "./Modules");
%modulecheck = (
'1' => 'Module Check',
'2' => 'Checks if all modules used by YaBB are installed.',
'3' => 'Name of the Module',
'4' => 'Info',
'5' => 'Information provided by the system:',
'6' => 'Installed',
'7' => 'Some modules are not installed on you server.',
'8' => 'If you really need them (read the Info), your first choice should be to ask your server host to install the needed modules for you!
If you are the host of your own server, or if your host does not install the module for you, see this post in the YaBB Codex for help.',
'Digest::MD5' => 'Used for the password encryption.
This module is essential! Without it YaBB will not work!',
'Time::HiRes' => 'Used for the benchmarking time if debug is enabled.
If this module in not installed the benchmarking time will be displayed in full seconds and not in high resolution seconds. Otherwise you do not need this module.',
'Time::Local' => 'Used to convert time strings into timestamps.
This module is essential! Without it YaBB will not always work!',
'File::Find' => 'Used for avatar and attachment upload.
If this module is not installed and these features are enabled you will get an error messages when you try to upload. Otherwise you do not need this module.',
'CGI' => 'Used for avatar and attachment upload.
If this module is not installed and these features are enabled you will get an error messages when you try to upload. Otherwise you do not need this module.',
'DBI' => 'Used if you want to use MySQL for saving your data.
If this module is not installed you can\'t use the MySQL database you will have to use the flat file database, what is not bad too!!! Especially for not too big forums I (deti) recommend to use the flat file database. If you do not want to use MySQL, you do not need this module.',
'Net::SMTP' => 'Used to send emails via SMTP.
This module is only needed if you want to send your emails via Net::SMTP. Otherwise you do not need this module.',
'Net::SMTP::TLS' => 'Used to send emails via SMTP::TLS.
This module is only needed if you want to send your emails via Net::SMTP::TLS. Otherwise you do not need this module.',
'Compress::Zlib' => 'Used for the Backup feature and to compress the size of the HTML-Code sent from YaBB to the browser.
This module is only needed if you do not have other Backup methods available (see the page of the Backup feature for details) and/or if you want to enable "Use GZip-Compression?". Otherwise you do not need this module.',
'Compress::Bzip2' => 'Used for the Backup feature.
This module is only needed if you do not have other Backup methods available (see the page of the Backup feature for details). Otherwise you do not need this module.',
'Archive::Tar' => 'Used for the Backup feature.
This module is only needed if you do not have other Backup methods available (see the page of the Backup feature for details). Otherwise you do not need this module.',
'Archive::Zip' => 'Used for the Backup feature.
This module is only needed if you do not have other Backup methods available (see the page of the Backup feature for details). Otherwise you do not need this module.',
'MIME::Lite' => 'Used to send Backups attached on an email.
This module is only needed if you want to get the Backup by email and not by direct download from the AdminCenter.',
'LWP::UserAgent' => 'Used by "GoogieSpell", our Spell Checker.
If this module is not installed you can not enable the Spell Checker. Otherwise you do not need this module.',
'HTTP::Request::Common' => 'Used by "GoogieSpell", our Spell Checker.
If this module is not installed you can not enable the Spell Checker. Otherwise you do not need this module.',
'Crypt::SSLeay' => 'Used by "GoogieSpell", our Spell Checker.
If this module is not installed you can not enable the Spell Checker. Otherwise you do not need this module.',
'IO::Socket::INET' => 'Used to send emails via "YaBB SMTP Engine".
This module is only needed if you want to send your emails via the "YaBB SMTP Engine". Otherwise you do not need this module.',
'Digest::HMAC_MD5' => 'Used to send emails via "YaBB SMTP Engine".
This module is only needed if you want to send your emails via the "YaBB SMTP Engine". Otherwise you do not need this module.',
'Carp' => 'Used to send emails via "YaBB SMTP Engine".
This module is only needed if you want to send your emails via the "YaBB SMTP Engine". Otherwise you do not need this module.',
'bytes' => 'Used to send emails via "YaBB SMTP Engine".
This module is only needed if you want to send your emails via the "YaBB SMTP Engine". Otherwise you do not need this module.',
'integer' => 'Used to send emails via "YaBB SMTP Engine".
This module is only needed if you want to send your emails via the "YaBB SMTP Engine". Otherwise you do not need this module.',
);
}
my ($checker_output,$module,$i);
foreach $module qw(Digest::MD5 Time::HiRes Time::Local File::Find CGI DBI Net::SMTP Net::SMTP::TLS Compress::Zlib Compress::Bzip2 Archive::Tar Archive::Zip MIME::Lite LWP::UserAgent HTTP::Request::Common Crypt::SSLeay IO::Socket::INET Digest::HMAC_MD5 Carp bytes integer) {
eval "require $module";
if ($@) {
$dont_continue_setup = 1 if "$module" eq "Digest::MD5";
$i = $modulecheck{'8'};
my $e = $@;
# IE does display the @INC path it in one line :-(
# If you use IE and don't like what you see, remove the
# comment (#) in next line.
# $e =~ s/\//\\/g;
$checker_output .= qq~
| $modulecheck{'1'} | ||
| $modulecheck{'2'} | ||
| $modulecheck{'7'} | $i | |
| $modulecheck{'3'} | $modulecheck{'4'} | |
|
$modulecheck{'1'} $modulecheck{'2'} |
||
| $modulecheck{'7'} | $i | |
| $modulecheck{'3'} | $modulecheck{'4'} | |