diff --git a/Rocksolid_Light/rocksolid/article-flat.php b/Rocksolid_Light/rocksolid/article-flat.php
index db5b44d..a866db6 100644
--- a/Rocksolid_Light/rocksolid/article-flat.php
+++ b/Rocksolid_Light/rocksolid/article-flat.php
@@ -192,8 +192,8 @@ if ($message) {
flush();
$message = message_read($subid, 0, $group);
echo ' ';
- message_show($group, $subid, 0, $message, $articleflat_chars_per_articles);
- if ((! $CONFIG['readonly']) && ($message)) {
+ $is_blocked = message_show($group, $subid, 0, $message, $articleflat_chars_per_articles);
+ if (((! $CONFIG['readonly']) && ($message)) && $is_blocked != "blocked") {
echo '
';
}
}
diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php
index f5c081c..651a5f3 100644
--- a/Rocksolid_Light/rocksolid/lib/message.inc.php
+++ b/Rocksolid_Light/rocksolid/lib/message.inc.php
@@ -545,9 +545,7 @@ function show_header_short($head, $group, $local_poster = false)
onclick="CopyToClipboard('number . 'copy'; ?>');return false;"
style="text-decoration: none" title="Copy article link to clipboard">copy
link
-
newsgroups);
$ngroups = explode("\t", $ngroups);
@@ -568,12 +566,12 @@ function show_header_short($head, $group, $local_poster = false)
echo '';
echo '';
}
-
if ($local_poster) {
- echo " by: " . $displayname . " - " . $displaydate;
+ echo " by: " . $displayname . "";
} else {
- echo " by: " . $displayname . " - " . $displaydate;
+ echo " by: " . $displayname . " ";
}
+ echo '- ' . $displaydate;
echo '';
if ((isset($attachment_show)) && ($attachment_show == true) && (isset($head->content_type[1]))) {
@@ -761,7 +759,7 @@ function nl2p($string, $line_breaks = true, $xml = true)
*/
function message_show($group, $id, $attachment = 0, $article_data = false, $maxlen = false)
{
- global $file_article, $file_article_full, $OVERRIDES;
+ global $file_article, $file_article_full, $OVERRIDES, $spooldir;
global $text_header, $text_article, $article_showthread, $file_attachment, $attachment_show;
global $block_xnoarchive, $article_graphicquotes;
global $CONFIG;
@@ -777,6 +775,29 @@ function message_show($group, $id, $attachment = 0, $article_data = false, $maxl
}
$body = $article_data->body[$attachment];
if ($head) {
+ // User blocklist
+ if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) {
+ $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-blocked_posters.dat';
+ if (file_exists($userfile)) {
+ $blocked_user_config = unserialize(file_get_contents($userfile));
+ } else {
+ $blocked_user_config = null;
+ }
+ }
+ $block = false;
+ foreach($blocked_user_config as $key => $value) {
+ $blockme = '/'.addslashes($key).'/';
+ if (preg_match($blockme, $head->from)) {
+ $block = true;
+ break;
+ }
+ }
+
+ if ($block == true) {
+ echo '
(message #' . $head->number . ' hidden by your blocklist)
';
+ return "blocked";
+ }
+
if (($block_xnoarchive) && (isset($head->xnoarchive)) && ($head->xnoarchive == "yes")) {
echo $text_article["block-xnoarchive"];
} else if (($head->content_type[$attachment] == "text/plain") && ($attachment == 0)) {
diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php
index 24d3f17..4aaa4db 100644
--- a/Rocksolid_Light/rocksolid/newsportal.php
+++ b/Rocksolid_Light/rocksolid/newsportal.php
@@ -1416,7 +1416,11 @@ function create_name_link($name, $data = null)
if ((strpos($name, '...@') !== false && (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true)) && ! $data) {
$return = '' . substr(htmlspecialchars($name), 0, 20) . '';
} else {
- $return = '' . substr(htmlspecialchars($name), 0, 20) . '';
+ if (isset($_COOKIE['mail_name'])) {
+ $return = '' . substr(htmlspecialchars($name), 0, 20) . '';
+ } else {
+ $return = '' . substr(htmlspecialchars($name), 0, 20) . '';
+ }
}
return ($return);
}
diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php
index 004247e..df8934c 100644
--- a/Rocksolid_Light/rocksolid/search.php
+++ b/Rocksolid_Light/rocksolid/search.php
@@ -51,7 +51,6 @@ if ((! isset($_POST['key']) || ! password_verify($CONFIG['thissitekey'], $_POST[
echo '';
echo 'Searching ' . $searching . ' | ';
echo '
';
- echo '
';
echo '';
if (! isset($_REQUEST['data'])) {
echo 'Search Terms: ';
@@ -63,7 +62,7 @@ if ((! isset($_POST['key']) || ! password_verify($CONFIG['thissitekey'], $_POST[
} else {
echo ' | ';
}
- echo '
|
';
+ echo ' |
';
if (isset($_GET['searchpoint']) && $_GET['searchpoint'] == 'Poster') {
if ($CONFIG['article_database'] == '1') {
echo 'Body ';
@@ -89,9 +88,39 @@ if ((! isset($_POST['key']) || ! password_verify($CONFIG['thissitekey'], $_POST[
if (isset($_GET['data'])) {
echo '';
}
- echo ' |
|
';
+ echo '
';
echo ' | ';
- echo '
| | |