aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-20 05:12:38 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-20 05:12:38 +0000
commit458b9b50ec8d835b4c5f72823d4815a9cee6d706 (patch)
treeab0ea84c5e34cb6b5fa61b736e89722a92395c16 /phpBB/index.php
parentb2721cca0c82400efbf23abca1cbe260d4ea0eea (diff)
downloadforums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar
forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar.gz
forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar.bz2
forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar.xz
forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.zip
Un-b0rked ACL options caching, small general fixes
git-svn-id: file:///svn/phpbb/trunk@3338 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index c6f0f8de8b..78039a52f2 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -25,16 +25,7 @@ include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// Get posted/get info
-$cat_id = (!empty($_GET['c'])) ? intval($_GET['c']) : 0;
-
-if (isset($_GET['mark']) || isset($_POST['mark']))
-{
- $mark_read = (isset($_POST['mark'])) ? $_POST['mark'] : $_GET['mark'];
-}
-else
-{
- $mark_read = '';
-}
+$mark_read = (isset($_REQUEST['mark'])) ? $_REQUEST['mark'] : '';
// Start session management
$user->start();
@@ -55,7 +46,7 @@ if ($mark_read == 'forums')
);
$message = $user->lang['Forums_marked_read'] . '<br /><br />' . sprintf($user->lang['Click_return_index'], '<a href="' . "index.$phpEx$SID" . '">', '</a> ');
- message_die(MESSAGE, $message);
+ trigger_error($message);
}
// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
@@ -79,7 +70,7 @@ else
}
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
-display_forums(array('forum_id' => 0));
+display_forums();
if ($total_posts == 0)
{