diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index 34b2841..41e567f 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -70,6 +70,7 @@ if($testgroup) { } else { $newsgroups=$thisgroup; } +$returngroup = preg_split("/( |\,)/", $newsgroups, 2); echo '

'; echo ''.basename(getcwd()).' / '; echo ''.htmlspecialchars(group_display_name($thisgroup)).''; @@ -224,7 +225,6 @@ if ($type=="post") { if($postsremaining < 1) { $wait = check_rate_limit($name,0,1); echo 'You have reached the limit of '.$CONFIG['rate_limit'].' posts per hour.
Please wait '.round($wait).' minutes before posting again.'; - $returngroup=explode(',',$newsgroups); echo '

'.$text_post["button_back"].' '.$text_post["button_back2"].' '.group_display_name($returngroup[0]).'

'; return; } @@ -245,9 +245,6 @@ if ($type=="post") { (substr($message,0,7)=="441 435")) { echo '

<'.$text_post["message_posted"].'>

'; echo '

'.$text_post["message_posted2"].'

'; -// This returns to multiple groups if crossposting, which does not work. FIXME -// Try to return to just the first group in the list - $returngroup=explode(',',$newsgroups); if(isset($CONFIG['auto_return']) && ($CONFIG['auto_return'] == true)) { echo ''.$text_post["button_back"].' '.$text_post["button_back2"].' '.group_display_name($returngroup[0]).'

'; if(isset($_REQUEST['returngroup']) && $_REQUEST['returngroup'] !== '') { echo '

Your post will appear in '.group_display_name($_REQUEST['returngroup']).'

'; + } + if(isset($_SESSION['return_page'])) { + echo '

Back to Previous Page

'; } else { - echo '

Back to Previous Page

'; + echo '

Back

'; } } else { // article not accepted by the newsserver