[ Index ]

PHP Cross Reference of MyBB 1.8.26

title

Body

[close]

/inc/ -> functions_post.php (summary)

MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license

File Size: 1101 lines (35 kb)
Included or required: 24 times
Referenced: 0 times
Includes or requires: 2 files
 inc/class_parser.php
 inc/functions_user.php

Defines 4 functions

  build_postbit()
  get_post_attachments()
  return_bytes()
  detect_attachmentact()

Functions
Functions that are not part of a class:

build_postbit($post, $post_type=0)   X-Ref
Build a post bit
param: array $post The post data
param: int $post_type The type of post bit we're building (1 = preview, 2 = pm, 3 = announcement, else = post)
return: string The built post bit

get_post_attachments($id, &$post)   X-Ref
Fetch the attachments for a specific post and parse inline [attachment=id] code.
Note: assumes you have $attachcache, an array of attachments set up.

param: int $id The ID of the item.
param: array $post The post or item passed by reference.

return_bytes($val)   X-Ref
Returns bytes count from human readable string
Used to parse ini_get human-readable values to int

param: string $val Human-readable value

detect_attachmentact()   X-Ref
Detects whether an attachment removal/approval/unapproval
submit button was pressed (without triggering an AJAX request)
and sets inputs accordingly (as for an AJAX request).




2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref