\n"; &foreign_require("software", "software-lib.pl"); my $lnk = &software::missing_install_link("squid", $text{'index_squid'}, "../$module_name/", $text{'index_header'}); print $lnk,"
\n" if ($lnk); &ui_print_footer("/", $text{'index_return'}); exit; } # Check for squid config file if (!-r $config{'squid_conf'}) { &ui_print_header(undef, $text{'index_header'}, "", undef, 1, 1); print &text('index_msgnoconfig',$config{'squid_conf'}, $module_name); print "\n
\n"; &ui_print_footer("/", $text{'index_return'}); exit; } # Check the version number my $ver = &backquote_command("$config{'squid_path'} -v 2>&1"); my $fullver = $ver; if ($ver =~ /LUSCA/) { # Special Squid variant, actually equivalent to 2.7 $ver = "Squid Cache: Version 2.7.STABLE.LUSCA.2012"; } if ($ver =~ /version\s+(\S+)/i) { $ver = $1; } my $squid_version; if ($ver =~ /Version\s+([2-7]\.[0-9]+)/ || $ver =~ /^(1\.1)\.\d+/ || $ver =~ /^(1)\.NOVM/ || $ver =~ /^([2-7]\.[0-9]+)/) { # Save version number open(VERSION, ">$module_config_directory/version"); print VERSION $1,"\n"; close(VERSION); $squid_version = $1; } else { &ui_print_header(undef, $text{'index_header'}, "", undef, 1, 1); print &text('index_msgnosupported2', "1", "6"), "
\n"; print &text('index_squidver', "$config{'squid_path'} -v"),"\n"; print "
$fullver
\n"; } else { print "\n"; } print &ui_hidden("caches", join(" ",@caches)); print &ui_form_end(); print "