[ Index ] |
|
Code source de Drupal 5.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1509 lignes (59 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 1 fois |
Nécessite: | 0 fichiers |
filter_help($section) X-Ref |
Implementation of hook_help(). |
filter_menu($may_cache) X-Ref |
Implementation of hook_menu(). |
filter_perm() X-Ref |
Implementation of hook_perm(). |
filter_cron() X-Ref |
Implementation of hook_cron(). Expire outdated filter cache entries |
filter_filter_tips($delta, $format, $long = FALSE) X-Ref |
Implementation of hook_filter_tips(). |
filter_admin_overview() X-Ref |
Displays a list of all input formats and which one is the default |
filter_admin_overview_submit($form_id, $form_values) X-Ref |
Pas de description |
theme_filter_admin_overview($form) X-Ref |
Pas de description |
filter_admin_delete() X-Ref |
Menu callback; confirm deletion of a format. |
filter_admin_delete_submit($form_id, $form_values) X-Ref |
Process filter delete form submission. |
filter_admin_format_form($format = NULL) X-Ref |
Generate a filter format form. |
filter_admin_format_form_validate($form_id, $form_values) X-Ref |
Validate filter format form submissions. |
filter_admin_format_form_submit($form_id, $form_values) X-Ref |
Process filter format form submissions. |
filter_admin_order($format = NULL) X-Ref |
Menu callback; display form for ordering filters for a format. |
theme_filter_admin_order($form) X-Ref |
Theme filter order configuration form. |
filter_admin_order_submit($form_id, $form_values) X-Ref |
Process filter order configuration form submission. |
filter_admin_configure() X-Ref |
Menu callback; display settings defined by filters. |
filter_formats() X-Ref |
Retrieve a list of input formats. |
filter_list_all() X-Ref |
Build a list of all filters. |
_filter_list_cmp($a, $b) X-Ref |
Helper function for sorting the filter list by filter name. |
filter_resolve_format($format) X-Ref |
Resolve a format id, including the default format. |
filter_format_allowcache($format) X-Ref |
Check if text in a certain input format is allowed to be cached. |
filter_list_format($format) X-Ref |
Retrieve a list of filters for a certain format. |
check_markup($text, $format = FILTER_FORMAT_DEFAULT, $check = TRUE) X-Ref |
Run all the enabled filters on a piece of text. param: $text param: $format param: $check |
filter_form($value = FILTER_FORMAT_DEFAULT, $weight = NULL, $parents = array('format') X-Ref |
Generate a selector for choosing a format in a form. param: $value param: $weight param: $parents return: |
filter_form_validate($form) X-Ref |
Pas de description |
filter_access($format) X-Ref |
Returns TRUE if the user is allowed to access this format. |
filter_tips_long() X-Ref |
Menu callback; show a page with long filter tips. |
_filter_tips($format, $long = FALSE) X-Ref |
Helper function for fetching filter tips. |
theme_filter_tips($tips, $long = FALSE, $extra = '') X-Ref |
Format a set of filter tips. |
theme_filter_tips_more_info() X-Ref |
Format a link to the more extensive filter tips. |
filter_filter($op, $delta = 0, $format = -1, $text = '') X-Ref |
Implementation of hook_filter(). Contains a basic set of essential filters. - HTML filter: Validates user-supplied HTML, transforming it as necessary. - PHP evaluator: Executes PHP code. - Line break converter: Converts newlines into paragraph and break tags. |
_filter_html_settings($format) X-Ref |
Settings for the HTML filter. |
_filter_html($text, $format) X-Ref |
HTML filter. Provides filtering of input into accepted HTML. |
_filter_url_settings($format) X-Ref |
Settings for URL filter. |
_filter_url($text, $format) X-Ref |
URL filter. Automatically converts text web addresses (URLs, e-mail addresses, ftp links, etc.) into hyperlinks. |
_filter_url_parse_full_links($match) X-Ref |
Make links out of absolute URLs. |
_filter_url_parse_partial_links($match) X-Ref |
Make links out of domain names starting with "www." |
_filter_url_trim($text, $length = NULL) X-Ref |
Shortens long URLs to http://www.example.com/long/url... |
_filter_autop($text) X-Ref |
Convert line breaks into <p> and <br> in an intelligent fashion. Based on: http://photomatt.net/scripts/autop |
filter_xss_admin($string) X-Ref |
Very permissive XSS/HTML filter for admin-only use. Use only for fields where it is impractical to use the whole filter system, but where some (mainly inline) mark-up is desired (so check_plain() is not acceptable). Allows all tags that can be used inside an HTML body, save for scripts and styles. |
filter_xss($string, $allowed_tags = array('a', 'em', 'strong', 'cite', 'code', 'ul', 'ol', 'li', 'dl', 'dt', 'dd') X-Ref |
Filters XSS. Based on kses by Ulf Harnhammar, see http://sourceforge.net/projects/kses For examples of various XSS attacks, see: http://ha.ckers.org/xss.html This code does four things: - Removes characters and constructs that can trick browsers - Makes sure all HTML entities are well-formed - Makes sure all HTML tags and attributes are well-formed - Makes sure no HTML tags contain URLs with a disallowed protocol (e.g. javascript:) param: $string param: $allowed_tags param: $format |
_filter_xss_split($m, $store = FALSE) X-Ref |
Processes an HTML tag. param: @m param: $store return: |
_filter_xss_attributes($attr) X-Ref |
Processes a string of HTML attributes. return: |
filter_xss_bad_protocol($string, $decode = TRUE) X-Ref |
Processes an HTML attribute value and ensures it does not contain an URL with a disallowed protocol (e.g. javascript:) param: $string param: $decode return: |
Généré le : Fri Nov 30 16:20:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |