# The Red Matrix: boot.php File Reference

All Classes Namespaces Files Functions Variables Pages
boot.php File Reference

## Classes

class | App

## Functions

| startup ()
| get_app ()
| x ($s, $k=NULL)
| system_unavailable ()
| clean_urls ()
| z_path ()
| z_root ()
| absurl ($path)
| os_mkdir ($path, $mode=0777, $recursive=false)
| is_ajax ()
| check_config (&$a)
| fix_system_urls ($oldurl, $newurl)
| login ($register=false, $form_id= 'main-login', $hiddens=false)
| killme ()
| goaway ($s)
| get_account_id ()
| local_user ()
| remote_user ()
| notice ($s)
| info ($s)
| get_max_import_size ()
| proc_run ($cmd)
| is_windows ()
| current_theme ()
| current_theme_url ($installing=false)
| is_site_admin ()
| is_developer ()
| load_contact_links ($uid)
| build_querystring ($params, $name=null)
| argc ()
| argv ($x)
| dba_timer ()
| get_observer_hash ()
| curPageURL ()
| get_custom_nav (&$a, $navname)
| construct_page (&$a)
| appdirpath ()
| head_set_icon ($icon)
| head_get_icon ()
| get_directory_realm ()

## Variables

const | RED_PLATFORM 'redmatrix'
const | RED_VERSION trim(file_get_contents('version.inc')) . 'R'
const | ZOT_REVISION 1
const | DB_UPDATE_VERSION 1129
const | EOL '<br />' . "\r\n"
const | ATOM_TIME 'Y-m-d\TH:i:s\Z'
const | NULL_DATE '0000-00-00 00:00:00'
const | TEMPLATE_BUILD_PATH 'store/[data]/smarty3'
const | DIRECTORY_MODE_NORMAL 0x0000
const | DIRECTORY_MODE_PRIMARY 0x0001
const | DIRECTORY_MODE_SECONDARY 0x0002
const | DIRECTORY_MODE_STANDALONE 0x0100
const | DIRECTORY_REALM 'RED_GLOBAL'
const | DIRECTORY_FALLBACK_MASTER 'https://zothub.com'
| $DIRECTORY_FALLBACK_SERVERS
const | JPEG_QUALITY 100
const | PNG_QUALITY 8
const | LANGUAGE_DETECT_MIN_LENGTH 128
const | LANGUAGE_DETECT_MIN_CONFIDENCE 0.01
const | STORAGE_DEFAULT_PERMISSIONS 0770
const | MAX_IMAGE_LENGTH -1
const | DEFAULT_DB_ENGINE 'MyISAM'
const | SSL_POLICY_NONE 0
const | SSL_POLICY_FULL 1
const | SSL_POLICY_SELFSIGN 2
const | LOGGER_NORMAL 0
const | LOGGER_TRACE 1
const | LOGGER_DEBUG 2
const | LOGGER_DATA 3
const | LOGGER_ALL 4
const | REGISTER_CLOSED 0
const | REGISTER_APPROVE 1
const | REGISTER_OPEN 2
const | ACCESS_PRIVATE 0
const | ACCESS_PAID 1
const | ACCESS_FREE 2
const | ACCESS_TIERED 3
const | CONTACT_IS_FOLLOWER 1
const | CONTACT_IS_SHARING 2
const | CONTACT_IS_FRIEND 3
const | UPDATE_SUCCESS 0
const | UPDATE_FAILED 1
const | CLIENT_MODE_NORMAL 0x0000
const | CLIENT_MODE_LOAD 0x0001
const | CLIENT_MODE_UPDATE 0x0002
const | PAGE_NORMAL 0x0000
const | PAGE_HIDDEN 0x0001
const | PAGE_AUTOCONNECT 0x0002
const | PAGE_APPLICATION 0x0004
const | PAGE_DIRECTORY_CHANNEL 0x0008
const | PAGE_PREMIUM 0x0010
const | PAGE_ADULT 0x0020
const | PAGE_CENSORED 0x0040
const | PAGE_SYSTEM 0x1000
const | PAGE_HUBADMIN 0x2000
const | PAGE_REMOVED 0x8000
const | PHOTO_NORMAL 0x0000
const | PHOTO_PROFILE 0x0001
const | PHOTO_XCHAN 0x0002
const | PHOTO_THING 0x0004
const | MENU_SYSTEM 0x0001
const | MENU_BOOKMARK 0x0002
const | NETWORK_DFRN 'dfrn'
const | NETWORK_ZOT 'zot!'
const | NETWORK_OSTATUS 'stat'
const | NETWORK_FEED 'feed'
const | NETWORK_DIASPORA 'dspr'
const | NETWORK_MAIL 'mail'
const | NETWORK_MAIL2 'mai2'
const | NETWORK_FACEBOOK 'face'
const | NETWORK_LINKEDIN 'lnkd'
const | NETWORK_XMPP 'xmpp'
const | NETWORK_MYSPACE 'mysp'
const | NETWORK_GPLUS 'goog'
const | NETWORK_PHANTOM 'unkn'
const | PERMS_R_STREAM 0x00001
const | PERMS_R_PROFILE 0x00002
const | PERMS_R_PHOTOS 0x00004
const | PERMS_R_ABOOK 0x00008
const | PERMS_W_STREAM 0x00010
const | PERMS_W_WALL 0x00020
const | PERMS_W_TAGWALL 0x00040
const | PERMS_W_COMMENT 0x00080
const | PERMS_W_MAIL 0x00100
const | PERMS_W_PHOTOS 0x00200
const | PERMS_W_CHAT 0x00400
const | PERMS_A_DELEGATE 0x00800
const | PERMS_R_STORAGE 0x01000
const | PERMS_W_STORAGE 0x02000
const | PERMS_R_PAGES 0x04000
const | PERMS_W_PAGES 0x08000
const | PERMS_A_REPUBLISH 0x10000
const | PERMS_W_LIKE 0x20000
const | PERMS_PUBLIC 0x0001
const | PERMS_NETWORK 0x0002
const | PERMS_SITE 0x0004
const | PERMS_CONTACTS 0x0008
const | PERMS_SPECIFIC 0x0080
const | PERMS_AUTHED 0x0100
const | PERMS_PENDING 0x0200
const | ABOOK_FLAG_BLOCKED 0x0001
const | ABOOK_FLAG_IGNORED 0x0002
const | ABOOK_FLAG_HIDDEN 0x0004
const | ABOOK_FLAG_ARCHIVED 0x0008
const | ABOOK_FLAG_PENDING 0x0010
const | ABOOK_FLAG_UNCONNECTED 0x0020
const | ABOOK_FLAG_SELF 0x0080
const | ABOOK_FLAG_FEED 0x0100
const | MAIL_DELETED 0x0001
const | MAIL_REPLIED 0x0002
const | MAIL_ISREPLY 0x0004
const | MAIL_SEEN 0x0008
const | MAIL_RECALLED 0x0010
const | MAIL_OBSCURED 0x0020
const | ATTACH_FLAG_DIR 0x0001
const | ATTACH_FLAG_OS 0x0002
const | MENU_ITEM_ZID 0x0001
const | MENU_ITEM_NEWWIN 0x0002
const | MENU_ITEM_CHATROOM 0x0004
const | POLL_SIMPLE_RATING 0x0001
const | POLL_TENSCALE 0x0002
const | POLL_MULTIPLE_CHOICE 0x0004
const | POLL_OVERWRITE 0x8000
const | UPDATE_FLAGS_UPDATED 0x0001
const | UPDATE_FLAGS_FORCED 0x0002
const | UPDATE_FLAGS_DELETED 0x1000
const | DROPITEM_NORMAL 0
const | DROPITEM_PHASE1 1
const | DROPITEM_PHASE2 2
const | MAX_LIKERS 10
const | ZCURL_TIMEOUT (-1)
const | NOTIFY_INTRO 0x0001
const | NOTIFY_CONFIRM 0x0002
const | NOTIFY_WALL 0x0004
const | NOTIFY_COMMENT 0x0008
const | NOTIFY_MAIL 0x0010
const | NOTIFY_SUGGEST 0x0020
const | NOTIFY_PROFILE 0x0040
const | NOTIFY_TAGSELF 0x0080
const | NOTIFY_TAGSHARE 0x0100
const | NOTIFY_POKE 0x0200
const | NOTIFY_SYSTEM 0x8000
const | HUBLOC_FLAGS_PRIMARY 0x0001
const | HUBLOC_FLAGS_UNVERIFIED 0x0002
const | HUBLOC_FLAGS_ORPHANCHECK 0x0004
const | HUBLOC_FLAGS_DELETED 0x1000
const | XCHAN_FLAGS_NORMAL 0x0000
const | XCHAN_FLAGS_HIDDEN 0x0001
const | XCHAN_FLAGS_ORPHAN 0x0002
const | XCHAN_FLAGS_CENSORED 0x0004
const | XCHAN_FLAGS_SELFCENSORED 0x0008
const | XCHAN_FLAGS_SYSTEM 0x0010
const | XCHAN_FLAGS_DELETED 0x1000
const | HUBLOC_NOTUSED 0x0000
const | HUBLOC_SEND_ERROR 0x0001
const | HUBLOC_RECEIVE_ERROR 0x0002
const | HUBLOC_WORKS 0x0004
const | HUBLOC_OFFLINE 0x0008
const | TERM_UNKNOWN 0
const | TERM_HASHTAG 1
const | TERM_MENTION 2
const | TERM_CATEGORY 3
const | TERM_PCATEGORY 4
const | TERM_FILE 5
const | TERM_SAVEDSEARCH 6
const | TERM_THING 7
const | TERM_BOOKMARK 8
const | TERM_OBJ_POST 1
const | TERM_OBJ_PHOTO 2
const | TERM_OBJ_PROFILE 3
const | TERM_OBJ_CHANNEL 4
const | TERM_OBJ_OBJECT 5
const | TERM_OBJ_THING 6
const | TERM_OBJ_APP 7
const | NAMESPACE_ZOT 'http://purl.org/zot'
const | NAMESPACE_DFRN 'http://purl.org/macgirvin/dfrn/1.0'
const | NAMESPACE_THREAD 'http://purl.org/syndication/thread/1.0'
const | NAMESPACE_TOMB 'http://purl.org/atompub/tombstones/1.0'
const | NAMESPACE_ACTIVITY 'http://activitystrea.ms/spec/1.0/'
const | NAMESPACE_ACTIVITY_SCHEMA 'http://activitystrea.ms/schema/1.0/'
const | NAMESPACE_MEDIA 'http://purl.org/syndication/atommedia'
const | NAMESPACE_SALMON_ME 'http://salmon-protocol.org/ns/magic-env'
const | NAMESPACE_OSTATUSSUB 'http://ostatus.org/schema/1.0/subscribe'
const | NAMESPACE_GEORSS 'http://www.georss.org/georss'
const | NAMESPACE_POCO 'http://portablecontacts.net/spec/1.0'
const | NAMESPACE_FEED 'http://schemas.google.com/g/2010#updates-from'
const | NAMESPACE_OSTATUS 'http://ostatus.org/schema/1.0'
const | NAMESPACE_STATUSNET 'http://status.net/schema/api/1/'
const | NAMESPACE_ATOM1 'http://www.w3.org/2005/Atom'
const | NAMESPACE_YMEDIA 'http://search.yahoo.com/mrss/'
const | ACTIVITY_LIKE NAMESPACE_ACTIVITY_SCHEMA . 'like'
const | ACTIVITY_DISLIKE NAMESPACE_ZOT . '/activity/dislike'
const | ACTIVITY_OBJ_HEART NAMESPACE_ZOT . '/activity/heart'
const | ACTIVITY_FRIEND NAMESPACE_ACTIVITY_SCHEMA . 'make-friend'
const | ACTIVITY_REQ_FRIEND NAMESPACE_ACTIVITY_SCHEMA . 'request-friend'
const | ACTIVITY_UNFRIEND NAMESPACE_ACTIVITY_SCHEMA . 'remove-friend'
const | ACTIVITY_FOLLOW NAMESPACE_ACTIVITY_SCHEMA . 'follow'
const | ACTIVITY_UNFOLLOW NAMESPACE_ACTIVITY_SCHEMA . 'stop-following'
const | ACTIVITY_JOIN NAMESPACE_ACTIVITY_SCHEMA . 'join'
const | ACTIVITY_POST NAMESPACE_ACTIVITY_SCHEMA . 'post'
const | ACTIVITY_UPDATE NAMESPACE_ACTIVITY_SCHEMA . 'update'
const | ACTIVITY_TAG NAMESPACE_ACTIVITY_SCHEMA . 'tag'
const | ACTIVITY_FAVORITE NAMESPACE_ACTIVITY_SCHEMA . 'favorite'
const | ACTIVITY_POKE NAMESPACE_ZOT . '/activity/poke'
const | ACTIVITY_MOOD NAMESPACE_ZOT . '/activity/mood'
const | ACTIVITY_OBJ_COMMENT NAMESPACE_ACTIVITY_SCHEMA . 'comment'
const | ACTIVITY_OBJ_NOTE NAMESPACE_ACTIVITY_SCHEMA . 'note'
const | ACTIVITY_OBJ_PERSON NAMESPACE_ACTIVITY_SCHEMA . 'person'
const | ACTIVITY_OBJ_PHOTO NAMESPACE_ACTIVITY_SCHEMA . 'photo'
const | ACTIVITY_OBJ_P_PHOTO NAMESPACE_ACTIVITY_SCHEMA . 'profile-photo'
const | ACTIVITY_OBJ_ALBUM NAMESPACE_ACTIVITY_SCHEMA . 'photo-album'
const | ACTIVITY_OBJ_EVENT NAMESPACE_ACTIVITY_SCHEMA . 'event'
const | ACTIVITY_OBJ_GROUP NAMESPACE_ACTIVITY_SCHEMA . 'group'
const | ACTIVITY_OBJ_TAGTERM NAMESPACE_ZOT . '/activity/tagterm'
const | ACTIVITY_OBJ_PROFILE NAMESPACE_ZOT . '/activity/profile'
const | ACTIVITY_OBJ_THING NAMESPACE_ZOT . '/activity/thing'
const | GRAVITY_PARENT 0
const | GRAVITY_LIKE 3
const | GRAVITY_COMMENT 6
const | ACCOUNT_OK 0x0000
const | ACCOUNT_UNVERIFIED 0x0001
const | ACCOUNT_BLOCKED 0x0002
const | ACCOUNT_EXPIRED 0x0004
const | ACCOUNT_REMOVED 0x0008
const | ACCOUNT_PENDING 0x0010
const | ACCOUNT_ROLE_ALLOWCODE 0x0001
const | ACCOUNT_ROLE_SYSTEM 0x0002
const | ACCOUNT_ROLE_DEVELOPER 0x0004
const | ACCOUNT_ROLE_ADMIN 0x1000
const | ITEM_VISIBLE 0x0000
const | ITEM_HIDDEN 0x0001
const | ITEM_BLOCKED 0x0002
const | ITEM_MODERATED 0x0004
const | ITEM_SPAM 0x0008
const | ITEM_DELETED 0x0010
const | ITEM_UNPUBLISHED 0x0020
const | ITEM_WEBPAGE 0x0040
const | ITEM_DELAYED_PUBLISH 0x0080
const | ITEM_BUILDBLOCK 0x0100
const | ITEM_PDL 0x0200
const | ITEM_BUG 0x0400
const | ITEM_PENDING_REMOVE 0x0800
const | ITEM_ORIGIN 0x0001
const | ITEM_UNSEEN 0x0002
const | ITEM_STARRED 0x0004
const | ITEM_UPLINK 0x0008
const | ITEM_UPLINK_PRV 0x0010
const | ITEM_WALL 0x0020
const | ITEM_THREAD_TOP 0x0040
const | ITEM_NOTSHOWN 0x0080
const | ITEM_NSFW 0x0100
const | ITEM_RELAY 0x0200
const | ITEM_MENTIONSME 0x0400
const | ITEM_NOCOMMENT 0x0800
const | ITEM_OBSCURED 0x1000
const | ITEM_VERIFIED 0x2000
const | ITEM_RETAINED 0x4000
const | ITEM_RSS 0x8000

## Function Documentation

absurl | ( |  | $path | ) |

appdirpath | ( |  | ) |

Referenced by get_capath().

argc | ( |  | ) |

Referenced by App\__construct(), _well_known_init(), achievements_content(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_profs(), admin_page_users(), admin_post(), api_get_user(), apps_content(), attach_init(), block_content(), blocks_content(), channel_init(), chat_content(), chat_init(), cloud_init(), common_init(), connect_init(), connections_content(), connedit_content(), connedit_init(), contactgroup_content(), dirsearch_content(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), feed_init(), filestorage_content(), group_content(), group_post(), hcard_init(), help_content(), importelm_post(), item_content(), layouts_content(), like_content(), lockview_content(), mail_content(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), new_channel_init(), notes_init(), notify_init(), oembed_init(), oexchange_content(), oexchange_init(), online_init(), p_init(), page_content(), pdledit_content(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), profile_init(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), queue_run(), rbmark_content(), receive_post(), register_init(), regmod_content(), regver_content(), rpost_content(), settings_init(), settings_post(), setup_init(), share_init(), sources_content(), starred_init(), subthread_content(), tagger_content(), thing_content(), uexport_init(), update_channel_content(), update_display_content(), update_network_content(), update_search_content(), viewconnections_init(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), xref_init(), and zotfeed_init().

argv | ( |  | $x | ) |

Referenced by App\__construct(), _well_known_init(), achievements_content(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_profs(), admin_page_users(), admin_post(), api_get_user(), api_statuses_destroy(), api_statuses_repeat(), api_statuses_show(), apps_content(), attach_init(), block_content(), block_init(), blocks_content(), channel_init(), chat_content(), chat_init(), cloud_init(), common_init(), connect_init(), connections_content(), connections_post(), connedit_content(), connedit_init(), connedit_post(), contactgroup_content(), dirsearch_content(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), feed_init(), filestorage_content(), get_online_status(), group_content(), group_post(), hcard_init(), help_content(), importelm_post(), item_content(), layouts_content(), like_content(), lockview_content(), mail_content(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), new_channel_init(), notes_init(), notify_init(), oembed_init(), oexchange_content(), oexchange_init(), online_init(), p_init(), page_content(), page_init(), pdledit_content(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), profile_init(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), queue_run(), rbmark_content(), receive_post(), register_init(), regmod_content(), regver_content(), rpost_content(), settings_post(), setup_init(), share_init(), sources_content(), starred_init(), subthread_content(), tagger_content(), thing_content(), uexport_init(), update_channel_content(), update_display_content(), update_network_content(), update_search_content(), view_init(), viewconnections_init(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), widget_collections(), widget_mailmenu(), widget_settings_menu(), xref_init(), and zotfeed_init().

build_querystring | ( |  | $params,
|  |  | $name = `null`
| ) |  |

returns querystring as string from a mapped array

Parameters

  params | Array

Returns
  string

check_config | ( | & | $a | ) |

Synchronise plugins:

$a->config['system']['addon'] contains a comma-separated list of names of plugins/addons which are used on this system. Go through the database list of already installed addons, and if we have an entry, but it isn't in the config list, call the unload procedure and mark it uninstalled in the database (for now we'll remove it). Then go through the config list and if we have a plugin that isn't installed, call the install procedure and add it to the database.

clean_urls | ( |  | ) |

Referenced by z_path().

construct_page | ( | & | $a | ) |

Build the page - now that we have all the components

Referenced by RedBrowser\generateDirectoryIndex().

curPageURL | ( |  | ) |

Returns the complete URL of the current page, e.g.: http(s)://something.com/network

Taken from http://webcheatsheet.com/php/get_current_page_url.php

Referenced by construct_page().

current_theme | ( |  | ) |

Referenced by FriendicaSmarty\__construct(), cloud_init(), construct_page(), current_theme_url(), and theme_include().

current_theme_url | ( |  | $installing = `false` | ) |

Return full URL to theme which is currently in effect. Provide a sane default if nothing is chosen or the specified theme does not exist.

Referenced by construct_page().

dba_timer | ( |  | ) |

Referenced by conversation(), Item\get_template_data(), items_fetch(), ping_init(), and Template\replace_macros().

fix_system_urls | ( |  | $oldurl,
|  |  | $newurl
| ) |  |

Referenced by check_config().

get_account_id | ( |  | ) |

Referenced by api_user(), change_channel(), channel_content(), events_post(), feed_init(), home_init(), identity_selector(), import_content(), import_post(), item_post(), manage_content(), mimetype_select(), mood_init(), nav(), new_channel_content(), new_channel_post(), new_contact(), profile_content(), profile_photo_post(), profiles_init(), removeaccount_post(), rpost_content(), settings_post(), z_input_filter(), and zotfeed_init().

get_app | ( |  | ) |

Referenced by FriendicaSmarty\__construct(), FriendicaSmartyEngine\__construct(), abook_toggle_flag(), account_remove(), allowed_public_recips(), api_apply_template(), api_format_items(), api_get_user(), api_statuses_home_timeline(), api_statuses_repeat(), api_statuses_user_timeline(), api_user(), app_render(), app_store(), argc(), argv(), atom_entry(), authenticate_success(), avatar_img(), bbcode(), best_link_url(), blogtheme_imgurl(), build_sync_packet(), call_hooks(), can_comment_on_post(), categories_widget(), change_channel(), channel_remove(), check_form_security_token(), check_form_security_token_ForbiddenOnErr(), check_form_security_token_redirectOnErr(), check_htaccess(), cli_suggest_run(), comanche_get_channel_id(), comanche_replace_region(), comanche_widget(), common_friends_visitor_widget(), connedit_content(), contact_block(), contact_select(), create_identity(), current_theme(), deliver_run(), design_tools(), diaspora_asphoto(), diaspora_comment(), diaspora_conversation(), diaspora_like(), diaspora_message(), diaspora_msg_build(), diaspora_photo(), diaspora_post(), diaspora_profile(), diaspora_pubmsg_build(), diaspora_request(), diaspora_reshare(), diaspora_send_followup(), diaspora_send_images(), diaspora_send_mail(), diaspora_send_relay(), diaspora_send_retraction(), diaspora_send_status(), diaspora_share(), diaspora_transmit(), diaspora_unshare(), dir_tagblock(), dirsearch_content(), drop_item(), editpost_content(), event_store_item(), externals_run(), fileas_widget(), findpeople_widget(), fix_attached_photo_permissions(), fix_private_photos(), format_event_diaspora(), RedBrowser\generateDirectoryIndex(), get_account_id(), get_best_language(), get_birthdays(), get_events(), get_feed_for(), get_form_security_token(), FriendicaSmartyEngine\get_intltext_template(), get_intltext_template(), get_markup_template(), get_observer_hash(), get_plink(), get_theme_config_file(), get_theme_screenshot(), gprobe_run(), group_select(), guess_image_type(), handle_tag(), head_add_css(), head_add_js(), head_get_css(), head_get_js(), head_remove_css(), head_remove_js(), identity_selector(), import_channel_photo(), import_directory_profile(), import_post(), import_profile_photo(), import_xchan(), info(), insert_hook(), is_developer(), is_public_profile(), is_site_admin(), item_message_id(), item_photo_menu(), item_redir_and_replace_images(), item_store(), item_store_update(), items_fetch(), load_contact_links(), load_hooks(), local_dir_update(), login(), FKOAuth1\loginUser(), manage_content(), map_scope(), menu_add_item(), menu_edit_item(), nav_set_selected(), new_contact(), notice(), notification(), notifier_run(), oembed_fetch_url(), oembed_format_object(), oembed_iframe(), onedirsync_run(), onepoll_run(), page_content(), parse_app_description(), photos_album_widget(), photos_content(), ping_init(), poco_load(), poller_run(), post_activity_item(), preg_heart(), prepare_body(), proc_run(), process_delivery(), profile_activity(), profile_sidebar(), public_permissions_sql(), register_page_template(), replace_macros(), rmagic_init(), rpost_callback(), scale_external_images(), scrape_feed(), scrape_vcard(), search(), searchbox(), send_message(), send_reg_approval_email(), send_status_notifications(), send_verification_email(), service_class_allows(), service_class_fetch(), siteinfo_init(), smilies(), store_diaspora_comment_sig(), tag_deliver(), tgroup_check(), theme_include(), tryzrlvideo(), tt(), update_suggestions(), user_allow(), user_approve(), vcard_from_xchan(), verify_email_address(), wfinger_init(), what_next(), widget_archive(), widget_categories(), widget_chatroom_list(), widget_collections(), widget_design_tools(), widget_filer(), widget_follow(), widget_fullprofile(), widget_mailmenu(), widget_menu_preview(), widget_photo_albums(), widget_profile(), widget_savedsearch(), widget_settings_menu(), widget_tagcloud(), widget_tagcloud_wall(), widget_vcard(), z_fetch_url(), and zot_finger().

get_custom_nav | ( | & | $a,
|  |  | $navname
| ) |  |

Referenced by construct_page().

get_directory_realm | ( |  | ) |

Referenced by import_xchan(), list_public_sites(), sitelist_init(), sync_directories(), and zfinger_init().

get_max_import_size | ( |  | ) |

Referenced by get_item_elements(), and limit_body_size().

get_observer_hash | ( |  | ) |

Referenced by advanced_profile(), api_statuses_user_timeline(), app_store(), app_update(), attach_by_hash(), attach_by_hash_nodata(), attach_mkdir(), attach_store(), block_content(), bookmarks_content(), chat_content(), chatsvc_content(), chatsvc_init(), chatsvc_post(), cloud_init(), comanche_menu(), common_content(), common_friends_visitor_widget(), contact_block(), dir_safe_mode(), directory_content(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_post(), get_public_feed(), importelm_post(), item_content(), item_permissions_sql(), magic_init(), mitem_content(), new_contact(), notice(), permissions_sql(), photo_init(), photos_content(), photos_post(), ping_init(), poll_post(), prepare_body(), profile_content(), profile_sidebar(), RedBrowser\set_writeable(), stream_perms_xchans(), suggest_content(), tagger_content(), thing_init(), toggle_safesearch_init(), viewconnections_content(), vote_content(), vote_post(), wall_attach_post(), widget_archive(), widget_bookmarkedchats(), widget_categories(), widget_item(), widget_photo_albums(), widget_suggestedchats(), widget_suggestions(), widget_tagcloud_wall(), and z_readdir().

goaway | ( |  | $s | ) |

Referenced by account_remove(), admin_page_channels(), admin_page_channels_post(), admin_page_dbsync(), admin_page_hubloc(), admin_page_hubloc_post(), admin_page_logs_post(), admin_page_plugins(), admin_page_profs(), admin_page_profs_post(), admin_page_site_post(), admin_page_themes(), admin_page_users(), admin_page_users_post(), admin_post(), api_content(), appman_post(), authenticate_success(), channel_content(), channel_remove(), chanview_content(), chat_content(), chat_post(), chatsvc_content(), check_form_security_token_redirectOnErr(), connect_post(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), display_content(), drop_item(), events_post(), filerm_content(), filestorage_content(), filestorage_post(), follow_init(), group_content(), group_post(), home_init(), import_post(), item_post(), login_content(), lostpass_content(), lostpass_post(), magic_init(), mail_content(), mail_post(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_post(), mood_init(), network_content(), new_channel_post(), new_contact(), notifications_post(), notify_init(), openid_content(), pdledit_post(), photos_post(), post_init(), profile_photo_post(), profiles_init(), randprof_init(), rbmark_content(), rbmark_post(), register_post(), removeaccount_content(), removeme_content(), rmagic_init(), rmagic_post(), rpost_content(), search_content(), settings_post(), sources_content(), sources_post(), sslify_init(), tagrm_content(), tagrm_post(), toggle_mobile_init(), toggle_safesearch_init(), wfinger_init(), xref_init(), and zid_init().

head_get_icon | ( |  | ) |

head_set_icon | ( |  | $icon | ) |

Referenced by block_init(), connections_init(), connedit_init(), mail_content(), message_content(), network_init(), page_init(), photos_init(), and profile_sidebar().

info | ( |  | $s | ) |

Referenced by admin_page_dbsync(), admin_page_logs_post(), admin_page_plugins(), admin_page_site_post(), admin_page_themes(), admin_post(), appman_post(), bookmarks_init(), connections_post(), connedit_content(), connedit_post(), directory_content(), dirprofile_init(), filestorage_content(), follow_init(), fsuggest_post(), group_content(), group_post(), item_post(), lostpass_content(), lostpass_post(), mail_content(), match_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_post(), network_content(), oexchange_content(), openid_content(), pdledit_post(), post_init(), profile_photo_post(), profiles_init(), profiles_post(), register_post(), regmod_content(), settings_post(), sources_content(), sources_post(), suggest_content(), tagrm_post(), thing_init(), user_allow(), user_approve(), and viewconnections_content().

is_ajax | ( |  | ) |

Referenced by admin_content(), admin_post(), photos_post(), and viewsrc_content().

is_developer | ( |  | ) |

Referenced by achievements_content(), and change_channel().

is_site_admin | ( |  | ) |

Referenced by admin_content(), admin_post(), app_render(), change_channel(), check_account_admin(), findpeople_widget(), invite_content(), invite_post(), nav(), parse_app_description(), ping_init(), register_post(), regmod_content(), and thing_init().

is_windows | ( |  | ) |

Referenced by check_php(), and proc_run().

killme | ( |  | ) |

Referenced by FriendicaSmartyEngine\__construct(), acl_init(), admin_content(), api_content(), api_ff_ids(), api_friendica_version(), api_oauth_access_token(), api_oauth_request_token(), api_statusnet_version(), attach_init(), bookmarks_init(), check_form_security_token_ForbiddenOnErr(), cloud_init(), connections_content(), contactgroup_content(), directory_content(), dirprofile_init(), events_content(), fbrowser_content(), feed_init(), filer_content(), filerm_content(), goaway(), hostxrd_init(), http_status_exit(), importelm_post(), item_post(), json_return_and_die(), layouts_content(), like_content(), lockview_content(), msearch_post(), netgrowth_content(), network_content(), oembed_init(), oexchange_init(), opensearch_init(), p_init(), parse_url_content(), photo_init(), photos_content(), photos_post(), php_init(), ping_init(), poco_init(), poll_content(), poller_run(), pretheme_init(), profiles_init(), App\register_template_engine(), regmod_content(), regver_content(), search_ac_init(), setup_init(), setup_post(), share_init(), sitelist_init(), sslify_init(), starred_init(), subthread_content(), system_unavailable(), tagger_content(), App\template_engine(), uexport_init(), update_channel_content(), update_display_content(), update_network_content(), update_search_content(), view_init(), viewsrc_content(), wall_attach_post(), wall_upload_post(), wfinger_init(), xml_status(), and xrd_init().

load_contact_links | ( |  | $uid | ) |

Referenced by api_call(), conversation(), and item_photo_menu().

local_user | ( |  | ) |

Referenced by Conversation\__construct(), acl_init(), api_content(), api_get_user(), api_post(), api_user(), app_render(), appman_content(), appman_post(), apps_content(), apw_form(), best_link_url(), blocks_content(), bookmarks_content(), bookmarks_init(), App\build_pagehead(), build_sync_packet(), change_channel(), channel_content(), channel_init(), channel_remove(), chanview_content(), chat_content(), chat_init(), chat_post(), cloud_init(), comanche_get_channel_id(), common_friends_visitor_widget(), connect_content(), connect_post(), connections_content(), connections_init(), connections_post(), connedit_content(), connedit_init(), connedit_post(), contact_block(), contact_select(), contactgroup_content(), conversation(), current_theme(), delegate_content(), directory_content(), dirprofile_init(), display_content(), drop_item(), drop_items(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), fbrowser_content(), fileas_widget(), filer_content(), filerm_content(), filestorage_content(), filestorage_post(), findpeople_widget(), follow_content(), follow_init(), fsuggest_content(), fsuggest_post(), RedBrowser\generateDirectoryIndex(), get_birthdays(), Item\get_comment_box(), get_events(), get_online_status(), Item\get_template_data(), get_theme_uid(), group_content(), group_get_members(), group_post(), group_select(), group_side(), handle_tag(), hcard_init(), home_init(), identity_selector(), invite_content(), invite_post(), is_public_profile(), item_content(), item_permissions_sql(), item_photo_menu(), item_post(), item_store(), item_store_update(), items_fetch(), layouts_content(), lockview_content(), login(), login_content(), magic_init(), mail_content(), mail_post(), manage_content(), match_content(), menu_add_item(), menu_content(), menu_edit_item(), menu_post(), message_content(), mimetype_select(), mitem_content(), mitem_init(), mitem_post(), mood_content(), mood_init(), nav(), navbar_complete(), network_content(), network_init(), new_contact(), notes_init(), notifications_content(), notifications_post(), notify_content(), notify_init(), oexchange_content(), parse_app_description(), pdledit_content(), pdledit_post(), permissions_sql(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), poke_content(), poke_init(), post_init(), prepare_body(), private_messages_list(), profile_activity(), profile_content(), profile_create_sidebar(), profile_init(), profile_load(), profile_photo_init(), profile_photo_post(), profile_photo_set_profile_perms(), profile_sidebar(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), profperm_init(), rbmark_content(), redbasic_form(), regmod_content(), removeaccount_content(), removeaccount_post(), removeme_content(), removeme_post(), rmagic_init(), rpost_content(), search(), search_ac_init(), search_content(), searchbox(), send_message(), service_class_allows(), service_class_fetch(), service_limits_content(), Conversation\set_mode(), settings_init(), settings_post(), share_init(), smilies(), sources_content(), sources_post(), starred_init(), stream_perms_api_uids(), stream_perms_xchans(), subthread_content(), suggest_content(), suggest_init(), tagger_content(), tagrm_content(), tagrm_post(), theme_content(), theme_post(), thing_content(), thing_init(), uexport_init(), vcard_from_xchan(), viewconnections_content(), viewconnections_init(), viewsrc_content(), webpages_content(), widget_affinity(), widget_appselect(), widget_design_tools(), widget_filer(), widget_follow(), widget_fullprofile(), widget_mailmenu(), widget_notes(), widget_profile(), widget_savedsearch(), widget_settings_menu(), widget_suggestions(), z_input_filter(), zid_init(), and zping_content().

login | ( |  | $register = `false`,
|  |  | $form_id = `'main-login'`,
|  |  | $hiddens = `false`
| ) |  |

Referenced by admin_content(), api_content(), channel_content(), connections_content(), connedit_content(), follow_content(), home_content(), login_content(), mail_content(), message_content(), network_content(), notify_content(), oexchange_content(), post_to_red_displayAdminContent(), profile_content(), rbmark_content(), regmod_content(), and rpost_content().

notice | ( |  | $s | ) |

Referenced by account_remove(), achievements_content(), admin_content(), admin_page_channels(), admin_page_channels_post(), admin_page_hubloc(), admin_page_plugins(), admin_page_profs(), admin_page_themes(), admin_page_users(), admin_page_users_post(), api_content(), api_post(), appman_content(), appman_post(), attach_init(), block_content(), blocks_content(), bookmarks_content(), channel_content(), channel_init(), chat_content(), chat_init(), chatroom_enter(), check_form_security_token_redirectOnErr(), common_content(), common_init(), connect_init(), connect_post(), connections_content(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), dirprofile_init(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), filestorage_content(), filestorage_post(), follow_init(), fsuggest_content(), fsuggest_post(), group_add(), group_content(), group_post(), hcard_init(), import_content(), import_post(), importelm_post(), invite_content(), invite_post(), item_content(), item_post(), layouts_content(), like_content(), lostpass_content(), lostpass_post(), magic_init(), mail_content(), mail_post(), manage_content(), match_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), mood_content(), network_content(), network_init(), new_channel_content(), new_channel_post(), notifications_content(), notifications_post(), oexchange_content(), openid_content(), page_content(), pdledit_content(), photos_content(), photos_post(), poke_content(), post_init(), profile_content(), profile_init(), profile_load(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), register_content(), register_post(), regmod_content(), removeaccount_post(), removeme_post(), rmagic_post(), search_content(), service_limits_content(), settings_post(), sources_content(), sources_post(), subthread_content(), suggest_content(), thing_content(), thing_init(), user_deny(), viewconnections_content(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), and xchan_content().

os_mkdir | ( |  | $path,
|  |  | $mode = `0777`,
|  |  | $recursive = `false`
| ) |  |

Referenced by attach_mkdir(), change_channel(), check_store(), and cloud_init().

proc_run | ( |  | $cmd | ) |

Wrap calls to proc_close(proc_open()) and call hook so plugins can take part in process :)

args: $cmd program to run next args are passed as $cmd command line

e.g.: proc_run("ls","-la","/tmp");

$cmd and string args are surrounded with ""

Referenced by admin_page_channels(), admin_page_channels_post(), build_sync_packet(), channel_remove(), connect_post(), connections_post(), connedit_content(), connedit_post(), create_identity(), diaspora_comment(), diaspora_like(), diaspora_signed_retraction(), diaspora_transmit(), directory_run(), drop_item(), drop_items(), events_post(), fix_system_urls(), follow_init(), fsuggest_post(), import_post(), item_post(), like_content(), mail_content(), mood_init(), new_contact(), notifier_run(), photo_upload(), photos_post(), poller_run(), post_activity_item(), process_delivery(), profile_activity(), profile_photo_post(), profiles_post(), remove_obsolete_hublocs(), send_message(), settings_post(), start_delivery_chain(), tag_deliver(), tagger_content(), zid_init(), and zot_refresh().

remote_user | ( |  | ) |

Referenced by app_render(), channel_content(), directory_content(), dirprofile_init(), display_content(), drop_items(), get_online_status(), item_content(), item_permissions_sql(), item_post(), nav(), navbar_complete(), oexchange_content(), permissions_sql(), photos_content(), photos_init(), photos_post(), poco_init(), post_init(), profile_content(), profile_create_sidebar(), profile_sidebar(), rpost_content(), search_content(), share_init(), subthread_content(), tagger_content(), viewconnections_content(), viewconnections_init(), widget_fullprofile(), widget_profile(), zid_init(), and zotfeed_init().

startup | ( |  | ) |

Reverse the effect of magic_quotes_gpc if it is enabled. Please disable magic_quotes_gpc so we don't have to do this. See http://php.net/manual/en/security.magicquotes.disabling.php

Referenced by App\__construct().

system_unavailable | ( |  | ) |

x | ( |  | $s,
|  |  | $k = `NULL`
| ) |  |

Referenced by FriendicaSmarty\__construct(), App\__construct(), account_service_class_fetch(), acl_init(), admin_page_channels_post(), admin_page_logs_post(), admin_page_plugins(), admin_page_site(), admin_page_site_post(), admin_page_themes(), admin_page_users_post(), api_content(), api_direct_messages_box(), api_direct_messages_new(), api_favorites(), api_format_messages(), api_get_user(), api_login(), api_post(), api_statuses_f(), api_statuses_home_timeline(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_show(), api_statuses_update(), api_statuses_user_timeline(), api_user(), app_store(), app_update(), attach_store(), authenticate_success(), bbcode(), bbtoevent(), best_link_url(), bookmark_add(), App\build_pagehead(), channel_content(), chatsvc_content(), check_form_security_token(), cli_startup(), cloud_init(), connections_content(), connections_post(), connedit_content(), construct_page(), consume_feed(), conversation(), create_account(), create_identity(), current_theme(), current_theme_url(), del_pconfig(), del_xconfig(), delegate_content(), detect_language(), diaspora_asphoto(), diaspora_conversation(), diaspora_message(), directory_content(), dirprofile_init(), dirsearch_content(), discover_by_url(), display_content(), encode_rel_links(), event_addtocal(), events_content(), events_post(), feed_init(), filerm_content(), filestorage_post(), get_atom_elements(), get_browser_language(), get_item_elements(), get_my_address(), get_my_url(), get_plink(), get_public_feed(), Item\get_template_data(), group_add(), group_rmv(), group_side(), home_content(), import_post(), import_xchan(), info(), invite_post(), item_post(), item_store(), item_store_update(), lang_selector(), load_contact_links(), local_user(), lostpass_content(), magic_init(), mail_content(), mail_post(), mail_store(), mood_content(), mood_init(), nav(), navbar_complete(), network_content(), new_channel_content(), new_cookie(), notice(), oexchange_content(), openid_content(), parse_url_content(), photo_upload(), photos_content(), photos_post(), ping_init(), poco_init(), poco_load(), poke_content(), poke_init(), post_activity_item(), post_init(), printable(), probe_content(), proc_run(), profile_photo_post(), profile_photo_set_profile_perms(), profile_sidebar(), profiles_post(), rbmark_content(), rbmark_post(), red_item_new(), ref_session_read(), register_content(), register_post(), App\register_template_engine(), regmod_content(), remote_user(), removeaccount_post(), removeme_post(), rpost_content(), scrape_feed(), script_path(), search_ac_init(), search_content(), search_init(), service_class_allows(), service_class_fetch(), App\set_baseurl(), settings_post(), setup_content(), setup_init(), suggest_init(), t(), tagrm_post(), App\template_engine(), tt(), validate_channelname(), wall_upload_post(), webfinger_content(), wfinger_init(), widget_affinity(), widget_categories(), widget_filer(), widget_savedsearch(), widget_tagcloud(), xchan_content(), z_fetch_url(), z_post_url(), and zfinger_init().

z_path | ( |  | ) |

Referenced by absurl().

z_root | ( |  | ) |

Referenced by admin_content(), admin_page_profs(), admin_page_profs_post(), allowed_public_recips(), app_render(), app_store(), app_update(), appman_post(), authenticate_success(), bb_parse_crypt(), bbcode(), blocks_content(), chanlink_cid(), chanlink_hash(), chanlink_url(), channel_content(), channel_remove(), chat_content(), chat_post(), chatsvc_content(), check_config(), connect_post(), connections_content(), connections_post(), conversation(), create_identity(), deliver_run(), diaspora_comment(), diaspora_like(), diaspora_post(), diaspora_request(), diaspora_reshare(), directory_content(), dirprofile_init(), discover_by_url(), discover_by_webbie(), display_content(), event_store_item(), externals_run(), filestorage_content(), find_upstream_directory(), follow_init(), format_categories(), format_filer(), get_parent_cloudpath(), RedBrowser\getAssetUrl(), group_post(), handle_tag(), App\head_get_icon(), head_get_icon(), home_init(), hostxrd_init(), import_post(), import_xchan(), invite_content(), item_photo_menu(), item_post(), item_store(), layouts_content(), like_content(), login_content(), lostpass_content(), lostpass_post(), magic_init(), magiclink_url(), mail_post(), manage_content(), menu_content(), menu_post(), mitem_content(), mitem_post(), mood_init(), nav(), navbar_complete(), network_content(), new_channel_post(), notification(), notifications_post(), notifier_run(), openid_content(), pagelist_widget(), parse_app_description(), pdledit_post(), photo_upload(), photos_album_widget(), photos_albums_list(), photos_create_item(), photos_list_photos(), poll_content(), post_activity_item(), post_init(), post_post(), profile_activity(), profile_sidebar(), public_recips(), pubsites_content(), rbmark_content(), rbmark_post(), register_post(), remove_obsolete_hublocs(), removeaccount_content(), removeme_content(), rmagic_init(), rmagic_post(), rpost_content(), script_path(), search_content(), searchbox(), send_reg_approval_email(), send_verification_email(), setup_content(), setup_post(), siteinfo_content(), siteinfo_init(), sources_content(), sources_post(), sslify(), sync_directories(), tagger_content(), theme_attachments(), thing_init(), toggle_safesearch_init(), update_suggestions(), user_allow(), vcard_from_xchan(), verify_email_address(), webpages_content(), wfinger_init(), widget_archive(), widget_chatroom_list(), widget_dirtags(), widget_filer(), widget_savedsearch(), widget_suggestions(), xref_init(), zfinger_init(), zid_init(), zot_build_packet(), zot_fetch(), zot_new_uid(), and zot_refresh().

## Variable Documentation

$DIRECTORY_FALLBACK_SERVERS

Initial value:
= array(
'https://zothub.com',
'https://zotid.net',
'https://redmatrix.nl',
'https://whogotzot.com',
'https://red.zottel.red',
'https://red.pixelbits.de'
)

Referenced by find_upstream_directory().

const ABOOK_FLAG_ARCHIVED 0x0008

Referenced by abook_toggle_flag(), acl_init(), collect_recipients(), connections_content(), connedit_content(), contact_block(), contact_remove(), group_content(), onepoll_run(), poller_run(), and viewconnections_content().

const ABOOK_FLAG_BLOCKED 0x0001

Referenced by acl_init(), channel_content(), connections_content(), connedit_content(), get_all_perms(), group_content(), group_get_members(), items_fetch(), network_content(), onepoll_run(), and perm_is_allowed().

const ABOOK_FLAG_FEED 0x0100

Referenced by check_item_source(), import_post(), new_contact(), onepoll_run(), poller_run(), and process_channel_sync_delivery().

const ABOOK_FLAG_HIDDEN 0x0004

Referenced by connections_content(), connedit_content(), connedit_post(), contact_block(), onepoll_run(), poller_run(), and viewconnections_content().

const ABOOK_FLAG_IGNORED 0x0002

Referenced by connections_content(), connedit_content(), get_all_perms(), manage_content(), onepoll_run(), perm_is_allowed(), and ping_init().

const ABOOK_FLAG_PENDING 0x0010

Referenced by acl_init(), collect_recipients(), connections_content(), connections_post(), connedit_content(), connedit_post(), contact_block(), diaspora_request(), get_all_perms(), group_content(), group_get_members(), manage_content(), onepoll_run(), perm_is_allowed(), ping_init(), poller_run(), public_recips(), viewconnections_content(), and zot_refresh().

const ABOOK_FLAG_SELF 0x0080

Referenced by abook_connections(), abook_self(), acl_init(), Conversation\add_thread(), api_get_user(), channel_remove(), collect_recipients(), connections_content(), connections_post(), connedit_content(), connedit_post(), contact_block(), contact_remove(), contact_select(), contactgroup_content(), create_identity(), diaspora_request(), get_all_perms(), item_post(), load_contact_links(), manage_content(), new_contact(), notifier_run(), perm_is_allowed(), ping_init(), poco_init(), process_channel_sync_delivery(), viewconnections_content(), widget_follow(), widget_settings_menu(), and zot_refresh().

const ABOOK_FLAG_UNCONNECTED 0x0020

Referenced by onepoll_run(), poller_run(), and zot_refresh().

const ACCESS_FREE 2

Referenced by admin_page_site(), import_site(), list_public_sites(), and zfinger_init().

const ACCESS_PAID 1

Referenced by admin_page_site(), import_site(), list_public_sites(), and zfinger_init().

const ACCESS_PRIVATE 0

site access policy

Referenced by admin_page_site(), import_site(), and zfinger_init().

const ACCESS_TIERED 3

Referenced by admin_page_site(), import_site(), list_public_sites(), and zfinger_init().

const ACCOUNT_BLOCKED 0x0002

Referenced by account_verify_password(), admin_page_users(), admin_page_users_post(), register_post(), user_allow(), and user_approve().

const ACCOUNT_EXPIRED 0x0004

Referenced by account_verify_password(), and downgrade_accounts().

const ACCOUNT_OK 0x0000

Account Flags

Referenced by account_verify_password(), create_account(), onepoll_run(), openid_content(), poller_run(), register_post(), and RedBasicAuth\validateUserPass().

const ACCOUNT_PENDING 0x0010

Referenced by account_verify_password(), admin_page_users(), ping_init(), register_post(), user_allow(), and user_approve().

const ACCOUNT_REMOVED 0x0008

Referenced by account_verify_password().

const ACCOUNT_ROLE_ADMIN 0x1000

Referenced by account_remove(), create_account(), is_site_admin(), and send_reg_approval_email().

const ACCOUNT_ROLE_ALLOWCODE 0x0001

Account roles

Referenced by item_post(), mimetype_select(), and z_input_filter().

const ACCOUNT_ROLE_DEVELOPER 0x0004

Referenced by is_developer().

const ACCOUNT_ROLE_SYSTEM 0x0002

const ACCOUNT_UNVERIFIED 0x0001

Referenced by account_verify_password(), onepoll_run(), openid_content(), poller_run(), register_post(), user_approve(), and RedBasicAuth\validateUserPass().

const ACTIVITY_DISLIKE NAMESPACE_ZOT . '/activity/dislike'

Referenced by Item\add_child(), Conversation\add_thread(), conversation(), diaspora_process_outbound(), like_content(), like_puller(), localize_item(), and visible_activity().

const ACTIVITY_FAVORITE NAMESPACE_ACTIVITY_SCHEMA . 'favorite'

const ACTIVITY_FOLLOW NAMESPACE_ACTIVITY_SCHEMA . 'follow'

Referenced by subthread_content().

const ACTIVITY_FRIEND NAMESPACE_ACTIVITY_SCHEMA . 'make-friend'

Referenced by connedit_post(), and localize_item().

const ACTIVITY_JOIN NAMESPACE_ACTIVITY_SCHEMA . 'join'

const ACTIVITY_LIKE NAMESPACE_ACTIVITY_SCHEMA . 'like'

activity stream defines

Referenced by Item\add_child(), Conversation\add_thread(), advanced_profile(), conversation(), diaspora_like(), diaspora_send_followup(), diaspora_send_relay(), diaspora_send_retraction(), like_content(), like_puller(), localize_item(), and visible_activity().

const ACTIVITY_MOOD NAMESPACE_ZOT . '/activity/mood'

Referenced by localize_item(), and mood_init().

const ACTIVITY_OBJ_ALBUM NAMESPACE_ACTIVITY_SCHEMA . 'photo-album'

const ACTIVITY_OBJ_COMMENT NAMESPACE_ACTIVITY_SCHEMA . 'comment'

const ACTIVITY_OBJ_EVENT NAMESPACE_ACTIVITY_SCHEMA . 'event'

Referenced by event_addtocal(), event_store_item(), Item\get_template_data(), localize_item(), and tagger_content().

const ACTIVITY_OBJ_GROUP NAMESPACE_ACTIVITY_SCHEMA . 'group'

const ACTIVITY_OBJ_HEART NAMESPACE_ZOT . '/activity/heart'

const ACTIVITY_OBJ_NOTE NAMESPACE_ACTIVITY_SCHEMA . 'note'

Referenced by api_format_items(), diaspora_like(), like_content(), localize_item(), post_activity_item(), subthread_content(), and tagger_content().

const ACTIVITY_OBJ_P_PHOTO NAMESPACE_ACTIVITY_SCHEMA . 'profile-photo'

const ACTIVITY_OBJ_PERSON NAMESPACE_ACTIVITY_SCHEMA . 'person'

Referenced by connedit_post(), get_atom_elements(), localize_item(), poke_init(), and tag_deliver().

const ACTIVITY_OBJ_PHOTO NAMESPACE_ACTIVITY_SCHEMA . 'photo'

Referenced by diaspora_like(), like_content(), localize_item(), subthread_content(), and tagger_content().

const ACTIVITY_OBJ_PROFILE NAMESPACE_ZOT . '/activity/profile'

Referenced by advanced_profile(), like_content(), and profile_activity().

const ACTIVITY_OBJ_TAGTERM NAMESPACE_ZOT . '/activity/tagterm'

Referenced by remove_community_tag(), tag_deliver(), and tagger_content().

const ACTIVITY_OBJ_THING NAMESPACE_ZOT . '/activity/thing'

Referenced by get_things(), like_content(), localize_item(), and thing_init().

const ACTIVITY_POKE NAMESPACE_ZOT . '/activity/poke'

Referenced by localize_item(), poke_init(), and tag_deliver().

const ACTIVITY_POST NAMESPACE_ACTIVITY_SCHEMA . 'post'

Referenced by api_format_items(), api_status_show(), api_users_show(), construct_verb(), diaspora_comment(), diaspora_post(), event_store_item(), item_post(), item_post_type(), mail_store(), photo_upload(), post_activity_item(), and send_status_notifications().

const ACTIVITY_REQ_FRIEND NAMESPACE_ACTIVITY_SCHEMA . 'request-friend'

const ACTIVITY_TAG NAMESPACE_ACTIVITY_SCHEMA . 'tag'

Referenced by remove_community_tag(), tag_deliver(), and tagger_content().

const ACTIVITY_UNFOLLOW NAMESPACE_ACTIVITY_SCHEMA . 'stop-following'

Referenced by get_atom_elements().

const ACTIVITY_UNFRIEND NAMESPACE_ACTIVITY_SCHEMA . 'remove-friend'

const ACTIVITY_UPDATE NAMESPACE_ACTIVITY_SCHEMA . 'update'

Referenced by profile_activity().

const ATOM_TIME 'Y-m-d\TH:i:s\Z'

Referenced by api_account_rate_limit_status(), api_rss_extra(), atom_entry(), format_event_html(), and get_feed_for().

const ATTACH_FLAG_DIR 0x0001

Referenced by attach_change_permissions(), attach_delete(), attach_mkdir(), RedFile\delete(), filestorage_content(), get_cloudpath(), RedDirectory\getDir(), RedCollectionData(), RedFileData(), and z_readdir().

const ATTACH_FLAG_OS 0x0002

Referenced by attach_delete(), attach_init(), attach_mkdir(), RedDirectory\createFile(), RedFile\get(), and RedFile\put().

const CLIENT_MODE_LOAD 0x0001

Referenced by items_fetch().

const CLIENT_MODE_NORMAL 0x0000

Referenced by get_feed_for(), and items_fetch().

const CLIENT_MODE_UPDATE 0x0002

Referenced by items_fetch().

const CONTACT_IS_FOLLOWER 1

relationship types

Referenced by diaspora_message().

const CONTACT_IS_FRIEND 3

const CONTACT_IS_SHARING 2

const DB_UPDATE_VERSION 1129

Referenced by api_statusnet_config(), check_config(), identity_basic_export(), and zfinger_init().

const DEFAULT_DB_ENGINE 'MyISAM'

Not yet used

const DIRECTORY_FALLBACK_MASTER 'https://zothub.com'

Referenced by sync_directories().

const DIRECTORY_MODE_NORMAL 0x0000

Referenced by directory_run(), dirsearch_content(), find_upstream_directory(), import_site(), import_xchan(), mark_orphan_hubsxchans(), remove_all_xchan_resources(), sync_directories(), update_modtime(), update_suggestions(), and zfinger_init().

const DIRECTORY_MODE_PRIMARY 0x0001

Referenced by check_upstream_directory(), directory_content(), directory_run(), dirprofile_init(), import_site(), navbar_complete(), poller_run(), pubsites_content(), sync_directories(), update_suggestions(), and zfinger_init().

const DIRECTORY_MODE_SECONDARY 0x0002

Referenced by check_upstream_directory(), import_site(), poller_run(), sync_directories(), and zfinger_init().

const DIRECTORY_MODE_STANDALONE 0x0100

Referenced by check_upstream_directory(), directory_content(), directory_run(), dirprofile_init(), dirsearch_content(), externals_run(), import_site(), import_xchan(), navbar_complete(), pubsites_content(), sync_directories(), update_suggestions(), and zfinger_init().

const DIRECTORY_REALM 'RED_GLOBAL'

Referenced by get_directory_realm(), list_public_sites(), sitelist_init(), and sync_directories().

const DROPITEM_NORMAL 0

Referenced by delete_item_lowlevel(), and drop_item().

const DROPITEM_PHASE1 1

Referenced by delete_imported_item(), delete_item_lowlevel(), diaspora_signed_retraction(), and item_content().

const DROPITEM_PHASE2 2

Referenced by delete_item_lowlevel(), drop_item(), and expire_run().

const EOL '<br />' . "\r\n"

Referenced by account_remove(), achievements_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), admin_page_profs(), admin_page_site_post(), admin_page_users(), api_content(), api_post(), appman_content(), appman_post(), attach_init(), block_content(), blocks_content(), bookmarks_content(), bookmarks_init(), channel_content(), channel_init(), chat_content(), chat_init(), chatroom_enter(), check_account_email(), check_account_invite(), check_form_security_std_err_msg(), check_htaccess(), check_keys(), check_php(), check_smarty3(), check_store(), common_content(), common_init(), connect_init(), connections_content(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), dirprofile_init(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), filestorage_content(), filestorage_post(), follow_init(), format_like(), fsuggest_content(), fsuggest_post(), group_add(), group_content(), group_post(), hcard_init(), import_post(), importelm_post(), invite_content(), invite_post(), item_content(), item_post(), layouts_content(), like_content(), load_database(), lostpass_content(), lostpass_post(), magic_init(), mail_content(), mail_post(), manage_content(), match_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), mood_content(), network_content(), network_init(), new_channel_content(), new_channel_post(), notifications_content(), notifications_post(), oexchange_content(), openid_content(), page_content(), pdledit_content(), pdledit_post(), photos_content(), photos_post(), poke_content(), post_init(), post_post(), profile_content(), profile_init(), profile_load(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), pubsites_content(), register_content(), register_post(), regmod_content(), removeaccount_post(), removeme_post(), rmagic_post(), search_content(), service_limits_content(), settings_post(), setup_content(), sources_content(), sources_post(), subthread_content(), suggest_content(), sync_locations(), tagrm_post(), thing_content(), thing_init(), user_allow(), user_approve(), user_deny(), viewconnections_content(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), and xchan_content().

const GRAVITY_COMMENT 6

const GRAVITY_LIKE 3

Referenced by subthread_content().

const GRAVITY_PARENT 0

item weight for query ordering

const HUBLOC_FLAGS_DELETED 0x1000

Referenced by channel_remove(), notifier_run(), post_post(), remove_all_xchan_resources(), remove_obsolete_hublocs(), sync_locations(), zot_encode_locations(), and zot_get_hublocs().

const HUBLOC_FLAGS_ORPHANCHECK 0x0004

Referenced by mark_orphan_hubsxchans(), post_post(), and sync_locations().

const HUBLOC_FLAGS_PRIMARY 0x0001

Referenced by create_identity(), discover_by_webbie(), import_author_zot(), import_post(), rconnect_url(), sync_locations(), xchan_mail_query(), xchan_query(), zot_encode_locations(), zot_finger(), and zot_refresh().

const HUBLOC_FLAGS_UNVERIFIED 0x0002

Referenced by zot_encode_locations().

const HUBLOC_NOTUSED 0x0000

const HUBLOC_OFFLINE 0x0008

Referenced by mark_orphan_hubsxchans(), notifier_run(), post_post(), and sync_locations().

const HUBLOC_RECEIVE_ERROR 0x0002

Referenced by post_init().

const HUBLOC_SEND_ERROR 0x0001

const HUBLOC_WORKS 0x0004

Referenced by post_init().

const ITEM_BLOCKED 0x0002

const ITEM_BUG 0x0400

const ITEM_BUILDBLOCK 0x0100

Referenced by block_content(), blocks_content(), editblock_content(), notifier_run(), and update_remote_id().

const ITEM_DELAYED_PUBLISH 0x0080

Referenced by item_store(), notifier_run(), and poller_run().

const ITEM_DELETED 0x0010

Referenced by consume_feed(), delete_imported_item(), delete_item_lowlevel(), diaspora_process_outbound(), diaspora_send_followup(), diaspora_send_relay(), drop_item(), encode_item_flags(), expire_run(), get_item_elements(), identity_basic_export(), item_check_service_class(), item_store(), like_content(), notifier_run(), photos_post(), poller_run(), and process_delivery().

const ITEM_HIDDEN 0x0001

Referenced by item_post(), photo_upload(), and photos_create_item().

const ITEM_MENTIONSME 0x0400

Referenced by items_fetch(), network_content(), and tag_deliver().

const ITEM_MODERATED 0x0004

Referenced by item_post().

const ITEM_NOCOMMENT 0x0800

Referenced by Conversation\add_thread(), encode_item(), item_store(), and start_delivery_chain().

const ITEM_NOTSHOWN 0x0080

Referenced by like_content(), and subthread_content().

const ITEM_NSFW 0x0100

Referenced by encode_item_flags().

const ITEM_OBSCURED 0x1000

Referenced by bb2diaspora_itembody(), diaspora_process_outbound(), editpost_content(), editwebpage_content(), encode_item(), get_item_elements(), item_post(), item_store(), item_store_update(), localize_item(), notification(), post_activity_item(), start_delivery_chain(), tag_deliver(), unobscure(), and viewsrc_content().

const ITEM_ORIGIN 0x0001

Item Flags

Referenced by connedit_post(), diaspora_comment(), diaspora_like(), diaspora_signed_retraction(), event_store_item(), externals_run(), item_post(), like_content(), mood_init(), notifier_run(), photo_upload(), photos_create_item(), poke_init(), post_activity_item(), profile_activity(), start_delivery_chain(), subthread_content(), tag_deliver(), tagger_content(), and thing_init().

const ITEM_PDL 0x0200

Referenced by editlayout_content(), item_store(), layout_select(), layouts_content(), notifier_run(), and update_remote_id().

const ITEM_PENDING_REMOVE 0x0800

Referenced by delete_item_lowlevel(), and expire_run().

const ITEM_RELAY 0x0200

const ITEM_RETAINED 0x4000

Referenced by filer_content(), item_expire(), and retain_item().

const ITEM_RSS 0x8000

Referenced by get_atom_elements().

const ITEM_SPAM 0x0008

const ITEM_STARRED 0x0004

Referenced by api_format_items(), api_get_user(), Item\get_template_data(), item_expire(), items_fetch(), network_content(), and starred_init().

const ITEM_THREAD_TOP 0x0040

Referenced by channel_content(), connedit_post(), diaspora_post(), encode_item_flags(), event_store_item(), format_notification(), item_post(), item_store(), items_fetch(), like_content(), localize_item(), mood_init(), network_content(), photo_upload(), photos_create_item(), poke_init(), post_activity_item(), profile_activity(), subthread_content(), tag_deliver(), and thing_init().

const ITEM_UNPUBLISHED 0x0020

Referenced by notifier_run().

const ITEM_UNSEEN 0x0002

Referenced by api_statuses_home_timeline(), channel_content(), diaspora_post(), display_content(), format_notification(), item_post(), item_store(), item_store_update(), items_fetch(), manage_content(), mood_init(), network_content(), and ping_init().

const ITEM_UPLINK 0x0008

Referenced by externals_run(), item_store(), notifier_run(), start_delivery_chain(), tag_deliver(), and tgroup_check().

const ITEM_UPLINK_PRV 0x0010

const ITEM_VERIFIED 0x2000

Referenced by conversation(), get_item_elements(), Item\get_template_data(), item_post(), item_store(), item_store_update(), and post_activity_item().

const ITEM_VISIBLE 0x0000

Item visibility

Referenced by first_post_date(), manage_content(), photo_upload(), photos_create_item(), and ping_init().

const ITEM_WALL 0x0020

Referenced by api_get_user(), channel_content(), connedit_post(), drop_item(), event_store_item(), events_content(), externals_run(), first_post_date(), identity_basic_export(), item_expire(), item_post(), item_store(), items_fetch(), like_content(), manage_content(), mood_init(), notification(), notifier_run(), p_init(), photo_upload(), photos_create_item(), ping_init(), poke_init(), post_activity_item(), process_delivery(), profile_activity(), siteinfo_init(), start_delivery_chain(), subthread_content(), tag_deliver(), tagger_content(), thing_init(), widget_tagcloud_wall(), and zot_feed().

const ITEM_WEBPAGE 0x0040

Referenced by display_content(), editwebpage_content(), home_content(), item_check_service_class(), items_fetch(), notifier_run(), page_content(), update_remote_id(), webpages_content(), widget_item(), and widget_tagcloud().

const JPEG_QUALITY 100

Image storage quality. Lower numbers save space at cost of image detail. For ease of upgrade, please do not change here. Change jpeg quality with $a->config['system']['jpeg_quality'] = n; in .htconfig.php, where n is netween 1 and 100, and with very poor results below about 50

Referenced by photo_gd\imageString(), and photo_imagick\load().

const LANGUAGE_DETECT_MIN_CONFIDENCE 0.01

Referenced by detect_language().

const LANGUAGE_DETECT_MIN_LENGTH 128

Language detection parameters

Referenced by detect_language().

const LOGGER_ALL 4

Referenced by admin_page_logs().

const LOGGER_DATA 3

Referenced by RedDirectory\__construct(), RedFile\__construct(), admin_page_logs(), build_sync_packet(), check_form_security_token_ForbiddenOnErr(), check_form_security_token_redirectOnErr(), RedDirectory\childExists(), consume_feed(), RedDirectory\createFile(), deliver_run(), detect_language(), diaspora_decode(), diaspora_dispatch(), diaspora_msg_build(), diaspora_pubmsg_build(), diaspora_reshare(), diaspora_send_followup(), diaspora_send_images(), diaspora_send_mail(), diaspora_send_relay(), diaspora_send_status(), dir_parse_query(), directory_content(), dirprofile_init(), discover_by_url(), encode_item(), fetch_xrd_links(), find_diaspora_person_by_handle(), fix_private_photos(), get_atom_elements(), RedDirectory\getChild(), RedDirectory\getChildren(), RedDirectory\getDir(), RedDirectory\getName(), import_xchan(), item_post(), item_store(), item_store_update(), RedDirectory\log(), RedBasicAuth\log(), magic_init(), mail_post(), mail_store(), mini_group_select(), new_contact(), notifier_run(), old_webfinger(), onepoll_run(), openid_content(), parse_xml_string(), photos_post(), ping_init(), poco_load(), post_post(), process_location_delivery(), public_recips(), receive_post(), RedChannelList(), RedCollectionData(), RedDirectory\setName(), sync_directories(), tag_deliver(), tgroup_check(), update_directory_entry(), update_feed_item(), xml2array(), z_fetch_url(), z_post_url(), zot_build_packet(), zot_fetch(), zot_import(), zot_process_response(), zot_refresh(), and zot_register_hub().

const LOGGER_DEBUG 2

Referenced by Item\add_child(), Conversation\add_thread(), admin_content(), admin_page_hubloc_post(), admin_page_logs(), admin_post(), api_login(), api_statuses_user_timeline(), avatar_img(), bb2diaspora_itemwallwall(), bookmark_add(), consume_feed(), conversation(), RedDirectory\createDirectory(), RedDirectory\createFile(), RedFile\delete(), delete_imported_item(), deliver_run(), diaspora_conversation(), diaspora_handle_from_contact(), diaspora_like(), diaspora_message(), diaspora_photo(), diaspora_reshare(), diaspora_transmit(), directory_content(), directory_run(), dirprofile_init(), discover_by_webbie(), expire_run(), externals_run(), fetch_lrdd_template(), fix_private_photos(), RedFile\get(), get_diaspora_key(), get_language_name(), Conversation\get_template_data(), RedDirectory\getDir(), RedFile\getName(), group_content(), guess_image_type(), import_author_rss(), import_author_unknown(), import_author_zot(), import_channel_photo(), import_directory_profile(), import_profile_photo(), import_xchan(), item_post(), item_store(), item_store_update(), like_content(), limit_body_size(), load_plugin(), local_dir_update(), FKOAuth1\loginUser(), magic_init(), mail_store(), mood_init(), new_contact(), notes_init(), notification(), notifier_run(), onepoll_run(), parse_url_content(), photo_upload(), photos_post(), poco_init(), poco_load(), poke_init(), post_post(), process_delivery(), process_location_delivery(), process_profile_delivery(), profile_load(), RedFile\put(), queue_run(), receive_post(), RedFileData(), Item\remove_child(), remove_obsolete_hublocs(), scale_external_images(), scrape_feed(), enotify\send(), Conversation\set_mode(), RedFile\setName(), store_diaspora_comment_sig(), stream_perms_api_uids(), stream_perms_xchans(), sync_locations(), tag_deliver(), unload_plugin(), z_fetch_url(), z_post_url(), zot_feed(), zot_finger(), zot_gethub(), zot_register_hub(), and zotfeed_init().

const LOGGER_NORMAL 0

log levels

Referenced by admin_page_logs().

const LOGGER_TRACE 1

Referenced by admin_page_logs().

const MAIL_DELETED 0x0001

Referenced by ping_init().

const MAIL_ISREPLY 0x0004

const MAIL_OBSCURED 0x0020

Referenced by diaspora_conversation(), diaspora_message(), diaspora_send_mail(), encode_mail(), get_mail_elements(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), and send_message().

const MAIL_RECALLED 0x0010

Referenced by encode_mail(), get_mail_elements(), mail_content(), and process_mail_delivery().

const MAIL_REPLIED 0x0002

const MAIL_SEEN 0x0008

Referenced by manage_content(), ping_init(), private_messages_fetch_conversation(), private_messages_fetch_message(), and private_messages_list().

const MAX_IMAGE_LENGTH -1

An alternate way of limiting picture upload sizes. Specify the maximum pixel length that pictures are allowed to be (for non-square pictures, it will apply to the longest side). Pictures longer than this length will be resized to be this length (on the longest side, the other side will be scaled appropriately). Modify this value using

$a->config['system']['max_image_length'] = n;

in .htconfig.php

If you don't want to set a maximum length, set to -1. The default value is defined by 'MAX_IMAGE_LENGTH' below.

Referenced by photo_upload().

const MAX_LIKERS 10

Maximum number of "people who like (or don't like) this" that we will list by name

Referenced by Item\get_template_data().

const MENU_BOOKMARK 0x0002

Referenced by bookmark_add(), bookmarks_content(), menu_content(), menu_post(), nav(), and rbmark_content().

const MENU_ITEM_CHATROOM 0x0004

Referenced by bookmark_add(), and poco_init().

const MENU_ITEM_NEWWIN 0x0002

Referenced by menu_render(), mitem_content(), and mitem_post().

const MENU_ITEM_ZID 0x0001

Referenced by bookmark_add(), menu_render(), mitem_content(), and mitem_post().

const MENU_SYSTEM 0x0001

Menu types

Referenced by bookmark_add(), bookmarks_content(), menu_content(), menu_post(), and nav().

const NAMESPACE_ACTIVITY 'http://activitystrea.ms/spec/1.0/'

Referenced by get_atom_elements().

const NAMESPACE_ACTIVITY_SCHEMA 'http://activitystrea.ms/schema/1.0/'

Referenced by activity_match().

const NAMESPACE_ATOM1 'http://www.w3.org/2005/Atom'

const NAMESPACE_DFRN 'http://purl.org/macgirvin/dfrn/1.0'

Referenced by discover_by_webbie(), and get_atom_elements().

const NAMESPACE_FEED 'http://schemas.google.com/g/2010#updates-from'

Referenced by discover_by_webbie().

const NAMESPACE_GEORSS 'http://www.georss.org/georss'

Referenced by get_atom_elements().

const NAMESPACE_MEDIA 'http://purl.org/syndication/atommedia'

Referenced by encode_rel_links().

const NAMESPACE_OSTATUS 'http://ostatus.org/schema/1.0'

const NAMESPACE_OSTATUSSUB 'http://ostatus.org/schema/1.0/subscribe'

const NAMESPACE_POCO 'http://portablecontacts.net/spec/1.0'

const NAMESPACE_SALMON_ME 'http://salmon-protocol.org/ns/magic-env'

Referenced by diaspora_decode().

const NAMESPACE_STATUSNET 'http://status.net/schema/api/1/'

Referenced by get_atom_elements().

const NAMESPACE_THREAD 'http://purl.org/syndication/thread/1.0'

Referenced by consume_feed().

const NAMESPACE_TOMB 'http://purl.org/atompub/tombstones/1.0'

Referenced by consume_feed().

const NAMESPACE_YMEDIA 'http://search.yahoo.com/mrss/'

Referenced by get_atom_elements().

const NAMESPACE_ZOT 'http://purl.org/zot'

various namespaces we may need to parse

Referenced by get_atom_elements().

const NETWORK_DFRN 'dfrn'

Network and protocol family types

Referenced by best_link_url(), delegate_content(), get_birthdays(), and network_to_name().

const NETWORK_DIASPORA 'dspr'

Referenced by diaspora_asphoto(), and network_to_name().

const NETWORK_FACEBOOK 'face'

Referenced by network_to_name().

const NETWORK_FEED 'feed'

Referenced by network_to_name().

const NETWORK_GPLUS 'goog'

const NETWORK_LINKEDIN 'lnkd'

Referenced by network_to_name().

const NETWORK_MAIL 'mail'

Referenced by network_to_name().

const NETWORK_MAIL2 'mai2'

const NETWORK_MYSPACE 'mysp'

Referenced by network_to_name().

const NETWORK_OSTATUS 'stat'

Referenced by network_to_name().

const NETWORK_PHANTOM 'unkn'

const NETWORK_XMPP 'xmpp'

Referenced by network_to_name().

const NETWORK_ZOT 'zot!'

Referenced by network_to_name().

const NOTIFY_COMMENT 0x0008

Referenced by item_post(), notification(), and send_status_notifications().

const NOTIFY_CONFIRM 0x0002

Referenced by notification().

const NOTIFY_INTRO 0x0001

email notification options

Referenced by diaspora_request(), notification(), and zot_refresh().

const NOTIFY_MAIL 0x0010

Referenced by mail_store(), and notification().

const NOTIFY_POKE 0x0200

Referenced by notification(), and tag_deliver().

const NOTIFY_PROFILE 0x0040

const NOTIFY_SUGGEST 0x0020

Referenced by notification().

const NOTIFY_SYSTEM 0x8000

Referenced by notification().

const NOTIFY_TAGSELF 0x0080

Referenced by notification(), and tag_deliver().

const NOTIFY_TAGSHARE 0x0100

Referenced by notification().

const NOTIFY_WALL 0x0004

Referenced by item_post(), and notification().

const NULL_DATE '0000-00-00 00:00:00'

Referenced by advanced_profile(), comments_are_now_closed(), conversation(), create_account(), diaspora_request(), downgrade_accounts(), encode_item(), events_post(), externals_run(), feed_init(), get_item_elements(), get_mail_elements(), get_public_feed(), Item\get_template_data(), import_post(), item_post(), item_store(), item_store_update(), mail_post(), mail_store(), netgrowth_content(), onepoll_run(), poller_run(), profiles_content(), profiles_post(), relative_date(), removeaccount_post(), removeme_post(), sync_directories(), zot_feed(), and zot_refresh().

const PAGE_ADULT 0x0020

Referenced by settings_post(), and zfinger_init().

const PAGE_APPLICATION 0x0004

const PAGE_AUTOCONNECT 0x0002

const PAGE_CENSORED 0x0040

Referenced by admin_page_channels(), admin_page_channels_post(), stream_perms_api_uids(), stream_perms_xchans(), and zfinger_init().

const PAGE_DIRECTORY_CHANNEL 0x0008

const PAGE_HIDDEN 0x0001

Referenced by RedChannelList(), and zfinger_init().

const PAGE_HUBADMIN 0x2000

Referenced by siteinfo_init().

const PAGE_NORMAL 0x0000

Channel pageflags

Referenced by create_identity().

const PAGE_PREMIUM 0x0010

Referenced by connect_content(), connect_post(), profile_sidebar(), and zfinger_init().

const PAGE_REMOVED 0x8000

Referenced by admin_page_channels(), admin_page_users(), allowed_public_recips(), authenticate_success(), change_channel(), channel_remove(), channel_total(), channelx_by_hash(), channelx_by_n(), channelx_by_nick(), RedDirectory\createDirectory(), RedDirectory\createFile(), RedDirectory\getDir(), RedDirectory\getQuotaInfo(), identity_check_service_class(), identity_selector(), manage_content(), nav(), notification(), post_init(), profile_load(), public_recips(), RedFile\put(), receive_post(), RedChannelList(), stream_perms_api_uids(), stream_perms_xchans(), zfinger_init(), zot_import(), and zotfeed_init().

const PAGE_SYSTEM 0x1000

Referenced by change_channel(), create_identity(), create_sys_channel(), get_sys_channel(), is_sys_channel(), stream_perms_api_uids(), and zfinger_init().

const PERMS_A_DELEGATE 0x00800

Referenced by get_perms().

const PERMS_A_REPUBLISH 0x10000

Referenced by check_item_source(), get_perms(), get_role_perms(), and new_contact().

const PERMS_AUTHED 0x0100

Referenced by get_all_perms(), map_scope(), and perm_is_allowed().

const PERMS_CONTACTS 0x0008

Referenced by get_all_perms(), get_role_perms(), map_scope(), perm_is_allowed(), and public_recips().

const PERMS_NETWORK 0x0002

Referenced by display_content(), get_all_perms(), get_role_perms(), map_scope(), perm_is_allowed(), public_recips(), search_content(), site_default_perms(), stream_perms_api_uids(), and stream_perms_xchans().

const PERMS_PENDING 0x0200

Referenced by get_all_perms(), map_scope(), perm_is_allowed(), public_recips(), and zot_refresh().

const PERMS_PUBLIC 0x0001

Referenced by display_content(), get_all_perms(), get_role_perms(), is_public_profile(), map_scope(), perm_is_allowed(), public_recips(), search_content(), site_default_perms(), stream_perms_api_uids(), stream_perms_xchans(), and zot_feed().

const PERMS_R_ABOOK 0x00008

Referenced by diaspora_request(), get_perms(), and get_role_perms().

const PERMS_R_PAGES 0x04000

Referenced by diaspora_request(), get_perms(), and get_role_perms().

const PERMS_R_PHOTOS 0x00004

Referenced by diaspora_request(), get_perms(), and get_role_perms().

const PERMS_R_PROFILE 0x00002

Referenced by diaspora_request(), get_perms(), and get_role_perms().

const PERMS_R_STORAGE 0x01000

Referenced by diaspora_request(), get_perms(), and get_role_perms().

const PERMS_R_STREAM 0x00001

Permissions

Referenced by diaspora_request(), follow_init(), get_perms(), get_role_perms(), new_contact(), onepoll_run(), and zot_refresh().

const PERMS_SITE 0x0004

Referenced by get_all_perms(), map_scope(), perm_is_allowed(), public_recips(), stream_perms_api_uids(), and stream_perms_xchans().

const PERMS_SPECIFIC 0x0080

Referenced by connedit_content(), get_all_perms(), get_role_perms(), perm_is_allowed(), public_recips(), and site_default_perms().

const PERMS_W_CHAT 0x00400

Referenced by diaspora_request(), get_perms(), and get_role_perms().

const PERMS_W_COMMENT 0x00080

Referenced by can_comment_on_post(), diaspora_request(), get_perms(), get_role_perms(), and public_recips().

const PERMS_W_LIKE 0x20000

Referenced by get_perms(), and get_role_perms().

const PERMS_W_MAIL 0x00100

Referenced by acl_init(), diaspora_request(), get_perms(), get_role_perms(), mail_post(), new_contact(), and public_recips().

const PERMS_W_PAGES 0x08000

Referenced by get_perms().

const PERMS_W_PHOTOS 0x00200

Referenced by get_perms().

const PERMS_W_STORAGE 0x02000

Referenced by get_perms().

const PERMS_W_STREAM 0x00010

Referenced by api_ff_ids(), api_statuses_f(), diaspora_request(), get_perms(), get_role_perms(), new_contact(), and public_recips().

const PERMS_W_TAGWALL 0x00040

Referenced by acl_init(), get_perms(), get_role_perms(), and item_post().

const PERMS_W_WALL 0x00020

Referenced by get_perms(), and get_role_perms().

const PHOTO_NORMAL 0x0000

Photo types

Referenced by photo_upload(), photos_albums_list(), photos_content(), photos_list_photos(), photos_post(), and profile_photo_post().

const PHOTO_PROFILE 0x0001

Referenced by import_channel_photo(), photos_albums_list(), photos_content(), photos_list_photos(), photos_post(), profile_photo_post(), and photo_driver\save().

const PHOTO_THING 0x0004

Referenced by import_profile_photo().

const PHOTO_XCHAN 0x0002

Referenced by import_profile_photo().

const PNG_QUALITY 8

$a->config['system']['png_quality'] from 0 (uncompressed) to 9

Referenced by photo_gd\imageString(), and photo_imagick\load().

const POLL_MULTIPLE_CHOICE 0x0004

const POLL_OVERWRITE 0x8000

Referenced by vote_post().

const POLL_SIMPLE_RATING 0x0001

Poll/Survey types

Referenced by vote_content().

const POLL_TENSCALE 0x0002

const RED_PLATFORM 'redmatrix'

Red Matrix.

The Red Matrix (aka "Red") is an open source decentralised communications platform combined with a decentralised identity/authentication framework wrapped in an extensible content management system, providing website designers the ability to embed fully decentralised communications and social tools into many traditional website designs (blogs, forums, small business websites, charitable organisations, etc.). Red also provides DNS mobility and internet scale privacy/access control.

This allows any individual website to participate in a matrix of linked sites and people and media sharing which is far greater than the reach of an individual site.

If you are reading the source code and come across a function or code block which is not documented, but you have a good idea what it does, please add some descriptive comments and push it to the main project. Even if your description isn't perfect, it gives us a base which we can build on and correct - so that eventually everything is fully documented.

Referenced by api_statusnet_config(), App\build_pagehead(), get_feed_for(), identity_basic_export(), parse_url_content(), siteinfo_init(), and zfinger_init().

const RED_VERSION trim(file_get_contents('version.inc')) . 'R'

Referenced by admin_page_summary(), api_friendica_version(), api_statusnet_config(), App\build_pagehead(), get_feed_for(), identity_basic_export(), siteinfo_content(), siteinfo_init(), and zfinger_init().

const REGISTER_APPROVE 1

Referenced by admin_page_site(), import_site(), list_public_sites(), ping_init(), register_content(), register_post(), and zfinger_init().

const REGISTER_CLOSED 0

registration policies

Referenced by admin_page_site(), api_statusnet_config(), home_content(), import_site(), login_content(), register_content(), register_post(), regmod_content(), and zfinger_init().

const REGISTER_OPEN 2

Referenced by account_verify_password(), admin_page_site(), import_site(), list_public_sites(), nav(), register_post(), sitelist_init(), and zfinger_init().

const SSL_POLICY_FULL 1

const SSL_POLICY_NONE 0

SSL redirection policies

const SSL_POLICY_SELFSIGN 2

const STORAGE_DEFAULT_PERMISSIONS 0770

Default permissions for file-based storage (webDAV, etc.) These files will be owned by the webserver who will need write access to the "storage" folder. Ideally you should make this 700, however some hosted platforms may not let you change ownership of this directory so we're defaulting to both owner-write and group-write privilege. This should work for most cases without modification. Over-ride this in your .htconfig.php if you need something either more or less restrictive.

Referenced by attach_mkdir(), change_channel(), check_store(), and cloud_init().

const TEMPLATE_BUILD_PATH 'store/[data]/smarty3'

Referenced by FriendicaSmartyEngine\__construct(), and check_smarty3().

const TERM_BOOKMARK 8

Referenced by bookmarks_init(), decode_tags(), encode_item_terms(), get_atom_elements(), Item\get_template_data(), and handle_tag().

const TERM_CATEGORY 3

Referenced by categories_widget(), channel_content(), decode_tags(), editpost_content(), encode_item_terms(), events_content(), events_post(), file_tag_file_query(), filerm_content(), format_categories(), get_atom_elements(), item_post(), and widget_tagcloud().

const TERM_FILE 5

Referenced by decode_tags(), file_tag_file_query(), fileas_widget(), filer_content(), filerm_content(), format_filer(), item_expire(), items_fetch(), network_content(), and widget_filer().

const TERM_HASHTAG 1

Referenced by check_item_source(), conversation(), decode_tags(), diaspora_comment(), diaspora_post(), diaspora_reshare(), encode_item_terms(), format_hashtags(), format_term_for_display(), get_atom_elements(), handle_tag(), item_getfeedtags(), items_fetch(), network_content(), remove_community_tag(), search_ac_init(), search_content(), tag_deliver(), and tagger_content().

const TERM_MENTION 2

Referenced by conversation(), decode_tags(), diaspora_comment(), diaspora_post(), diaspora_reshare(), encode_item_terms(), fetch_post_tags(), format_mentions(), format_term_for_display(), get_atom_elements(), get_mentions(), handle_tag(), item_getfeedtags(), tag_deliver(), and tgroup_check().

const TERM_OBJ_APP 7

const TERM_OBJ_CHANNEL 4

const TERM_OBJ_OBJECT 5

const TERM_OBJ_PHOTO 2

const TERM_OBJ_POST 1

Referenced by delete_item_lowlevel(), diaspora_comment(), diaspora_post(), diaspora_reshare(), event_store_item(), events_post(), fetch_post_tags(), filer_content(), get_atom_elements(), item_post(), item_store(), item_store_update(), photos_post(), remove_community_tag(), search_content(), tag_deliver(), tagadelic(), and tagger_content().

const TERM_OBJ_PROFILE 3

const TERM_OBJ_THING 6

Referenced by get_things(), like_content(), thing_content(), and thing_init().

const TERM_PCATEGORY 4

Referenced by decode_tags().

const TERM_SAVEDSEARCH 6

Referenced by identity_basic_export(), and widget_savedsearch().

const TERM_THING 7

Referenced by decode_tags(), identity_basic_export(), and thing_init().

const TERM_UNKNOWN 0

Tag/term types

Referenced by conversation(), decode_tags(), encode_item_terms(), and handle_tag().

const UPDATE_FAILED 1

Referenced by admin_page_dbsync().

const UPDATE_FLAGS_DELETED 0x1000

Referenced by dirsearch_content(), sync_directories(), and update_directory_entry().

const UPDATE_FLAGS_FORCED 0x0002

Referenced by dirsearch_content(), import_xchan(), local_dir_update(), sync_directories(), and zot_refresh().

const UPDATE_FLAGS_UPDATED 0x0001

Referenced by import_xchan(), local_dir_update(), onedirsync_run(), poller_run(), process_profile_delivery(), update_modtime(), and zot_refresh().

const UPDATE_SUCCESS 0

DB update return values

Referenced by admin_page_dbsync().

const XCHAN_FLAGS_CENSORED 0x0004

Referenced by dirsearch_content().

const XCHAN_FLAGS_DELETED 0x1000

Referenced by acl_init(), channel_remove(), connections_content(), contact_block(), dirsearch_content(), group_content(), group_get_members(), import_xchan(), manage_content(), ping_init(), remove_all_xchan_resources(), suggestion_query(), viewconnections_content(), and zfinger_init().

const XCHAN_FLAGS_HIDDEN 0x0001

Referenced by contact_block(), dirsearch_content(), import_xchan(), local_dir_update(), openid_content(), suggestion_query(), and viewconnections_content().

const XCHAN_FLAGS_NORMAL 0x0000

Referenced by create_identity().

const XCHAN_FLAGS_ORPHAN 0x0002

Referenced by connections_content(), contact_block(), dirsearch_content(), manage_content(), mark_orphan_hubsxchans(), ping_init(), post_post(), sync_locations(), and viewconnections_content().

const XCHAN_FLAGS_SELFCENSORED 0x0008

Referenced by dirsearch_content(), import_directory_profile(), and import_xchan().

const XCHAN_FLAGS_SYSTEM 0x0010

Referenced by create_sys_channel().

const ZCURL_TIMEOUT (-1)

Communication timeout

const ZOT_REVISION 1

Referenced by api_statusnet_config(), magic_init(), and zot_build_packet().