aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-06-16 16:43:05 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-06-16 16:43:05 +0000
commit3479343882bd0e9e767723ad6cbd8bc17c156568 (patch)
tree0bf682a6ca7d13fb0a4943ec59898ba4d136dcae /phpBB
parentdc2cd415d327c50b28182ca76c1ca2956e70a771 (diff)
downloadforums-3479343882bd0e9e767723ad6cbd8bc17c156568.tar
forums-3479343882bd0e9e767723ad6cbd8bc17c156568.tar.gz
forums-3479343882bd0e9e767723ad6cbd8bc17c156568.tar.bz2
forums-3479343882bd0e9e767723ad6cbd8bc17c156568.tar.xz
forums-3479343882bd0e9e767723ad6cbd8bc17c156568.zip
Fixed spelling error in ANNOUNCEMENT which in caused an incorrect check to occur
git-svn-id: file:///svn/phpbb/trunk@503 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/constants.php9
-rw-r--r--phpBB/posting.php29
-rw-r--r--phpBB/viewforum.php4
3 files changed, 21 insertions, 21 deletions
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index 3614586e31..4955c8b0b5 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -41,11 +41,10 @@ define(UNLOCKED, 0);
define(LOCKED, 1);
// Topic types
-define(NORMAL, 0);
-define(STICKY, 1);
-define(ANNOUCE, 2);
-define(GLOB_ANNOUNCE, 3);
-
+define(POST_NORMAL, 0);
+define(POST_STICKY, 1);
+define(POST_ANNOUNCE, 2);
+define(POST_GLOBAL_ANNOUNCE, 3);
// Ban time types
define(SECONDS, 1);
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 84094e8b9b..633ae60b9f 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -6,11 +6,7 @@
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
-<<<<<<< posting.php
* $Id$
-=======
- * $Id$
->>>>>>> 1.35
*
*
***************************************************************************/
@@ -53,28 +49,33 @@ $mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : ( (isset($HTT
// Set initial conditions
//
$is_first_post = (($HTTP_GET_VARS['is_first_post'] == 1) || ($HTTP_POST_VARS['is_first_post'] == 1)) ? TRUE : FALSE;
+
$disable_html = (isset($HTTP_POST_VARS['disable_html'])) ? $HTTP_POST_VARS['disable_html'] : !$userdata['user_allowhtml'];
$disable_bbcode = (isset($HTTP_POST_VARS['disable_bbcode'])) ? $HTTP_POST_VARS['disable_bbcode'] : !$userdata['user_allowbbcode'];
$disable_smilies = (isset($HTTP_POST_VARS['disable_smile'])) ? $HTTP_POST_VARS['disable_smile'] : !$userdata['user_allowsmile'];
+
$attach_sig = (isset($HTTP_POST_VARS['attach_sig'])) ? $HTTP_POST_VARS['attach_sig'] : $userdata['user_attachsig'];
+
$notify = (isset($HTTP_POST_VARS['notify'])) ? $HTTP_POST_VARS['notify'] : $userdata["always_notify"];
-$annouce = (isset($HTTP_POST_VARS['annouce'])) ? $HTTP_POST_VARS['annouce'] : "";
-$unannouce = (isset($HTTP_POST_VARS['unannouce'])) ? $HTTP_POST_VARS['unannouce'] : "";
-$sticky = (isset($HTTP_POST_VARS['sticky'])) ? $HTTP_POST_VARS['sticky'] : "";
-$unstick = (isset($HTTP_POST_VARS['unstick'])) ? $HTTP_POST_VARS['unstick'] : "";
+
+$annouce = (isset($HTTP_POST_VARS['annouce'])) ? TRUE : FALSE;
+$unannouce = (isset($HTTP_POST_VARS['unannouce'])) ? TRUE : FALSE;
+$sticky = (isset($HTTP_POST_VARS['sticky'])) ? TRUE : FALSE;
+$unstick = (isset($HTTP_POST_VARS['unstick'])) ? TRUE : FALSE;
+
$preview = (isset($HTTP_POST_VARS['preview'])) ? TRUE : FALSE;
if($annouce)
{
- $topic_type = ANNOUCE;
+ $topic_type = POST_ANNOUNCE;
}
else if($sticky)
{
- $topic_type = STICKY;
+ $topic_type = POST_STICKY;
}
else
{
- $topic_type = NORMAL;
+ $topic_type = POST_NORMAL;
}
//
@@ -83,13 +84,13 @@ else
switch($mode)
{
case 'newtopic':
- if($topic_type == ANNOUNCE)
+ if($topic_type == POST_ANNOUNCE)
{
- $auth_type = AUTH_ANNOUCE;
+ $auth_type = AUTH_ANNOUNCE;
$is_auth_type = "auth_announce";
$error_string = $lang['can_post_announcements'];
}
- else if($topic_type == STICKY)
+ else if($topic_type == POST_STICKY)
{
$auth_type = AUTH_STICKY;
$is_auth_type = "auth_sticky";
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index fd93eca4e4..aec6aaeab0 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -193,12 +193,12 @@ $select_post_days .= "</select>";
// this forum
//
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
- FROM ".TOPICS_TABLE." t, ".USERS_TABLE." u, ".POSTS_TABLE." p, ".USERS_TABLE." u2
+ FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
WHERE t.forum_id = $forum_id
AND t.topic_poster = u.user_id
AND p.post_id = t.topic_last_post_id
AND p.poster_id = u2.user_id
- AND t.topic_type <> ".GLOB_ANNOUNCE."
+ AND t.topic_type <> " . POST_GLOBAL_ANNOUNCE . "
$limit_posts_time
ORDER BY t.topic_type DESC, p.post_time DESC
LIMIT $start, ".$board_config['topics_per_page'];