[ Index ]

PHP Cross Reference of MyBB 1.8.30

title

Body

[close]

/inc/ -> functions_warnings.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: 125 lines (3 kb)
Included or required: 4 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  find_warnlevels_to_check()
  fetch_friendly_expiration()
  fetch_time_length()

Functions
Functions that are not part of a class:

find_warnlevels_to_check($query, &$max_expiration_times, &$check_levels)   X-Ref

param: resource|PDOStatement|mysqli_result $query The query to be run. Needs to select the "action" column of the "warninglevels" table
param: array $max_expiration_times Return variable. The maximum expiration time
param: array $check_levels Return variable. Whether those "levels" were checked

fetch_friendly_expiration($time)   X-Ref
Returns a friendly expiration time of a suspension/warning
return: array An array of the time/period remaining
param: int $time The time period of the suspension/warning

fetch_time_length($time, $period)   X-Ref
Figures out the length of a suspension/warning
return: int Length of the suspension/warning (in seconds)
param: int $time The amount of time to calculate the length of suspension/warning
param: string $period The period of time to calculate the length of suspension/warning



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