More minor fixes for php8
This commit is contained in:
parent
7db2a31bc9
commit
6a34c54437
|
@ -623,7 +623,7 @@ function groups_show($gruppen) {
|
||||||
if(isset($userdata[$g->name])) {
|
if(isset($userdata[$g->name])) {
|
||||||
$groupdisplay.='</span><p class="np_group_desc">';
|
$groupdisplay.='</span><p class="np_group_desc">';
|
||||||
$groupdisplay.='<a class="np_group_desc" href="index.php?unsub='.$g->name.'">(unsubscribe)</a>';
|
$groupdisplay.='<a class="np_group_desc" href="index.php?unsub='.$g->name.'">(unsubscribe)</a>';
|
||||||
if($userdata[$g->name] < $lastarticleinfo->date) {
|
if($userdata[$g->name] < $lastarticleinfo['date']) {
|
||||||
$groupdisplay.='<a href="overboard.php?thisgroup='._rawurlencode($g->name).'&time='.$userdata[$g->name].'">(new)</a> ';
|
$groupdisplay.='<a href="overboard.php?thisgroup='._rawurlencode($g->name).'&time='.$userdata[$g->name].'">(new)</a> ';
|
||||||
}
|
}
|
||||||
$groupdisplay.='</p';
|
$groupdisplay.='</p';
|
||||||
|
|
|
@ -71,34 +71,7 @@ $returngroup = preg_split("/( |\,)/", $newsgroups, 2);
|
||||||
} else {
|
} else {
|
||||||
echo '</h1>';
|
echo '</h1>';
|
||||||
}
|
}
|
||||||
echo '<table cellpadding="0" cellspacing="0" width="100%" class="np_buttonbar"><tr>';
|
|
||||||
// View Latest button
|
|
||||||
if (isset($overboard) && ($overboard == true)) {
|
|
||||||
echo '<td>';
|
|
||||||
echo '<form action="overboard.php">';
|
|
||||||
echo '<input type="hidden" name="thisgroup" value="'._rawurlencode($thisgroup).'"/>';
|
|
||||||
echo '<button class="np_button_link" type="submit">'.$text_thread["button_latest"].'</button>';
|
|
||||||
echo '</form>';
|
|
||||||
echo '</td>';
|
|
||||||
}
|
|
||||||
if (!$CONFIG['readonly'] &&
|
|
||||||
(!function_exists("npreg_group_has_write_access") ||
|
|
||||||
npreg_group_has_write_access($thisgroup)))
|
|
||||||
{
|
|
||||||
// New Thread button
|
|
||||||
echo '<td>';
|
|
||||||
echo '<form action="'.$file_post.'">';
|
|
||||||
echo '<input type="hidden" name="group" value="'.urlencode($thisgroup).'"/>';
|
|
||||||
echo '<button class="np_button_link" type="submit">'.$text_thread["button_write"].'</button>';
|
|
||||||
echo '</form>';
|
|
||||||
echo '</td>';
|
|
||||||
}
|
|
||||||
// Pages
|
|
||||||
/*
|
|
||||||
echo '<td class="np_pages" width="100%" align="right">';
|
|
||||||
echo articleflat_pageselect($thisgroup,$id,count($subthread),$first);
|
|
||||||
echo '</td></tr></table>';
|
|
||||||
*/
|
|
||||||
// has the user write-rights on the newsgroups?
|
// has the user write-rights on the newsgroups?
|
||||||
if((function_exists("npreg_group_has_read_access") &&
|
if((function_exists("npreg_group_has_read_access") &&
|
||||||
!npreg_group_has_read_access($newsgroups)) ||
|
!npreg_group_has_read_access($newsgroups)) ||
|
||||||
|
|
Loading…
Reference in New Issue