[ Index ]

PHP Cross Reference of phpBB-3.1.10-deutsch

title

Body

[close]

/includes/ -> functions_compatibility.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: 198 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  get_user_avatar()
  phpbb_hash()
  phpbb_check_hash()
  phpbb_clean_path()
  tz_select()
  cache_moderators()
  update_foes()
  get_user_rank()

Functions
Functions that are not part of a class:

get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $alt = 'USER_AVATAR', $ignore_config = false, $lazy = false)   X-Ref
Get user avatar

return: string Avatar image
param: string $avatar Users assigned avatar name
param: int $avatar_type Type of avatar
param: string $avatar_width Width of users avatar
param: string $avatar_height Height of users avatar
param: string $alt Optional language string for alt tag within image, can be a language key or text
param: bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP
param: bool $lazy If true, will be lazy loaded (requires JS)

phpbb_hash($password)   X-Ref
Hash the password

return: string|bool Password hash or false if something went wrong during hashing
param: string $password Password to be hashed

phpbb_check_hash($password, $hash)   X-Ref
Check for correct password

return: bool Returns true if the password is correct, false if not.
param: string $password The password in plain text
param: string $hash The stored password hash

phpbb_clean_path($path)   X-Ref
Eliminates useless . and .. components from specified path.

Deprecated, use filesystem class instead

return: string Cleaned path
param: string $path Path to clean

tz_select($default = '', $truncate = false)   X-Ref
Pick a timezone

return: string        Returns the options for timezone selector only
param: string        $default            A timezone to select
param: boolean        $truncate            Shall we truncate the options text

cache_moderators()   X-Ref
Cache moderators. Called whenever permissions are changed
via admin_permissions. Changes of usernames and group names
must be carried through for the moderators table.

return: null

update_foes($group_id = false, $user_id = false)   X-Ref
Removes moderators and administrators from foe lists.

return: null
param: array|bool $group_id If an array, remove all members of this group from foe lists, or false to ignore
param: array|bool $user_id If an array, remove this user from foe lists, or false to ignore

get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)   X-Ref
Get user rank title and image

param: int $user_rank the current stored users rank id
param: int $user_posts the users number of posts
param: string &$rank_title the rank title will be stored here after execution
param: string &$rank_img the rank image as full img tag is stored here after execution
param: string &$rank_img_src the rank image source is stored here after execution



Generated: Sun Feb 19 19:52:41 2017 Cross-referenced by PHPXref 0.7.1