[ Index ]

PHP Cross Reference of MyBB 1.8.37

title

Body

[close]

/ -> moderation.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: 3557 lines (99 kb)
Included or required:0 times
Referenced: 22 times
Includes or requires: 8 files
 inc/class_parser.php
 inc/class_custommoderation.php
 inc/class_moderation.php
 global.php
 inc/functions_upload.php
 inc/functions_user.php
 inc/functions_post.php
 inc/datahandlers/user.php

Defines 7 functions

  getids()
  getallids()
  clearinline()
  extendinline()
  is_moderator_by_pids()
  is_moderator_by_tids()
  moderation_redirect()

Functions
Functions that are not part of a class:

getids($id, $type)   X-Ref
Some little handy functions for our inline moderation
return: array
param: int $id
param: string $type

getallids($id, $type)   X-Ref

return: array
param: int $id
param: string $type

clearinline($id, $type)   X-Ref

param: int $id
param: string $type

extendinline($id, $type)   X-Ref

param: int $id
param: string $type

is_moderator_by_pids($posts, $permission='')   X-Ref
Checks if the current user is a moderator of all the posts specified
Note: If no posts are specified, this function will return true.  It is the
responsibility of the calling script to error-check this case if necessary.return: bool True if moderator of all; false otherwise
param: array $posts Array of post IDs
param: string $permission Permission to check

is_moderator_by_tids($threads, $permission='')   X-Ref
Checks if the current user is a moderator of all the threads specified
Note: If no threads are specified, this function will return true.  It is the
responsibility of the calling script to error-check this case if necessary.return: bool True if moderator of all; false otherwise
param: array $threads Array of thread IDs
param: string $permission Permission to check

moderation_redirect($url, $message="", $title="")   X-Ref
Special redirect that takes a return URL into account
param: string $url URL
param: string $message Message
param: string $title Title



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