home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.madoka.org
/
2014.12.ftp.madoka.org.tar
/
ftp.madoka.org
/
pub
/
plum
/
2.x
/
plum2_28_2.lzh
/
module
/
sys
/
conf
/
update.plm
< prev
Wrap
Text File
|
1998-10-15
|
1KB
|
57 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- $_ if 0; # -*- perl -*-
# $Id: update.plm,v 2.5 1998/05/22 10:43:41 hasegawa Exp $
# copyright (c)1997-1998 pupu_j <hasegawa@agusa.nuie.nagoya-u.ac.jp>
package sys_conf_update;
$_ = 'sys_conf_update';
sub main_loop {
local($userno) = @_;
local($file, $user, $mtime);
$user = $'username[$userno];
$file = $'filename{$user};
$mtime = (stat($file))[9];
return unless defined($mtime);
$modify[$userno] = $mtime unless $modify[$userno];
return if $modify[$userno] == $mtime;
$modify[$userno] = $mtime;
&'load($user, $file);
foreach $cno (&'array($'clientlist)) {
next unless $'avail[$cno];
next unless $'userno[$cno] == $userno;
&'c_print($cno, '', 'NOTICE', $'nick[$cno], "*** update configuration $file");
}
}
__END__
--><HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-2022-JP">
<LINK REV="made" HREF="mailto:hasegawa@agusa.nuie.nagoya-u.ac.jp">
<TITLE>sys/conf/update.plm</TITLE></HEAD><BODY>
$B%*%s%i%$%s%I%-%e%a%s%H(B
<HR><H3>$BL>A0(B</H3>
sys/conf/update.plm - plum.conf$B$,JQ99$5$l$k$H<+F0E*$KFI$_9~$_D>$9(B
<HR><H3>$B@bL@(B</H3>
$B0lDj;~4V$4$H$K(Bplum.conf$B$,JQ99$5$l$F$$$J$$$+$r%A%'%C%/$7!"(B
$BJQ99$5$l$F$$$l$P$=$l$rFI$_9~$s$G%b%8%e!<%k$H%W%m%Q%F%#$N:F@_Dj$r9T$$$^$9!#(B
<HR><H3>$B%W%m%Q%F%#(B</H3>
<HR><H3>$B@_DjNc(B</H3>
<PRE>
+ sys/conf/update.plm
</PRE>
</BODY></HTML>