Functions Summary | |
---|---|
void | cot_admin_other_cmp(mixed pl_a, mixed pl_b) |
mixed | cot_apply_patches(string directory, string from_ver, string sql_pattern, string php_pattern) Applies custom SQL and PHP patches in a directory. |
void | Applies Handly URLs rewrite to current script parameters |
bool | cot_auth_add_group(int group_id, int base_group_id) Registers a user group in auth table |
bool | cot_bbcode_add(string name, string mode, string pattern, string replacement, bool container, int priority, string plug, bool postrender) Registers a new bbcode in database. |
string | cot_bbcode_cdata(string text) Neutralizes bbcodes in text |
void | Clears bbcode cache |
void | Loads bbcodes from database if they havent been already loaded. |
string | cot_bbcode_parse_pre(array m) Supplimentary br stripper callback |
bool | cot_bbcode_remove(int id, string plug) Removes a bbcode from parser database. |
bool | cot_bbcode_update(int id, bool enabled, string name, string mode, string pattern, string replacement, bool container, int priority, bool postrender) Updates bbcode data in parser database. |
string | cot_build_pfs(int id, string c1, string c2, string title, string parser) Generates a link to PFS |
void | cot_build_recentpages(mixed template, str mode, int maxperpage, int d, int titlelength, int textlength, bool rightprescan, str cat) |
void | cot_captcha_validate(int verify, int func_index) |
string | cot_checkbox(bool chosen, string name, string title, mixed attrs, string value, string custom_rc) Generates a checkbox output |
int | cot_comments_count(string ext_name, string code, array row) Returns number of comments for item |
string | cot_config_type_int(array cfg_var, string min, string max) Generates a form input for Integer |
string | cot_cut_more(string html) Cuts the page after 'more' tag or after the first page (if multipage) |
void | cot_disable_mqgpc(mixed value, mixed key) |
array | cot_diskcache_calc(string dir, bool do_subdirs) Calculates directory size It's helper function for cot_diskcache_list() |
bool | cot_diskcache_clear(string dir, bool do_subdirs, bool rm_dir) Clears disk cache directory |
bool | Clears disk cache completely |
array | Returns list of non-empty subdirectories in disk cache directory |
array | cot_forums_buildpath(string cat, bool forumslink) Builds forum category path |
void | cot_get_config(mixed file) |
string | cot_i18n_build_catpath(string area, string cat, string locale) Builds internationalized category path |
bool | cot_i18n_enabled(string cat) Checks if internationalization is enabled in a selected category |
static mixed | cot_i18n_get_cat(string cat, string locale) Fetches translation row for a specific category |
mixed | cot_i18n_get_page(int page_id, string locale) Fetches translation row for a specific page |
array | cot_i18n_list_cat_locales(string cat) Returns a list of all locales available for a category |
array | cot_i18n_list_page_locales(int page_id) Returns a list of all locales available for a specific page |
void | Loads registered locales |
void | Loads structure internationalization data |
bool | cot_i18n_save(string table_name, string field, int item, string locale, string text, bool riched) Saves a translation for an item |
string | cot_install_config_replace(string file_contents, string config_name, string config_value) Replaces a sample config with its actual value |
string | cot_linkif(string url, string text, bool cond) Returns $url as an HTML link if $cond is TRUE or just plain $text otherwise |
string | cot_parse_bbcode(string text) Parses bbcodes in text. |
void | cot_parse_page_text(mixed pag_text, mixed pag_pageurl, mixed pag_parser) |
bool | cot_poll_edit_form(int id, XTemplate t, string block, string type) Adds form for create/edit Poll |
array | cot_ratings_display(string ext_name, string code, string cat, bool readonly) Generates ratings display for a given item |
void | cot_rights_parseline(mixed row, mixed title, mixed link) |
void | cot_send_translated_mail(string rlang, string remail, string rusername) Send an email in the recipient's language |
string | cot_smilies(string res) Parses smiles in text |
void | Load smilies from current pack |
void | cot_stat_create(string name) Creates new stats parameter |
int | cot_stat_get(string name) Returns statistics parameter |
void | cot_stat_inc(string name, int value) Increments stats |
void | cot_stat_update(string name, int value) Inserts new stat or increments value if it already exists |
bool | cot_tag(string tag, int item, string area, mixed extra) Tags a given item from a specific area with a keyword |
void | cot_tag_search_forums(string query) Search by tag in forums |
void | cot_tag_search_pages(string query) Search by tag in pages |
bool | cot_trash_delete(int id) Deletes a trash item with subitems |
bool | cot_trash_forumpost_check(array data) Check forumpost action |
bool | cot_trash_page_sync(array data) Sync page action |
int | cot_trash_put(string type, string title, int itemid, mixed datas, int parentid) Sends item to trash |
bool | cot_trash_restore(int id) Restores a trash item |
string | cot_userimages_build(string src, string code) Returns user image html code |
bool | cot_userimages_config_add(string code, int width, int height, string crop, bool force) Add a user image type |
Entries | cot_userimages_config_edit(string code, int width, int height, string crop) Edit a user image type |
array | cot_userimages_config_get(bool ignorecache) Get configuration for user image types |
DB | cot_userimages_config_remove(string code, bool dropcolumn) Remove a user image type |
boolean|number | cot_userimages_process_uploads(number uid) Process uploaded user images files for certain User |
array | cot_userimages_tags(array user_data, string tag_prefix) Returns UserImages tags for coTemplate |
bool | cot_userisonline(int id) Checks whether user is online |
void | cursort(mixed trigger, mixed way) |
void | rev(mixed sway) |
public void cot_admin_other_cmp(mixed pl_a, mixed pl_b)
public mixed cot_apply_patches(string directory, string from_ver, string sql_pattern, string php_pattern)
public void cot_apply_rwr()
public bool cot_auth_add_group(int group_id, int base_group_id)
public bool cot_bbcode_add(string name, string mode, string pattern, string replacement, bool container, int priority, string plug, bool postrender)
public string cot_bbcode_cdata(string text)
public void cot_bbcode_clearcache()
public void cot_bbcode_load()
public string cot_bbcode_parse_pre(array m)
public bool cot_bbcode_remove(int id, string plug)
public bool cot_bbcode_update(int id, bool enabled, string name, string mode, string pattern, string replacement, bool container, int priority, bool postrender)
public string cot_build_pfs(int id, string c1, string c2, string title, string parser)
public void cot_build_recentpages(mixed template, str mode, int maxperpage, int d, int titlelength, int textlength, bool rightprescan, str cat)
public void cot_captcha_validate(int verify, int func_index)
public string cot_checkbox(bool chosen, string name, string title, mixed attrs, string value, string custom_rc)
public int cot_comments_count(string ext_name, string code, array row)
public string cot_config_type_int(array cfg_var, string min, string max)
public string cot_cut_more(string html)
public void cot_disable_mqgpc(mixed value, mixed key)
public array cot_diskcache_calc(string dir, bool do_subdirs)
public bool cot_diskcache_clear(string dir, bool do_subdirs, bool rm_dir)
public bool cot_diskcache_clearall()
public array cot_diskcache_list()
public array cot_forums_buildpath(string cat, bool forumslink)
public void cot_get_config(mixed file)
public string cot_i18n_build_catpath(string area, string cat, string locale)
public bool cot_i18n_enabled(string cat)
public static mixed cot_i18n_get_cat(string cat, string locale)
public mixed cot_i18n_get_page(int page_id, string locale)
public array cot_i18n_list_cat_locales(string cat)
public array cot_i18n_list_page_locales(int page_id)
public void cot_i18n_load_locales()
public void cot_i18n_load_structure()
public bool cot_i18n_save(string table_name, string field, int item, string locale, string text, bool riched)
public string cot_install_config_replace(string file_contents, string config_name, string config_value)
public string cot_linkif(string url, string text, bool cond)
public string cot_parse_bbcode(string text)
public void cot_parse_page_text(mixed pag_text, mixed pag_pageurl, mixed pag_parser)
public bool cot_poll_edit_form(int id, XTemplate t, string block, string type)
public array cot_ratings_display(string ext_name, string code, string cat, bool readonly)
public void cot_rights_parseline(mixed row, mixed title, mixed link)
public void cot_send_translated_mail(string rlang, string remail, string rusername)
public string cot_smilies(string res)
public void cot_smilies_load()
public void cot_stat_create(string name)
public int cot_stat_get(string name)
public void cot_stat_inc(string name, int value)
public void cot_stat_update(string name, int value)
public bool cot_tag(string tag, int item, string area, mixed extra)
public void cot_tag_search_forums(string query)
public void cot_tag_search_pages(string query)
public bool cot_trash_delete(int id)
public bool cot_trash_forumpost_check(array data)
public bool cot_trash_page_sync(array data)
public int cot_trash_put(string type, string title, int itemid, mixed datas, int parentid)
public bool cot_trash_restore(int id)
public string cot_userimages_build(string src, string code)
public bool cot_userimages_config_add(string code, int width, int height, string crop, bool force)
public Entries cot_userimages_config_edit(string code, int width, int height, string crop)
public array cot_userimages_config_get(bool ignorecache)
public DB cot_userimages_config_remove(string code, bool dropcolumn)
public boolean|number cot_userimages_process_uploads(number uid)
public array cot_userimages_tags(array user_data, string tag_prefix)
public bool cot_userisonline(int id)
public void cursort(mixed trigger, mixed way)
public void rev(mixed sway)