Get last article date/name from lastarticleinfo-> instead of overview

This commit is contained in:
Retro_Guy 2021-04-03 00:47:48 -07:00
parent 283e851d23
commit e101fdd81b
1 changed files with 2 additions and 12 deletions

View File

@ -621,23 +621,13 @@ function groups_show($gruppen) {
} else { } else {
$lastarticleinfo->date = 0; $lastarticleinfo->date = 0;
} }
if((isset($spoolnews)) && ($spoolnews === true)) { echo get_date_interval(date("D, j M Y H:i T",$lastarticleinfo->date));
$ovfp=popen($CONFIG['tac'].' '.$spooldir.'/'.$g->name.'-overview', 'r'); $fromline=address_decode(headerDecode($lastarticleinfo->name),"nirgendwo");
$lastpost=fgets($ovfp);
pclose($ovfp);
$lastdata = explode("\t", $lastpost);
echo get_date_interval(date("D, j M Y H:i T",strtotime($lastdata[3])));
$fromline=address_decode(headerDecode($lastdata[2]),"nirgendwo");
if (!isset($fromline[0]["personal"])) { if (!isset($fromline[0]["personal"])) {
$lastname=$fromline[0]["mailbox"];; $lastname=$fromline[0]["mailbox"];;
} else { } else {
$lastname=$fromline[0]["personal"]; $lastname=$fromline[0]["personal"];
} }
} else {
echo get_date_interval(date("D, j M Y H:i T",$lastarticleinfo->date));
$lastarticleinfo->name = ltrim($lastarticleinfo->name, "<");
$lastname = $lastarticleinfo->name;
}
echo '<table><tr><td>'; echo '<table><tr><td>';
echo '<font class="np_last_posted_date">by: '; echo '<font class="np_last_posted_date">by: ';
echo create_name_link($lastname); echo create_name_link($lastname);