stta/stta/stta_synclist.cgi
2021-10-01 20:35:43 +01:00

35 lines
1.3 KiB
Perl
Executable File

#!/usr/bin/perl
# stta_synclist.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';
$config{iferror_services}="warn";
&headerstta($text{'index_synclist'}, "", "synclists",undef,1,0,"$text{'headpage_right'}"."$text{'head_logout'}",&restart_button(),undef,"$text{head_below}");
print "<hr><p>\n";
print "<table width=100% border>\n";
print "<tr $tb> <td><font color='$revtext'><b> $text{'titidx_synclist'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";
if ( $config{'stta_sync'} eq "true" ) {
@listaf = split(/ /,$config{list_to_sync},-1);
foreach $l (@listaf) {
$namelist=$l;
if ( $l =~ /_list$/) { $namelist.=~ s/_list$//g; }
&remote_file("write",$config{$l},$l);
print "<tr><td><b>$text{user_made} - $index_$namelist </b></td></tr>\n";
}
@listaf = split(/ /,$config{other_list_sync},-1);
foreach $l (@listaf) {
&remote_file("write",$config{$l},$l);
print "<tr><td><b>$text{user_made} - $config{$l} </b></td></tr>\n";
}
}
print "</table></table>\n";
&footer($config{'back_return'},$text{'index'});
do "footer.pl";
exit;