diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index a94f3ee..99e12be 100755 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -366,10 +366,9 @@ foreach($files as $article) { } } $results = 1; - + foreach($new_overboard as $result) { - - if(($results % 2) != 0){ + if(($results % 2) == 0){ echo ''; } else { echo ''; @@ -393,19 +392,28 @@ foreach($files as $article) { echo ''; function show_overboard_header($grouplist) { - global $text_thread, $text_article, $file_index, $file_thread; + global $text_thread, $text_article, $file_index, $file_thread, $user_time; if (isset($_GET['thisgroup'])) { echo '

'; echo ''.basename(getcwd()).' / '; echo ''.htmlspecialchars(group_displaY_name($grouplist[0])).' / '; - echo ' latest

'; + if (isset($user_time)) { + echo ' new messages'; + } else { + echo ' latest'; + } echo ''; // Refresh button echo ''; // Article List button diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index 1c38e2a..1aca81c 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -338,8 +338,14 @@ function get_header_search($group, $terms) { $stmt = $dbh->prepare("SELECT * FROM $table WHERE newsgroup=:group AND ".$_POST['searchpoint']." like :terms ESCAPE '\' ORDER BY date DESC"); $stmt->bindParam(':group', $group); $stmt->bindParam(':terms', $searchterms); + $check = "/(\s|\(|<)".trim($searchterms, '\%')."/i"; $stmt->execute(); while($found = $stmt->fetch()) { + if(isset($_REQUEST['data']) && ($_REQUEST['searchpoint'] == 'name')) { + if(!preg_match($check, $found['name'])) { + continue; + } + } $article_stmt->bindParam(':number', $found['number']); $article_stmt->execute(); $found_snip = $article_stmt->fetch();
'; echo '
'; echo ''; - echo ''; + if (isset($user_time)) { + echo ''; + } else { + echo ''; + } + echo '
'; echo '