diff --git a/Rocksolid_Light/rocksolid/index.php b/Rocksolid_Light/rocksolid/index.php
index dd0fca3..8ef558a 100644
--- a/Rocksolid_Light/rocksolid/index.php
+++ b/Rocksolid_Light/rocksolid/index.php
@@ -79,6 +79,17 @@ echo '
| ';
flush();
+// Subscribe to group
+if (isset($_GET['subscribe'])) {
+ if (isset($_COOKIE['mail_name'])) {
+ if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) {
+ $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat';
+ $thisgroup = _rawurldecode($_GET['subscribe']);
+ $userdata[$thisgroup] = time();
+ file_put_contents($userfile, serialize($userdata));
+ }
+ }
+}
// Unsubscribe from group
if (isset($_GET['unsub'])) {
if (isset($_COOKIE['mail_name'])) {
@@ -91,7 +102,6 @@ if (isset($_GET['unsub'])) {
$newsubs[$key] = $usertime;
}
}
- $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat';
file_put_contents($userfile, serialize($newsubs));
}
}
diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php
index 3aade43..5b08f13 100644
--- a/Rocksolid_Light/rocksolid/newsportal.php
+++ b/Rocksolid_Light/rocksolid/newsportal.php
@@ -751,6 +751,10 @@ function groups_show($gruppen)
} else {
if (isset($user_config['hide_unsub']) && $user_config['hide_unsub'] == 'hide') {
continue;
+ } else {
+ $groupdisplay .= '';
+ $groupdisplay .= '(subscribe)';
+ $groupdisplay .= '