Проверка ввода
Функции для проверки пользовательского ввода.
Функции
Имя | Описание |
---|---|
base_path includes/common.inc | Возвращает базовый путь сайта. |
check_url includes/common.inc | Подготавливает URL для использования в качестве HTML-атрибута. Убирает вредоносные протоколы. |
drupal_add_css includes/common.inc | Adds a CSS file to the stylesheet queue. |
drupal_add_js includes/common.inc | Добавляет JavaScript файл, настройки или код на страницу. |
drupal_add_link includes/common.inc | Добавляет тег в HEAD страницы. |
drupal_attributes includes/common.inc | Форматирует строку с атрибутами для вставки в HTML тэг. |
drupal_build_css_cache includes/common.inc | Объединяет и оптимизирует файлы CSS, размещая конечный файл в файловой директории. |
drupal_clear_css_cache includes/common.inc | Удаляет все файлы кэша CSS. |
drupal_clone includes/common.inc | Обеспечивает замену функции clone() для PHP4. |
drupal_cron_cleanup includes/common.inc | Shutdown function for cron cleanup. |
drupal_cron_run includes/common.inc | При вызове выполняет задачи cron |
drupal_eval includes/common.inc | Исполнить строку кода на PHP. |
drupal_get_css includes/common.inc | Returns a themed representation of all stylesheets that should be attached to the page. It loads the CSS in order, with 'core' CSS first, then 'module' CSS, then 'theme' CSS files. This ensures proper cascading of styles... |
drupal_get_js includes/common.inc | Returns a themed presentation of all JavaScript code for the current page. References to JavaScript files are placed in a certain order: first, all 'core' files, then all 'module' and finally all 'theme' JavaScript... |
drupal_get_path includes/common.inc | Возвращает адрес системного элемента (модуль, тема и т.п.) |
drupal_get_private_key includes/common.inc | Гарантирует, что переменная персонального ключа, которая используется для генерации токенов установлена. |
drupal_get_token includes/common.inc | Генерирует уникальное значение (токен), основанное на значении параметра $value, текущей сессии пользователя и приватного ключа сайта. |
drupal_mail includes/common.inc | Send an e-mail message, using Drupal variables and default settings. More information in the PHP function reference for mail() |
drupal_map_assoc includes/common.inc | Формирует ассоциативный массив из линейного массива. |
drupal_page_footer includes/common.inc | Perform end-of-request tasks. |
drupal_render includes/common.inc | Формирует HTML-код из структурированного массива. |
drupal_system_listing includes/common.inc | Returns an array of files objects of the given type from the site-wide directory (i.e. modules/), the all-sites directory (i.e. sites/all/modules/), the profiles directory, and site-specific directory (i.e. sites/somesite/modules/). The returned array... |
drupal_to_js includes/common.inc | Converts a PHP variable into its Javascript equivalent. |
drupal_urlencode includes/common.inc | Wrapper around urlencode() which avoids Apache quirks. |
drupal_valid_token includes/common.inc | Проверяет корректность соотношения уникального значения (токена) к ключу, основанному на параметре $value, сессии пользователя и приватного ключа сайта. |
element_child includes/common.inc | Проверяет, является ли ключ структурированного массива атрибутом (начинается с '#') или дочерним элементом (все остальные ключи). |
element_children includes/common.inc | Возвращает ключи структурированного массива, которые не являются атрибутами (т.е. не начинаются на '#'). |
element_properties includes/common.inc | Get properties of a structured array element. Properties begin with '#'. |
element_property includes/common.inc | Check if the key is a property. |
flood_is_allowed includes/common.inc | Check if the current visitor (hostname/IP) is allowed to proceed with the specified event. The user is allowed to proceed if he did not trigger the specified event more than $threshold times per hour. |
flood_register_event includes/common.inc | Register an event for the current visitor (hostname/IP) to the flood control mechanism. |
format_date includes/common.inc | Форматирует дату в заданном формате или в формате настроек сайта. |
format_interval includes/common.inc | Форматирует временной интервал с заданной точностью. |
format_plural includes/common.inc | Форматирует и переводит строку, содержащую число. |
format_rss_channel includes/common.inc | Formats an RSS channel. |
format_rss_item includes/common.inc | Format a single RSS item. |
format_size includes/common.inc | Генерирует строчное представление указанного количества байт. |
format_xml_elements includes/common.inc | Format XML elements. |
l includes/common.inc | Оформляет ссылки. |
page_set_cache includes/common.inc | Store the current page in the cache. |
parse_size includes/common.inc | Parse a given byte count. |
url includes/common.inc | Генерирует URL из указанного пути меню. Также поддерживает уже существующие URL. |
valid_email_address includes/common.inc | Verify the syntax of the given e-mail address. |
valid_url includes/common.inc | Verify the syntax of the given URL. |
xmlrpc includes/common.inc | Performs one or more XML-RPC request(s). |
_drupal_add_js includes/common.inc | Helper function for drupal_add_js(). |
_element_sort includes/common.inc | Function used by uasort in drupal_render() to sort structured arrays by weight. |