[ Index ]

PHP Cross Reference of phpBB-3.2.0-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: 2664 lines (86 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 17 functions

  generate_smilies()
  update_post_information()
  posting_gen_topic_icons()
  posting_gen_topic_types()
  upload_attachment()
  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


upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false)   X-Ref
Upload Attachment - filedata is generated here
Uses upload class

return: array File data array
param: string            $form_name        The form name of the file upload input
param: int            $forum_id        The id of the forum
param: bool            $local            Whether the file is local or not
param: string            $local_storage    The path to the local file
param: bool            $is_message        Whether it is a PM or not
param: array            $local_filedata    A filespec object created for the local file

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)   X-Ref
Generate inline attachment entry


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?forum_id=1&amptopic_id=2&ampp=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




Generated: Sun Feb 19 19:47:08 2017 Cross-referenced by PHPXref 0.7.1