mirror of
https://github.com/webmin/webmin.git
synced 2026-02-07 07:52:13 +00:00
24 lines
432 B
Perl
Executable File
24 lines
432 B
Perl
Executable File
|
|
do 'foobar-lib.pl';
|
|
|
|
=head2 is_installed(mode)
|
|
|
|
For mode 1, returns 2 if Foobar is installed and configured for use by
|
|
Webmin, 1 if installed but not configured, or 0 otherwise.
|
|
For mode 0, returns 1 if installed, 0 if not
|
|
|
|
=cut
|
|
sub is_installed
|
|
{
|
|
my ($mode) = @_;
|
|
|
|
# This is the code that you'd want if the Foobar webserver really existed
|
|
#if (-r $config{'foobar_conf'}) {
|
|
# return $mode + 1;
|
|
# }
|
|
#return 0;
|
|
|
|
return $mode + 1;
|
|
}
|
|
|