#!/usr/bin/perl # addprofcache.cgi # ... 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_addprofcache'}, "", "addprofcache",undef,1,0,"$text{'headpage_right'}"."$text{'head_logout'}",undef,undef,"$text{head_below}" ); print "

\n"; if ( $config{'is_ldapcache'} eq "true" ) { $err_msg=$text{'ldapcache_enable'}; &footCacheHere; exit; } &ReadParse(); print "\n"; print "\n"; print "
$text{'titidx_addprofcache'}
\n"; print "
\n"; $profilename=$in{profilename}; if ($profilename) { $alias=$profilename; %h_profcache=&list_profcache(); if ( $h_profcache{$profilename}->{'alias'} eq $profilename ) { $err_msg=$text{'list_err'}; &footHere; exit; } $userhostname=$in{userhostname}; $descrip=$in{descrip}; $usergrphosts=$in{usergrphosts}; $hostname=$in{hostname}; $username=$in{username}; $userou=$in{userou}; $lin_profile=$profilename."::".$descrip."::".$userhostname."::". $hostname."::".$usergrphosts."::".$username."::".$userou; &out_objslist( "add", "addprofcache.cgi", "profcache", "profcache_list", $profilename, $lin_profile, undef ); print "

".$text{'user_made'}.$profilename." -> ".$descrip."

\n"; print "\n"; } print "


\n"; &footer($config{'back_return'},$text{'index'}); print "

\n"; do "footer.pl"; exit;