[ Index ]

PHP Cross Reference of MyBB 1.8.38

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: 1162 lines (36 kb)
Included or required: 24 times
Referenced: 0 times
Includes or requires: 2 files
 inc/functions_user.php
 inc/class_parser.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
return: string The built 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)

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