#!/usr/bin/perl
# view_cache .cgi
# Display the icons for various types of lemonldapconfig options
require './lemonldap-lib.pl';
&ReadParse();
# Check if lemonlap is installed
&header($text{'index_title'}, "", undef, 1, 1, 0,
&help_search_link("lemonldap", "man", "doc", "google"));
print "
\n";
#$conf = &get_config();
my $key= $in{'key'}||$in{ipckey};
# Display global category icons
print "$text{'dump_of_cache'}: $key
\n";
my %hashkey ;
my $file_httpd= $config{httpd_conf} ;
open CONF , "< $file_httpd";
my @tab = ;
close CONf;
my @tab1 ;
@tab1 = map { /lemonldapipckey(\s+)?(.+)/i } @tab ;
foreach (@tab1) {
next if /^\s+$/ ;
$hashkey{$_} = 1;
}
my $a= `$config{scripts_IPC}/dump_cache.pl $key` ;
my @ipckey;
@ipckey = ($a=~ /\'ipckey\'\s=>\s\'(\w+)\'/ig) ;
foreach (@ipckey) {
next if /^\s+$/ ;
$hashkey{$_} = 1;
}
$a=~ s/\n/
\n/g;
$a=~ s/\\'/\'/g;
$a=~ s/\s/ /g;
print " $a ";
print "
";
print "";
print "";
print "
";
print "";
print "";
print "
";
&footer("/", $text{'index'});