50 lines
1.8 KiB
Perl
Executable File
50 lines
1.8 KiB
Perl
Executable File
#!/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 "<hr><p>\n";
|
|
|
|
if ( $config{'is_ldapcache'} eq "true" ) {
|
|
$err_msg=$text{'ldapcache_enable'};
|
|
&footCacheHere;
|
|
exit;
|
|
}
|
|
&ReadParse();
|
|
print "<table width=100% border>\n";
|
|
print "<tr $tb> <td><font color='$revtext'><b>$text{'titidx_addprofcache'}</b></td> </tr>\n";
|
|
print "<tr $cb> <td><table width=100%>\n";
|
|
print "<center>\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 "<tr><p><b>".$text{'user_made'}.$profilename." -> ".$descrip."</b></tr>\n";
|
|
print "<tr></tr>\n";
|
|
}
|
|
print "<tr><tr></table></table><hr><p>\n";
|
|
&footer($config{'back_return'},$text{'index'});
|
|
print "<p><p><p>\n";
|
|
do "footer.pl";
|
|
exit;
|
|
|