Handle hostnames with upper-case letters
[webmin.git] / foobar / install_check.pl
1
2 do 'foobar-lib.pl';
3
4 =head2 is_installed(mode)
5
6 For mode 1, returns 2 if Foobar is installed and configured for use by
7 Webmin, 1 if installed but not configured, or 0 otherwise.
8 For mode 0, returns 1 if installed, 0 if not
9
10 =cut
11 sub is_installed
12 {
13 my ($mode) = @_;
14
15 # This is the code that you'd want if the Foobar webserver really existed
16 #if (-r $config{'foobar_conf'}) {
17 #       return $mode + 1;
18 #       }
19 #return 0;
20
21 return $mode + 1;
22 }
23