#!/usr/bin/perl
# tta_delprofcache.cgi
# Delete Cache Profile from Services with Tarantella
# STTA Rev. 1.3 Copyright (c) 2001-2004 Jesús Pérez Lorenzo  --- license GNU GPL 
# stta: (@#) 1.31051043346- [2004_01_29_102036]

 require './stta-lib.pl';
 &headerstta($text{'index_delprofcache'}, "", "delprofcache",undef,1,0,"$text{'headpage_right'}"."$text{'head_logout'}",undef,undef,"$text{head_below}" ); 
 if ( $config{'is_ldapcache'} eq "true" ) {
     $err_msg=$text{'ldapcache_enable'};
     &footCacheHere;
     exit;
 }

 &ReadParse();
 $profilename=$in{profilename};
 print "<hr><p>\n"; 
 print "<table width=100% border>\n";
 print "<tr $tb> <td><font color='$revtext'><b>$text{'titidx_delprofcache'} $profcache </b></td> </tr>\n";
 print "<tr $cb> <td><table width=100%>\n";
 print "<center> \n";

if ($profilename) {
    print "<tr><td><pre>\n";
    print "<tr></tr><tr></tr>\n";
    %h_profcache=&list_profcache();
    &out_objslist( "delete", "delprofcache.cgi", "profcache", "profcache_list", $profilename, "", \%h_profcache );
    print "</pre><tr><p><b>$text{'user_delete'}... Tarantella </b></tr>\n";
    print "</tr></td></pre>\n";
}
 print "<tr><tr></table></table><hr><p>\n";
 &footer($config{'back_return'},$text{'index'});
 print "<p><p><p>\n";
 do "footer.pl";
 exit;
