Get last article date/name from lastarticleinfo-> instead of overview
This commit is contained in:
parent
283e851d23
commit
e101fdd81b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue