[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/includes/ -> functions_posting.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 2939 lines (94 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 16 functions

  generate_smilies()
  update_post_information()
  posting_gen_topic_icons()
  posting_gen_topic_types()
  get_img_size_format()
  get_supported_image_types()
  create_thumbnail()
  posting_gen_inline_attachments()
  posting_gen_attachment_entry()
  load_drafts()
  topic_review()
  delete_post()
  submit_post()
  phpbb_bump_topic()
  phpbb_upload_popup()
  phpbb_handle_post_delete()

Functions
Functions that are not part of a class:

generate_smilies($mode, $forum_id)   X-Ref
Fill smiley templates (or just the variables) with smilies, either in a window or inline


update_post_information($type, $ids, $return_update_sql = false)   X-Ref
Update last post information
Should be used instead of sync() if only the last post information are out of sync... faster

param: string    $type                Can be forum|topic
param: mixed    $ids                topic/forum ids
param: bool    $return_update_sql    true: SQL query shall be returned, false: execute SQL

posting_gen_topic_icons($mode, $icon_id)   X-Ref
Generate Topic Icons for display


posting_gen_topic_types($forum_id, $cur_topic_type = POST_NORMAL)   X-Ref
Build topic types able to be selected


get_img_size_format($width, $height)   X-Ref
Calculate the needed size for Thumbnail


get_supported_image_types($type = false)   X-Ref
Return supported image types


create_thumbnail($source, $destination, $mimetype)   X-Ref
Create Thumbnail


posting_gen_inline_attachments(&$attachment_data)   X-Ref
Assign Inline attachments (build option fields)


posting_gen_attachment_entry($attachment_data, &$filename_data, $show_attach_box = true, $forum_id = false)   X-Ref
Generate inline attachment entry

return: int
param: array        $attachment_data    The attachment data
param: string    $filename_data        The filename data (filecomment)
param: bool        $show_attach_box    Whether to show the attach box
param: mixed        $forum_id            The forum id to check or false if private message

load_drafts($topic_id = 0, $forum_id = 0, $id = 0, $pm_action = '', $msg_id = 0)   X-Ref
Load Drafts


topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id = 0, $show_quote_button = true)   X-Ref
Topic Review


delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $softdelete_reason = '')   X-Ref
Delete Post


submit_post($mode, $subject, $username, $topic_type, &$poll_ary, &$data_ary, $update_message = true, $update_search_index = true)   X-Ref
Submit Post


phpbb_bump_topic($forum_id, $topic_id, $post_data, $bump_time = false)   X-Ref
Handle topic bumping

return: string An URL to the bumped topic, example: ./viewtopic.php?p=3#p3
param: int $forum_id The ID of the forum the topic is being bumped belongs to
param: int $topic_id The ID of the topic is being bumping
param: array $post_data Passes some topic parameters:
param: int $bump_time The time at which topic was bumped, usually it is a current time as obtained via time().

phpbb_upload_popup($forum_style = 0)   X-Ref
Show upload popup (progress bar)


phpbb_handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $is_soft = false, $delete_reason = '')   X-Ref
Do the various checks required for removing posts as well as removing it

return: null
param: int        $forum_id        The id of the forum
param: int        $topic_id        The id of the topic
param: int        $post_id        The id of the post
param: array        $post_data        Array with the post data
param: bool        $is_soft        The flag indicating whether it is the soft delete mode
param: string        $delete_reason    Description for the post deletion reason



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1