FluxBB.org

 
Übersetzungen dieser Seite?:

Funktions-Referenz

/include/functions.php

Name der Funktion Parameter Beschreibung
add_post $post_info, &$new_pid Erstellt einen neuen Beitrag
add_topic $post_info, &$new_tid, &$new_pid Erstellt ein neues Thema mit dem dazugehörigen ersten Beitrag
add_user $user_info, &$new_uid Erstellt einen neuen Benutzer. Der Benutzername muss vorher mit validate_username() „behandelt“ werden.
array_insert &$input, $offset, $element, $key = null Fügt das Element $element an der Stelle $offset in das Array $input ein.
authenticate_user $user, $password, $password_is_hash = false Validiert den gegebenen Benutzernamen und das gegebene Passwort.
censor_words $text Zensiert den Text $text (ersetzt bestimmte Wörter).
check_bans Prüft, ob der Benutzer gebannt ist (und löscht nebenbei alle abgelaufenen Bänne).
check_username_dupe $username, $exclude_id = null Prüft, ob ein Benutzername noch verfügbar ist.
clean_forum_moderators Läuft durch die Liste der Forum-Moderatoren und löscht alle falschen Einträge.
clean_version $version Befreit einen String, der eine Versionsnummer enthält, von '.0' am Ende.
cookie_login &$forum_user Versucht, den Benutzer mit den Daten aus seinem Cookie einzuloggen.
csrf_confirm_form Zeigt ein Formular an, dass den Benutzer abfragt, ob er eine bestimmte Aktion ausführen möchte. Wird benutzt, wenn der CSRF-Code der Anfrage nicht mit dem Code aus der Datenbank übereinstimmt.
delete_avatar $user_id Entfernt alle Avatare der angegebenen Benutzer-ID.
delete_orphans Lokalisiert und entfernt alle Weiterleitungs-Themen-Ruinen.
delete_post $post_id, $topic_id, $forum_id Entfernt den angegebenen Beitrag.
delete_topic $topic_id, $forum_id Entfernt das angegebene Thema und alle seine Beiträge.
delete_user $user_id Delete a user and all information associated with it
dump $arg1, … Dump contents of variable(s)
error Display a simple error message
format_time $timestamp, $date_only = false Format a time string according to $time_format and timezones
forum_clear_cache Delete every .php file in the forum's cache directory
forum_hash $str, $salt Generates a salted, SHA-1 hash of $str
forum_htmlencode $str Encodes the contents of $str so that they are safe to output on an (X)HTML page
forum_linebreaks $str Convert rn and r to n
forum_link $link, $args = null Generate a hyperlink with parameters and anchor
forum_setcookie $name, $value, $expire Set a cookie, FluxBB style!
forum_strlen $str An UTF-8 aware version of strlen()
forum_sublink $link, $sublink, $subarg, $args = null Generate a hyperlink with parameters and anchor and a subsection such as a subpage
forum_unregister_globals Unset any variables instantiated as a result of register_globals being enabled
generate_avatar_markup$user_id Generates the HTML code to display the users avatar
generate_crumbs $reverse Generate breadcrumb navigation
generate_form_token $target_url Generates a valid CSRF token for use when submitting a form to $target_url. $target_url should be an absolute URL and it should be exactly the URL that the user is going to. Alternately, if the form token is going to be used in GET (which would mean the token is going to be a part of the URL itself), $target_url may be a plain string containing information related to the URL.
generate_navlinks Generate the „navigator“ that appears at the top of every page
generate_profile_menu Display the profile navigation menu
get_current_url $max_length = 0 Try to determine the current URL
get_hook $hook_id Return all code blocks that hook into $hook_id
get_remote_address Try to determine the correct remote IP-address
get_remote_file $url, $timeout, $head_only = false Attempts to fetch the provided URL using any available means
get_saved_queries Display executed queries (if enabled)
get_title $user Determines the correct title for $user. $user must contain the elements 'username', 'title', 'posts', 'g_id' and 'g_user_title'
get_tracked_topics Extract array of tracked topics from cookie
maintenance_message Display a message when board is in maintenance mode
message $message, $link = '' Display a message
paginate $num_pages, $cur_page, $link, $separator, $args = null Generate a string with numbered links (for multipage scripts)
random_key $len, $readable = false, $hash = false Generate a random key of length $len
redirect $destination_url, $message Display $message and redirect user to $destination_url
sef_friendly $str Make a string safe to use in a URL
send_subscriptions $post_info, $new_pid Send out subscription emails
set_default_user Fill $forum_user with default values (for guests)
set_tracked_topics $tracked_topics Save array of tracked topics in cookie
sync_forum $forum_id Update posts, topics, last_post, last_post_id and last_poster for a forum
sync_topic $topic_id Update replies, last_post, last_post_id and last_poster for a topic
update_users_online Update „Users online“
validate_username $username, $exclude_id = null Verifies that the provided username is OK for insertion into the database
 
de/functions.txt · Zuletzt geändert: 2008/06/17 15:41 von lie2815
 
Falls nicht anders bezeichnet ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki