| Function Summary | |
|---|---|
| cot_alphaonly | Strips everything but alphanumeric, hyphens and underscores |
| cot_auth | Returns specific access permissions |
| cot_auth_build | Builds Access Control List (ACL) for a specific user |
| cot_autoload | Generic autoloader function to be used with spl_autoload_register |
| cot_block | Block user if he is not allowed to access the page |
| cot_blockguests | Block guests from viewing the page |
| cot_breadcrumbs | Renders breadcrumbs string from array of path crumbs |
| cot_build_age | Calculates age out of date of birth. |
| cot_build_country | Returns country text button |
| cot_build_email | Returns user email link |
| cot_build_filesize | Generate human-readable filesize. |
| cot_build_flag | Returns country flag button |
| cot_build_friendlynumber | Generic function for generating a human-readable number with localized units. |
| cot_build_group | Returns group link (button) |
| cot_build_groupicon | Returns user group icon |
| cot_build_ipsearch | Returns IP Search link |
| cot_build_number | Wrapper for number_format() using locale number formatting and optional rounding. |
| cot_build_oddeven | Odd/even class choser for row |
| cot_build_stars | Returns stars image for user level |
| cot_build_timeago | Returns readable time difference or 'Just now'. |
| cot_build_timegap | Returns time gap between two timestamps |
| cot_build_timezone | Returns timezone offset formatted according to ISO 8601 |
| cot_build_url | Returns link for URL |
| cot_build_user | Returns link to user profile |
| cot_captcha_generate | Generates a captcha |
| cot_captcha_list | Returns the list of currently installed captchas |
| cot_captcha_validate | Valides a captcha value |
| cot_check | If condition is true, triggers an error with given message and source |
| cot_check_email | Checks the email |
| cot_check_messages | Checks if there are messages to display |
| cot_check_xg | Checks GET anti-XSS parameter |
| cot_check_xp | Checks POST anti-XSS parameter |
| cot_clear_messages | Clears error and other messages after they have bin displayed |
| cot_confirm_url | Generates an URL used to confirm an action performed by target URL |
| cot_cutstring | Truncates a string |
| cot_date | Localized version of PHP date() |
| cot_date2stamp | Converts date into UNIX timestamp. |
| cot_date2strftime | Convert a date format to a strftime format. |
| cot_declension | Makes correct plural forms of words |
| cot_die | Terminates script execution and performs redirect |
| cot_die_message | Terminates script execution and displays message page |
| cot_diefatal | Terminates script execution with fatal error |
| cot_display_messages | Renders different messages on page |
| cot_error | Records an error message to be displayed on results page |
| cot_error_found | Checks if any errors have been previously detected during current script execution |
| cot_generate_usertags | Returns all user tags for XTemplate |
| cot_get_caller | Returns name part of the caller file. |
| cot_get_editors | Returns the list of available rich text editors |
| cot_get_messages | Returns an array of messages for a specific source and/or class |
| cot_get_parsers | Returns the list of available markup parsers |
| cot_get_plural | Used in cot_declension to get rules for concrete languages |
| cot_getextplugins | Returns a list of plugins registered for a hook |
| cot_hash | Hashes a value with given salt and specified hash algo. |
| cot_hash_funcs | Returns the list of available hash algos for use with configs. |
| cot_hash_md5 | Simple MD5 hash wrapper. |
| cot_hash_sha1 | SHA1 hash func for use with cot_hash(). |
| cot_hash_sha256 | SHA256 hash func for use with cot_hash(). |
| cot_http_build_url | Builds URL string from URL parts |
| cot_imageresize | Resize an image |
| cot_imagesharpen | Sharpen an image after resize |
| cot_img_check_memory | Checks if PHP can have enough memory to process an image |
| cot_implode_messages | Collects all messages and implodes them into a single string |
| cot_import | Imports data from the outer world |
| cot_import_buffer_save | Puts POST data into the cross-request buffer |
| cot_import_buffered | Attempts to fetch a buffered value for a variable previously imported if the currently imported value is empty |
| cot_import_date | Imports date stamp |
| cot_import_list | Imports data from the outer world by list of Variable names Relies on `cot_import` function |
| cot_import_pagenav | Imports pagination indexes |
| cot_import_tabledata | Imports data from the outer world as indexed array of records imported by cot_import_list. |
| cot_incfile | Returns path to include file |
| cot_lang_determine | Returns a exists language from HTTP_ACCEPT_LANGUAGE |
| cot_langfile | Returns a language file path for an extension or core part. |
| cot_load_structure | Loads comlete category structure into array |
| cot_log | Logs an event |
| cot_log_import | Logs wrong input |
| cot_mail | Sends mail with standard PHP mail(). |
| cot_message | Records a generic message to be displayed on results page |
| cot_mktime | Creates UNIX timestamp out of a date |
| cot_module_active | Checks if a module is currently installed and active |
| cot_outputfilters | Applies output filters, adds XSS protection to POST forms Note: XSS can be switched off by adding "xp-off" class to form |
| cot_outputfilters_callback | Used with cot_outputfilters It is needed because php 5.2 does not support anonymous functions. |
| cot_pagenav | Page navigation (pagination) builder. |
| cot_parse | Parses text body |
| cot_parse_autourls | Automatically detect and parse URLs in text into HTML |
| cot_parse_str | Splits a query string into keys and values array. |
| cot_parse_url | Splits URL for its parts Same as `parse_str` but with workaround for URL with omitted scheme for old PHP versions |
| cot_plugin_active | Checks if a plugin is currently installed and active |
| cot_randomstring | Generates random string within specified charlist |
| cot_rc | Resource string formatter function. |
| cot_rc_add_embed | Puts a portion of embedded code into the header/footer CSS/JS resource registry. |
| cot_rc_add_file | Puts a JS/CSS file into the footer resource registry to be consolidated with other such resources and stored in cache. |
| cot_rc_add_standard | Registers standard resources |
| cot_rc_attr_string | Converts custom attributes to a string if necessary |
| cot_rc_embed | A shortcut for plain output of an embedded stylesheet/javascript in the header of the page |
| cot_rc_embed_footer | A shortcut for plain output of an embedded stylesheet/javascript in the footer of the page |
| cot_rc_link | Quick link resource pattern |
| cot_rc_link_file | A shortcut for plain output of a link to a CSS/JS file in the header of the page |
| cot_rc_link_footer | A shortcut to append a JavaScript or CSS file to {FOOTER_JS} tag |
| cot_rc_minify | JS/CSS minification function |
| cot_rc_modify | Modifies rc string |
| cot_redirect | Displays redirect page |
| cot_rmdir | Removes a directory recursively |
| cot_schemefile | Returns path to a CSS file for user selected color scheme. |
| cot_selectbox_theme | Returns Theme/Scheme selection dropdown |
| cot_sendheaders | Sends standard HTTP headers and disables browser cache |
| cot_setcookie | Set cookie with optional HttpOnly flag |
| cot_shield_clearaction | Clears current user action in shield |
| cot_shield_hammer | Anti-hammer protection |
| cot_shield_protect | Warn user of shield protection |
| cot_shield_update | Updates shield state |
| cot_shutdown | Performs actions required right before shutdown |
| cot_stamp2date | Converts UNIX timestamp into MySQL date |
| cot_string_truncate | Truncates text. |
| cot_structure_buildpath | Builds category path for cot_breadcrumbs() |
| cot_structure_children | Gets an array of category children |
| cot_structure_parents | Gets an array of category parents |
| cot_themes_info | Returns themes info data for all available themes or a specified one |
| cot_timezone_list | Returns a list of timezones sorted by GMT offset. |
| cot_timezone_offset | Returns the offset from GMT in seconds or hours, with or without DST. |
| cot_timezone_search | Returns a list of possible timezones based on country and/or GMT offset. |
| cot_timezone_transitions | Returns previous, current and next transition in a certain timezone. |
| cot_title | Generates a title string by replacing submasks with assigned values |
| cot_tplfile | Returns path to a template file. |
| cot_translit_decode | Backwards transition for cot_translit_encode |
| cot_translit_encode | Transliterates a string if transliteration is available |
| cot_unique | Generates random string within hexadecimal range |
| cot_unregister_globals | Unregisters globals if globals are On |
| cot_uriredir_apply | Apply URI-redir that stored in session |
| cot_uriredir_redirect | Checks URI-redir for xg before redirect |
| cot_uriredir_store | Store URI-redir to session |
| cot_url | Transforms parameters into URL by following user-defined rules. |
| cot_url_check | Checks if an absolute URL belongs to current site or its subdomains |
| cot_url_modify | Constructs a modified version of a current URL. |
| cot_url_sanitize | Sanitize given URL to prevent XSS |
| cot_user_full_name | Displays User full name Format of full name is language specific and defined by $R['users_full_name'] resource string. |
| cot_wraptext | Wraps text |
| cot_xg | Returns XSS protection variable for GET URLs |
| cot_xp | Returns XSS protection field for POST forms |
| imageconvolution | |
| strptime | strptime() for Windows |
| Global Summary | |
|---|---|
| COT_GROUP_DEFAULT | Main function library. |
| cfg | |
| cot_languages | |