diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2004-05-30 19:24:53 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-05-30 19:24:53 +0000 |
| commit | 6aa42b69abe798388aad4f7e6bf943dfb608e896 (patch) | |
| tree | 0b5f6dc0ed309bf7a59cf32714d14bf848b7637d /phpBB/posting.php | |
| parent | ae93b82e19612c9ab99c11ca9641c1fca32588d4 (diff) | |
| download | forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar.gz forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar.bz2 forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar.xz forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.zip | |
- forum rules + link to forum rules
- three new (tiny) functions added to functions_posting responsible for handling text with bbcode/smilies/urls, use them at items all over across phpbb...
- some bugfixes within admin_forums and other files
- new admin_board layout (much safer, security wise)
git-svn-id: file:///svn/phpbb/trunk@4903 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 68d80d2b35..725295f5bf 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -266,7 +266,7 @@ if (!$auth->acl_get('f_' . $mode, $forum_id) && $forum_type == FORUM_POST) trigger_error('USER_CANNOT_' . strtoupper($mode)); } - login_box(preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($_SERVER['REQUEST_URI'])), '', $user->lang['USER_CANNOT_' . strtoupper($mode)]); + login_box($user->cur_page, '', $user->lang['LOGIN_EXPLAIN_' . strtoupper($mode)]); } @@ -917,10 +917,18 @@ $forum_data = array( 'forum_name' => $forum_name, 'forum_id' => $forum_id, 'forum_type' => $forum_type, - 'forum_desc' => $forum_desc + 'forum_desc' => $forum_desc, + 'forum_rules' => $forum_rules, + 'forum_rules_flags' => $forum_rules_flags, + 'forum_rules_link' => $forum_rules_link ); + +// Generate Navigation Links generate_forum_nav($forum_data); +// Generate Forum Rules +generate_forum_rules($forum_data); + $s_hidden_fields = ($mode == 'reply' || $mode == 'quote') ? '<input type="hidden" name="topic_cur_post_id" value="' . $topic_last_post_id . '" />' : ''; $s_hidden_fields .= '<input type="hidden" name="lastclick" value="' . $current_time . '" />'; $s_hidden_fields .= (isset($check_value)) ? '<input type="hidden" name="status_switch" value="' . $check_value . '" />' : ''; |
