Remove outgoing spool files for local groups.
This commit is contained in:
parent
ba92f8dd2f
commit
56214f2bd7
|
@ -86,6 +86,17 @@ $enable_rslight=0;
|
||||||
echo "\nLoaded groups";
|
echo "\nLoaded groups";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# Clean outgoing directory for LOCAL sections
|
||||||
|
if($CONFIG['remote_server'] == '') {
|
||||||
|
$outgoing_dir = $spooldir."/".$config_name."/outgoing/";
|
||||||
|
$files = scandir($outgoing_dir);
|
||||||
|
foreach($files as $file) {
|
||||||
|
$file_name = $outgoing_dir.$file;
|
||||||
|
if(is_file($file_name) && (filemtime($file_name) < (time()-3600))) {
|
||||||
|
unlink($file_name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
$ns=nntp2_open($CONFIG['remote_server'], $CONFIG['remote_port']);
|
$ns=nntp2_open($CONFIG['remote_server'], $CONFIG['remote_port']);
|
||||||
$ns2=nntp_open();
|
$ns2=nntp_open();
|
||||||
if(!$ns) {
|
if(!$ns) {
|
||||||
|
|
Loading…
Reference in New Issue