Make sure overboard.php works with tradspool

This commit is contained in:
Retro_Guy 2021-01-21 01:25:05 -07:00
parent 90db596b9d
commit 6f126108c1
1 changed files with 9 additions and 12 deletions

View File

@ -109,21 +109,18 @@ foreach($grouplist as $findgroup) {
continue 2; continue 2;
} }
} }
/*
$thisgroup = preg_replace('/\./', '/', $findgroup); $thisgroup = preg_replace('/\./', '/', $findgroup);
if (!is_dir($spoolpath.$thisgroup)) { if (!is_dir($spoolpath.$thisgroup)) {
continue; continue;
} }
$stats = stat($spoolpath.$thisgroup); $stats = stat($spoolpath.$thisgroup);
if($stats[9] > $oldest) { if($stats[9] > $oldest) {
*/ if($dbh) {
if(1) { $query->execute(['findgroup' => $findgroup]);
if($dbh) { while (($overviewline = $query->fetch()) !== false) {
$query->execute(['findgroup' => $findgroup]); $articles[] = $spoolpath.$thisgroup.'/'.$overviewline['number'];
while (($overviewline = $query->fetch()) !== false) { $db_articles[] = $findgroup.':'.$overviewline['number'].':'.$overviewline['date'];
$articles[] = $spoolpath.$thisgroup.'/'.$overviewline['number']; }
$db_articles[] = $findgroup.':'.$overviewline['number'].':'.$overviewline['date'];
}
} }
} }
} }