diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-05-25 14:32:20 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-05-25 14:32:20 +0000 |
commit | a214f8cba52f2ae4a9908d7ae7580ceed1ddd125 (patch) | |
tree | 7e02a1a0db50c9e7f1e0e1cdd65eb18dcc513f06 /phpBB/includes/functions_posting.php | |
parent | 3e18c7b988cc906a126a43caed3698cb7f0a0a4c (diff) | |
download | forums-a214f8cba52f2ae4a9908d7ae7580ceed1ddd125.tar forums-a214f8cba52f2ae4a9908d7ae7580ceed1ddd125.tar.gz forums-a214f8cba52f2ae4a9908d7ae7580ceed1ddd125.tar.bz2 forums-a214f8cba52f2ae4a9908d7ae7580ceed1ddd125.tar.xz forums-a214f8cba52f2ae4a9908d7ae7580ceed1ddd125.zip |
some cleanups/updates
git-svn-id: file:///svn/phpbb/trunk@4057 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 24284032ea..c5a45cffa3 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -30,20 +30,17 @@ function generate_smilies($mode) if ($mode == 'window') { - $page_title = $user->lang['TOPIC_REVIEW'] . " - $topic_title"; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); + page_header($user->lang['SMILIES'] . ' - ' . $topic_title); $template->set_filenames(array( 'body' => 'posting_smilies.html') ); } - $where_sql = ($mode == 'inline') ? 'WHERE display_on_posting = 1 ' : ''; - $sql = "SELECT emoticon, code, smile_url, smile_width, smile_height - FROM " . SMILIES_TABLE . " - $where_sql - ORDER BY smile_order"; - + $sql = 'SELECT emoticon, code, smile_url, smile_width, smile_height + FROM ' . SMILIES_TABLE . + (($mode == 'inline') ? ' WHERE display_on_posting = 1 ' : '') . ' + ORDER BY smile_order'; $result = $db->sql_query($sql); $num_smilies = 0; @@ -83,7 +80,7 @@ function generate_smilies($mode) if ($mode == 'window') { - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); + page_footer(); } } @@ -922,7 +919,7 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_ 'poll_title' => stripslashes($poll['poll_title']), 'poll_start' => ($poll['poll_start']) ? $poll['poll_start'] : $current_time, 'poll_max_options' => $poll['poll_max_options'], - 'poll_length' => $poll['poll_length'] * 3600) + 'poll_length' => $poll['poll_length'] * 86400) ); } |