aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2004-01-12 15:00:09 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2004-01-12 15:00:09 +0000
commitbc79bf96526f230afde2680d8e06ce9a758b29f2 (patch)
tree0419ce6ad0759b85c69be593c4a9e6252ea2e561 /phpBB/index.php
parent38c0873243997282134e25f0525f650f98f715ff (diff)
downloadforums-bc79bf96526f230afde2680d8e06ce9a758b29f2.tar
forums-bc79bf96526f230afde2680d8e06ce9a758b29f2.tar.gz
forums-bc79bf96526f230afde2680d8e06ce9a758b29f2.tar.bz2
forums-bc79bf96526f230afde2680d8e06ce9a758b29f2.tar.xz
forums-bc79bf96526f230afde2680d8e06ce9a758b29f2.zip
Mark given set of forums marked, show "Mark forums read" link on subforum display
git-svn-id: file:///svn/phpbb/trunk@4757 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 3ac1e34175..a407792e50 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -16,28 +16,11 @@ $phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.'.$phpEx);
-// Get posted/get info
-$mark_read = (isset($_REQUEST['mark'])) ? $_REQUEST['mark'] : '';
-
// Start session management
$user->start();
$auth->acl($user->data);
$user->setup();
-// Handle marking posts
-if ($mark_read == 'forums')
-{
- if ($userdata['user_id'] != ANONYMOUS)
- {
- markread('markall');
- }
-
- meta_refresh(3, "index.$phpEx$SID");
-
- $message = $user->lang['FORUMS_MARKED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . "index.$phpEx$SID" . '">', '</a> ');
- trigger_error($message);
-}
-
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
display_forums();
@@ -54,9 +37,8 @@ $l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OT
// Grab group details for legend display
$sql = 'SELECT group_name, group_colour, group_type
- FROM ' . GROUPS_TABLE . "
- WHERE group_colour <> ''
- AND group_type NOT IN (" . GROUP_HIDDEN . ', ' . GROUP_SPECIAL . ')';
+ FROM ' . GROUPS_TABLE . '
+ WHERE group_legend = 1';
$result = $db->sql_query($sql);
$legend = '';
@@ -106,7 +88,7 @@ $template->assign_vars(array(
'S_LOGIN_ACTION' => "ucp.php?$SID&amp;mode=login",
'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false,
- 'U_MARK_READ' => "index.$phpEx$SID&amp;mark=forums")
+ 'U_MARK_FORUMS' => "index.$phpEx$SID&amp;mark=forums")
);
// Output page