diff --git a/doc/accounts.bb b/doc/accounts.bb new file mode 100644 index 000000000..658d8e995 --- /dev/null +++ b/doc/accounts.bb @@ -0,0 +1,4 @@ +This one still needs to be written. + +Return to the [url=[baseurl]/help/main]Main documentation page[/url] + diff --git a/doc/accounts_profiles_channels_basics.bb b/doc/accounts_profiles_channels_basics.bb new file mode 100644 index 000000000..b3ba2ef6d --- /dev/null +++ b/doc/accounts_profiles_channels_basics.bb @@ -0,0 +1,4 @@ +This still needs to be written + +Return to the [url=[baseurl]/help/main]Main documentation page[/url] + diff --git a/doc/addons.bb b/doc/addons.bb index 4838c4a27..9c3a5458e 100644 --- a/doc/addons.bb +++ b/doc/addons.bb @@ -1,2 +1,5 @@ * [zrl=[baseurl]/help/addons_gnusocial]Posting To Gnu Social[/zrl] +Return to the [url=[baseurl]/help/main]Main documentation page[/url] + + diff --git a/doc/addons_gnusocial.bb b/doc/addons_gnusocial.bb index 4498d0b83..ca5596351 100644 --- a/doc/addons_gnusocial.bb +++ b/doc/addons_gnusocial.bb @@ -59,3 +59,6 @@ You now have several options to choose, if you desire, and those will need to be If you don't choose this option, you will have an option to send a post to your GNUsocial instance by first opening the post (by clicking in the post text area) and clicking on the lock icon next to the Share button. Select the GNUsocial icon made up of three colored dialog baloons. Close that window, then make your post. If all goes well, you have just cross-posted your RedMatrix post to your account on a GNUsocial instance. + +Return to the [url=[baseurl]/help/main]Main documentation page[/url] + diff --git a/doc/api_functions.bb b/doc/api_functions.bb index 13460c1b9..acdf9d6a7 100644 --- a/doc/api_functions.bb +++ b/doc/api_functions.bb @@ -127,4 +127,7 @@ Red proposed API extensions to the Twitter API api/albums/permissions (R),J api/albums/permissions/update (R),J api/albums/destroy (R),J - api/friends/permissions (R),J \ No newline at end of file + api/friends/permissions (R),J + +Return to the [url=[baseurl]/help/main]Main documentation page[/url] + diff --git a/doc/bbcode.html b/doc/bbcode.html index 5692ec0d2..63e364421 100644 --- a/doc/bbcode.html +++ b/doc/bbcode.html @@ -65,7 +65,8 @@
code
quote
Author? Me? No, no, no...
Tables now |
---|
Have headers |
Red Matrix specific codes
+![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
rconnect_url ($channel_id, $xchan) | |
abook_connections ($channel_id, $sql_conditions= '') | |
abook_self ($channel_id) | |
channelx_by_nick ($nick) | |
channelx_by_hash ($hash) | |
channelx_by_n ($id) | |
vcard_from_xchan ($xchan, $observer=null, $mode= '') | |
abook_toggle_flag ($abook, $flag) | |
user_remove ($uid) | |
account_remove ($account_id, $local=true) | |
channel_remove ($channel_id, $local=true) | |
mark_orphan_hubsxchans () | |
remove_all_xchan_resources ($xchan, $channel_id=0) | |
contact_remove ($channel_id, $abook_id) | |
terminate_friendship ($user, $self, $contact) | |
if(!function_exists('mark_for_death')) +if(!function_exists('unmark_for_death')) | random_profile () |
abook_connections | +( | ++ | $channel_id, | +
+ | + | + | $sql_conditions = '' |
+
+ | ) | ++ |
abook_self | +( | ++ | $channel_id | ) | ++ |
Referenced by photos_post().
+ +abook_toggle_flag | +( | ++ | $abook, | +
+ | + | + | $flag | +
+ | ) | ++ |
Referenced by connedit_content().
+ +account_remove | +( | ++ | $account_id, | +
+ | + | + | $local = true |
+
+ | ) | ++ |
Referenced by admin_page_users(), admin_page_users_post(), and chanman_remove_everything_from_network().
+ +channel_remove | +( | ++ | $channel_id, | +
+ | + | + | $local = true |
+
+ | ) | ++ |
Referenced by account_remove(), admin_page_channels(), admin_page_channels_post(), and removeme_post().
+ +channelx_by_hash | +( | ++ | $hash | ) | ++ |
channelx_by_n | +( | ++ | $id | ) | ++ |
Referenced by widget_photo_albums().
+ +channelx_by_nick | +( | ++ | $nick | ) | ++ |
Referenced by photos_init().
+ +contact_remove | +( | ++ | $channel_id, | +
+ | + | + | $abook_id | +
+ | ) | ++ |
Referenced by connedit_content(), and post_post().
+ +mark_orphan_hubsxchans | +( | +) | ++ |
mark any hubs "offline" that haven't been heard from in more than 30 days Allow them to redeem themselves if they come back later. Then go through all those that are newly marked and see if any other hubs are attached to the controlling xchan that are still alive. If not, they're dead (although they could come back some day).
+ +Referenced by poller_run().
+ +if (!function_exists('mark_for_death')) if (!function_exists('unmark_for_death')) random_profile | +( | +) | ++ |
Referenced by randprof_init().
+ +rconnect_url | +( | ++ | $channel_id, | +
+ | + | + | $xchan | +
+ | ) | ++ |
Referenced by profile_sidebar().
+ +remove_all_xchan_resources | +( | ++ | $xchan, | +
+ | + | + | $channel_id = 0 |
+
+ | ) | ++ |
Referenced by post_post().
+ +terminate_friendship | +( | ++ | $user, | +
+ | + | + | $self, | +
+ | + | + | $contact | +
+ | ) | ++ |
user_remove | +( | ++ | $uid | ) | ++ |
vcard_from_xchan | +( | ++ | $xchan, | +
+ | + | + | $observer = null , |
+
+ | + | + | $mode = '' |
+
+ | ) | ++ |
Referenced by widget_vcard().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | Conversation |
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
interface | ITemplateEngine |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | ProtoDriver |
class | ZotDriver |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
probe_url ($url, $mode=PROBE_NORMAL) | |
+Variables | |
const | PROBE_NORMAL (!function_exists('scrape_feed')) 0 |
probe_url | +( | ++ | $url, | +
+ | + | + | $mode = PROBE_NORMAL |
+
+ | ) | ++ |
const PROBE_NORMAL(!function_exists('scrape_feed')) 0 | +
Probe a network address to discover what kind of protocols we need to communicate with it.
+Warning: this function is a bit touchy and there are some subtle dependencies within the logic flow. Edit with care.
+PROBE_DIASPORA has a bias towards returning Diaspora information while PROBE_NORMAL has a bias towards dfrn/zot - in the case where an address (such as a Friendica address) supports more than one type of network.
+ +Referenced by probe_url().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
_well_known_init (&$a) | |
_well_known_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
check_account_email ($email) | |
check_account_password ($password) | |
check_account_invite ($invite_code) | |
check_account_admin ($arr) | |
account_total () | |
create_account ($arr) | |
send_reg_approval_email ($arr) | |
send_verification_email ($email, $password) | |
user_allow ($hash) | |
user_deny ($hash) | |
downgrade_accounts () | |
account_total | +( | +) | ++ |
Referenced by create_account(), and zfinger_init().
+ +check_account_admin | +( | ++ | $arr | ) | ++ |
Referenced by create_account().
+ +check_account_email | +( | ++ | ) | ++ |
Referenced by create_account(), and register_init().
+ +check_account_invite | +( | ++ | $invite_code | ) | ++ |
Referenced by create_account(), and register_init().
+ +check_account_password | +( | ++ | $password | ) | ++ |
Referenced by create_account(), and register_init().
+ +create_account | +( | ++ | $arr | ) | ++ |
Referenced by register_post().
+ +downgrade_accounts | +( | +) | ++ |
downgrade_accounts() Checks for accounts that have past their expiration date. If the account has a service class which is not the site default, the service class is reset to the site default and expiration reset to never. If the account has no service class it is expired and subsequently disabled. called from include/poller.php as a scheduled task.
+Reclaiming resources which are no longer within the service class limits is not the job of this function, but this can be implemented by plugin if desired. Default behaviour is to stop allowing additional resources to be consumed.
+ +Referenced by poller_run().
+ +send_reg_approval_email | +( | ++ | $arr | ) | ++ |
Referenced by register_post().
+ +send_verification_email | +( | ++ | $email, | +
+ | + | + | $password | +
+ | ) | ++ |
Referenced by register_post().
+ +user_allow | +( | ++ | $hash | ) | ++ |
Referenced by admin_page_users_post(), and regmod_content().
+ +user_deny | +( | ++ | $hash | ) | ++ |
Referenced by admin_page_users_post(), and regmod_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
achievements_content (&$a) | |
achievements_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
acl_init (&$a) | |
navbar_complete (&$a) | |
acl_init | +( | +& | +$a | ) | ++ |
navbar_complete | +( | +& | +$a | ) | ++ |
Referenced by acl_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Namespaces | |
namespace | acl_selectors |
+Functions | |
group_select ($selname, $selclass, $preselected=false, $size=4) | |
contact_select ($selname, $selclass, $preselected=false, $size=4, $privmail=false, $celeb=false, $privatenet=false, $tabindex=null) | |
fixacl (&$item) | |
populate_acl ($defaults=null, $show_jotnets=true) | |
contact_select | +( | ++ | $selname, | +
+ | + | + | $selclass, | +
+ | + | + | $preselected = false , |
+
+ | + | + | $size = 4 , |
+
+ | + | + | $privmail = false , |
+
+ | + | + | $celeb = false , |
+
+ | + | + | $privatenet = false , |
+
+ | + | + | $tabindex = null |
+
+ | ) | ++ |
Referenced by mail_content().
+ +fixacl | +( | +& | +$item | ) | ++ |
group_select | +( | ++ | $selname, | +
+ | + | + | $selclass, | +
+ | + | + | $preselected = false , |
+
+ | + | + | $size = 4 |
+
+ | ) | ++ |
populate_acl | +( | ++ | $defaults = null , |
+
+ | + | + | $show_jotnets = true |
+
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
profile_activity ($changed, $value) | |
profile_activity | +( | ++ | $changed, | +
+ | + | + | $value | +
+ | ) | ++ |
Referenced by profiles_post().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
admin_post (&$a) | |
admin_content (&$a) | |
admin_page_summary (&$a) | |
admin_page_site_post (&$a) | |
admin_page_site (&$a) | |
admin_page_hubloc_post (&$a) | |
admin_page_hubloc (&$a) | |
admin_page_dbsync (&$a) | |
admin_page_users_post (&$a) | |
admin_page_users (&$a) | |
admin_page_channels_post (&$a) | |
admin_page_channels (&$a) | |
admin_page_plugins (&$a) | |
toggle_theme (&$themes, $th, &$result) | |
theme_status ($themes, $th) | |
rebuild_theme_table ($themes) | |
admin_page_themes (&$a) | |
admin_page_logs_post (&$a) | |
admin_page_logs (&$a) | |
admin_content | +( | +& | +$a | ) | ++ |
admin_page_channels | +( | +& | +$a | ) | ++ |
admin_page_channels_post | +( | +& | +$a | ) | ++ |
admin_page_dbsync | +( | +& | +$a | ) | ++ |
Referenced by admin_content().
+ +admin_page_hubloc | +( | +& | +$a | ) | ++ |
Referenced by admin_content().
+ +admin_page_hubloc_post | +( | +& | +$a | ) | ++ |
Referenced by admin_post().
+ +admin_page_logs | +( | +& | +$a | ) | ++ |
admin_page_logs_post | +( | +& | +$a | ) | ++ |
admin_page_plugins | +( | +& | +$a | ) | ++ |
Plugins admin page
+App | $a |
Single plugin
+List plugins
+ +Referenced by admin_content().
+ +admin_page_site | +( | +& | +$a | ) | ++ |
admin_page_site_post | +( | +& | +$a | ) | ++ |
admin_page_summary | +( | +& | +$a | ) | ++ |
Admin Summary Page
+App | $a |
Referenced by admin_content().
+ +admin_page_themes | +( | +& | +$a | ) | ++ |
Themes admin page
+App | $a |
Single theme
+List themes
+ +Referenced by admin_content().
+ +admin_page_users | +( | +& | +$a | ) | ++ |
admin_page_users_post | +( | +& | +$a | ) | ++ |
admin_post | +( | +& | +$a | ) | ++ |
Red admin
+App | $a |
rebuild_theme_table | +( | ++ | $themes | ) | ++ |
theme_status | +( | ++ | $themes, | +
+ | + | + | $th | +
+ | ) | ++ |
array | $themes | |
string | $th |
Referenced by admin_page_themes().
+ +toggle_theme | +( | +& | +$themes, | +
+ | + | + | $th, | +
+ | + | & | +$result | +
+ | ) | ++ |
array | $themes | |
string | $th | |
int | $result |
Referenced by admin_page_themes().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
allfriends_content (&$a) | |
allfriends_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
appman_post (&$a) | |
appman_content (&$a) | |
appman_content | +( | +& | +$a | ) | ++ |
appman_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
apps_content (&$a) | |
apps_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$uid = get_theme_uid() | |
if ($uid) load_pconfig($uid | |
$x = splitFilename($font) | |
$fname = $x[0] | |
$fext = $x[1] | |
if(file_exists('view/theme/apw/font/'.$fname. +'i.'.$fext)) if(file_exists('view/theme/apw/font/'.$fname. +'b.'.$fext)) | $strongmacro = '' |
$obliquemacro = '' | |
if($nav) | $sectiontop = "28px" |
$iconsize = "16px" | |
$navheight = "27px" | |
$showlock = "block" | |
$fext = $x[1] | +
$fname = $x[0] | +
Referenced by reload_plugins().
+ +$iconsize = "16px" | +
$navheight = "27px" | +
$obliquemacro = '' | +
$showlock = "block" | +
if (file_exists('view/theme/apw/font/'.$fname. 'i.'.$fext)) if (file_exists('view/theme/apw/font/'.$fname. 'b.'.$fext)) $strongmacro = '' | +
$uid = get_theme_uid() | +
Referenced by admin_page_channels(), admin_page_channels_post(), admin_page_users(), admin_page_users_post(), all_friends(), app_destroy(), app_install(), app_installed(), app_list(), build_sync_packet(), chat_message(), chatroom_list(), check_item_source(), check_list_permissions(), common_friends(), common_friends_zcid(), count_all_friends(), count_common_friends(), count_common_friends_zcid(), del_pconfig(), delete_imported_item(), drop_items(), event_addtocal(), events_post(), feature_enabled(), first_post_date(), fix_attached_photo_permissions(), fix_private_photos(), follow_init(), get_all_perms(), get_pconfig(), get_theme_uid(), get_things(), get_words(), group_add(), group_add_member(), group_byname(), group_rec_byhash(), group_rmv(), group_rmv_member(), groups_containing(), import_channel_photo(), item_add_cid(), item_expire(), item_post(), item_remove_cid(), item_store_update(), items_fetch(), list_post_dates(), load_contact_links(), load_pconfig(), local_dir_update(), FKOAuth1\loginUser(), menu_add_item(), menu_del_item(), menu_delete(), menu_delete_id(), menu_edit_item(), menu_fetch(), mini_group_select(), mood_init(), new_contact(), notifier_run(), pdl_selector(), perm_is_allowed(), photo_init(), poke_init(), posted_dates(), private_messages_list(), remove_community_tag(), send_message(), service_class_allows(), service_class_fetch(), set_pconfig(), Conversation\set_profile_owner(), photo_driver\store(), store_item_tag(), suggestion_query(), tag_deliver(), tagadelic(), tagblock(), tgroup_check(), widget_archive(), widget_follow(), widget_item(), widget_tagcloud(), and zot_feed().
+ +$x = splitFilename($font) | +
Referenced by Template\_replcb_for(), Template\_replcb_if(), account_remove(), acl_init(), activity_sanitise(), admin_page_channels(), admin_page_themes(), aes_encapsulate(), app_decode(), app_install(), app_list(), app_render(), app_store(), app_update(), apps_content(), argv(), array_sanitise(), attach_change_permissions(), attach_delete(), attach_store(), autoname(), bb_parse_crypt(), bbcode(), block_content(), blocks_content(), bookmark_add(), bookmarks_content(), build_sync_packet(), change_channel(), channel_content(), chat_content(), chat_message(), chat_post(), chatroom_create(), chatroom_enter(), chatsvc_content(), chatsvc_init(), chatsvc_post(), check_config(), check_form_security_token(), check_item_source(), check_list_permissions(), check_webbie(), RedDirectory\childExists(), cloud_init(), common_init(), construct_page(), conversation(), RedDirectory\createFile(), photo_gd\cropImage(), photo_imagick\cropImage(), datesel(), datesel_format(), decode_tags(), deliver_run(), dir_tagadelic(), directory_content(), directory_run(), dirprofile_init(), display_content(), downgrade_accounts(), email_header_encode(), encode_item(), encode_mail(), event_store_item(), expand_groups(), expire_run(), externals_run(), feature_enabled(), fetch_post_tags(), filer_content(), find_xchan_in_array(), findpeople_widget(), fix_private_photos(), fix_system_urls(), photo_gd\flip(), fsuggest_post(), get_all_perms(), get_item_elements(), get_mail_elements(), get_mentions(), get_online_status(), get_profile_elements(), get_system_apps(), get_terms_oftype(), get_theme_uid(), get_things(), RedDirectory\getChild(), RedDirectory\getDir(), RedDirectory\getQuotaInfo(), gprobe_run(), hostxrd_init(), ids_to_querystr(), import_author_rss(), import_author_xchan(), import_author_zot(), import_directory_keywords(), import_directory_profile(), import_post(), import_site(), import_xchan(), invite_content(), invite_post(), item_post(), item_remove_cid(), items_fetch(), json_decode_plus(), json_return_and_die(), layouts_content(), legal_webbie(), FKOAuth1\loginUser(), magic_init(), mail_post(), manage_content(), mark_orphan_hubsxchans(), match_content(), menu_content(), menu_delete_id(), menu_fetch(), menu_render(), mimetype_select(), nav(), navbar_complete(), network_content(), new_channel_init(), new_contact(), notification(), notifier_run(), oembed_fetch_url(), onedirsync_run(), onepoll_run(), openid_content(), page_content(), parse_app_description(), parse_xml_string(), pdledit_content(), perm_is_allowed(), photos_list_photos(), photos_post(), ping_init(), poco_load(), poller_run(), post_init(), post_post(), preg_heart(), print_template(), private_messages_list(), proc_run(), process_channel_sync_delivery(), process_mail_delivery(), profile_init(), profile_load(), profile_photo_post(), prune_hub_reinstalls(), public_recips(), RedFile\put(), dba_mysql\q(), dba_mysqli\q(), randprof_init(), red_item_new(), RedCollectionData(), RedFileData(), remote_online_status(), remove_community_tag(), rpost_content(), photo_driver\save(), search_ac_init(), send_status_notifications(), share_init(), site_default_perms(), smilies(), sources_content(), sslify_init(), photo_driver\store(), string_splitter(), stringify_array_elms(), sync_directories(), tag_deliver(), tagadelic(), tagrm_content(), tagrm_post(), theme_status(), thing_content(), timesel(), toggle_theme(), update_directory_entry(), update_imported_item(), upgrade_bool_message(), upgrade_message(), valid_email(), RedBasicAuth\validateUserPass(), webpages_content(), what_next(), widget_affinity(), widget_bookmarkedchats(), widget_suggestedchats(), widget_suggestions(), xchan_query(), xmlify(), zfinger_init(), zot_process_response(), zot_refresh(), zot_register_hub(), and zotfeed_init().
+ +if (($schema)&&($schema!= '---')) if(!$schema||($schema== '---')) | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
apw_init (&$a) | |
apw_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
nuke_session () | |
account_verify_password ($email, $pass) | |
if((x($_POST,'auth-params'))&&$_POST['auth-params']=== +'login') | match_openid ($authid) |
+Variables | |
if((isset($_SESSION))&&(x($_SESSION,'authenticated'))&&((!(x($_POST,'auth-params')))||($_POST['auth-params']!== +'login'))) | else |
account_verify_password | +( | ++ | $email, | +
+ | + | + | $pass | +
+ | ) | ++ |
Verify login credentials
+Returns account record on success, null on failure
+A plugin indicates successful login by setting 'authenticated' to non-zero value and returning a user record Plugins should never set 'authenticated' except to indicate success - as hooks may be chained and later plugins should not interfere with an earlier one that succeeded.
+ +Referenced by api_login(), removeme_post(), and RedBasicAuth\validateUserPass().
+ +if ((x($_POST,'auth-params'))&&$_POST['auth-params']=== 'login') match_openid | +( | ++ | $authid | ) | ++ |
Referenced by openid_content().
+ +nuke_session | +( | +) | ++ |
Referenced by api_account_logout().
+ +if ((isset($_SESSION))&&(x($_SESSION,'authenticated'))&&((!(x($_POST,'auth-params')))||($_POST['auth-params']!== 'login'))) else | +
Inline - not a function look for auth parameters or re-validate an existing session also handles logout
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
get_bb_tag_pos ($s, $name, $occurance=1) | |
bb_tag_preg_replace ($pattern, $replace, $name, $s) | |
diaspora2bb ($s) | |
stripdcode_br_cb ($s) | |
diaspora_ul ($s) | |
diaspora_ol ($s) | |
bb2diaspora ($Text, $preserve_nl=false, $fordiaspora=true) | |
unescape_underscores_in_links ($m) | |
format_event_diaspora ($ev) | |
bb2diaspora | +( | ++ | $Text, | +
+ | + | + | $preserve_nl = false , |
+
+ | + | + | $fordiaspora = true |
+
+ | ) | ++ |
Transform #tags, strip off the [url] and replace spaces with underscore
+ +Referenced by format_event_diaspora().
+ +bb_tag_preg_replace | +( | ++ | $pattern, | +
+ | + | + | $replace, | +
+ | + | + | $name, | +
+ | + | + | $s | +
+ | ) | ++ |
Referenced by diaspora2bb().
+ +diaspora2bb | +( | ++ | $s | ) | ++ |
diaspora_ol | +( | ++ | $s | ) | ++ |
diaspora_ul | +( | ++ | $s | ) | ++ |
format_event_diaspora | +( | ++ | $ev | ) | ++ |
get_bb_tag_pos | +( | ++ | $s, | +
+ | + | + | $name, | +
+ | + | + | $occurance = 1 |
+
+ | ) | ++ |
Referenced by bb_tag_preg_replace().
+ +stripdcode_br_cb | +( | ++ | $s | ) | ++ |
unescape_underscores_in_links | +( | ++ | $m | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
tryoembed ($match) | |
tryzrlaudio ($match) | |
tryzrlvideo ($match) | |
bb_spacefy ($st) | |
bb_unspacefy_and_trim ($st) | |
if(!function_exists('bb_extract_images')) +if(!function_exists('bb_replace_images')) | bb_parse_crypt ($match) |
bb_parse_app ($match) | |
bb_qr ($match) | |
bb_ShareAttributes ($match) | |
bb_location ($match) | |
bbiframe ($match) | |
bb_ShareAttributesSimple ($match) | |
rpost_callback ($match) | |
bb_sanitize_style ($input) | |
bbcode ($Text, $preserve_nl=false, $tryoembed=true) | |
bb_location | +( | ++ | $match | ) | ++ |
bb_parse_app | +( | ++ | $match | ) | ++ |
if (!function_exists('bb_extract_images')) if (!function_exists('bb_replace_images')) bb_parse_crypt | +( | ++ | $match | ) | ++ |
bb_qr | +( | ++ | $match | ) | ++ |
bb_sanitize_style | +( | ++ | $input | ) | ++ |
bb_ShareAttributes | +( | ++ | $match | ) | ++ |
bb_ShareAttributesSimple | +( | ++ | $match | ) | ++ |
bb_spacefy | +( | ++ | $st | ) | ++ |
bb_unspacefy_and_trim | +( | ++ | $st | ) | ++ |
bbcode | +( | ++ | $Text, | +
+ | + | + | $preserve_nl = false , |
+
+ | + | + | $tryoembed = true |
+
+ | ) | ++ |
Referenced by advanced_profile(), bb2diaspora(), chatsvc_content(), construct_activity_object(), construct_activity_target(), dirprofile_init(), events_content(), format_event_html(), format_notification(), get_events(), help_content(), mail_content(), menu_render(), message_content(), notification(), notifications_content(), notify_content(), ping_init(), siteinfo_content(), and tagrm_content().
+ +bbiframe | +( | ++ | $match | ) | ++ |
rpost_callback | +( | ++ | $match | ) | ++ |
tryoembed | +( | ++ | $match | ) | ++ |
tryzrlaudio | +( | ++ | $match | ) | ++ |
tryzrlvideo | +( | ++ | $match | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
block_init (&$a) | |
block_content (&$a) | |
block_content | +( | +& | +$a | ) | ++ |
block_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
blocks_content (&$a) | |
blocks_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
blog_init (&$a) | |
blog_init | +( | +& | +$a | ) | ++ |
Name: Blogga Version: 0.6 Description: Blog theme ported from Twenty Eleven wordpress theme, Licensed under GNU General Public License v2 or later Author: Fabio http://kirgroup.com/profile/fabrixxm Maintainer: Mike <zot:mike@> zoth ub.co m
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
blog_init (&$a) | |
blog_install (&$a) | |
blog_uninstall (&$a) | |
blogtheme_imgurl ($headimg) | |
blogtheme_display_item (&$a, &$data) | |
blog_init | +( | +& | +$a | ) | ++ |
Name: Blog Version: 0.6 Description: Blog theme ported from Twenty Eleven wordpress theme, Licensed under GNU General Public License v2 or later Author: Fabio http://kirgroup.com/profile/fabrixxm Maintainer: Fabio http://kirgroup.com/profile/fabrixxm
+ +blog_install | +( | +& | +$a | ) | ++ |
blog_uninstall | +( | +& | +$a | ) | ++ |
blogtheme_display_item | +( | +& | +$a, | +
+ | + | & | +$data | +
+ | ) | ++ |
blogtheme_imgurl | +( | ++ | $headimg | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | App |
+Functions | |
startup () | |
get_app () | |
x ($s, $k=NULL) | |
system_unavailable () | |
clean_urls () | |
z_path () | |
z_root () | |
absurl ($path) | |
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 () | |
+Variables | |
const | RED_PLATFORM 'Red Matrix' |
const | RED_VERSION trim(file_get_contents('version.inc')) . 'R' |
const | ZOT_REVISION 1 |
const | DB_UPDATE_VERSION 1115 |
const | EOL '<br />' . "\r\n" |
const | ATOM_TIME 'Y-m-d\TH:i:s\Z' |
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_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_A_BOOKMARK 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 | 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 | 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 |
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_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(), 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(), 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(), register_init(), regmod_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_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(), 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(), 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(), register_init(), regmod_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
+params | Array |
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(), 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(), rpost_content(), settings_post(), z_input_filter(), and zotfeed_init().
+ +get_app | +( | +) | ++ |
Referenced by FriendicaSmarty\__construct(), FriendicaSmartyEngine\__construct(), abook_toggle_flag(), 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(), dir_tagblock(), 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_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(), search(), searchbox(), send_message(), send_reg_approval_email(), send_status_notifications(), send_verification_email(), service_class_allows(), service_class_fetch(), smilies(), tag_deliver(), terminate_friendship(), tgroup_check(), theme_include(), tryzrlvideo(), tt(), update_suggestions(), user_allow(), vcard_from_xchan(), 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_max_import_size | +( | +) | ++ |
Referenced by 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(), prepare_body(), profile_content(), profile_sidebar(), search_content(), 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 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_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(), 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(), and viewconnections_content().
+ +is_ajax | +( | +) | ++ |
Referenced by admin_content(), admin_post(), photos_post(), and viewsrc_content().
+ +is_developer | +( | +) | ++ |
is_site_admin | +( | +) | ++ |
Referenced by admin_content(), admin_post(), app_render(), 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(), contactgroup_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(), network_content(), oembed_init(), oexchange_init(), opensearch_init(), parse_url_content(), photo_init(), photos_post(), php_init(), ping_init(), poco_init(), poller_run(), pretheme_init(), App\register_template_engine(), regmod_content(), search_ac_init(), setup_init(), setup_post(), share_init(), siteinfo_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(), home_init(), identity_selector(), invite_content(), invite_post(), 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(), removeme_content(), removeme_post(), rmagic_init(), rpost_content(), search(), search_ac_init(), search_content(), searchbox(), service_class_allows(), service_class_fetch(), 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 achievements_content(), admin_content(), admin_page_channels(), admin_page_channels_post(), admin_page_hubloc(), admin_page_plugins(), 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(), chanview_content(), 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(), home_content(), 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(), rmagic_post(), search_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().
+ +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_post(), build_sync_packet(), channel_remove(), connect_post(), connections_post(), connedit_content(), connedit_post(), create_identity(), 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(), send_message(), settings_post(), 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(), 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(), 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(), directory_content(), dirprofile_init(), dirsearch_content(), 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(), removeme_post(), rpost_content(), script_path(), search_ac_init(), search_content(), search_init(), service_class_allows(), service_class_fetch(), App\set_baseurl(), settings_post(), setup_content(), setup_init(), siteinfo_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 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(), directory_content(), dirprofile_init(), 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_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(), post_activity_item(), post_init(), post_post(), profile_activity(), profile_sidebar(), public_recips(), pubsites_content(), rbmark_content(), rbmark_post(), register_post(), 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(), 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().
+ +$DIRECTORY_FALLBACK_SERVERS | +
Referenced by find_upstream_directory().
+ +const ABOOK_FLAG_ARCHIVED 0x0008 | +
Referenced by abook_toggle_flag(), acl_init(), collect_recipients(), connections_content(), connedit_content(), contact_remove(), and poller_run().
+ +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(), and perm_is_allowed().
+ +const ABOOK_FLAG_HIDDEN 0x0004 | +
Referenced by connections_content(), connedit_content(), onepoll_run(), and poller_run().
+ +const ABOOK_FLAG_IGNORED 0x0002 | +
Referenced by connections_content(), connedit_content(), get_all_perms(), and perm_is_allowed().
+ +const ABOOK_FLAG_PENDING 0x0010 | +
Referenced by acl_init(), collect_recipients(), connections_content(), connections_post(), connedit_content(), connedit_post(), contact_block(), get_all_perms(), group_content(), group_get_members(), 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(), get_all_perms(), item_post(), load_contact_links(), new_contact(), notifier_run(), perm_is_allowed(), ping_init(), poco_init(), viewconnections_content(), widget_follow(), widget_settings_menu(), and zot_refresh().
+ +const ABOOK_FLAG_UNCONNECTED 0x0020 | +
Referenced by connections_content(), 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 admin_page_users(), admin_page_users_post(), register_post(), and user_allow().
+ +const ACCOUNT_EXPIRED 0x0004 | +
Referenced by downgrade_accounts().
+ +const ACCOUNT_OK 0x0000 | +
Account Flags
+ +Referenced by account_verify_password(), create_account(), onepoll_run(), openid_content(), poller_run(), and RedBasicAuth\validateUserPass().
+ +const ACCOUNT_PENDING 0x0010 | +
Referenced by admin_page_users(), ping_init(), register_post(), and user_allow().
+ +const ACCOUNT_REMOVED 0x0008 | +
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(), and RedBasicAuth\validateUserPass().
+ +const ACTIVITY_DISLIKE NAMESPACE_ZOT . '/activity/dislike' | +
Referenced by Item\add_child(), Conversation\add_thread(), consume_feed(), conversation(), 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 consume_feed(), and subthread_content().
+ +const ACTIVITY_FRIEND NAMESPACE_ACTIVITY_SCHEMA . 'make-friend' | +
Referenced by 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(), consume_feed(), conversation(), 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 consume_feed(), 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(), consume_feed(), 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 get_atom_elements(), localize_item(), poke_init(), and tag_deliver().
+ +const ACTIVITY_OBJ_PHOTO NAMESPACE_ACTIVITY_SCHEMA . 'photo' | +
Referenced by 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 consume_feed(), 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' | +
const ACTIVITY_REQ_FRIEND NAMESPACE_ACTIVITY_SCHEMA . 'request-friend' | +
Referenced by consume_feed().
+ +const ACTIVITY_TAG NAMESPACE_ACTIVITY_SCHEMA . 'tag' | +
Referenced by consume_feed(), remove_community_tag(), tag_deliver(), and tagger_content().
+ +const ACTIVITY_UNFOLLOW NAMESPACE_ACTIVITY_SCHEMA . 'stop-following' | +
Referenced by consume_feed(), and get_atom_elements().
+ +const ACTIVITY_UNFRIEND NAMESPACE_ACTIVITY_SCHEMA . 'remove-friend' | +
Referenced by consume_feed().
+ +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 consume_feed().
+ +const CONTACT_IS_FRIEND 3 | +
const CONTACT_IS_SHARING 2 | +
const DB_UPDATE_VERSION 1115 | +
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 | +
const DIRECTORY_MODE_PRIMARY 0x0001 | +
Referenced by 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 import_site(), poller_run(), sync_directories(), and zfinger_init().
+ +const DIRECTORY_MODE_STANDALONE 0x0100 | +
Referenced by directory_content(), directory_run(), dirprofile_init(), externals_run(), import_site(), import_xchan(), navbar_complete(), pubsites_content(), sync_directories(), update_suggestions(), and zfinger_init().
+ +const DIRECTORY_REALM 'RED_GLOBAL' | +
const DROPITEM_NORMAL 0 | +
Referenced by delete_item_lowlevel(), and drop_item().
+ +const DROPITEM_PHASE1 1 | +
Referenced by delete_imported_item(), delete_item_lowlevel(), and item_content().
+ +const DROPITEM_PHASE2 2 | +
Referenced by delete_item_lowlevel(), drop_item(), and expire_run().
+ +const EOL '<br />' . "\r\n" | +
Referenced by achievements_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), 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(), chanview_content(), 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_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(), home_content(), import_post(), import_xchan(), 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(), rmagic_post(), search_content(), settings_post(), setup_content(), sources_content(), sources_post(), subthread_content(), suggest_content(), tagrm_post(), thing_content(), thing_init(), user_allow(), 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 consume_feed(), and subthread_content().
+ +const GRAVITY_PARENT 0 | +
item weight for query ordering
+ +const HUBLOC_FLAGS_DELETED 0x1000 | +
Referenced by channel_remove(), import_xchan(), notifier_run(), post_post(), remove_all_xchan_resources(), zfinger_init(), and zot_get_hublocs().
+ +const HUBLOC_FLAGS_ORPHANCHECK 0x0004 | +
Referenced by import_xchan(), mark_orphan_hubsxchans(), and post_post().
+ +const HUBLOC_FLAGS_PRIMARY 0x0001 | +
Referenced by create_identity(), import_author_zot(), import_post(), import_xchan(), rconnect_url(), xchan_mail_query(), xchan_query(), zfinger_init(), zot_finger(), and zot_refresh().
+ +const HUBLOC_FLAGS_UNVERIFIED 0x0002 | +
Referenced by zfinger_init().
+ +const HUBLOC_NOTUSED 0x0000 | +
const HUBLOC_OFFLINE 0x0008 | +
Referenced by import_xchan(), mark_orphan_hubsxchans(), and post_post().
+ +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 | +
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(), and item_store().
+ +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 editpost_content(), editwebpage_content(), encode_item(), get_item_elements(), item_post(), item_store(), item_store_update(), post_activity_item(), tag_deliver(), and unobscure().
+ +const ITEM_ORIGIN 0x0001 | +
Item Flags
+ +Referenced by 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(), 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_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(), 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(), display_content(), format_notification(), item_post(), item_store(), item_store_update(), items_fetch(), mood_init(), network_content(), and ping_init().
+ +const ITEM_UPLINK 0x0008 | +
Referenced by externals_run(), item_store(), notifier_run(), 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(), photo_upload(), photos_create_item(), and ping_init().
+ +const ITEM_WALL 0x0020 | +
Referenced by api_get_user(), channel_content(), drop_item(), event_store_item(), events_content(), externals_run(), first_post_date(), item_expire(), item_post(), item_store(), items_fetch(), like_content(), mood_init(), notification(), notifier_run(), photo_upload(), photos_create_item(), ping_init(), poke_init(), post_activity_item(), process_delivery(), profile_activity(), subthread_content(), tag_deliver(), tagger_content(), thing_init(), widget_tagcloud_wall(), and zot_feed().
+ +const ITEM_WEBPAGE 0x0040 | +
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 RedFile\__construct(), admin_page_logs(), build_sync_packet(), check_form_security_token_ForbiddenOnErr(), check_form_security_token_redirectOnErr(), RedDirectory\childExists(), detect_language(), dir_parse_query(), directory_content(), dirprofile_init(), encode_item(), fix_private_photos(), RedDirectory\getChild(), RedDirectory\getChildren(), 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(), onepoll_run(), openid_content(), parse_xml_string(), photos_post(), poco_load(), post_post(), public_recips(), RedChannelList(), RedCollectionData(), sync_directories(), tag_deliver(), tgroup_check(), update_directory_entry(), webfinger_dfrn(), 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 RedDirectory\__construct(), 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(), bookmark_add(), consume_feed(), conversation(), RedDirectory\createDirectory(), RedDirectory\createFile(), delete_imported_item(), deliver_run(), directory_content(), directory_run(), dirprofile_init(), expire_run(), externals_run(), fix_private_photos(), RedFile\get(), get_language_name(), Conversation\get_template_data(), RedDirectory\getDir(), RedFile\getName(), group_content(), guess_image_type(), import_author_rss(), 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(), local_dir_update(), FKOAuth1\loginUser(), magic_init(), mail_store(), mood_init(), new_contact(), notes_init(), notification(), notifier_run(), parse_url_content(), photo_upload(), photos_post(), poco_init(), poco_load(), poke_init(), post_post(), process_delivery(), process_profile_delivery(), profile_load(), RedFile\put(), RedFileData(), Item\remove_child(), scale_external_images(), enotify\send(), Conversation\set_mode(), RedFile\setName(), stream_perms_api_uids(), stream_perms_xchans(), 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 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 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(), 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(), and menu_post().
+ +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 get_atom_elements(), and webfinger_dfrn().
+ +const NAMESPACE_FEED 'http://schemas.google.com/g/2010#updates-from' | +
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' | +
Referenced by webfinger_dfrn().
+ +const NAMESPACE_POCO 'http://portablecontacts.net/spec/1.0' | +
const NAMESPACE_SALMON_ME 'http://salmon-protocol.org/ns/magic-env' | +
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_ZOT 'http://purl.org/zot' | +
various namespaces we may need to parse
+ +const NETWORK_DFRN 'dfrn' | +
Network and protocol family types
+ +Referenced by best_link_url(), consume_feed(), delegate_content(), get_birthdays(), network_to_name(), and terminate_friendship().
+ +const NETWORK_DIASPORA 'dspr' | +
Referenced by 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 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 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_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(), notification(), post_init(), profile_load(), public_recips(), RedFile\put(), RedChannelList(), stream_perms_api_uids(), stream_perms_xchans(), zfinger_init(), zot_import(), and zotfeed_init().
+ +const PAGE_SYSTEM 0x1000 | +
Referenced by create_identity(), create_sys_channel(), get_sys_channel(), is_sys_channel(), stream_perms_api_uids(), and zfinger_init().
+ +const PERMS_A_BOOKMARK 0x20000 | +
const PERMS_A_DELEGATE 0x00800 | +
Referenced by get_perms().
+ +const PERMS_A_REPUBLISH 0x10000 | +
Referenced by check_item_source(), and get_perms().
+ +const PERMS_AUTHED 0x0100 | +
Referenced by get_all_perms(), and perm_is_allowed().
+ +const PERMS_CONTACTS 0x0008 | +
Referenced by get_all_perms(), map_scope(), perm_is_allowed(), and public_recips().
+ +const PERMS_NETWORK 0x0002 | +
Referenced by display_content(), get_all_perms(), map_scope(), perm_is_allowed(), public_recips(), search_content(), 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(), 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 get_perms().
+ +const PERMS_R_PAGES 0x04000 | +
Referenced by get_perms().
+ +const PERMS_R_PHOTOS 0x00004 | +
Referenced by get_perms().
+ +const PERMS_R_PROFILE 0x00002 | +
Referenced by get_perms().
+ +const PERMS_R_STORAGE 0x01000 | +
Referenced by get_perms().
+ +const PERMS_R_STREAM 0x00001 | +
Permissions
+ +Referenced by follow_init(), get_perms(), 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(), perm_is_allowed(), public_recips(), and site_default_perms().
+ +const PERMS_W_CHAT 0x00400 | +
Referenced by get_perms().
+ +const PERMS_W_COMMENT 0x00080 | +
Referenced by can_comment_on_post(), get_perms(), and public_recips().
+ +const PERMS_W_MAIL 0x00100 | +
Referenced by acl_init(), get_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(), get_perms(), new_contact(), and public_recips().
+ +const PERMS_W_TAGWALL 0x00040 | +
Referenced by acl_init(), get_perms(), and item_post().
+ +const PERMS_W_WALL 0x00020 | +
Referenced by get_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 'Red Matrix' | +
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' | +
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 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 TERM_BOOKMARK 8 | +
Referenced by bookmarks_init(), decode_tags(), encode_item_terms(), Item\get_template_data(), and handle_tag().
+ +const TERM_CATEGORY 3 | +
Referenced by categories_widget(), channel_content(), decode_tags(), editpost_content(), encode_item_terms(), file_tag_file_query(), filerm_content(), format_categories(), 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(), 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(), encode_item_terms(), fetch_post_tags(), 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 | +
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 widget_savedsearch().
+ +const TERM_THING 7 | +
Referenced by decode_tags(), and thing_init().
+ +const TERM_UNKNOWN 0 | +
Tag/term types
+ +Referenced by conversation(), decode_tags(), encode_item_terms(), get_atom_elements(), 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 | +
const XCHAN_FLAGS_HIDDEN 0x0001 | +
Referenced by contact_block(), dirsearch_content(), import_xchan(), local_dir_update(), openid_content(), suggestion_query(), viewconnections_content(), and zfinger_init().
+ +const XCHAN_FLAGS_NORMAL 0x0000 | +
Referenced by create_identity().
+ +const XCHAN_FLAGS_ORPHAN 0x0002 | +
Referenced by connections_content(), contact_block(), dirsearch_content(), import_xchan(), mark_orphan_hubsxchans(), post_post(), 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().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
channel_init (&$a) | |
channel_content (&$a, $update=0, $load=false) | |
channel_content | +( | +& | +$a, | +
+ | + | + | $update = 0 , |
+
+ | + | + | $load = false |
+
+ | ) | ++ |
Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups
+ +Referenced by update_channel_content().
+ +channel_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
chanview_content (&$a) | |
chanview_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
chatsvc_init (&$a) | |
chatsvc_post (&$a) | |
chatsvc_content (&$a) | |
chatsvc_content | +( | +& | +$a | ) | ++ |
chatsvc_init | +( | +& | +$a | ) | ++ |
chatsvc_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for App, including all inherited members.
+![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct () | |
get_baseurl ($ssl=false) | |
set_baseurl ($url) | |
get_hostname () | |
set_hostname ($h) | |
set_path ($p) | |
get_path () | |
set_account ($acct) | |
get_account () | |
set_channel ($channel) | |
get_channel () | |
set_observer ($xchan) | |
get_observer () | |
set_perms ($perms) | |
get_perms () | |
get_apps () | |
set_apps ($arr) | |
set_groups ($g) | |
get_groups () | |
set_widget ($title, $html, $location= 'aside') | |
get_widgets ($location= '') | |
set_pager_total ($n) | |
set_pager_itemspage ($n) | |
build_pagehead () | |
register_template_engine ($class, $name= '') | |
template_engine ($name= '') | |
get_template_engine () | |
set_template_engine ($engine= 'smarty3') | |
get_template_ldelim ($engine= 'smarty3') | |
get_template_rdelim ($engine= 'smarty3') | |
head_set_icon ($icon) | |
head_get_icon () | |
+Public Attributes | |
$install = false | |
$account = null | |
$channel = null | |
$observer = null | |
$profile_uid = 0 | |
$poi = null | |
$layout = array() | |
$groups | |
$language | |
$module_loaded = false | |
$query_string | |
$config | |
$page | |
$profile | |
$user | |
$cid | |
$contact | |
$contacts | |
$content | |
$data = array() | |
$error = false | |
$cmd | |
$argv | |
$argc | |
$module | |
$pager | |
$strings | |
$hooks | |
$timezone | |
$interactive = true | |
$plugins | |
$identities | |
$css_sources = array() | |
$js_sources = array() | |
$theme_info = array() | |
$nav_sel | |
$category | |
$sourcename = '' | |
$videowidth = 425 | |
$videoheight = 350 | |
$force_max_items = 0 | |
$theme_thread_allow = true | |
$template_engines = array() | |
$template_engine_instance = array() | |
+Private Attributes | |
$perms = null | |
$widgets = array() | |
$widgetlist = null | |
$apps = array() | |
$theme | |
$ldelim | |
$rdelim | |
$scheme | |
$hostname | |
$baseurl | |
$path | |
$db | |
$curl_code | |
$curl_headers | |
$cached_profile_image | |
$cached_profile_picdate | |
class: App
+Our main application structure for the life of this page Primarily deals with the URL that got us here and tries to make some sense of it, and stores our page contents and config storage and anything else that might need to be passed around before we spit the page out.
+App::__construct | +( | +) | ++ |
Figure out if we are running at the top of a domain or in a sub-directory and adjust accordingly
+Break the URL path into C style argc/argv style arguments for our modules. Given "http://example.com/module/arg1/arg2", $this->argc will be 3 (integer) and $this->argv will contain: [0] => 'module' [1] => 'arg1' [2] => 'arg2'
+There will always be one argument. If provided a naked domain URL, $this->argv[0] is set to "home".
+See if there is any page number information, and initialise pagination
+Detect mobile devices
+register template engines
+ +App::build_pagehead | +( | +) | ++ |
App::get_account | +( | +) | ++ |
App::get_apps | +( | +) | ++ |
App::get_baseurl | +( | ++ | $ssl = false | ) | ++ |
Referenced by build_pagehead().
+ +App::get_channel | +( | +) | ++ |
App::get_groups | +( | +) | ++ |
App::get_hostname | +( | +) | ++ |
App::get_observer | +( | +) | ++ |
App::get_path | +( | +) | ++ |
App::get_perms | +( | +) | ++ |
App::get_template_engine | +( | +) | ++ |
App::get_template_ldelim | +( | ++ | $engine = 'smarty3' | ) | ++ |
App::get_template_rdelim | +( | ++ | $engine = 'smarty3' | ) | ++ |
App::get_widgets | +( | ++ | $location = '' | ) | ++ |
App::head_get_icon | +( | +) | ++ |
Referenced by build_pagehead().
+ +App::head_set_icon | +( | ++ | $icon | ) | ++ |
Referenced by __construct().
+ +App::register_template_engine | +( | ++ | $class, | +
+ | + | + | $name = '' |
+
+ | ) | ++ |
register template engine class if $name is "", is used class static property $class::$name
+string | $class | |
string | $name |
Referenced by __construct().
+ +App::set_account | +( | ++ | $acct | ) | ++ |
App::set_apps | +( | ++ | $arr | ) | ++ |
App::set_baseurl | +( | ++ | $url | ) | ++ |
App::set_channel | +( | ++ | $channel | ) | ++ |
App::set_groups | +( | ++ | $g | ) | ++ |
App::set_hostname | +( | ++ | $h | ) | ++ |
App::set_observer | +( | ++ | $xchan | ) | ++ |
App::set_pager_itemspage | +( | ++ | $n | ) | ++ |
App::set_pager_total | +( | ++ | $n | ) | ++ |
App::set_path | +( | ++ | $p | ) | ++ |
App::set_perms | +( | ++ | $perms | ) | ++ |
App::set_template_engine | +( | ++ | $engine = 'smarty3' | ) | ++ |
App::set_widget | +( | ++ | $title, | +
+ | + | + | $html, | +
+ | + | + | $location = 'aside' |
+
+ | ) | ++ |
App::template_engine | +( | ++ | $name = '' | ) | ++ |
App::$account = null | +
Referenced by get_account().
+ +
+
|
+ +private | +
Referenced by get_apps().
+ +App::$argc | +
App::$argv | +
+
|
+ +private | +
Referenced by get_baseurl().
+ +
+
|
+ +private | +
+
|
+ +private | +
App::$category | +
App::$channel = null | +
Referenced by get_channel(), and set_channel().
+ +App::$cid | +
App::$cmd | +
App::$config | +
App::$contact | +
App::$contacts | +
App::$content | +
App::$css_sources = array() | +
+
|
+ +private | +
+
|
+ +private | +
App::$data = array() | +
+
|
+ +private | +
App::$error = false | +
App::$force_max_items = 0 | +
App::$groups | +
Referenced by get_groups().
+ +App::$hooks | +
+
|
+ +private | +
Referenced by get_hostname().
+ +App::$identities | +
App::$install = false | +
App::$interactive = true | +
App::$js_sources = array() | +
App::$language | +
App::$layout = array() | +
+
|
+ +private | +
App::$module | +
App::$module_loaded = false | +
App::$nav_sel | +
App::$observer = null | +
Referenced by get_observer().
+ +App::$page | +
App::$pager | +
+
|
+ +private | +
Referenced by __construct(), and get_path().
+ +
+
|
+ +private | +
Referenced by get_perms(), and set_perms().
+ +App::$plugins | +
App::$poi = null | +
App::$profile | +
App::$profile_uid = 0 | +
App::$query_string | +
+
|
+ +private | +
+
|
+ +private | +
Referenced by get_baseurl().
+ +App::$sourcename = '' | +
App::$strings | +
App::$template_engine_instance = array() | +
App::$template_engines = array() | +
+
|
+ +private | +
App::$theme_info = array() | +
App::$theme_thread_allow = true | +
App::$timezone | +
App::$user | +
App::$videoheight = 350 | +
App::$videowidth = 425 | +
+
|
+ +private | +
+
|
+ +private | +
Referenced by get_widgets().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for BaseObject, including all inherited members.
+$app | BaseObject | privatestatic |
get_app() | BaseObject | |
set_app($app) | BaseObject | static |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
get_app () | |
+Static Public Member Functions | |
static | set_app ($app) |
+Static Private Attributes | |
static | $app = null |
Basic object
+Contains what is usefull to any object
+BaseObject::get_app | +( | +) | ++ |
Get the app
+Same as get_app from boot.php
+ +Referenced by Item\__construct(), Item\get_comment_box(), Item\get_template_data(), and Conversation\set_mode().
+ +
+
|
+ +static | +
Set the app
+ +Referenced by App\__construct().
+ +
+
|
+ +staticprivate | +
Referenced by set_app().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Static Public Member Functions | |
static | get ($key) |
static | set ($key, $value) |
static | clear () |
cache api
+
+
|
+ +static | +
+
|
+ +static | +
Referenced by oembed_fetch_url().
+ +
+
|
+ +static | +
Referenced by oembed_fetch_url().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for Conversation, including all inherited members.
+$cipher | Conversation | private |
$commentable | Conversation | private |
$mode | Conversation | private |
$observer | Conversation | private |
$prepared_item | Conversation | private |
$preview | Conversation | private |
$profile_owner | Conversation | private |
$threads | Conversation | private |
$writable | Conversation | private |
__construct($mode, $preview, $prepared_item= '') | Conversation | |
add_thread($item) | Conversation | |
get_app() | BaseObject | |
get_cipher() | Conversation | |
get_mode() | Conversation | |
get_observer() | Conversation | |
get_profile_owner() | Conversation | |
get_template_data($alike, $dlike) | Conversation | |
get_thread($id) | Conversation | private |
is_commentable() | Conversation | |
is_preview() | Conversation | |
is_writable() | Conversation | |
set_app($app) | BaseObject | static |
set_mode($mode) | Conversation | private |
set_profile_owner($uid) | Conversation |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct ($mode, $preview, $prepared_item= '') | |
get_mode () | |
is_writable () | |
is_commentable () | |
is_preview () | |
get_profile_owner () | |
set_profile_owner ($uid) | |
get_observer () | |
get_cipher () | |
add_thread ($item) | |
get_template_data ($alike, $dlike) | |
![]() | |
get_app () | |
+Private Member Functions | |
set_mode ($mode) | |
get_thread ($id) | |
+Private Attributes | |
$threads = array() | |
$mode = null | |
$observer = null | |
$writable = false | |
$commentable = false | |
$profile_owner = 0 | |
$preview = false | |
$prepared_item = '' | |
$cipher = 'aes256' | |
+Additional Inherited Members | |
![]() | |
static | set_app ($app) |
A list of threads
+Conversation::__construct | +( | ++ | $mode, | +
+ | + | + | $preview, | +
+ | + | + | $prepared_item = '' |
+
+ | ) | ++ |
Conversation::add_thread | +( | ++ | $item | ) | ++ |
Add a thread to the conversation
+Returns: _ The inserted item on success _ false on failure
+ +Conversation::get_cipher | +( | +) | ++ |
Conversation::get_mode | +( | +) | ++ |
Get mode
+ +Referenced by set_mode(), and set_profile_owner().
+ +Conversation::get_observer | +( | +) | ++ |
Conversation::get_profile_owner | +( | +) | ++ |
Get profile owner
+ +Conversation::get_template_data | +( | ++ | $alike, | +
+ | + | + | $dlike | +
+ | ) | ++ |
Get data in a form usable by a conversation template
+We should find a way to avoid using those arguments (at least most of them)
+Returns: _ The data requested on success _ false on failure
+ +
+
|
+ +private | +
Get a thread based on its item id
+Returns: _ The found item on success _ false on failure
+ +Referenced by add_thread().
+ +Conversation::is_commentable | +( | +) | ++ |
Conversation::is_preview | +( | +) | ++ |
Check if page is a preview
+ +Conversation::is_writable | +( | +) | ++ |
Check if page is writable
+ +
+
|
+ +private | +
Set the mode we'll be displayed on
+ +Referenced by __construct(), and set_profile_owner().
+ +Conversation::set_profile_owner | +( | ++ | $uid | ) | ++ |
+
|
+ +private | +
Referenced by get_cipher().
+ +
+
|
+ +private | +
Referenced by is_commentable().
+ +
+
|
+ +private | +
Referenced by __construct(), get_mode(), set_mode(), and set_profile_owner().
+ +
+
|
+ +private | +
Referenced by add_thread(), get_observer(), and set_mode().
+ +
+
|
+ +private | +
Referenced by __construct(), and get_template_data().
+ +
+
|
+ +private | +
Referenced by __construct(), and is_preview().
+ +
+
|
+ +private | +
Referenced by get_profile_owner().
+ +
+
|
+ +private | +
+
|
+ +private | +
Referenced by is_writable().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for FKOAuth1, including all inherited members.
+__construct() | FKOAuth1 | |
loginUser($uid) | FKOAuth1 |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct () | |
loginUser ($uid) | |
FKOAuth1::__construct | +( | +) | ++ |
FKOAuth1::loginUser | +( | ++ | $uid | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for FKOAuthDataStore, including all inherited members.
+gen_token() | FKOAuthDataStore | |
lookup_consumer($consumer_key) | FKOAuthDataStore | |
lookup_nonce($consumer, $token, $nonce, $timestamp) | FKOAuthDataStore | |
lookup_token($consumer, $token_type, $token) | FKOAuthDataStore | |
new_access_token($token, $consumer, $verifier=null) | FKOAuthDataStore | |
new_request_token($consumer, $callback=null) | FKOAuthDataStore |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
gen_token () | |
lookup_consumer ($consumer_key) | |
lookup_token ($consumer, $token_type, $token) | |
lookup_nonce ($consumer, $token, $nonce, $timestamp) | |
new_request_token ($consumer, $callback=null) | |
new_access_token ($token, $consumer, $verifier=null) | |
FKOAuthDataStore::gen_token | +( | +) | ++ |
Referenced by new_access_token(), and new_request_token().
+ +FKOAuthDataStore::lookup_consumer | +( | ++ | $consumer_key | ) | ++ |
FKOAuthDataStore::lookup_nonce | +( | ++ | $consumer, | +
+ | + | + | $token, | +
+ | + | + | $nonce, | +
+ | + | + | $timestamp | +
+ | ) | ++ |
FKOAuthDataStore::lookup_token | +( | ++ | $consumer, | +
+ | + | + | $token_type, | +
+ | + | + | $token | +
+ | ) | ++ |
FKOAuthDataStore::new_access_token | +( | ++ | $token, | +
+ | + | + | $consumer, | +
+ | + | + | $verifier = null |
+
+ | ) | ++ |
FKOAuthDataStore::new_request_token | +( | ++ | $consumer, | +
+ | + | + | $callback = null |
+
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for FriendicaSmarty, including all inherited members.
+$filename | FriendicaSmarty | |
__construct() | FriendicaSmarty | |
parsed($template= '') | FriendicaSmarty |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct () | |
parsed ($template= '') | |
+Public Attributes | |
$filename | |
FriendicaSmarty::__construct | +( | +) | ++ |
FriendicaSmarty::parsed | +( | ++ | $template = '' | ) | ++ |
FriendicaSmarty::$filename | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for FriendicaSmartyEngine, including all inherited members.
+$name | FriendicaSmartyEngine | static |
__construct() | FriendicaSmartyEngine | |
get_intltext_template($file, $root='') | FriendicaSmartyEngine | |
get_markup_template($file, $root='') | FriendicaSmartyEngine | |
replace_macros($s, $r) | FriendicaSmartyEngine |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct () | |
replace_macros ($s, $r) | |
get_markup_template ($file, $root='') | |
get_intltext_template ($file, $root='') | |
+Static Public Attributes | |
static | $name ="smarty3" |
FriendicaSmartyEngine::__construct | +( | +) | ++ |
FriendicaSmartyEngine::get_intltext_template | +( | ++ | $file, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
FriendicaSmartyEngine::get_markup_template | +( | ++ | $file, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
Implements ITemplateEngine.
+ +FriendicaSmartyEngine::replace_macros | +( | ++ | $s, | +
+ | + | + | $r | +
+ | ) | ++ |
Implements ITemplateEngine.
+ +
+
|
+ +static | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for Item, including all inherited members.
+![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct ($data) | |
get_template_data ($alike, $dlike, $thread_level=1) | |
get_id () | |
is_threaded () | |
set_commentable ($val) | |
is_commentable () | |
add_child ($item) | |
get_child ($id) | |
get_children () | |
remove_child ($item) | |
set_conversation ($conv) | |
get_conversation () | |
get_data () | |
get_data_value ($name) | |
![]() | |
get_app () | |
+Public Attributes | |
$data = array() | |
+Protected Member Functions | |
set_parent ($item) | |
remove_parent () | |
get_parent () | |
check_wall_to_wall () | |
+Private Member Functions | |
get_template () | |
set_template ($t) | |
is_toplevel () | |
count_descendants () | |
get_comment_box_template () | |
get_comment_box ($indent) | |
get_redirect_url () | |
is_wall_to_wall () | |
get_owner_url () | |
get_owner_photo () | |
get_owner_name () | |
is_visiting () | |
+Private Attributes | |
$template = 'conv_item.tpl' | |
$comment_box_template = 'comment_item.tpl' | |
$commentable = false | |
$toplevel = false | |
$children = array() | |
$parent = null | |
$conversation = null | |
$redirect_url = null | |
$owner_url = '' | |
$owner_photo = '' | |
$owner_name = '' | |
$wall_to_wall = false | |
$threaded = false | |
$visiting = false | |
$channel = null | |
+Additional Inherited Members | |
![]() | |
static | set_app ($app) |
An item
+Item::__construct | +( | ++ | $data | ) | ++ |
Item::add_child | +( | ++ | $item | ) | ++ |
Add a child item
+ +Referenced by __construct().
+ +
+
|
+ +protected | +
Check if we are a wall to wall item and set the relevant properties
+ +Referenced by get_template_data().
+ +
+
|
+ +private | +
Count the total of our descendants
+ +Referenced by get_template_data().
+ +Item::get_child | +( | ++ | $id | ) | ++ |
Get a child by its ID
+ +Referenced by add_child().
+ +Item::get_children | +( | +) | ++ |
Get all our children
+ +Referenced by count_descendants(), get_child(), get_template_data(), remove_child(), set_commentable(), and set_conversation().
+ +
+
|
+ +private | +
Get the comment box
+Returns: _ The comment box string (empty if no comment box) _ false on failure
+ +Referenced by get_template_data().
+ +
+
|
+ +private | +
Get the template for the comment box
+ +Referenced by get_comment_box().
+ +Item::get_conversation | +( | +) | ++ |
get conversation
+ +Referenced by check_wall_to_wall(), get_comment_box(), and get_template_data().
+ +Item::get_data | +( | +) | ++ |
Item::get_data_value | +( | ++ | $name | ) | ++ |
Get a data value
+Returns: _ value on success _ false on failure
+ +Referenced by __construct(), check_wall_to_wall(), get_id(), and get_template_data().
+ +Item::get_id | +( | +) | ++ |
Referenced by __construct(), get_comment_box(), and get_template_data().
+ +
+
|
+ +private | +
Referenced by get_template_data().
+ +
+
|
+ +private | +
Referenced by get_template_data().
+ +
+
|
+ +private | +
Referenced by get_template_data().
+ +
+
|
+ +protected | +
Get parent item
+ +Referenced by set_parent().
+ +
+
|
+ +private | +
+
|
+ +private | +
Get template
+ +Referenced by get_template_data().
+ +Item::get_template_data | +( | ++ | $alike, | +
+ | + | + | $dlike, | +
+ | + | + | $thread_level = 1 |
+
+ | ) | ++ |
Get data in a form usable by a conversation template
+Returns: _ The data requested on success _ false on failure
+ +Item::is_commentable | +( | +) | ++ |
Referenced by get_comment_box(), and get_template_data().
+ +Item::is_threaded | +( | +) | ++ |
Referenced by get_comment_box(), and get_template_data().
+ +
+
|
+ +private | +
Check if this is a toplevel post
+ +Referenced by check_wall_to_wall(), get_comment_box(), and get_template_data().
+ +
+
|
+ +private | +
+
|
+ +private | +
Item::remove_child | +( | ++ | $item | ) | ++ |
Remove a child
+ +
+
|
+ +protected | +
Remove our parent
+ +Item::set_commentable | +( | ++ | $val | ) | ++ |
Item::set_conversation | +( | ++ | $conv | ) | ++ |
set conversation
+ +Referenced by set_parent().
+ +
+
|
+ +protected | +
Set our parent
+ +
+
|
+ +private | +
+
|
+ +private | +
+
|
+ +private | +
Referenced by count_descendants(), get_children(), and get_template_data().
+ +
+
|
+ +private | +
Referenced by get_comment_box_template().
+ +
+
|
+ +private | +
Referenced by is_commentable().
+ +
+
|
+ +private | +
Referenced by get_conversation().
+ +Item::$data = array() | +
Referenced by __construct(), and get_data().
+ +
+
|
+ +private | +
Referenced by get_owner_name().
+ +
+
|
+ +private | +
Referenced by get_owner_photo().
+ +
+
|
+ +private | +
Referenced by get_owner_url().
+ +
+
|
+ +private | +
Referenced by get_parent(), and set_parent().
+ +
+
|
+ +private | +
Referenced by get_redirect_url().
+ +
+
|
+ +private | +
Referenced by get_comment_box(), and get_template().
+ +
+
|
+ +private | +
Referenced by is_threaded().
+ +
+
|
+ +private | +
Referenced by is_toplevel().
+ +
+
|
+ +private | +
Referenced by is_visiting().
+ +
+
|
+ +private | +
Referenced by is_wall_to_wall().
+ +![]() |
+
+ The Red Project
+
+ |
+
This is the complete list of members for Photo, including all inherited members.
+$height | Photo | private |
$image | Photo | private |
$imagick | Photo | private |
$type | Photo | private |
$types | Photo | private |
$valid | Photo | private |
$width | Photo | private |
__construct($data, $type=null) | Photo | |
__destruct() | Photo | |
cropImage($max, $x, $y, $w, $h) | Photo | |
flip($horiz=true, $vert=false) | Photo | |
get_FormatsMap() | Photo | |
getExt() | Photo | |
getHeight() | Photo | |
getImage() | Photo | |
getType() | Photo | |
getWidth() | Photo | |
imageString() | Photo | |
is_imagick() | Photo | |
is_valid() | Photo | |
orient($filename) | Photo | |
rotate($degrees) | Photo | |
saveImage($path) | Photo | |
scaleImage($max) | Photo | |
scaleImageSquare($dim) | Photo | |
scaleImageUp($min) | Photo | |
store($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '') | Photo | |
supportedTypes() | Photo | static |
![]() |
+
+ The Red Project
+
+ |
+
+Public Member Functions | |
__construct ($data, $type=null) | |
__destruct () | |
is_imagick () | |
get_FormatsMap () | |
is_valid () | |
getWidth () | |
getHeight () | |
getImage () | |
getType () | |
getExt () | |
scaleImage ($max) | |
rotate ($degrees) | |
flip ($horiz=true, $vert=false) | |
orient ($filename) | |
scaleImageUp ($min) | |
scaleImageSquare ($dim) | |
cropImage ($max, $x, $y, $w, $h) | |
saveImage ($path) | |
imageString () | |
store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '') | |
+Static Public Member Functions | |
static | supportedTypes () |
+Private Attributes | |
$image | |
$imagick | |
$width | |
$height | |
$valid | |
$type | |
$types | |
Photo::__construct | +( | ++ | $data, | +
+ | + | + | $type = null |
+
+ | ) | ++ |
Setup the image to the format it will be saved to
+setup the compression here, so we'll do it only once
+From http://www.imagemagick.org/script/command-line-options.php#quality:
+'For the MNG and PNG image formats, the quality value sets the zlib compression level (quality / 10) and filter-type (quality % 10). The default PNG "quality" is 75, which means compression level 7 with adaptive PNG filtering, unless the image has a color map, in which case it means compression level 7 with no PNG filtering'
+ +Photo::__destruct | +( | +) | ++ |
Photo::cropImage | +( | ++ | $max, | +
+ | + | + | $x, | +
+ | + | + | $y, | +
+ | + | + | $w, | +
+ | + | + | $h | +
+ | ) | ++ |
We need to remove the canva, or the image is not resized to the crop: http://php.net/manual/en/imagick.cropimage.php#97232
+ +Photo::flip | +( | ++ | $horiz = true , |
+
+ | + | + | $vert = false |
+
+ | ) | ++ |
Referenced by orient().
+ +Photo::get_FormatsMap | +( | +) | ++ |
Maps Mime types to Imagick formats
+ +Referenced by __construct().
+ +Photo::getExt | +( | +) | ++ |
Photo::getHeight | +( | +) | ++ |
Referenced by store().
+ +Photo::getImage | +( | +) | ++ |
Photo::getType | +( | +) | ++ |
Referenced by __construct(), getExt(), imageString(), orient(), and store().
+ +Photo::getWidth | +( | +) | ++ |
Referenced by store().
+ +Photo::imageString | +( | +) | ++ |
Referenced by saveImage(), and store().
+ +Photo::is_imagick | +( | +) | ++ |
Referenced by __construct(), __destruct(), cropImage(), flip(), getHeight(), getImage(), getWidth(), imageString(), is_valid(), rotate(), scaleImage(), scaleImageSquare(), and scaleImageUp().
+ +Photo::is_valid | +( | +) | ++ |
Referenced by cropImage(), flip(), getExt(), getHeight(), getImage(), getType(), getWidth(), imageString(), orient(), rotate(), saveImage(), scaleImage(), scaleImageSquare(), and scaleImageUp().
+ +Photo::orient | +( | ++ | $filename | ) | ++ |
Photo::rotate | +( | ++ | $degrees | ) | ++ |
Referenced by orient().
+ +Photo::saveImage | +( | ++ | $path | ) | ++ |
Photo::scaleImage | +( | ++ | $max | ) | ++ |
If it is not animated, there will be only one iteration here, so don't bother checking
+ +Referenced by cropImage(), and scaleImageUp().
+ +Photo::scaleImageSquare | +( | ++ | $dim | ) | ++ |
Photo::scaleImageUp | +( | ++ | $min | ) | ++ |
Photo::store | +( | ++ | $aid, | +
+ | + | + | $uid, | +
+ | + | + | $xchan, | +
+ | + | + | $rid, | +
+ | + | + | $filename, | +
+ | + | + | $album, | +
+ | + | + | $scale, | +
+ | + | + | $profile = 0 , |
+
+ | + | + | $allow_cid = '' , |
+
+ | + | + | $allow_gid = '' , |
+
+ | + | + | $deny_cid = '' , |
+
+ | + | + | $deny_gid = '' |
+
+ | ) | ++ |
+
|
+ +static | +
supported mimetypes and corresponding file extensions
+Imagick::queryFormats won't help us a lot there... At least, not yet, other parts of friendica uses this array
+ +Referenced by __construct(), fbrowser_content(), guess_image_type(), photos_content(), and photos_post().
+ +
+
|
+ +private | +
Referenced by getHeight(), scaleImage(), and scaleImageUp().
+ +
+
|
+ +private | +
Referenced by getImage().
+ +
+
|
+ +private | +
Put back gd stuff, not everybody have Imagick
+ +Referenced by is_imagick().
+ +
+
|
+ +private | +
Referenced by __construct(), and getType().
+ +
+
|
+ +private | +
+
|
+ +private | +
Referenced by is_valid().
+ +
+
|
+ +private | +
Referenced by getWidth(), scaleImage(), and scaleImageUp().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for ProtoDriver, including all inherited members.
+acknowledge_permissions($permissions, $channel, $recipient) | ProtoDriver | protected |
change_permissions($permissions, $channel, $recipient) | ProtoDriver | protected |
collect($channel, $connection) | ProtoDriver | protected |
collect_private($channel, $connection) | ProtoDriver | protected |
deliver($item, $channel, $recipients) | ProtoDriver | protected |
deliver_private($item, $channel, $recipients) | ProtoDriver | protected |
discover($channel, $location) | ProtoDriver | protected |
![]() |
+
+ The Red Matrix
+
+ |
+
+Protected Member Functions | |
discover ($channel, $location) | |
deliver ($item, $channel, $recipients) | |
collect ($channel, $connection) | |
change_permissions ($permissions, $channel, $recipient) | |
acknowledge_permissions ($permissions, $channel, $recipient) | |
deliver_private ($item, $channel, $recipients) | |
collect_private ($channel, $connection) | |
+
|
+ +abstractprotected | +
+
|
+ +abstractprotected | +
+
|
+ +abstractprotected | +
+
|
+ +abstractprotected | +
+
|
+ +abstractprotected | +
+
|
+ +abstractprotected | +
+
|
+ +abstractprotected | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedBasicAuth, including all inherited members.
+$browser | RedBasicAuth | |
$channel_hash | RedBasicAuth | |
$channel_id | RedBasicAuth | |
$channel_name | RedBasicAuth | |
$observer | RedBasicAuth | |
$owner_id | RedBasicAuth | |
$owner_nick | RedBasicAuth | |
$timezone | RedBasicAuth | |
log() | RedBasicAuth | |
setBrowserPlugin($browser) | RedBasicAuth | |
setCurrentUser($name) | RedBasicAuth | |
validateUserPass($username, $password) | RedBasicAuth | protected |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
setCurrentUser ($name) | |
setBrowserPlugin ($browser) | |
log () | |
+Public Attributes | |
$channel_name = '' | |
$channel_id = 0 | |
$channel_hash = '' | |
$observer = '' | |
$browser | |
$owner_id | |
$owner_nick = '' | |
$timezone | |
+Protected Member Functions | |
validateUserPass ($username, $password) | |
RedBasicAuth::log | +( | +) | ++ |
RedBasicAuth::setBrowserPlugin | +( | ++ | $browser | ) | ++ |
RedBasicAuth::setCurrentUser | +( | ++ | $name | ) | ++ |
+
|
+ +protected | +
RedBasicAuth::$browser | +
Referenced by setBrowserPlugin().
+ +RedBasicAuth::$channel_hash = '' | +
RedBasicAuth::$channel_id = 0 | +
RedBasicAuth::$channel_name = '' | +
RedBasicAuth::$observer = '' | +
RedBasicAuth::$owner_id | +
RedBasicAuth::$owner_nick = '' | +
RedBasicAuth::$timezone | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedBrowser, including all inherited members.
+$auth | RedBrowser | private |
__construct(&$auth) | RedBrowser | |
findAttachHash($owner, $parentHash, $attachName) | RedBrowser | protected |
findAttachIdByHash($attachHash) | RedBrowser | protected |
generateDirectoryIndex($path) | RedBrowser | |
getAssetUrl($assetName) | RedBrowser | protected |
htmlActionsPanel(DAV\INode $node, &$output) | RedBrowser | |
set_writeable() | RedBrowser | |
userReadableSize($size) | RedBrowser |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct (&$auth) | |
set_writeable () | |
generateDirectoryIndex ($path) | |
userReadableSize ($size) | |
htmlActionsPanel (DAV\INode $node, &$output) | |
+Protected Member Functions | |
getAssetUrl ($assetName) | |
findAttachHash ($owner, $parentHash, $attachName) | |
findAttachIdByHash ($attachHash) | |
+Private Attributes | |
$auth | |
RedBrowser::__construct | +( | +& | +$auth | ) | ++ |
+
|
+ +protected | +
Referenced by generateDirectoryIndex().
+ +
+
|
+ +protected | +
Referenced by generateDirectoryIndex().
+ +RedBrowser::generateDirectoryIndex | +( | ++ | $path | ) | ++ |
Creates the directory listing for the given path.
+String | $path |
+
|
+ +protected | +
This method takes a path/name of an asset and turns it into url suiteable for http access.
+string | $assetName |
Referenced by generateDirectoryIndex().
+ +RedBrowser::htmlActionsPanel | +( | +DAV\INode | +$node, | +
+ | + | & | +$output | +
+ | ) | ++ |
RedBrowser::set_writeable | +( | +) | ++ |
RedBrowser::userReadableSize | +( | ++ | $size | ) | ++ |
Referenced by generateDirectoryIndex().
+ +
+
|
+ +private | +
Referenced by __construct().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedDirectory, including all inherited members.
+$auth | RedDirectory | private |
$ext_path | RedDirectory | private |
$folder_hash | RedDirectory | private |
$os_path | RedDirectory | private |
$red_path | RedDirectory | private |
$root_dir | RedDirectory | private |
__construct($ext_path, &$auth_plugin) | RedDirectory | |
childExists($name) | RedDirectory | |
createDirectory($name) | RedDirectory | |
createFile($name, $data=null) | RedDirectory | |
getChild($name) | RedDirectory | |
getChildren() | RedDirectory | |
getDir() | RedDirectory | |
getLastModified() | RedDirectory | |
getName() | RedDirectory | |
getQuotaInfo() | RedDirectory | |
log() | RedDirectory |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct ($ext_path, &$auth_plugin) | |
log () | |
getChildren () | |
getChild ($name) | |
getName () | |
createFile ($name, $data=null) | |
createDirectory ($name) | |
childExists ($name) | |
getDir () | |
getLastModified () | |
getQuotaInfo () | |
+Private Attributes | |
$red_path | |
$folder_hash | |
$ext_path | |
$root_dir = '' | |
$auth | |
$os_path = '' | |
RedDirectory::__construct | +( | ++ | $ext_path, | +
+ | + | & | +$auth_plugin | +
+ | ) | ++ |
RedDirectory::childExists | +( | ++ | $name | ) | ++ |
RedDirectory::createDirectory | +( | ++ | $name | ) | ++ |
RedDirectory::createFile | +( | ++ | $name, | +
+ | + | + | $data = null |
+
+ | ) | ++ |
RedDirectory::getChild | +( | ++ | $name | ) | ++ |
RedDirectory::getChildren | +( | +) | ++ |
RedDirectory::getDir | +( | +) | ++ |
Referenced by __construct().
+ +RedDirectory::getLastModified | +( | +) | ++ |
RedDirectory::getName | +( | +) | ++ |
RedDirectory::getQuotaInfo | +( | +) | ++ |
RedDirectory::log | +( | +) | ++ |
Referenced by getChildren().
+ +
+
|
+ +private | +
+
|
+ +private | +
Referenced by __construct(), and getDir().
+ +
+
|
+ +private | +
+
|
+ +private | +
Referenced by createFile(), and getDir().
+ +
+
|
+ +private | +
+
|
+ +private | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedFile, including all inherited members.
+$auth | RedFile | private |
$data | RedFile | private |
$name | RedFile | private |
__construct($name, $data, &$auth) | RedFile | |
delete() | RedFile | |
get() | RedFile | |
getContentType() | RedFile | |
getETag() | RedFile | |
getLastModified() | RedFile | |
getName() | RedFile | |
getSize() | RedFile | |
put($data) | RedFile | |
setName($newName) | RedFile |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct ($name, $data, &$auth) | |
getName () | |
setName ($newName) | |
put ($data) | |
get () | |
getETag () | |
getContentType () | |
getSize () | |
getLastModified () | |
delete () | |
+Private Attributes | |
$data | |
$auth | |
$name | |
RedFile::__construct | +( | ++ | $name, | +
+ | + | + | $data, | +
+ | + | & | +$auth | +
+ | ) | ++ |
RedFile::delete | +( | +) | ++ |
RedFile::get | +( | +) | ++ |
RedFile::getContentType | +( | +) | ++ |
RedFile::getETag | +( | +) | ++ |
RedFile::getLastModified | +( | +) | ++ |
RedFile::getName | +( | +) | ++ |
RedFile::getSize | +( | +) | ++ |
RedFile::put | +( | ++ | $data | ) | ++ |
RedFile::setName | +( | ++ | $newName | ) | ++ |
+
|
+ +private | +
Referenced by __construct().
+ +
+
|
+ +private | +
Referenced by __construct(), and put().
+ +
+
|
+ +private | +
Referenced by __construct().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
__construct ($attach) | |
delete () | |
getName () | |
setName ($newName) | |
getLastModified () | |
+Private Attributes | |
$attach | |
RedInode::__construct | +( | ++ | $attach | ) | ++ |
RedInode::delete | +( | +) | ++ |
Since I don't believe this is documented elsewhere - ATTACH_FLAG_OS means that the file contents are stored in the OS rather than in the DB - as is the case for attachments. Exactly how they are stored (what path and filename) are still TBD. We will probably not be using the original filename but instead the attachment 'hash' as this will prevent folks from uploading PHP code onto misconfigured servers and executing it. It's easy to misconfigure servers because we can provide a rule for Apache, but folks using nginx will then be susceptible. Then there are those who don't understand these kinds of exploits and don't have any idea allowing uploaded PHP files to be executed by the server could be a problem. We also don't have any idea what executable types are served on their system - like .py, .pyc, .pl, .sh .cgi, .exe, .bat, .net, whatever.
+ +RedInode::getLastModified | +( | +) | ++ |
RedInode::getName | +( | +) | ++ |
RedInode::setName | +( | ++ | $newName | ) | ++ |
+
|
+ +private | +
Referenced by __construct().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for Template, including all inherited members.
+$d | Template | |
$debug | Template | |
$done | Template | |
$lang | Template | |
$name | Template | static |
$nodes | Template | |
$r | Template | |
$replace | Template | |
$search | Template | |
$stack | Template | |
_build_nodes($s) | Template | private |
_get_var($name, $retNoKey=false) | Template | private |
_pop_stack() | Template | private |
_preg_error() | Template | private |
_push_stack() | Template | private |
_replcb($m) | Template | private |
_replcb_debug($args) | Template | private |
_replcb_for($args) | Template | private |
_replcb_if($args) | Template | private |
_replcb_inc($args) | Template | private |
_replcb_node($m) | Template | private |
get_markup_template($file, $root='') | Template | |
replace($s, $r) | Template | private |
replace_macros($s, $r) | Template | |
var_replace($s) | Template | private |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
replace_macros ($s, $r) | |
get_markup_template ($file, $root='') | |
+Public Attributes | |
$r | |
$search | |
$replace | |
$stack = array() | |
$nodes = array() | |
$done = false | |
$d = false | |
$lang = null | |
$debug =false | |
+Static Public Attributes | |
static | $name ="internal" |
+Private Member Functions | |
_preg_error () | |
_push_stack () | |
_pop_stack () | |
_get_var ($name, $retNoKey=false) | |
_replcb_if ($args) | |
_replcb_for ($args) | |
_replcb_inc ($args) | |
_replcb_debug ($args) | |
_replcb_node ($m) | |
_replcb ($m) | |
_build_nodes ($s) | |
var_replace ($s) | |
replace ($s, $r) | |
+
|
+ +private | +
Referenced by replace_macros().
+ +
+
|
+ +private | +
Referenced by _replcb_debug(), _replcb_for(), _replcb_if(), _replcb_inc(), and var_replace().
+ +
+
|
+ +private | +
Referenced by _replcb_for(), and _replcb_inc().
+ +
+
|
+ +private | +
Referenced by _build_nodes(), and replace_macros().
+ +
+
|
+ +private | +
Referenced by _replcb_for(), and _replcb_inc().
+ +
+
|
+ +private | +
+
|
+ +private | +
DEBUG node
+{{ debug $var [$var [$var [...]]] }}{{ enddebug }}
+replace node with
+var_dump($var, $var, ...);+
+
|
+ +private | +
FOR node
+{{ for < $var>=""> as $name }}...{{ endfor }} {{ for < $var>=""> as $key=>$name }}...{{ endfor }}
+ +
+
|
+ +private | +
IF node
+{{ if < $var>=""> }}...[{{ else }} ...] {{ endif }} {{ if < $var>="">==<val|$var> }}...[{{ else }} ...]{{ endif }} {{ if < $var>="">!=<val|$var> }}...[{{ else }} ...]{{ endif }}
+ +
+
|
+ +private | +
INC node
+{{ inc <templatefile> [with $var1=$var2] }}{{ endinc }}
+ +
+
|
+ +private | +
Template::get_markup_template | +( | ++ | $file, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
Implements ITemplateEngine.
+ +Referenced by _replcb_inc().
+ +
+
|
+ +private | +
Referenced by _replcb_for(), and _replcb_inc().
+ +Template::replace_macros | +( | ++ | $s, | +
+ | + | + | $r | +
+ | ) | ++ |
Implements ITemplateEngine.
+ +Referenced by replace().
+ +
+
|
+ +private | +
regexp: $ literal $ ([)? optional open square bracket ([a-zA-Z0-9-_]+.?)+ var name, followed by optional dot, repeated at least 1 time (?(1)]) if there was opened square bracket (subgrup 1), match close bracket
+ +Referenced by replace_macros().
+ +Template::$d = false | +
Template::$debug =false | +
Template::$done = false | +
Template::$lang = null | +
+
|
+ +static | +
Referenced by _get_var().
+ +Template::$nodes = array() | +
Template::$r | +
Referenced by _get_var(), _replcb_for(), _replcb_inc(), replace(), and replace_macros().
+ +Template::$replace | +
Template::$search | +
Template::$stack = array() | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for ZotDriver, including all inherited members.
+acknowledge_permissions($permissions, $channel, $recipient) | ZotDriver | protected |
change_permissions($permissions, $channel, $recipient) | ZotDriver | protected |
collect($channel, $connection) | ZotDriver | protected |
collect_private($channel, $connection) | ZotDriver | protected |
deliver($item, $channel, $recipients) | ZotDriver | protected |
deliver_private($item, $channel, $recipients) | ZotDriver | protected |
discover($channel, $location) | ZotDriver | protected |
![]() |
+
+ The Red Matrix
+
+ |
+
+Protected Member Functions | |
discover ($channel, $location) | |
deliver ($item, $channel, $recipients) | |
collect ($channel, $connection) | |
change_permissions ($permissions, $channel, $recipient) | |
acknowledge_permissions ($permissions, $channel, $recipient) | |
deliver_private ($item, $channel, $recipients) | |
collect_private ($channel, $connection) | |
![]() | |
discover ($channel, $location) | |
deliver ($item, $channel, $recipients) | |
collect ($channel, $connection) | |
change_permissions ($permissions, $channel, $recipient) | |
acknowledge_permissions ($permissions, $channel, $recipient) | |
deliver_private ($item, $channel, $recipients) | |
collect_private ($channel, $connection) | |
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
![]() |
+
+ The Red Project
+
+ |
+
![]() |
+
+ The Red Project
+
+ |
+
+Public Member Functions | |
__construct ($server, $user, $pass, $db, $install=false) | |
getdb () | |
q ($sql) | |
dbg ($dbg) | |
escape ($str) | |
__destruct () | |
+Public Attributes | |
$mysqli = true | |
$connected = false | |
$error = false | |
+Private Attributes | |
$debug = 0 | |
$db | |
MySQL database class
+For debugging, insert 'dbg(1);' anywhere in the program flow. dbg(0); will turn it off. Logging is performed at LOGGER_DATA level. When logging, all binary info is converted to text and html entities are escaped so that the debugging stream is safe to view within both terminals and web pages.
+dba::__construct | +( | ++ | $server, | +
+ | + | + | $user, | +
+ | + | + | $pass, | +
+ | + | + | $db, | +
+ | + | + | $install = false |
+
+ | ) | ++ |
dba::__destruct | +( | +) | ++ |
dba::dbg | +( | ++ | $dbg | ) | ++ |
dba::escape | +( | ++ | $str | ) | ++ |
dba::getdb | +( | +) | ++ |
dba::q | +( | ++ | $sql | ) | ++ |
If dbfail.out exists, we will write any failed calls directly to it, regardless of any logging that may or may nor be in effect. These usually indicate SQL syntax errors that need to be resolved.
+ +dba::$connected = false | +
+
|
+ +private | +
Referenced by __construct(), and getdb().
+ +
+
|
+ +private | +
dba::$error = false | +
Referenced by q().
+ +dba::$mysqli = true | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for dba_driver, including all inherited members.
+$connected | dba_driver | |
$db | dba_driver | protected |
$debug | dba_driver | protected |
$error | dba_driver | |
__construct($server, $port, $user, $pass, $db, $install=false) | dba_driver | |
__destruct() | dba_driver | |
close() | dba_driver | |
connect($server, $port, $user, $pass, $db) | dba_driver | |
dbg($dbg) | dba_driver | |
escape($str) | dba_driver | |
install($server, $user, $pass, $db) | dba_driver | |
q($sql) | dba_driver |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
connect ($server, $port, $user, $pass, $db) | |
q ($sql) | |
escape ($str) | |
close () | |
__construct ($server, $port, $user, $pass, $db, $install=false) | |
install ($server, $user, $pass, $db) | |
dbg ($dbg) | |
__destruct () | |
+Public Attributes | |
$connected = false | |
$error = false | |
+Protected Attributes | |
$debug = 0 | |
$db | |
dba_driver::__construct | +( | ++ | $server, | +
+ | + | + | $port, | +
+ | + | + | $user, | +
+ | + | + | $pass, | +
+ | + | + | $db, | +
+ | + | + | $install = false |
+
+ | ) | ++ |
dba_driver::__destruct | +( | +) | ++ |
+
|
+ +abstract | +
Referenced by __destruct().
+ +
+
|
+ +abstract | +
Referenced by __construct().
+ +dba_driver::dbg | +( | ++ | $dbg | ) | ++ |
+
|
+ +abstract | +
dba_driver::install | +( | ++ | $server, | +
+ | + | + | $user, | +
+ | + | + | $pass, | +
+ | + | + | $db | +
+ | ) | ++ |
Referenced by __construct().
+ +
+
|
+ +abstract | +
dba_driver::$connected = false | +
+
|
+ +protected | +
Referenced by __construct(), dba_mysqli\connect(), and dba_mysql\connect().
+ +
+
|
+ +protected | +
dba_driver::$error = false | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for dba_mysql, including all inherited members.
+$connected | dba_driver | |
$db | dba_driver | protected |
$debug | dba_driver | protected |
$error | dba_driver | |
__construct($server, $port, $user, $pass, $db, $install=false) | dba_driver | |
__destruct() | dba_driver | |
close() | dba_mysql | |
connect($server, $port, $user, $pass, $db) | dba_mysql | |
dbg($dbg) | dba_driver | |
escape($str) | dba_mysql | |
install($server, $user, $pass, $db) | dba_driver | |
q($sql) | dba_mysql |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
connect ($server, $port, $user, $pass, $db) | |
q ($sql) | |
escape ($str) | |
close () | |
![]() | |
connect ($server, $port, $user, $pass, $db) | |
q ($sql) | |
escape ($str) | |
close () | |
__construct ($server, $port, $user, $pass, $db, $install=false) | |
install ($server, $user, $pass, $db) | |
dbg ($dbg) | |
__destruct () | |
+Additional Inherited Members | |
![]() | |
$connected = false | |
$error = false | |
![]() | |
$debug = 0 | |
$db | |
dba_mysql::close | +( | +) | ++ |
dba_mysql::connect | +( | ++ | $server, | +
+ | + | + | $port, | +
+ | + | + | $user, | +
+ | + | + | $pass, | +
+ | + | + | $db | +
+ | ) | ++ |
dba_mysql::escape | +( | ++ | $str | ) | ++ |
dba_mysql::q | +( | ++ | $sql | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for dba_mysqli, including all inherited members.
+$connected | dba_driver | |
$db | dba_driver | protected |
$debug | dba_driver | protected |
$error | dba_driver | |
__construct($server, $port, $user, $pass, $db, $install=false) | dba_driver | |
__destruct() | dba_driver | |
close() | dba_mysqli | |
connect($server, $port, $user, $pass, $db) | dba_mysqli | |
dbg($dbg) | dba_driver | |
escape($str) | dba_mysqli | |
install($server, $user, $pass, $db) | dba_driver | |
q($sql) | dba_mysqli |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
connect ($server, $port, $user, $pass, $db) | |
q ($sql) | |
escape ($str) | |
close () | |
![]() | |
connect ($server, $port, $user, $pass, $db) | |
q ($sql) | |
escape ($str) | |
close () | |
__construct ($server, $port, $user, $pass, $db, $install=false) | |
install ($server, $user, $pass, $db) | |
dbg ($dbg) | |
__destruct () | |
+Additional Inherited Members | |
![]() | |
$connected = false | |
$error = false | |
![]() | |
$debug = 0 | |
$db | |
dba_mysqli::close | +( | +) | ++ |
dba_mysqli::connect | +( | ++ | $server, | +
+ | + | + | $port, | +
+ | + | + | $user, | +
+ | + | + | $pass, | +
+ | + | + | $db | +
+ | ) | ++ |
dba_mysqli::escape | +( | ++ | $str | ) | ++ |
dba_mysqli::q | +( | ++ | $sql | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Static Public Member Functions | |
static | send ($params) |
+
|
+ +static | +
Send a multipart/alternative message with Text and HTML versions
+fromName | name of the sender |
fromEmail | email fo the sender |
replyTo | replyTo address to direct responses |
toEmail | destination email address |
messageSubject | subject of the message |
htmlVersion | html version of the message |
textVersion | text only version of the message |
additionalMailHeader | additions to the smtp mail header |
Referenced by notification().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
|
| FKOAuthDataStore | photo_gd |
| |||
FriendicaSmarty | photo_imagick | ||||||
App | dba_driver | FriendicaSmartyEngine | ProtoDriver | ZotDriver | |||
| dba_mysql |
|
| ||||
dba_mysqli | |||||||
BaseObject |
| Item | RedBasicAuth | ||||
| ITemplateEngine | RedBrowser | |||||
enotify |
| RedDirectory | |||||
Cache |
| RedFile | |||||
Conversation | photo_driver |
| |||||
FKOAuth1 | |||||||
Template | |||||||
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for photo_driver, including all inherited members.
+![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
supportedTypes () | |
load ($data, $type) | |
destroy () | |
setDimensions () | |
getImage () | |
doScaleImage ($new_width, $new_height) | |
rotate ($degrees) | |
flip ($horiz=true, $vert=false) | |
cropImage ($max, $x, $y, $w, $h) | |
imageString () | |
__construct ($data, $type='') | |
__destruct () | |
is_valid () | |
getWidth () | |
getHeight () | |
saveImage ($path) | |
getType () | |
getExt () | |
scaleImage ($max) | |
scaleImageUp ($min) | |
scaleImageSquare ($dim) | |
orient ($filename) | |
save ($arr) | |
store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '') | |
+Protected Attributes | |
$image | |
$width | |
$height | |
$valid | |
$type | |
$types | |
photo_driver::__construct | +( | ++ | $data, | +
+ | + | + | $type = '' |
+
+ | ) | ++ |
photo_driver::__destruct | +( | +) | ++ |
+
|
+ +abstract | +
+
|
+ +abstract | +
Referenced by __destruct().
+ +
+
|
+ +abstract | +
Referenced by scaleImage(), scaleImageSquare(), and scaleImageUp().
+ +
+
|
+ +abstract | +
Referenced by orient().
+ +photo_driver::getExt | +( | +) | ++ |
+
|
+ +abstract | +
photo_driver::getType | +( | +) | ++ |
Referenced by getExt(), photo_gd\imageString(), photo_imagick\load(), orient(), save(), and store().
+ +
+
|
+ +abstract | +
Referenced by save(), saveImage(), and store().
+ +photo_driver::is_valid | +( | +) | ++ |
Referenced by __destruct(), photo_gd\cropImage(), photo_imagick\cropImage(), photo_gd\destroy(), photo_imagick\destroy(), photo_gd\flip(), photo_imagick\flip(), getExt(), getHeight(), photo_gd\getImage(), photo_imagick\getImage(), getType(), getWidth(), photo_gd\imageString(), photo_imagick\imageString(), orient(), photo_gd\rotate(), photo_imagick\rotate(), saveImage(), scaleImage(), scaleImageSquare(), and scaleImageUp().
+ +
+
|
+ +abstract | +
Referenced by __construct().
+ +photo_driver::orient | +( | ++ | $filename | ) | ++ |
This function is a bit unusual, because it is operating on a file, but you must first create an image from that file to initialise the type and check validity of the image.
+ +
+
|
+ +abstract | +
Referenced by orient().
+ +photo_driver::save | +( | ++ | $arr | ) | ++ |
photo_driver::saveImage | +( | ++ | $path | ) | ++ |
photo_driver::scaleImage | +( | ++ | $max | ) | ++ |
photo_driver::scaleImageSquare | +( | ++ | $dim | ) | ++ |
photo_driver::scaleImageUp | +( | ++ | $min | ) | ++ |
+
|
+ +abstract | +
photo_driver::store | +( | ++ | $aid, | +
+ | + | + | $uid, | +
+ | + | + | $xchan, | +
+ | + | + | $rid, | +
+ | + | + | $filename, | +
+ | + | + | $album, | +
+ | + | + | $scale, | +
+ | + | + | $profile = 0 , |
+
+ | + | + | $allow_cid = '' , |
+
+ | + | + | $allow_gid = '' , |
+
+ | + | + | $deny_cid = '' , |
+
+ | + | + | $deny_gid = '' |
+
+ | ) | ++ |
+
|
+ +abstract | +
Referenced by __construct().
+ +
+
|
+ +protected | +
Referenced by photo_gd\doScaleImage(), getHeight(), scaleImage(), and scaleImageUp().
+ +
+
|
+ +protected | +
Referenced by photo_gd\getImage(), and photo_imagick\getImage().
+ +
+
|
+ +protected | +
Referenced by __construct(), getType(), and photo_imagick\load().
+ +
+
|
+ +protected | +
+
|
+ +protected | +
Referenced by is_valid().
+ +
+
|
+ +protected | +
Referenced by photo_gd\doScaleImage(), getWidth(), scaleImage(), and scaleImageUp().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for photo_gd, including all inherited members.
+![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
supportedTypes () | |
load ($data, $type) | |
setDimensions () | |
destroy () | |
getImage () | |
doScaleImage ($dest_width, $dest_height) | |
rotate ($degrees) | |
flip ($horiz=true, $vert=false) | |
cropImage ($max, $x, $y, $w, $h) | |
imageString () | |
![]() | |
supportedTypes () | |
load ($data, $type) | |
destroy () | |
setDimensions () | |
getImage () | |
doScaleImage ($new_width, $new_height) | |
rotate ($degrees) | |
flip ($horiz=true, $vert=false) | |
cropImage ($max, $x, $y, $w, $h) | |
imageString () | |
__construct ($data, $type='') | |
__destruct () | |
is_valid () | |
getWidth () | |
getHeight () | |
saveImage ($path) | |
getType () | |
getExt () | |
scaleImage ($max) | |
scaleImageUp ($min) | |
scaleImageSquare ($dim) | |
orient ($filename) | |
save ($arr) | |
store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '') | |
+Additional Inherited Members | |
![]() | |
$image | |
$width | |
$height | |
$valid | |
$type | |
$types | |
photo_gd::cropImage | +( | ++ | $max, | +
+ | + | + | $x, | +
+ | + | + | $y, | +
+ | + | + | $w, | +
+ | + | + | $h | +
+ | ) | ++ |
photo_gd::destroy | +( | +) | ++ |
photo_gd::doScaleImage | +( | ++ | $dest_width, | +
+ | + | + | $dest_height | +
+ | ) | ++ |
photo_gd::flip | +( | ++ | $horiz = true , |
+
+ | + | + | $vert = false |
+
+ | ) | ++ |
photo_gd::getImage | +( | +) | ++ |
photo_gd::imageString | +( | +) | ++ |
photo_gd::load | +( | ++ | $data, | +
+ | + | + | $type | +
+ | ) | ++ |
photo_gd::rotate | +( | ++ | $degrees | ) | ++ |
photo_gd::setDimensions | +( | +) | ++ |
Referenced by cropImage(), doScaleImage(), flip(), load(), and rotate().
+ +photo_gd::supportedTypes | +( | +) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for photo_imagick, including all inherited members.
+![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
supportedTypes () | |
get_FormatsMap () | |
load ($data, $type) | |
destroy () | |
setDimensions () | |
getImage () | |
doScaleImage ($dest_width, $dest_height) | |
rotate ($degrees) | |
flip ($horiz=true, $vert=false) | |
cropImage ($max, $x, $y, $w, $h) | |
imageString () | |
![]() | |
supportedTypes () | |
load ($data, $type) | |
destroy () | |
setDimensions () | |
getImage () | |
doScaleImage ($new_width, $new_height) | |
rotate ($degrees) | |
flip ($horiz=true, $vert=false) | |
cropImage ($max, $x, $y, $w, $h) | |
imageString () | |
__construct ($data, $type='') | |
__destruct () | |
is_valid () | |
getWidth () | |
getHeight () | |
saveImage ($path) | |
getType () | |
getExt () | |
scaleImage ($max) | |
scaleImageUp ($min) | |
scaleImageSquare ($dim) | |
orient ($filename) | |
save ($arr) | |
store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '') | |
+Additional Inherited Members | |
![]() | |
$image | |
$width | |
$height | |
$valid | |
$type | |
$types | |
photo_imagick::cropImage | +( | ++ | $max, | +
+ | + | + | $x, | +
+ | + | + | $y, | +
+ | + | + | $w, | +
+ | + | + | $h | +
+ | ) | ++ |
We need to remove the canvas, or the image is not resized to the crop: http://php.net/manual/en/imagick.cropimage.php#97232
+ +photo_imagick::destroy | +( | +) | ++ |
photo_imagick::doScaleImage | +( | ++ | $dest_width, | +
+ | + | + | $dest_height | +
+ | ) | ++ |
If it is not animated, there will be only one iteration here, so don't bother checking
+ +Referenced by cropImage().
+ +photo_imagick::flip | +( | ++ | $horiz = true , |
+
+ | + | + | $vert = false |
+
+ | ) | ++ |
photo_imagick::get_FormatsMap | +( | +) | ++ |
Referenced by load().
+ +photo_imagick::getImage | +( | +) | ++ |
photo_imagick::imageString | +( | +) | ++ |
photo_imagick::load | +( | ++ | $data, | +
+ | + | + | $type | +
+ | ) | ++ |
Setup the image to the format it will be saved to
+setup the compression here, so we'll do it only once
+From http://www.imagemagick.org/script/command-line-options.php#quality:
+'For the MNG and PNG image formats, the quality value sets the zlib compression level (quality / 10) and filter-type (quality % 10). The default PNG "quality" is 75, which means compression level 7 with adaptive PNG filtering, unless the image has a color map, in which case it means compression level 7 with no PNG filtering'
+ +photo_imagick::rotate | +( | ++ | $degrees | ) | ++ |
photo_imagick::setDimensions | +( | +) | ++ |
Referenced by doScaleImage(), flip(), load(), and rotate().
+ +photo_imagick::supportedTypes | +( | +) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
cli_startup () | |
cli_startup | +( | +) | ++ |
Referenced by cli_suggest_run(), cronhooks_run(), deliver_run(), directory_run(), expire_run(), externals_run(), gprobe_run(), notifier_run(), onedirsync_run(), onepoll_run(), poller_run(), and queue_run().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
cli_suggest_run ($argv, $argc) | |
cli_suggest_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
pdl_selector ($uid, $current="") | |
comanche_parser (&$a, $s) | |
comanche_menu ($name, $class= '') | |
comanche_replace_region ($match) | |
comanche_get_channel_id () | |
comanche_block ($name) | |
comanche_webpage (&$a, $s) | |
comanche_widget ($name, $text) | |
comanche_region (&$a, $s) | |
register_page_template ($arr) | |
comanche_block | +( | ++ | $name | ) | ++ |
Referenced by comanche_region(), and profile_sidebar().
+ +comanche_get_channel_id | +( | +) | ++ |
comanche_get_channel_id() Returns the channel_id of the profile owner of the page, or the local_user if there is no profile owner. Otherwise returns 0
+ +Referenced by comanche_block(), comanche_menu(), and construct_page().
+ +comanche_menu | +( | ++ | $name, | +
+ | + | + | $class = '' |
+
+ | ) | ++ |
Referenced by comanche_region().
+ +comanche_parser | +( | +& | +$a, | +
+ | + | + | $s | +
+ | ) | ++ |
Referenced by construct_page(), and page_content().
+ +comanche_region | +( | +& | +$a, | +
+ | + | + | $s | +
+ | ) | ++ |
Referenced by comanche_parser().
+ +comanche_replace_region | +( | ++ | $match | ) | ++ |
comanche_webpage | +( | +& | +$a, | +
+ | + | + | $s | +
+ | ) | ++ |
Referenced by comanche_parser().
+ +comanche_widget | +( | ++ | $name, | +
+ | + | + | $text | +
+ | ) | ++ |
Referenced by comanche_region().
+ +pdl_selector | +( | ++ | $uid, | +
+ | + | + | $current = "" |
+
+ | ) | ++ |
register_page_template | +( | ++ | $arr | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
common_init (&$a) | |
common_content (&$a) | |
common_content | +( | +& | +$a | ) | ++ |
common_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
community_init (&$a) | |
community_content (&$a, $update=0) | |
community_content | +( | +& | +$a, | +
+ | + | + | $update = 0 |
+
+ | ) | ++ |
Referenced by update_community_content().
+ +community_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
connect_init (&$a) | |
connect_post (&$a) | |
connect_content (&$a) | |
connect_content | +( | +& | +$a | ) | ++ |
connect_init | +( | +& | +$a | ) | ++ |
connect_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
connections_init (&$a) | |
connections_post (&$a) | |
connections_clone (&$a) | |
connections_content (&$a) | |
connections_clone | +( | +& | +$a | ) | ++ |
Referenced by connections_post().
+ +connections_content | +( | +& | +$a | ) | ++ |
connections_init | +( | +& | +$a | ) | ++ |
connections_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
connedit_init (&$a) | |
connedit_post (&$a) | |
connedit_clone (&$a) | |
connedit_content (&$a) | |
connedit_clone | +( | +& | +$a | ) | ++ |
Referenced by connedit_content(), and connedit_post().
+ +connedit_content | +( | +& | +$a | ) | ++ |
connedit_init | +( | +& | +$a | ) | ++ |
connedit_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
contact_profile_assign ($current) | |
contact_reputation ($current) | |
contact_poll_interval ($current, $disabled=false) | |
network_to_name ($s) | |
contact_poll_interval | +( | ++ | $current, | +
+ | + | + | $disabled = false |
+
+ | ) | ++ |
Referenced by connedit_content().
+ +contact_profile_assign | +( | ++ | $current | ) | ++ |
Referenced by connedit_content(), and thing_content().
+ +contact_reputation | +( | ++ | $current | ) | ++ |
network_to_name | +( | ++ | $s | ) | ++ |
Referenced by connections_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
findpeople_widget () | |
fileas_widget ($baseurl, $selected= '') | |
categories_widget ($baseurl, $selected= '') | |
common_friends_visitor_widget ($profile_uid) | |
categories_widget | +( | ++ | $baseurl, | +
+ | + | + | $selected = '' |
+
+ | ) | ++ |
Referenced by widget_categories().
+ +common_friends_visitor_widget | +( | ++ | $profile_uid | ) | ++ |
Referenced by channel_content().
+ +fileas_widget | +( | ++ | $baseurl, | +
+ | + | + | $selected = '' |
+
+ | ) | ++ |
findpeople_widget | +( | +) | ++ |
Referenced by widget_findpeople().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
contactgroup_content (&$a) | |
contactgroup_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
item_extract_images ($body) | |
item_redir_and_replace_images ($body, $images, $cid) | |
localize_item (&$item) | |
count_descendants ($item) | |
visible_activity ($item) | |
conversation (&$a, $items, $mode, $update, $page_mode= 'traditional', $prepared_item= '') | |
best_link_url ($item) | |
item_photo_menu ($item) | |
like_puller ($a, $item, &$arr, $mode) | |
format_like ($cnt, $arr, $type, $id) | |
status_editor ($a, $x, $popup=false) | |
get_item_children ($arr, $parent) | |
sort_item_children ($items) | |
add_children_to_list ($children, &$arr) | |
conv_sort ($arr, $order) | |
sort_thr_created ($a, $b) | |
sort_thr_created_rev ($a, $b) | |
sort_thr_commented ($a, $b) | |
find_thread_parent_index ($arr, $x) | |
format_location ($item) | |
render_location_default ($item) | |
prepare_page ($item) | |
network_tabs () | |
profile_tabs ($a, $is_owner=False, $nickname=Null) | |
add_children_to_list | +( | ++ | $children, | +
+ | + | & | +$arr | +
+ | ) | ++ |
best_link_url | +( | ++ | $item | ) | ++ |
Referenced by conversation().
+ +conv_sort | +( | ++ | $arr, | +
+ | + | + | $order | +
+ | ) | ++ |
Referenced by channel_content(), display_content(), items_fetch(), network_content(), and zot_feed().
+ +conversation | +( | +& | +$a, | +
+ | + | + | $items, | +
+ | + | + | $mode, | +
+ | + | + | $update, | +
+ | + | + | $page_mode = 'traditional' , |
+
+ | + | + | $prepared_item = '' |
+
+ | ) | ++ |
"Render" a conversation or list of items for HTML display. There are two major forms of display:
+Referenced by channel_content(), display_content(), item_post(), network_content(), Item\remove_parent(), search_content(), and Item\set_conversation().
+ +count_descendants | +( | ++ | $item | ) | ++ |
Count the total of comments on this item and its desendants
+ +find_thread_parent_index | +( | ++ | $arr, | +
+ | + | + | $x | +
+ | ) | ++ |
format_like | +( | ++ | $cnt, | +
+ | + | + | $arr, | +
+ | + | + | $type, | +
+ | + | + | $id | +
+ | ) | ++ |
Referenced by Item\get_template_data().
+ +format_location | +( | ++ | $item | ) | ++ |
Referenced by conversation(), and Item\get_template_data().
+ +get_item_children | +( | ++ | $arr, | +
+ | + | + | $parent | +
+ | ) | ++ |
item_extract_images | +( | ++ | $body | ) | ++ |
item_photo_menu | +( | ++ | $item | ) | ++ |
Referenced by conversation(), and Item\get_template_data().
+ +item_redir_and_replace_images | +( | ++ | $body, | +
+ | + | + | $images, | +
+ | + | + | $cid | +
+ | ) | ++ |
like_puller | +( | ++ | $a, | +
+ | + | + | $item, | +
+ | + | & | +$arr, | +
+ | + | + | $mode | +
+ | ) | ++ |
Referenced by conversation().
+ +localize_item | +( | +& | +$item | ) | ++ |
Render actions localized
+ +Referenced by api_format_items(), conversation(), format_notification(), Item\get_template_data(), and notification().
+ +network_tabs | +( | +) | ++ |
Referenced by network_content().
+ +prepare_page | +( | ++ | $item | ) | ++ |
Referenced by block_content(), home_content(), page_content(), and widget_item().
+ +profile_tabs | +( | ++ | $a, | +
+ | + | + | $is_owner = False , |
+
+ | + | + | $nickname = Null |
+
+ | ) | ++ |
Referenced by bookmarks_content(), channel_content(), chat_content(), events_content(), RedBrowser\generateDirectoryIndex(), photos_content(), profile_content(), and webpages_content().
+ +render_location_default | +( | ++ | $item | ) | ++ |
sort_item_children | +( | ++ | $items | ) | ++ |
sort_thr_commented | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
sort_thr_created | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
sort_thr_created_rev | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
status_editor | +( | ++ | $a, | +
+ | + | + | $x, | +
+ | + | + | $popup = false |
+
+ | ) | ++ |
Referenced by blocks_content(), channel_content(), display_content(), layouts_content(), network_content(), rpost_content(), and webpages_content().
+ +visible_activity | +( | ++ | $item | ) | ++ |
Referenced by Item\__construct(), conversation(), count_descendants(), and notification().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
crepair_init (&$a) | |
crepair_post (&$a) | |
crepair_content (&$a) | |
crepair_content | +( | +& | +$a | ) | ++ |
crepair_init | +( | +& | +$a | ) | ++ |
crepair_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
cronhooks_run ($argv, $argc) | |
cronhooks_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
rsa_sign ($data, $key, $alg= 'sha256') | |
rsa_verify ($data, $sig, $key, $alg= 'sha256') | |
pkcs5_pad ($text, $blocksize) | |
pkcs5_unpad ($text) | |
AES256CBC_encrypt ($data, $key, $iv) | |
AES256CBC_decrypt ($data, $key, $iv) | |
crypto_encapsulate ($data, $pubkey, $alg='aes256cbc') | |
aes_encapsulate ($data, $pubkey) | |
crypto_unencapsulate ($data, $prvkey) | |
aes_unencapsulate ($data, $prvkey) | |
new_keypair ($bits) | |
AES256CBC_decrypt | +( | ++ | $data, | +
+ | + | + | $key, | +
+ | + | + | $iv | +
+ | ) | ++ |
Referenced by aes_unencapsulate().
+ +AES256CBC_encrypt | +( | ++ | $data, | +
+ | + | + | $key, | +
+ | + | + | $iv | +
+ | ) | ++ |
Referenced by aes_encapsulate().
+ +aes_encapsulate | +( | ++ | $data, | +
+ | + | + | $pubkey | +
+ | ) | ++ |
Referenced by crypto_encapsulate(), item_post(), post_activity_item(), and zfinger_init().
+ +aes_unencapsulate | +( | ++ | $data, | +
+ | + | + | $prvkey | +
+ | ) | ++ |
Referenced by crypto_unencapsulate().
+ +crypto_encapsulate | +( | ++ | $data, | +
+ | + | + | $pubkey, | +
+ | + | + | $alg = 'aes256cbc' |
+
+ | ) | ++ |
Referenced by get_item_elements(), get_mail_elements(), item_store(), item_store_update(), post_post(), send_message(), zot_build_packet(), and zot_fetch().
+ +crypto_unencapsulate | +( | ++ | $data, | +
+ | + | + | $prvkey | +
+ | ) | ++ |
Referenced by editpost_content(), editwebpage_content(), encode_item(), encode_mail(), mail_post(), new_contact(), post_post(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), probe_content(), tag_deliver(), unobscure(), zot_import(), and zot_refresh().
+ +new_keypair | +( | ++ | $bits | ) | ++ |
Referenced by create_account(), create_identity(), and create_sys_channel().
+ +pkcs5_pad | +( | ++ | $text, | +
+ | + | + | $blocksize | +
+ | ) | ++ |
Referenced by AES256CBC_encrypt().
+ +pkcs5_unpad | +( | ++ | $text | ) | ++ |
Referenced by AES256CBC_decrypt().
+ +rsa_sign | +( | ++ | $data, | +
+ | + | + | $key, | +
+ | + | + | $alg = 'sha256' |
+
+ | ) | ++ |
Referenced by create_identity(), fix_system_urls(), import_post(), item_post(), item_store(), item_store_update(), magic_init(), post_activity_item(), post_post(), zfinger_init(), zot_build_packet(), and zot_fetch().
+ +rsa_verify | +( | ++ | $data, | +
+ | + | + | $sig, | +
+ | + | + | $key, | +
+ | + | + | $alg = 'sha256' |
+
+ | ) | ++ |
Referenced by get_item_elements(), import_site(), import_xchan(), post_init(), post_post(), zfinger_init(), and zot_register_hub().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
timezone_cmp ($a, $b) | |
select_timezone ($current= 'America/Los_Angeles') | |
field_timezone ($name='timezone', $label='', $current= 'America/Los_Angeles', $help) | |
datetime_convert ($from= 'UTC', $to= 'UTC', $s= 'now', $fmt="Y-m-d H:i:s") | |
dob ($dob) | |
datesel_format ($f) | |
datesel ($f, $pre, $ymin, $ymax, $allow_blank, $y, $m, $d) | |
timesel ($pre, $h, $m) | |
relative_date ($posted_date, $format=null) | |
age ($dob, $owner_tz= '', $viewer_tz= '') | |
get_dim ($y, $m) | |
get_first_dim ($y, $m) | |
cal ($y=0, $m=0, $links=false, $class='') | |
z_birthday ($dob, $tz, $format="Y-m-d H:i:s") | |
update_birthdays () | |
age | +( | ++ | $dob, | +
+ | + | + | $owner_tz = '' , |
+
+ | + | + | $viewer_tz = '' |
+
+ | ) | ++ |
Referenced by advanced_profile(), directory_content(), dirprofile_init(), local_dir_update(), profiles_content(), and zfinger_init().
+ +cal | +( | ++ | $y = 0 , |
+
+ | + | + | $m = 0 , |
+
+ | + | + | $links = false , |
+
+ | + | + | $class = '' |
+
+ | ) | ++ |
Referenced by events_content().
+ +datesel | +( | ++ | $f, | +
+ | + | + | $pre, | +
+ | + | + | $ymin, | +
+ | + | + | $ymax, | +
+ | + | + | $allow_blank, | +
+ | + | + | $y, | +
+ | + | + | $m, | +
+ | + | + | $d | +
+ | ) | ++ |
Referenced by dob(), and events_content().
+ +datesel_format | +( | ++ | $f | ) | ++ |
Referenced by events_content(), and profiles_content().
+ +datetime_convert | +( | ++ | $from = 'UTC' , |
+
+ | + | + | $to = 'UTC' , |
+
+ | + | + | $s = 'now' , |
+
+ | + | + | $fmt = "Y-m-d H:i:s" |
+
+ | ) | ++ |
Referenced by abook_toggle_flag(), account_verify_password(), advanced_profile(), age(), api_account_rate_limit_status(), api_date(), api_rss_extra(), atom_entry(), attach_mkdir(), attach_store(), authenticate_success(), build_sync_packet(), cal(), channel_content(), channel_remove(), chat_message(), chatroom_create(), chatroom_enter(), chatsvc_content(), chatsvc_post(), Cache\clear(), consume_feed(), conversation(), create_account(), create_identity(), RedDirectory\createFile(), cronhooks_run(), delete_item_lowlevel(), deliver_run(), directory_run(), dirsearch_content(), dlogger(), dob(), editpost_content(), ev_compare(), event_store_event(), events_content(), events_post(), externals_run(), first_post_date(), fix_system_urls(), format_event_diaspora(), format_event_html(), fsuggest_post(), RedBrowser\generateDirectoryIndex(), get_atom_elements(), get_birthdays(), get_events(), get_feed_for(), get_first_dim(), get_item_elements(), get_mail_elements(), get_profile_elements(), get_public_feed(), Item\get_template_data(), RedDirectory\getLastModified(), RedFile\getLastModified(), import_author_rss(), import_directory_profile(), import_post(), import_site(), import_xchan(), invite_post(), item_post(), item_store(), item_store_update(), items_fetch(), like_content(), list_post_dates(), logger(), magic_init(), mail_content(), mail_post(), mail_store(), message_content(), network_content(), new_contact(), notification(), notifier_run(), onepoll_run(), openid_content(), pagelist_widget(), photo_upload(), photos_post(), ping_init(), poco_load(), poller_run(), post_post(), posted_dates(), profile_photo_post(), profiles_content(), profiles_post(), prune_hub_reinstalls(), RedFile\put(), dba_mysql\q(), dba_mysqli\q(), queue_run(), relative_date(), photo_driver\save(), send_message(), send_reg_approval_email(), Cache\set(), settings_post(), photo_driver\store(), sync_directories(), tag_deliver(), update_birthdays(), update_directory_entry(), update_modtime(), update_queue_time(), webpages_content(), z_birthday(), zot_feed(), zot_process_response(), zot_refresh(), and zotfeed_init().
+ +dob | +( | ++ | $dob | ) | ++ |
Referenced by profiles_content().
+ +field_timezone | +( | ++ | $name = 'timezone' , |
+
+ | + | + | $label = '' , |
+
+ | + | + | $current = 'America/Los_Angeles' , |
+
+ | + | + | $help | +
+ | ) | ++ |
Referenced by setup_content().
+ +get_dim | +( | ++ | $y, | +
+ | + | + | $m | +
+ | ) | ++ |
Referenced by cal(), events_content(), list_post_dates(), and posted_dates().
+ +get_first_dim | +( | ++ | $y, | +
+ | + | + | $m | +
+ | ) | ++ |
Referenced by cal().
+ +relative_date | +( | ++ | $posted_date, | +
+ | + | + | $format = null |
+
+ | ) | ++ |
Referenced by advanced_profile(), connedit_content(), conversation(), format_notification(), Item\get_template_data(), notifications_content(), notify_content(), and ping_init().
+ +select_timezone | +( | ++ | $current = 'America/Los_Angeles' | ) | ++ |
Referenced by field_timezone().
+ +timesel | +( | ++ | $pre, | +
+ | + | + | $h, | +
+ | + | + | $m | +
+ | ) | ++ |
Referenced by events_content().
+ +timezone_cmp | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
update_birthdays | +( | +) | ++ |
Create a birthday event for any connections with a birthday in the next 1-2 weeks. Update the year so that we don't create another event until next year.
+ +Referenced by poller_run().
+ +z_birthday | +( | ++ | $dob, | +
+ | + | + | $tz, | +
+ | + | + | $format = "Y-m-d H:i:s" |
+
+ | ) | ++ |
Return the next birthday, converted from the owner's timezone to UTC. This makes it globally portable. If the provided birthday lacks a month and or day, return an empty string. A missing year is acceptable.
+ +Referenced by zfinger_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Project
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | dba_driver |
+Functions | |
dba_factory ($server, $port, $user, $pass, $db, $install=false) | |
printable ($s) | |
dbg ($state) | |
dbesc ($str) | |
q ($sql) | |
dbq ($sql) | |
dbesc_array_cb (&$item, $key) | |
dbesc_array (&$arr) | |
dba_factory | +( | ++ | $server, | +
+ | + | + | $port, | +
+ | + | + | $user, | +
+ | + | + | $pass, | +
+ | + | + | $db, | +
+ | + | + | $install = false |
+
+ | ) | ++ |
Referenced by cli_startup(), and setup_post().
+ +dbesc | +( | ++ | $str | ) | ++ |
Referenced by abook_toggle_flag(), account_verify_password(), achievements_content(), acl_init(), add_source_route(), admin_page_users(), advanced_profile(), allowed_public_recips(), api_direct_messages_new(), api_get_user(), api_status_show(), api_statuses_destroy(), api_statuses_mentions(), api_user(), api_users_show(), app_destroy(), app_installed(), app_store(), app_update(), appman_content(), attach_by_hash(), attach_by_hash_nodata(), attach_change_permissions(), attach_count_files(), attach_delete(), attach_list_files(), attach_mkdir(), attach_store(), authenticate_success(), block_content(), blocks_content(), bookmark_add(), bookmarks_init(), build_sync_packet(), call_hooks(), categories_widget(), change_channel(), channel_content(), channel_remove(), channelx_by_hash(), channelx_by_n(), channelx_by_nick(), chanview_content(), chat_message(), chat_post(), chatroom_create(), chatroom_destroy(), chatroom_enter(), chatroom_leave(), chatsvc_content(), chatsvc_post(), check_account_email(), check_account_invite(), check_item_source(), check_webbie(), Cache\clear(), comanche_block(), common_friends(), connect_init(), connect_post(), connections_content(), connections_post(), connedit_post(), consume_feed(), contact_remove(), contactgroup_content(), count_common_friends(), create_account(), create_identity(), RedDirectory\createFile(), dbesc_array_cb(), del_config(), del_pconfig(), del_xconfig(), delegate_content(), delete_imported_item(), delete_item_lowlevel(), deliver_run(), dir_query_build(), directory_run(), dirsearch_content(), display_content(), downgrade_accounts(), editlayout_content(), editpost_content(), editwebpage_content(), event_addtocal(), event_store_event(), event_store_item(), events_content(), events_post(), externals_run(), fbrowser_content(), feed_init(), fetch_post_tags(), file_tag_file_query(), filerm_content(), filestorage_content(), find_filename_by_hash(), find_folder_hash_by_attach_hash(), RedBrowser\findAttachHash(), RedBrowser\findAttachIdByHash(), fix_attached_photo_permissions(), fix_private_photos(), fix_system_urls(), fsuggest_post(), Cache\get(), RedFile\get(), get_all_perms(), get_birthdays(), get_channel_by_nick(), get_cloudpath(), get_config_from_storage(), get_events(), get_item_elements(), get_online_status(), get_things(), RedDirectory\getDir(), RedDirectory\getLastModified(), gprobe_run(), group_add(), group_add_member(), group_byname(), group_content(), group_post(), group_rec_byhash(), group_rmv(), group_rmv_member(), groups_containing(), handle_tag(), home_content(), import_author_rss(), import_author_zot(), import_directory_keywords(), import_directory_profile(), import_post(), import_profile_photo(), import_site(), import_xchan(), install_plugin(), invite_post(), item_add_cid(), item_message_id(), item_permissions_sql(), item_post(), item_remove_cid(), item_store(), item_store_update(), items_fetch(), layouts_content(), like_content(), load_config(), load_plugin(), load_xconfig(), local_dir_update(), lockview_content(), FKOAuthDataStore\lookup_consumer(), FKOAuthDataStore\lookup_nonce(), FKOAuthDataStore\lookup_token(), lostpass_content(), lostpass_post(), magic_init(), mail_store(), mark_orphan_hubsxchans(), match_openid(), member_of(), menu_add_item(), menu_create(), menu_delete(), menu_edit(), menu_edit_item(), menu_fetch(), menu_list(), msearch_post(), network_content(), FKOAuthDataStore\new_access_token(), new_contact(), new_cookie(), FKOAuthDataStore\new_request_token(), notification(), notifier_run(), notify_init(), oauth_get_client(), oembed_fetch_url(), onedirsync_run(), onepoll_run(), openid_content(), page_content(), perm_is_allowed(), permissions_sql(), photo_init(), photo_new_resource(), photo_upload(), photos_album_exists(), photos_album_get_db_idstr(), photos_album_rename(), photos_content(), photos_list_photos(), photos_post(), ping_init(), plugin_is_installed(), poco_init(), poco_load(), poller_run(), post_init(), post_post(), private_messages_drop(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), process_channel_sync_delivery(), process_delivery(), process_mail_delivery(), process_profile_delivery(), profile_init(), profile_load(), profile_photo_post(), profile_photo_set_profile_perms(), profiles_init(), profiles_post(), profperm_content(), prune_hub_reinstalls(), public_permissions_sql(), public_recips(), RedFile\put(), queue_run(), rconnect_url(), red_zrl_callback(), red_zrlify_img_callback(), RedCollectionData(), RedFileData(), ref_session_destroy(), ref_session_gc(), ref_session_read(), ref_session_write(), register_hook(), register_post(), remote_online_status(), remove_all_xchan_resources(), remove_community_tag(), remove_queue_item(), rmagic_init(), rmagic_post(), rpost_content(), photo_driver\save(), search_ac_init(), search_content(), send_message(), send_reg_approval_email(), send_status_notifications(), Cache\set(), set_config(), set_pconfig(), set_xconfig(), RedFile\setName(), settings_post(), siteinfo_init(), sources_content(), sources_post(), photo_driver\store(), store_item_tag(), stream_perms_xchans(), stringify_array_elms(), subthread_content(), suggest_init(), sync_directories(), tag_deliver(), tagger_content(), tagrm_post(), term_query(), tgroup_check(), thing_content(), thing_init(), tryzrlaudio(), tryzrlvideo(), uninstall_plugin(), unregister_hook(), update_birthdays(), update_directory_entry(), update_modtime(), update_queue_time(), update_remote_id(), user_allow(), user_deny(), RedBasicAuth\validateUserPass(), vcard_from_xchan(), vote_post(), webpages_content(), wfinger_init(), widget_bookmarkedchats(), widget_item(), widget_savedsearch(), xchan_content(), xchan_mail_query(), xchan_query(), xrd_init(), z_readdir(), zfinger_init(), zid_init(), zot_feed(), zot_finger(), zot_get_hublocs(), zot_gethub(), zot_process_response(), zot_refresh(), and zotfeed_init().
+ +dbesc_array | +( | +& | +$arr | ) | ++ |
Referenced by import_post(), item_store(), item_store_update(), mail_store(), and profiles_init().
+ +dbesc_array_cb | +( | +& | +$item, | +
+ | + | + | $key | +
+ | ) | ++ |
dbg | +( | ++ | $state | ) | ++ |
dbq | +( | ++ | $sql | ) | ++ |
Raw db query, no arguments
+ +Referenced by import_post(), item_store(), item_store_update(), mail_store(), process_channel_sync_delivery(), and profiles_init().
+ +printable | +( | ++ | $s | ) | ++ |
Referenced by dba_mysql\q(), and dba_mysqli\q().
+ +q | +( | ++ | $sql | ) | ++ |
This will happen occasionally trying to store the session data after abnormal program termination
+ +Referenced by abook_connections(), abook_self(), abook_toggle_flag(), account_remove(), account_total(), account_verify_password(), achievements_content(), acl_init(), add_source_route(), admin_content(), admin_page_channels(), admin_page_channels_post(), admin_page_dbsync(), admin_page_hubloc(), admin_page_hubloc_post(), admin_page_summary(), admin_page_users(), admin_page_users_post(), advanced_profile(), all_friends(), allowed_public_recips(), api_direct_messages_box(), api_direct_messages_new(), api_favorites(), api_ff_ids(), api_format_items(), api_get_user(), api_status_show(), api_statuses_destroy(), api_statuses_f(), api_statuses_home_timeline(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_repeat(), api_statuses_show(), api_user(), api_users_show(), app_destroy(), app_installed(), app_list(), app_store(), app_update(), appman_content(), attach_by_hash(), attach_by_hash_nodata(), attach_change_permissions(), attach_count_files(), attach_delete(), attach_init(), attach_list_files(), attach_mkdir(), attach_store(), authenticate_success(), block_content(), blocks_content(), bookmark_add(), bookmarks_init(), build_sync_packet(), call_hooks(), categories_widget(), change_channel(), chanman_remove_everything_from_network(), channel_content(), channel_remove(), channel_total(), channelx_by_hash(), channelx_by_n(), channelx_by_nick(), chanview_content(), chat_content(), chat_message(), chat_post(), chatroom_create(), chatroom_destroy(), chatroom_enter(), chatroom_leave(), chatroom_list(), chatsvc_content(), chatsvc_init(), chatsvc_post(), check_account_email(), check_account_invite(), check_config(), check_item_source(), check_webbie(), Cache\clear(), collect_recipients(), comanche_block(), common_friends(), common_friends_zcid(), common_init(), connect_init(), connect_post(), connections_content(), connections_post(), connedit_content(), connedit_init(), connedit_post(), consume_feed(), contact_block(), contact_profile_assign(), contact_remove(), contact_select(), contactgroup_content(), count_all_friends(), count_common_friends(), count_common_friends_zcid(), create_account(), create_identity(), RedDirectory\createDirectory(), RedDirectory\createFile(), current_theme(), del_config(), del_pconfig(), del_xconfig(), delegate_content(), delete_imported_item(), delete_item_lowlevel(), deliver_run(), dir_parse_query(), dir_tagadelic(), directory_content(), directory_run(), dirprofile_init(), dirsearch_content(), display_content(), downgrade_accounts(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), encode_item(), event_addtocal(), event_store_event(), event_store_item(), events_content(), expand_groups(), expire_run(), externals_run(), fbrowser_content(), feed_init(), fetch_post_tags(), fileas_widget(), filer_content(), filerm_content(), filestorage_content(), find_filename_by_hash(), find_folder_hash_by_attach_hash(), RedBrowser\findAttachHash(), RedBrowser\findAttachIdByHash(), first_post_date(), fix_attached_photo_permissions(), fix_private_photos(), fix_system_urls(), fsuggest_content(), fsuggest_post(), RedBrowser\generateDirectoryIndex(), Cache\get(), RedFile\get(), get_all_perms(), get_birthdays(), get_channel_by_nick(), get_cloudpath(), get_config_from_storage(), get_events(), get_item_elements(), get_online_status(), get_sys_channel(), get_things(), get_words(), RedDirectory\getDir(), RedDirectory\getLastModified(), RedDirectory\getQuotaInfo(), gprobe_run(), group_add(), group_add_member(), group_byname(), group_content(), group_get_members(), group_post(), group_rec_byhash(), group_rmv(), group_rmv_member(), group_select(), group_side(), groups_containing(), handle_tag(), home_content(), identity_basic_export(), identity_check_service_class(), identity_selector(), import_author_rss(), import_author_zot(), import_directory_keywords(), import_directory_profile(), import_post(), import_profile_photo(), import_site(), import_xchan(), install_plugin(), invite_post(), is_sys_channel(), item_add_cid(), item_check_service_class(), item_content(), item_expire(), item_message_id(), item_post(), item_remove_cid(), item_store(), item_store_update(), items_fetch(), layout_select(), layouts_content(), like_content(), list_public_sites(), load_config(), load_contact_links(), load_hooks(), load_pconfig(), load_plugin(), load_translation_table(), load_xconfig(), local_dir_update(), lockview_content(), FKOAuth1\loginUser(), FKOAuthDataStore\lookup_consumer(), FKOAuthDataStore\lookup_nonce(), FKOAuthDataStore\lookup_token(), lostpass_content(), lostpass_post(), magic_init(), mail_content(), mail_store(), manage_content(), mark_orphan_hubsxchans(), match_content(), match_openid(), member_of(), menu_add_item(), menu_create(), menu_del_item(), menu_delete(), menu_delete_id(), menu_edit(), menu_edit_item(), menu_fetch(), menu_fetch_id(), menu_list(), mimetype_select(), mini_group_select(), mitem_content(), mood_init(), msearch_post(), network_content(), FKOAuthDataStore\new_access_token(), new_contact(), new_cookie(), FKOAuthDataStore\new_request_token(), notification(), notifications_content(), notifications_post(), notifier_run(), notify_content(), notify_init(), oauth_get_client(), oembed_fetch_url(), onedirsync_run(), onepoll_run(), openid_content(), page_content(), pagelist_widget(), pdl_selector(), perm_is_allowed(), photo_init(), photo_new_resource(), photo_upload(), photos_album_exists(), photos_album_get_db_idstr(), photos_album_rename(), photos_albums_list(), photos_content(), photos_list_photos(), photos_post(), ping_init(), plugin_is_installed(), poco_init(), poco_load(), poke_content(), poke_init(), poller_run(), post_activity_item(), post_init(), post_post(), private_messages_drop(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), process_channel_sync_delivery(), process_delivery(), process_mail_delivery(), process_profile_delivery(), profile_init(), profile_load(), profile_photo_post(), profile_photo_set_profile_perms(), profile_sidebar(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), prune_hub_reinstalls(), public_recips(), RedFile\put(), queue_run(), random_profile(), rconnect_url(), red_zrl_callback(), red_zrlify_img_callback(), RedChannelList(), RedCollectionData(), RedFileData(), ref_session_destroy(), ref_session_gc(), ref_session_read(), ref_session_write(), register_content(), register_hook(), register_post(), reload_plugins(), remote_online_status(), remove_all_xchan_resources(), remove_community_tag(), remove_queue_item(), retain_item(), rmagic_init(), rmagic_post(), rpost_content(), photo_driver\save(), search_ac_init(), search_content(), send_message(), send_reg_approval_email(), send_status_notifications(), service_class_allows(), service_class_fetch(), Cache\set(), set_config(), set_default_login_identity(), set_pconfig(), set_xconfig(), RedFile\setName(), settings_post(), setup_content(), share_init(), siteinfo_content(), siteinfo_init(), sitelist_init(), sources_content(), sources_post(), starred_init(), photo_driver\store(), store_item_tag(), stream_perms_api_uids(), stream_perms_xchans(), subthread_content(), suggest_init(), suggestion_query(), sync_directories(), tag_deliver(), tagadelic(), tagger_content(), tagrm_content(), tagrm_post(), tgroup_check(), thing_content(), thing_init(), tryzrlaudio(), tryzrlvideo(), uninstall_plugin(), unregister_hook(), update_birthdays(), update_directory_entry(), update_modtime(), update_queue_time(), update_remote_id(), update_suggestions(), user_allow(), user_deny(), RedBasicAuth\validateUserPass(), vcard_from_xchan(), viewconnections_content(), viewsrc_content(), vote_content(), vote_init(), vote_post(), webpages_content(), wfinger_init(), widget_bookmarkedchats(), widget_filer(), widget_follow(), widget_item(), widget_savedsearch(), widget_settings_menu(), widget_suggestedchats(), xchan_content(), xchan_mail_query(), xchan_query(), xrd_init(), z_input_filter(), z_readdir(), zfinger_init(), zid_init(), zot_feed(), zot_finger(), zot_get_hublocs(), zot_gethub(), zot_import(), zot_process_response(), zot_refresh(), and zotfeed_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
delegate_content (&$a) | |
delegate_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
deliver_run ($argv, $argc) | |
deliver_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | config.php |
file | style.php |
file | theme.php |
file | theme_init.php |
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | darkness.php |
file | darknessleftaside.php |
file | darknessrightaside.php |
file | greenthumbnails.php |
file | minimalisticdarkness.php |
file | olddefault.php |
file | passion.php |
file | passionwide.php |
file | pine.php |
file | redbasic.php |
file | widedarkness.php |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | dba_driver.php |
file | dba_mysql.php |
file | dba_mysqli.php |
![]() |
+
+ The Red Matrix
+
+ |
+
+Directories | |
directory | fpostit |
directory | wp |
+Files | |
file | db_update.php |
file | docblox_errorchecker.php |
file | extract.php |
file | friendica-to-smarty-tpl.py |
file | php2po.php |
file | po2php.php |
file | tpldebug.php |
file | typo.php |
file | typohelper.php |
file | updatetpl.py |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | boxy.php |
file | BS-Default.php |
file | dark.php |
file | notred.php |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | config.php |
file | default.php |
file | style.php |
file | theme.php |
file | theme_init.php |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | choklet.php |
file | default.php |
file | full.php |
file | minimal.php |
file | mod_import.php |
file | none.php |
file | theme_init.php |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | default.php |
file | style.php |
file | theme.php |
![]() |
+
+ The Red Project
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Project
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
find_upstream_directory ($dirmode) | |
dir_sort_links () | |
dir_safe_mode () | |
sync_directories ($dirmode) | |
update_directory_entry ($ud) | |
local_dir_update ($uid, $force) | |
dir_safe_mode | +( | +) | ++ |
Referenced by widget_dirsafemode().
+ +dir_sort_links | +( | +) | ++ |
Referenced by widget_dirsort().
+ +find_upstream_directory | +( | ++ | $dirmode | ) | ++ |
No directory has yet been set. For most sites, pick one at random from our list of directory servers. However, if we're a directory server ourself, point at the local instance We will then set this value so this should only ever happen once. Ideally there will be an admin setting to change to a different directory server if you don't like our choice or if circumstances change.
+ +Referenced by directory_content(), directory_run(), dirprofile_init(), navbar_complete(), pubsites_content(), and update_suggestions().
+ +local_dir_update | +( | ++ | $uid, | +
+ | + | + | $force | +
+ | ) | ++ |
local_dir_update($uid,$force) push local channel updates to a local directory server
+ +Referenced by directory_run().
+ +sync_directories | +( | ++ | $dirmode | ) | ++ |
Referenced by poller_run().
+ +update_directory_entry | +( | ++ | $ud | ) | ++ |
Referenced by onedirsync_run().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | config.php |
file | default.php |
file | theme.php |
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | photo_driver.php |
file | photo_gd.php |
file | photo_imagick.php |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | config.php |
file | default.php |
file | theme.php |
file | theme_init.php |
![]() |
+
+ The Red Matrix
+
+ |
+
+Files | |
file | config.php |
file | functions.php |
file | style.php |
file | theme.php |
file | theme_init.php |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Directories | |
directory | dba |
directory | photo |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
dirfind_init (&$a) | |
dirfind_content (&$a) | |
dirfind_content | +( | +& | +$a | ) | ++ |
dirfind_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
dirprofile_init (&$a) | |
dirprofile_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
dirsearch_init (&$a) | |
dirsearch_content (&$a) | |
dir_query_build ($joiner, $field, $s) | |
dir_parse_query ($s) | |
list_public_sites () | |
dir_parse_query | +( | ++ | $s | ) | ++ |
Referenced by dirsearch_content().
+ +dir_query_build | +( | ++ | $joiner, | +
+ | + | + | $field, | +
+ | + | + | $s | +
+ | ) | ++ |
Referenced by dirsearch_content().
+ +dirsearch_content | +( | +& | +$a | ) | ++ |
dirsearch_init | +( | +& | +$a | ) | ++ |
list_public_sites | +( | +) | ++ |
Referenced by dirsearch_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
display_content (&$a, $update=0, $load=false) | |
display_content | +( | +& | +$a, | +
+ | + | + | $update = 0 , |
+
+ | + | + | $load = false |
+
+ | ) | ++ |
Referenced by update_display_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Namespaces | |
namespace | util |
+Functions | |
namesList ($fileset) | |
runs ($fileset) | |
reduce ($fileset, $ps) | |
+Variables | |
$dir ='..' | |
$dirstack =array() | |
$filelist =array() | |
while($dh=opendir($dir)) if(runs($filelist)) | $res =$filelist |
$i =0 | |
do | |
$needed =array() | |
while (count($res)!=0) | |
namesList | +( | ++ | $fileset | ) | ++ |
Referenced by runs().
+ +reduce | +( | ++ | $fileset, | +
+ | + | + | $ps | +
+ | ) | ++ |
runs | +( | ++ | $fileset | ) | ++ |
$dir ='..' | +
$dirstack =array() | +
$filelist =array() | +
$i =0 | +
Referenced by aes_encapsulate(), aes_unencapsulate(), alt_pager(), bookmarks_init(), check_config(), drop_item(), event_store_item(), fix_private_photos(), RedBrowser\generateDirectoryIndex(), get_bb_tag_pos(), is_a_date_arg(), item_content(), item_post(), item_redir_and_replace_images(), jindent(), load_database_rem(), node2bbcodesub(), notification(), paginate(), photos_post(), profile_activity(), reload_plugins(), remove_community_tag(), scale_external_images(), tag_deliver(), and zot_import().
+ +$needed =array() | +
$res =$filelist | +
Referenced by check_keys(), event_store_item(), fix_private_photos(), get_atom_elements(), get_bb_tag_pos(), invite_post(), lostpass_content(), lostpass_post(), photo_init(), photos_post(), probe_content(), profile_activity(), register_post(), enotify\send(), send_reg_approval_email(), send_verification_email(), user_allow(), and webfinger_content().
+ +while(count($res)!=0) | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
editblock_content (&$a) | |
editblock_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
editlayout_content (&$a) | |
editlayout_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
editpost_content (&$a) | |
editpost_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
editwebpage_content (&$a) | |
editwebpage_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | enotify |
+Functions | |
notification ($params) | |
notification | +( | ++ | $params | ) | ++ |
Referenced by item_post(), mail_store(), send_status_notifications(), tag_deliver(), and zot_refresh().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
format_event_html ($ev) | |
format_event_bbcode ($ev) | |
bbtovcal ($s) | |
bbtoevent ($s) | |
sort_by_date ($arr) | |
ev_compare ($a, $b) | |
event_store_event ($arr) | |
event_addtocal ($item_id, $uid) | |
event_store_item ($arr, $event) | |
bbtoevent | +( | ++ | $s | ) | ++ |
Referenced by bbcode(), bbtovcal(), consume_feed(), and event_addtocal().
+ +bbtovcal | +( | ++ | $s | ) | ++ |
ev_compare | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
event_addtocal | +( | ++ | $item_id, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by events_content().
+ +event_store_event | +( | ++ | $arr | ) | ++ |
Referenced by event_addtocal(), events_post(), and update_birthdays().
+ +event_store_item | +( | ++ | $arr, | +
+ | + | + | $event | +
+ | ) | ++ |
Referenced by events_post(), and update_birthdays().
+ +format_event_bbcode | +( | ++ | $ev | ) | ++ |
Referenced by event_store_item().
+ +format_event_html | +( | ++ | $ev | ) | ++ |
Referenced by bbcode(), bbtovcal(), and events_content().
+ +sort_by_date | +( | ++ | $arr | ) | ++ |
Referenced by events_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
events_post (&$a) | |
events_content (&$a) | |
events_content | +( | +& | +$a | ) | ++ |
events_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
expire_run ($argv, $argc) | |
expire_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
externals_run ($argv, $argc) | |
externals_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$arr = array() | |
$files = array('index.php','boot.php') | |
foreach($files as $file) | $s = '<?php' . "\n" |
foreach($arr as $a) | $zones = timezone_identifiers_list() |
$arr = array() | +
Referenced by _well_known_init(), activity_sanitise(), api_rss_extra(), api_statuses_user_timeline(), app_store(), app_update(), appman_post(), array_sanitise(), attach_mkdir(), attach_store(), bookmark_add(), chat_message(), chat_post(), chatroom_create(), chatroom_destroy(), chatsvc_post(), check_account_admin(), check_account_email(), check_account_invite(), check_account_password(), check_list_permissions(), check_webbie(), connect_content(), connections_post(), connedit_content(), connedit_post(), construct_page(), contact_block(), contact_select(), conversation(), create_account(), create_identity(), dbesc_array(), directory_content(), drop_item(), event_store_event(), event_store_item(), externals_run(), feature_enabled(), find_xchan_in_array(), format_like(), get_all_perms(), get_atom_elements(), get_cloudpath(), get_features(), get_item_elements(), get_mail_elements(), get_mood_verbs(), get_poke_verbs(), get_profile_elements(), Item\get_template_data(), get_terms_oftype(), App\get_widgets(), group_select(), hostxrd_init(), ids_to_querystr(), import_author_rss(), import_author_xchan(), import_directory_profile(), import_post(), import_site(), import_xchan(), item_getfeedattach(), item_store(), item_store_update(), items_fetch(), like_content(), like_puller(), load_database(), magic_init(), mail_store(), menu_add_item(), menu_create(), menu_edit(), menu_edit_item(), mood_init(), network_content(), new_channel_post(), new_contact(), obj_verbs(), openid_content(), parse_url_content(), pdl_selector(), perm_is_allowed(), photo_upload(), photos_album_get_db_idstr(), photos_create_item(), ping_init(), po2php_run(), poke_init(), post_activity_item(), post_init(), post_post(), proc_run(), process_channel_sync_delivery(), process_delivery(), process_mail_delivery(), process_profile_delivery(), profile_activity(), profile_sidebar(), profiles_content(), redbasic_form(), register_page_template(), register_post(), remove_community_tag(), replace_macros(), rmagic_post(), photo_driver\save(), send_reg_approval_email(), service_class_allows(), service_class_fetch(), App\set_apps(), settings_post(), sort_by_date(), stringify_array_elms(), subthread_content(), suggest_content(), tag_deliver(), tagger_content(), tagrm_content(), tagrm_post(), theme_attachments(), theme_content(), thing_init(), translate_system_apps(), validate_channelname(), wfinger_init(), widget_affinity(), widget_archive(), widget_clock(), widget_item(), widget_photo(), widget_suggestions(), widget_tagcloud_wall(), xchan_mail_query(), xchan_query(), xml2array(), xrd_init(), zfinger_init(), zid(), zid_init(), zot_fetch(), zot_gethub(), zot_import(), zot_process_response(), and zot_register_hub().
+ +$files = array('index.php','boot.php') | +
Referenced by admin_page_plugins(), admin_page_site(), admin_page_themes(), apw_form(), fbrowser_content(), RedBrowser\generateDirectoryIndex(), get_system_apps(), pdledit_content(), and redbasic_form().
+ +$s = '<?php' . "\n" | +
Referenced by Template\_build_nodes(), Template\_replcb_node(), admin_page_themes(), app_decode(), attribute_contains(), base64url_decode(), base64url_encode(), bb_tag_preg_replace(), bb_translate_video(), bbtoevent(), bbtovcal(), bookmarks_init(), chanlink_hash(), chanlink_url(), comanche_parser(), comanche_region(), comanche_webpage(), construct_page(), datetime_convert(), day_translate(), detect_language(), diaspora2bb(), diaspora_ol(), diaspora_ul(), dir_parse_query(), dir_query_build(), expand_acl(), file_tag_decode(), file_tag_encode(), file_tag_file_query(), fix_mce_lf(), fix_private_photos(), format_categories(), format_filer(), format_hashtags(), format_term_for_display(), get_bb_tag_pos(), get_intltext_template(), get_language_name(), get_markup_template(), get_tags(), html2bb_video(), info(), is_a_date_arg(), is_foreigner(), is_member(), json_decode_plus(), legal_webbie(), linkify(), magic_link(), mail_content(), network_to_name(), normalise_openid(), notice(), notifier_run(), oembed_iframe(), oembed_replacecb(), oexchange_content(), parse_xml_string(), photos_post(), poco_load(), prepare_body(), print_template(), printable(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), protect_sprintf(), purify_html(), qp(), random_string(), Template\replace(), replace_macros(), FriendicaSmartyEngine\replace_macros(), Template\replace_macros(), scale_external_images(), search(), searchbox(), siteinfo_content(), smilies(), sslify(), string_splitter(), strip_zids(), stripdcode_br_cb(), t(), template_escape(), template_unescape(), term_query(), theme_attachments(), unamp(), undo_post_tagging(), unxmlify(), Template\var_replace(), webfinger(), webfinger_dfrn(), x(), z_fetch_url(), z_input_filter(), z_post_url(), zfinger_init(), and zid().
+ +foreach ($arr as $a) $zones = timezone_identifiers_list() | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Namespaces | |
namespace | Friendica |
+Functions | |
fbrowser_content ($a) | |
fbrowser_content | +( | ++ | $a | ) | ++ |
App | $a |
![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
fcontact_store ($url, $name, $photo) | |
ffinder_store ($uid, $cid, $fid) | |
fcontact_store | +( | ++ | $url, | +
+ | + | + | $name, | +
+ | + | + | $photo | +
+ | ) | ++ |
ffinder_store | +( | ++ | $uid, | +
+ | + | + | $cid, | +
+ | + | + | $fid | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
feature_enabled ($uid, $feature) | |
get_features () | |
feature_enabled | +( | ++ | $uid, | +
+ | + | + | $feature | +
+ | ) | ++ |
Referenced by app_render(), apw_form(), categories_widget(), connedit_content(), conversation(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), Item\get_comment_box(), Item\get_template_data(), item_post(), mail_content(), mail_post(), nav(), parse_app_description(), profile_sidebar(), profiles_content(), redbasic_form(), rpost_content(), search(), search_content(), searchbox(), sources_content(), sources_post(), thing_content(), widget_affinity(), widget_archive(), widget_notes(), widget_savedsearch(), widget_settings_menu(), widget_suggestions(), and widget_tagcloud_wall().
+ +get_features | +( | +) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
feed_init (&$a) | |
feed_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
filer_content (&$a) | |
filer_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
filerm_content (&$a) | |
filerm_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
filestorage_post (&$a) | |
filestorage_content (&$a) | |
filestorage_content | +( | +& | +$a | ) | ++ |
filestorage_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
showForm ($error, $content) | |
+Variables | |
if(($_POST["friendika_acct_name"]!= +'')&&($_POST["friendika_password"]!= +'')) if(isset($_GET['title'])) +if(isset($_GET['text'])) if(isset($_GET['url'])) +if((isset($title))&&(isset($text))&&(isset($url))) | else |
showForm | +( | ++ | $error, | +
+ | + | + | $content | +
+ | ) | ++ |
if (isset($_POST['submit'])) else | +
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Namespaces | |
namespace | friendica-to-smarty-tpl |
+Functions | |
def | friendica-to-smarty-tpl.fToSmarty |
def | friendica-to-smarty-tpl.fix_element |
def | friendica-to-smarty-tpl.convert |
def | friendica-to-smarty-tpl.help |
+Variables | |
string | friendica-to-smarty-tpl.ldelim = '{{' |
string | friendica-to-smarty-tpl.rdelim = '}}' |
string | friendica-to-smarty-tpl.path = '' |
string | friendica-to-smarty-tpl.outpath = path+'smarty3/' |
tuple | friendica-to-smarty-tpl.files = os.listdir(path) |
friendica-to-smarty-tpl.php_tpl = True | |
tuple | friendica-to-smarty-tpl.filename = os.path.join(path,a_file) |
tuple | friendica-to-smarty-tpl.ext = a_file.split('.') |
tuple | friendica-to-smarty-tpl.f = open(filename, 'r') |
tuple | friendica-to-smarty-tpl.newfilename = os.path.join(outpath,a_file) |
tuple | friendica-to-smarty-tpl.outf = open(newfilename, 'w') |
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | FriendicaSmarty |
class | FriendicaSmartyEngine |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
fsuggest_post (&$a) | |
fsuggest_content (&$a) | |
fsuggest_content | +( | +& | +$a | ) | ++ |
fsuggest_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
splitFilename ($filename) | |
splitFilename | +( | ++ | $filename | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
gprobe_run ($argv, $argc) | |
gprobe_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
hcard_init (&$a) | |
hcard_aside (&$a) | |
hcard_aside | +( | +& | +$a | ) | ++ |
hcard_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
if(!function_exists('load_doc_file')) | help_content (&$a) |
preg_callback_help_include ($matches) | |
if (!function_exists('load_doc_file')) help_content | +( | +& | +$a | ) | ++ |
You can create local site resources in doc/Site.md and either link to doc/Home.md for the standard resources or use our include mechanism to include it on your local page.
+#include doc/Home.md;
+The syntax is somewhat strict.
+ +preg_callback_help_include | +( | ++ | $matches | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() | |
![]() ![]() | |
![]() ![]() ![]() |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
home_init (&$a) | |
home_content (&$a) | |
home_content | +( | +& | +$a | ) | ++ |
home_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
hostxrd_init (&$a) | |
hostxrd_init | +( | +& | +$a | ) | ++ |
Referenced by _well_known_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
node2bbcode (&$doc, $oldnode, $attributes, $startbb, $endbb) | |
node2bbcodesub (&$doc, $oldnode, $attributes, $startbb, $endbb) | |
deletenode (&$doc, $node) | |
html2bbcode ($message) | |
deletenode | +( | +& | +$doc, | +
+ | + | + | $node | +
+ | ) | ++ |
Referenced by html2bbcode(), and parseurl_getsiteinfo().
+ +html2bbcode | +( | ++ | $message | ) | ++ |
Referenced by api_statuses_mediap(), api_statuses_update(), diaspora2bb(), get_atom_elements(), and rpost_content().
+ +node2bbcode | +( | +& | +$doc, | +
+ | + | + | $oldnode, | +
+ | + | + | $attributes, | +
+ | + | + | $startbb, | +
+ | + | + | $endbb | +
+ | ) | ++ |
Referenced by html2bbcode(), and html2plain().
+ +node2bbcodesub | +( | +& | +$doc, | +
+ | + | + | $oldnode, | +
+ | + | + | $attributes, | +
+ | + | + | $startbb, | +
+ | + | + | $endbb | +
+ | ) | ++ |
Referenced by node2bbcode().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
breaklines ($line, $level, $wraplength=75) | |
quotelevel ($message, $wraplength=75) | |
collecturls ($message) | |
html2plain ($html, $wraplength=75, $compact=false) | |
breaklines | +( | ++ | $line, | +
+ | + | + | $level, | +
+ | + | + | $wraplength = 75 |
+
+ | ) | ++ |
Referenced by quotelevel().
+ +collecturls | +( | ++ | $message | ) | ++ |
Referenced by html2plain().
+ +html2plain | +( | ++ | $html, | +
+ | + | + | $wraplength = 75 , |
+
+ | + | + | $compact = false |
+
+ | ) | ++ |
Referenced by api_format_items(), api_format_messages(), api_status_show(), api_users_show(), check_item_source(), and email_send().
+ +quotelevel | +( | ++ | $message, | +
+ | + | + | $wraplength = 75 |
+
+ | ) | ++ |
Referenced by html2plain().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
prune_hub_reinstalls () | |
prune_hub_reinstalls | +( | +) | ++ |
Referenced by poller_run().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
identity_check_service_class ($account_id) | |
validate_channelname ($name) | |
create_sys_channel () | |
get_sys_channel () | |
is_sys_channel ($channel_id) | |
channel_total () | |
create_identity ($arr) | |
set_default_login_identity ($account_id, $channel_id, $force=true) | |
identity_basic_export ($channel_id) | |
profile_load (&$a, $nickname, $profile= '') | |
profile_create_sidebar (&$a, $connect=true) | |
profile_sidebar ($profile, $block=0, $show_connect=true) | |
get_birthdays () | |
get_events () | |
advanced_profile (&$a) | |
get_my_url () | |
get_my_address () | |
zid_init (&$a) | |
zid ($s, $address= '') | |
get_theme_uid () | |
get_default_profile_photo ($size=175) | |
is_foreigner ($s) | |
is_member ($s) | |
get_online_status ($nick) | |
remote_online_status ($webbie) | |
get_channel_by_nick ($nick) | |
identity_selector () | |
advanced_profile | +( | +& | +$a | ) | ++ |
Referenced by profile_content().
+ +channel_total | +( | +) | ++ |
() Return the total number of channels on this site. No filtering is performed except to check PAGE_REMOVED
+Referenced by zfinger_init().
+ +create_identity | +( | ++ | $arr | ) | ++ |
create_identity($arr) Create a new channel Also creates the related xchan, hubloc, profile, and "self" abook records, and an empty "Friends" group/collection for the new channel
+array | $arr | 'name' => full name of channel 'nickname' => "email/url-compliant" nickname 'account_id' => account_id to attach with this channel [other identity fields as desired] |
Referenced by create_sys_channel(), and new_channel_post().
+ +create_sys_channel | +( | +) | ++ |
create_sys_channel() Create a system channel - which has no account attached
+ +Referenced by check_config(), and what_next().
+ +get_birthdays | +( | +) | ++ |
get_channel_by_nick | +( | ++ | $nick | ) | ++ |
Referenced by editblock_content(), importelm_post(), wall_attach_post(), and wall_upload_post().
+ +get_default_profile_photo | +( | ++ | $size = 175 | ) | ++ |
get_default_profile_photo($size = 175) Retrieves the path of the default_profile_photo for this system with the specified size.
+int | $size | one of (175, 80, 48) |
Referenced by app_render(), app_store(), app_update(), avatar_img(), import_profile_photo(), openid_content(), parse_app_description(), and photo_init().
+ +get_events | +( | +) | ++ |
get_my_address | +( | +) | ++ |
Referenced by App\build_pagehead(), rmagic_init(), zid(), and zid_init().
+ +get_online_status | +( | ++ | $nick | ) | ++ |
Referenced by online_init(), and profile_load().
+ +get_sys_channel | +( | +) | ++ |
get_theme_uid | +( | +) | ++ |
identity_basic_export | +( | ++ | $channel_id | ) | ++ |
identity_basic_export($channel_id) Create an array representing the important channel information which would be necessary to create a nomadic identity clone. This includes most channel resources and connection information with the exception of content.
+int | $channel_id | Channel_id to export |
Referenced by api_export_basic(), and uexport_init().
+ +identity_check_service_class | +( | ++ | $account_id | ) | ++ |
identity_check_service_class($account_id) Called when creating a new channel. Checks the account's service class and number of current channels to determine whether creating a new channel is within the current service class constraints.
+int | $account_id | Account_id used for this request |
Referenced by create_identity().
+ +identity_selector | +( | +) | ++ |
is_foreigner | +( | ++ | $s | ) | ++ |
is_foreigner($s) Test whether a given identity is NOT a member of the Red Matrix
+string | $s,; | xchan_hash of the identity in question |
Referenced by is_member().
+ +is_member | +( | ++ | $s | ) | ++ |
is_member($s) Test whether a given identity is a member of the Red Matrix
+string | $s,; | xchan_hash of the identity in question |
is_sys_channel | +( | ++ | $channel_id | ) | ++ |
Referenced by zot_feed().
+ +profile_create_sidebar | +( | +& | +$a, | +
+ | + | + | $connect = true |
+
+ | ) | ++ |
profile_load | +( | +& | +$a, | +
+ | + | + | $nickname, | +
+ | + | + | $profile = '' |
+
+ | ) | ++ |
: profile_load(&$a, $nickname, $profile) Generate
+App | $a | |
string | $nickname | |
string | $profile | Summary: Loads a profile into the App structure. The function requires a writeable copy of the main App structure, and the nickname of a valid channel. |
Permissions of the current observer are checked. If a restricted profile is available to the current observer, that will be loaded instead of the channel default profile.
+The channel owner can set $profile to a valid profile_guid to preview that profile.
+The channel default theme is also selected for use, unless over-riden elsewhere.
+load/reload current theme info
+ +Referenced by achievements_content(), block_init(), blocks_content(), channel_init(), chat_init(), cloud_init(), common_init(), connect_init(), layouts_content(), page_init(), photos_init(), profile_init(), profile_photo_init(), profiles_init(), profperm_init(), viewconnections_init(), and webpages_content().
+ +profile_sidebar | +( | ++ | $profile, | +
+ | + | + | $block = 0 , |
+
+ | + | + | $show_connect = true |
+
+ | ) | ++ |
Function: profile_sidebar
+Formats a profile for display in the sidebar. It is very difficult to templatise the HTML completely because of all the conditional logic.
+: array $profile
+Returns HTML string stuitable for sidebar inclusion Exceptions: Returns empty string if passed $profile is wrong type or not populated
+ +Referenced by profile_create_sidebar(), widget_fullprofile(), and widget_profile().
+ +remote_online_status | +( | ++ | $webbie | ) | ++ |
Referenced by dirprofile_init().
+ +set_default_login_identity | +( | ++ | $account_id, | +
+ | + | + | $channel_id, | +
+ | + | + | $force = true |
+
+ | ) | ++ |
set_default_login_identity($account_id, $channel_id, $force = true) Set default channel to be used on login
+int | $account_id | login account |
int | $channel_id | channel id to set as default for this account |
boolean | force if true, set this default unconditionally if $force is false only do this if there is no existing default |
Referenced by create_identity(), and import_post().
+ +validate_channelname | +( | ++ | $name | ) | ++ |
validate_channelname($name) Determine if the channel name is allowed when creating a new channel. This action is pluggable.
+string | $name |
We're currently only checking for an empty name or one that exceeds our storage limit (255 chars). 255 chars is probably going to create a mess on some pages. Plugins can set additional policies such as full name requirements, character sets, multi-byte length, etc.
+ +Referenced by create_identity(), and settings_post().
+ +zid | +( | ++ | $s, | +
+ | + | + | $address = '' |
+
+ | ) | ++ |
zid($s,$address = '') Adds a zid parameter to a url
+string | $s | The url to accept the zid |
boolean | $address | $address to use instead of session environment |
'zid' string url - url to accept zid string zid - urlencoded zid string result - the return string we calculated, change it if you want to return something else
+ +Referenced by advanced_profile(), app_render(), chanview_content(), chatsvc_content(), conversation(), dirprofile_init(), format_categories(), format_hashtags(), get_plink(), get_things(), localize_item(), match_content(), menu_render(), new_contact(), oembed_fetch_url(), parse_app_description(), tryzrlaudio(), tryzrlvideo(), widget_bookmarkedchats(), widget_photo(), and widget_suggestedchats().
+ +zid_init | +( | +& | +$a | ) | ++ |
zid_init(&$a) If somebody arrives at our site using a zid, add their xchan to our DB if we don't have it already. And if they aren't already authenticated here, attempt reverse magic auth.
+'zid_init' string 'zid' - their zid string 'url' - the destination url
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
import_post (&$a) | |
import_content (&$a) | |
import_content | +( | +& | +$a | ) | ++ |
import_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
importelm_post (&$a) | |
importelm_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
api_user () | |
api_date ($str) | |
api_register_func ($path, $func, $auth=false) | |
api_login (&$a) | |
api_call (&$a) | |
api_rss_extra (&$a, $arr, $user_info) | |
api_get_user (&$a, $contact_id=Null) | |
api_item_get_user (&$a, $item) | |
api_apply_template ($templatename, $type, $data) | |
api_account_verify_credentials (&$a, $type) | |
api_account_logout (&$a, $type) | |
requestdata ($k) | |
api_export_basic (&$a, $type) | |
api_channel_stream (&$a, $type) | |
api_albums (&$a, $type) | |
api_photos (&$a, $type) | |
api_statuses_mediap (&$a, $type) | |
api_statuses_update (&$a, $type) | |
red_item_new (&$a, $type) | |
api_status_show (&$a, $type) | |
api_users_show (&$a, $type) | |
api_statuses_home_timeline (&$a, $type) | |
api_statuses_public_timeline (&$a, $type) | |
api_statuses_show (&$a, $type) | |
api_statuses_repeat (&$a, $type) | |
api_statuses_destroy (&$a, $type) | |
api_statuses_mentions (&$a, $type) | |
api_statuses_user_timeline (&$a, $type) | |
api_favorites (&$a, $type) | |
api_format_as ($a, $ret, $user_info) | |
api_format_messages ($item, $recipient, $sender) | |
api_format_items ($r, $user_info) | |
api_account_rate_limit_status (&$a, $type) | |
api_help_test (&$a, $type) | |
api_statuses_f (&$a, $type, $qtype) | |
api_statuses_friends (&$a, $type) | |
api_statuses_followers (&$a, $type) | |
api_statusnet_config (&$a, $type) | |
api_statusnet_version (&$a, $type) | |
api_friendica_version (&$a, $type) | |
api_ff_ids (&$a, $type, $qtype) | |
api_friends_ids (&$a, $type) | |
api_followers_ids (&$a, $type) | |
api_direct_messages_new (&$a, $type) | |
api_direct_messages_box (&$a, $type, $box) | |
api_direct_messages_sentbox (&$a, $type) | |
api_direct_messages_inbox (&$a, $type) | |
api_direct_messages_all (&$a, $type) | |
api_direct_messages_conversation (&$a, $type) | |
api_oauth_request_token (&$a, $type) | |
api_oauth_access_token (&$a, $type) | |
+Variables | |
$API = array() | |
$called_api = Null | |
api_account_logout | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_account_rate_limit_status | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_account_verify_credentials | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. http://developer.twitter.com/doc/get/account/verify_credentials
+ +api_albums | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_apply_template | +( | ++ | $templatename, | +
+ | + | + | $type, | +
+ | + | + | $data | +
+ | ) | ++ |
load api $templatename for $type and replace $data array
+ +Referenced by api_account_logout(), api_account_rate_limit_status(), api_account_verify_credentials(), api_direct_messages_box(), api_direct_messages_new(), api_favorites(), api_help_test(), api_status_show(), api_statuses_destroy(), api_statuses_followers(), api_statuses_friends(), api_statuses_home_timeline(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_repeat(), api_statuses_show(), api_statuses_user_timeline(), api_statusnet_config(), and api_users_show().
+ +api_call | +( | +& | +$a | ) | ++ |
Referenced by api_content().
+ +api_channel_stream | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_date | +( | ++ | $str | ) | ++ |
Referenced by api_format_items(), api_format_messages(), api_get_user(), api_rss_extra(), api_status_show(), and api_users_show().
+ +api_direct_messages_all | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_direct_messages_box | +( | +& | +$a, | +
+ | + | + | $type, | +
+ | + | + | $box | +
+ | ) | ++ |
Referenced by api_direct_messages_all(), api_direct_messages_conversation(), api_direct_messages_inbox(), and api_direct_messages_sentbox().
+ +api_direct_messages_conversation | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_direct_messages_inbox | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_direct_messages_new | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_direct_messages_sentbox | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_export_basic | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_favorites | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_ff_ids | +( | +& | +$a, | +
+ | + | + | $type, | +
+ | + | + | $qtype | +
+ | ) | ++ |
Referenced by api_followers_ids(), and api_friends_ids().
+ +api_followers_ids | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_format_as | +( | ++ | $a, | +
+ | + | + | $ret, | +
+ | + | + | $user_info | +
+ | ) | ++ |
Referenced by api_statuses_home_timeline(), api_statuses_mentions(), and api_statuses_public_timeline().
+ +api_format_items | +( | ++ | $r, | +
+ | + | + | $user_info | +
+ | ) | ++ |
Referenced by api_favorites(), api_statuses_home_timeline(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_show(), and api_statuses_user_timeline().
+ +api_format_messages | +( | ++ | $item, | +
+ | + | + | $recipient, | +
+ | + | + | $sender | +
+ | ) | ++ |
Referenced by api_direct_messages_box(), and api_direct_messages_new().
+ +api_friendica_version | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_friends_ids | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_get_user | +( | +& | +$a, | +
+ | + | + | $contact_id = Null |
+
+ | ) | ++ |
Returns user info array.
+ +Referenced by api_account_verify_credentials(), api_direct_messages_box(), api_direct_messages_new(), api_favorites(), api_item_get_user(), api_rss_extra(), api_status_show(), api_statuses_destroy(), api_statuses_f(), api_statuses_home_timeline(), api_statuses_mediap(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_repeat(), api_statuses_show(), api_statuses_update(), api_statuses_user_timeline(), api_users_show(), and wall_upload_post().
+ +api_help_test | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_item_get_user | +( | +& | +$a, | +
+ | + | + | $item | +
+ | ) | ++ |
Referenced by api_format_items().
+ +api_login | +( | +& | +$a | ) | ++ |
Simple HTTP Login
+ +Referenced by api_call(), and api_get_user().
+ +api_oauth_access_token | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_oauth_request_token | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_photos | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_register_func | +( | ++ | $path, | +
+ | + | + | $func, | +
+ | + | + | $auth = false |
+
+ | ) | ++ |
api_rss_extra | +( | +& | +$a, | +
+ | + | + | $arr, | +
+ | + | + | $user_info | +
+ | ) | ++ |
RSS extra info
+ +Referenced by api_direct_messages_box(), api_direct_messages_new(), api_favorites(), api_statuses_home_timeline(), api_statuses_mentions(), api_statuses_public_timeline(), and api_statuses_user_timeline().
+ +api_status_show | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
Referenced by api_statuses_mediap(), and api_statuses_update().
+ +api_statuses_destroy | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_f | +( | +& | +$a, | +
+ | + | + | $type, | +
+ | + | + | $qtype | +
+ | ) | ++ |
https://dev.twitter.com/docs/api/1/get/statuses/friends This function is deprecated by Twitter returns: json, xml
+ +Referenced by api_statuses_followers(), and api_statuses_friends().
+ +api_statuses_followers | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_friends | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_home_timeline | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
http://developer.twitter.com/doc/get/statuses/home_timeline
+TODO: Optional parameters TODO: Add reply info
+ +api_statuses_mediap | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_mentions | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_public_timeline | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_repeat | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_show | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_update | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statuses_user_timeline | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statusnet_config | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_statusnet_version | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
api_user | +( | +) | ++ |
Referenced by api_account_verify_credentials(), api_call(), api_channel_stream(), api_direct_messages_box(), api_direct_messages_new(), api_export_basic(), api_favorites(), api_ff_ids(), api_get_user(), api_statuses_destroy(), api_statuses_f(), api_statuses_home_timeline(), api_statuses_mediap(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_repeat(), api_statuses_show(), api_statuses_update(), api_statuses_user_timeline(), and red_item_new().
+ +api_users_show | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. http://developer.twitter.com/doc/get/users/show
+ +red_item_new | +( | +& | +$a, | +
+ | + | + | $type | +
+ | ) | ++ |
requestdata | +( | ++ | $k | ) | ++ |
get data from $_REQUEST ( e.g. $_POST or $_GET )
+ +Referenced by api_statuses_mediap(), and api_statuses_update().
+ +$API = array() | +
TWITTER API
+ +Referenced by api_call(), and api_register_func().
+ +$called_api = Null | +
Referenced by api_call(), and api_get_user().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
get_system_apps () | |
app_name_compare ($a, $b) | |
parse_app_description ($f) | |
translate_system_apps (&$arr) | |
app_render ($papp, $mode= 'view') | |
app_install ($uid, $app) | |
app_destroy ($uid, $app) | |
app_installed ($uid, $app) | |
app_list ($uid) | |
app_decode ($s) | |
app_store ($arr) | |
app_update ($arr) | |
app_encode ($app, $embed=false) | |
papp_encode ($papp) | |
app_decode | +( | ++ | $s | ) | ++ |
Referenced by appman_post().
+ +app_destroy | +( | ++ | $uid, | +
+ | + | + | $app | +
+ | ) | ++ |
Referenced by appman_post().
+ +app_encode | +( | ++ | $app, | +
+ | + | + | $embed = false |
+
+ | ) | ++ |
Referenced by appman_content(), and apps_content().
+ +app_install | +( | ++ | $uid, | +
+ | + | + | $app | +
+ | ) | ++ |
Referenced by appman_post().
+ +app_installed | +( | ++ | $uid, | +
+ | + | + | $app | +
+ | ) | ++ |
Referenced by app_install(), app_render(), and appman_post().
+ +app_list | +( | ++ | $uid | ) | ++ |
Referenced by apps_content().
+ +app_name_compare | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
app_render | +( | ++ | $papp, | +
+ | + | + | $mode = 'view' |
+
+ | ) | ++ |
modes: view: normal mode for viewing an app via bbcode from a conversation or page provides install/update button if you're logged in locally list: normal mode for viewing an app on the app page no buttons are shown edit: viewing the app page in editing mode provides a delete button
+ +Referenced by apps_content().
+ +app_store | +( | ++ | $arr | ) | ++ |
Referenced by app_install().
+ +app_update | +( | ++ | $arr | ) | ++ |
Referenced by app_install().
+ +get_system_apps | +( | +) | ++ |
apps
+ +Referenced by apps_content().
+ +papp_encode | +( | ++ | $papp | ) | ++ |
Referenced by app_render().
+ +parse_app_description | +( | ++ | $f | ) | ++ |
Referenced by get_system_apps().
+ +translate_system_apps | +( | +& | +$arr | ) | ++ |
Referenced by parse_app_description().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
File/attach API with the potential for revision control. +More...
++Functions | |
z_mime_content_type ($filename) | |
Guess the mimetype from file ending. More... | |
attach_count_files ($channel_id, $observer, $hash= '', $filename= '', $filetype= '') | |
Count files/attachments. More... | |
attach_list_files ($channel_id, $observer, $hash= '', $filename= '', $filetype= '', $orderby= 'created desc', $start=0, $entries=0) | |
Returns a list of files/attachments. More... | |
attach_by_hash ($hash, $rev=0) | |
Find an attachment by hash and revision. More... | |
attach_by_hash_nodata ($hash, $rev=0) | |
Find an attachment by hash and revision. More... | |
attach_store ($channel, $observer_hash, $options= '', $arr=null) | |
z_readdir ($channel_id, $observer_hash, $pathname, $parent_hash= '') | |
attach_mkdir ($channel, $observer_hash, $arr=null) | |
Create directory. More... | |
attach_change_permissions ($channel_id, $resource, $allow_cid, $allow_gid, $deny_cid, $deny_gid, $recurse=false) | |
Changes permissions of a file. More... | |
attach_delete ($channel_id, $resource) | |
Delete a file. More... | |
get_cloudpath ($arr) | |
Returns path to file in cloud/. More... | |
get_parent_cloudpath ($channel_id, $channel_name, $attachHash) | |
Returns path to parent folder in cloud/. More... | |
find_folder_hash_by_attach_hash ($channel_id, $attachHash) | |
find_filename_by_hash ($channel_id, $attachHash) | |
pipe_streams ($in, $out) | |
File/attach API with the potential for revision control.
+TODO: a filesystem storage abstraction which maintains security (and 'data' contains a system filename which is inaccessible from the web). This could get around PHP storage limits and store videos and larger items, using fread or OS methods or native code to read/write or chunk it through. Also an 'append' option to the storage function might be a useful addition.
+attach_by_hash | +( | ++ | $hash, | +
+ | + | + | $rev = 0 |
+
+ | ) | ++ |
Find an attachment by hash and revision.
+Returns the entire attach structure including data.
+This could exhaust memory so most useful only when immediately sending the data.
+$hash | |
$rev |
Referenced by attach_init().
+ +attach_by_hash_nodata | +( | ++ | $hash, | +
+ | + | + | $rev = 0 |
+
+ | ) | ++ |
Find an attachment by hash and revision.
+Returns the entire attach structure excluding data.
+$hash | |
$ref |
Referenced by item_post(), and send_message().
+ +attach_change_permissions | +( | ++ | $channel_id, | +
+ | + | + | $resource, | +
+ | + | + | $allow_cid, | +
+ | + | + | $allow_gid, | +
+ | + | + | $deny_cid, | +
+ | + | + | $deny_gid, | +
+ | + | + | $recurse = false |
+
+ | ) | ++ |
Changes permissions of a file.
+$channel_id | |
$resource | |
$allow_cid | |
$allow_gid | |
$deny_cid | |
$deny_gid | |
$recurse |
Referenced by filestorage_post().
+ +attach_count_files | +( | ++ | $channel_id, | +
+ | + | + | $observer, | +
+ | + | + | $hash = '' , |
+
+ | + | + | $filename = '' , |
+
+ | + | + | $filetype = '' |
+
+ | ) | ++ |
Count files/attachments.
+$channel_id | |
$observer | |
$hash | (optional) |
$filename | (optional) |
$filetype | (optional) |
attach_delete | +( | ++ | $channel_id, | +
+ | + | + | $resource | +
+ | ) | ++ |
Delete a file.
+$channel_id | |
$resource |
Referenced by RedDirectory\createFile(), RedFile\delete(), filestorage_content(), and RedFile\put().
+ +attach_list_files | +( | ++ | $channel_id, | +
+ | + | + | $observer, | +
+ | + | + | $hash = '' , |
+
+ | + | + | $filename = '' , |
+
+ | + | + | $filetype = '' , |
+
+ | + | + | $orderby = 'created desc' , |
+
+ | + | + | $start = 0 , |
+
+ | + | + | $entries = 0 |
+
+ | ) | ++ |
Returns a list of files/attachments.
+$channel_id | |
$observer | |
$hash | (optional) |
$filename | (optional) |
$filetype | (optional) |
$orderby | |
$start | |
$entries |
attach_mkdir | +( | ++ | $channel, | +
+ | + | + | $observer_hash, | +
+ | + | + | $arr = null |
+
+ | ) | ++ |
Create directory.
+attach_mkdir($channel,$observer_hash,$arr);
+$channel | channel array of owner |
$observer_hash | hash of current observer |
$arr | parameter array to fulfil request Required: $arr['filename'] $arr['folder'] // hash of parent directory, empty string for root directory Optional: $arr['hash'] // precumputed hash for this node $arr['allow_cid'] $arr['allow_gid'] $arr['deny_cid'] $arr['deny_gid'] |
Referenced by RedDirectory\createDirectory().
+ +attach_store | +( | ++ | $channel, | +
+ | + | + | $observer_hash, | +
+ | + | + | $options = '' , |
+
+ | + | + | $arr = null |
+
+ | ) | ++ |
$channel | channel array of owner |
$observer_hash | hash of current observer |
$options | (optional) |
$arr | (optional) |
Referenced by fix_attached_file_permissions(), importelm_post(), send_message(), and wall_attach_post().
+ +find_filename_by_hash | +( | ++ | $channel_id, | +
+ | + | + | $attachHash | +
+ | ) | ++ |
Referenced by get_parent_cloudpath().
+ +find_folder_hash_by_attach_hash | +( | ++ | $channel_id, | +
+ | + | + | $attachHash | +
+ | ) | ++ |
Referenced by get_parent_cloudpath().
+ +get_cloudpath | +( | ++ | $arr | ) | ++ |
Returns path to file in cloud/.
+$arr |
Referenced by filestorage_content().
+ +get_parent_cloudpath | +( | ++ | $channel_id, | +
+ | + | + | $channel_name, | +
+ | + | + | $attachHash | +
+ | ) | ++ |
Returns path to parent folder in cloud/.
+$arr |
Referenced by filestorage_content(), and filestorage_post().
+ +pipe_streams | +( | ++ | $in, | +
+ | + | + | $out | +
+ | ) | ++ |
$in | |
$out |
Referenced by attach_init().
+ +z_mime_content_type | +( | ++ | $filename | ) | ++ |
Guess the mimetype from file ending.
+This function takes a file name and guess the mimetype from the filename extension.
+$filename | a string filename |
Referenced by attach_store(), and RedDirectory\createFile().
+ +z_readdir | +( | ++ | $channel_id, | +
+ | + | + | $observer_hash, | +
+ | + | + | $pathname, | +
+ | + | + | $parent_hash = '' |
+
+ | ) | ++ |
Read a virtual directory and return contents, checking permissions of all parent components. z_readdir
+integer | $channel_id | |
string | $observer_hash | hash of current observer |
string | $pathname | |
string | $parent_hash | (optional) |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
bookmark_add ($channel, $sender, $taxonomy, $private, $opts=null) | |
get_bookmark_link ($observer) | |
bookmark_add | +( | ++ | $channel, | +
+ | + | + | $sender, | +
+ | + | + | $taxonomy, | +
+ | + | + | $private, | +
+ | + | + | $opts = null |
+
+ | ) | ++ |
Referenced by bookmarks_init(), and rbmark_post().
+ +get_bookmark_link | +( | ++ | $observer | ) | ++ |
Referenced by chat_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
chanman_remove_everything_from_network ($channel_id) | |
chanman_remove_everything_from_network | +( | ++ | $channel_id | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
chatroom_create ($channel, $arr) | |
chatroom_destroy ($channel, $arr) | |
chatroom_enter ($observer_xchan, $room_id, $status, $client) | |
chatroom_leave ($observer_xchan, $room_id, $client) | |
chatroom_list ($uid) | |
chat_message ($uid, $room_id, $xchan, $text) | |
chat_message | +( | ++ | $uid, | +
+ | + | + | $room_id, | +
+ | + | + | $xchan, | +
+ | + | + | $text | +
+ | ) | ++ |
create a chat message via API. It is the caller's responsibility to enter the room.
+ +chatroom_create | +( | ++ | $channel, | +
+ | + | + | $arr | +
+ | ) | ++ |
Referenced by chat_post().
+ +chatroom_destroy | +( | ++ | $channel, | +
+ | + | + | $arr | +
+ | ) | ++ |
Referenced by chat_post().
+ +chatroom_enter | +( | ++ | $observer_xchan, | +
+ | + | + | $room_id, | +
+ | + | + | $status, | +
+ | + | + | $client | +
+ | ) | ++ |
Referenced by chat_content().
+ +chatroom_leave | +( | ++ | $observer_xchan, | +
+ | + | + | $room_id, | +
+ | + | + | $client | +
+ | ) | ++ |
Referenced by chat_content().
+ +chatroom_list | +( | ++ | $uid | ) | ++ |
Referenced by nav(), and widget_chatroom_list().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
load_config ($family) | |
get_config ($family, $key) | |
get_config_from_storage ($family, $key) | |
set_config ($family, $key, $value) | |
del_config ($family, $key) | |
load_pconfig ($uid, $family= '') | |
get_pconfig ($uid, $family, $key, $instore=false) | |
set_pconfig ($uid, $family, $key, $value) | |
del_pconfig ($uid, $family, $key) | |
load_xconfig ($xchan, $family= '') | |
get_xconfig ($xchan, $family, $key) | |
set_xconfig ($xchan, $family, $key, $value) | |
del_xconfig ($xchan, $family, $key) | |
del_config | +( | ++ | $family, | +
+ | + | + | $key | +
+ | ) | ++ |
Referenced by admin_page_site_post(), and FKOAuthDataStore\new_access_token().
+ +del_pconfig | +( | ++ | $uid, | +
+ | + | + | $family, | +
+ | + | + | $key | +
+ | ) | ++ |
Referenced by pdledit_post().
+ +del_xconfig | +( | ++ | $xchan, | +
+ | + | + | $family, | +
+ | + | + | $key | +
+ | ) | ++ |
get_config | +( | ++ | $family, | +
+ | + | + | $key | +
+ | ) | ++ |
Referenced by account_verify_password(), acl_init(), admin_page_dbsync(), admin_page_logs(), admin_page_site(), admin_page_summary(), admin_page_themes(), allowed_email(), allowed_url(), api_statuses_mentions(), api_statusnet_config(), attach_store(), bbcode(), build_sync_packet(), channel_content(), check_account_admin(), check_account_invite(), check_config(), cli_startup(), create_account(), create_identity(), create_sys_channel(), RedDirectory\createFile(), detect_language(), directory_content(), directory_run(), dirprofile_init(), dirsearch_content(), display_content(), dlogger(), dob(), downgrade_accounts(), editblock_content(), editpost_content(), editwebpage_content(), encode_item(), encode_mail(), events_content(), expire_run(), externals_run(), feature_enabled(), feed_init(), find_upstream_directory(), findpeople_widget(), Item\get_comment_box(), get_default_profile_photo(), get_item_elements(), get_mail_elements(), get_max_import_size(), get_online_status(), RedDirectory\getChild(), RedDirectory\getChildren(), group_content(), home_content(), home_init(), photo_gd\imageString(), import_post(), import_xchan(), invite_content(), invite_post(), item_post(), item_store(), item_store_update(), photo_imagick\load(), logger(), login(), lostpass_content(), lostpass_post(), mark_orphan_hubsxchans(), nav(), navbar_complete(), network_content(), FKOAuthDataStore\new_access_token(), new_channel_post(), new_keypair(), notification(), notifier_run(), oembed_bbcode2html(), openid_content(), parse_url_content(), photo_upload(), photos_content(), photos_init(), poco_init(), poller_run(), post_activity_item(), post_post(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), profile_content(), profile_create_sidebar(), profile_photo_post(), profiles_content(), profperm_content(), pubsites_content(), RedFile\put(), register_content(), register_post(), reload_plugins(), remove_all_xchan_resources(), scale_external_images(), search_content(), send_message(), send_reg_approval_email(), send_verification_email(), service_class_allows(), service_class_fetch(), set_config(), settings_post(), site_default_perms(), siteinfo_content(), smilies(), tag_deliver(), theme_admin(), unobscure(), update_modtime(), update_suggestions(), upgrade_link(), user_allow(), valid_email(), validate_email(), viewconnections_content(), viewconnections_init(), webpages_content(), widget_fullprofile(), widget_profile(), z_fetch_url(), z_post_url(), zfinger_init(), zot_fetch(), zot_import(), and zotfeed_init().
+ +get_config_from_storage | +( | ++ | $family, | +
+ | + | + | $key | +
+ | ) | ++ |
Referenced by set_config().
+ +get_pconfig | +( | ++ | $uid, | +
+ | + | + | $family, | +
+ | + | + | $key, | +
+ | + | + | $instore = false |
+
+ | ) | ++ |
Referenced by Conversation\__construct(), acl_init(), App\build_pagehead(), change_channel(), channel_content(), connect_content(), construct_page(), contact_block(), contact_remove(), conversation(), current_theme(), display_content(), editpost_content(), feature_enabled(), findpeople_widget(), Item\get_comment_box(), get_online_status(), get_theme_uid(), group_content(), home_init(), invite_content(), invite_post(), item_post(), item_store(), item_store_update(), items_fetch(), FKOAuth1\loginUser(), mail_content(), message_content(), network_content(), pdledit_content(), profile_activity(), profile_load(), profile_sidebar(), profperm_content(), remove_community_tag(), rpost_content(), search_content(), set_pconfig(), smilies(), tag_deliver(), theme_content(), and widget_notes().
+ +get_xconfig | +( | ++ | $xchan, | +
+ | + | + | $family, | +
+ | + | + | $key | +
+ | ) | ++ |
Referenced by dir_safe_mode(), directory_content(), set_xconfig(), and toggle_safesearch_init().
+ +load_config | +( | ++ | $family | ) | ++ |
Arbitrary configuration storage Note: Please do not store booleans - convert to 0/1 integer values The get_?config() functions return boolean false for keys that are unset, and this could lead to subtle bugs.
+There are a few places in the code (such as the admin panel) where boolean configurations need to be fixed as of 10/08/2011.
+ +Referenced by api_statusnet_config(), check_config(), cli_startup(), and get_config().
+ +load_pconfig | +( | ++ | $uid, | +
+ | + | + | $family = '' |
+
+ | ) | ++ |
Referenced by conversation(), and get_pconfig().
+ +load_xconfig | +( | ++ | $xchan, | +
+ | + | + | $family = '' |
+
+ | ) | ++ |
Referenced by get_xconfig().
+ +set_config | +( | ++ | $family, | +
+ | + | + | $key, | +
+ | + | + | $value | +
+ | ) | ++ |
set_pconfig | +( | ++ | $uid, | +
+ | + | + | $family, | +
+ | + | + | $key, | +
+ | + | + | $value | +
+ | ) | ++ |
Referenced by connect_post(), invite_post(), notes_init(), pdledit_post(), process_channel_sync_delivery(), register_post(), settings_post(), and theme_post().
+ +set_xconfig | +( | ++ | $xchan, | +
+ | + | + | $family, | +
+ | + | + | $key, | +
+ | + | + | $value | +
+ | ) | ++ |
Referenced by openid_content(), and toggle_safesearch_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
directory_run ($argv, $argc) | |
directory_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
new_contact ($uid, $url, $channel, $interactive=false, $confirm=false) | |
new_contact | +( | ++ | $uid, | +
+ | + | + | $url, | +
+ | + | + | $channel, | +
+ | + | + | $interactive = false , |
+
+ | + | + | $confirm = false |
+
+ | ) | ++ |
If there is a default group for this channel, add this member to it
+ +Referenced by follow_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
group_add ($uid, $name, $public=0) | |
group_rmv ($uid, $name) | |
group_byname ($uid, $name) | |
group_rec_byhash ($uid, $hash) | |
group_rmv_member ($uid, $name, $member) | |
group_add_member ($uid, $name, $member, $gid=0) | |
group_get_members ($gid) | |
mini_group_select ($uid, $group= '') | |
group_side ($every="connections", $each="group", $edit=false, $group_id=0, $cid= '', $mode=1) | |
expand_groups ($a) | |
member_of ($c) | |
groups_containing ($uid, $c) | |
expand_groups | +( | ++ | $a | ) | ++ |
Referenced by collect_recipients(), and enumerate_permissions().
+ +group_add | +( | ++ | $uid, | +
+ | + | + | $name, | +
+ | + | + | $public = 0 |
+
+ | ) | ++ |
Referenced by create_identity(), and group_post().
+ +group_add_member | +( | ++ | $uid, | +
+ | + | + | $name, | +
+ | + | + | $member, | +
+ | + | + | $gid = 0 |
+
+ | ) | ++ |
Referenced by connections_post(), connedit_post(), contactgroup_content(), group_content(), and new_contact().
+ +group_byname | +( | ++ | $uid, | +
+ | + | + | $name | +
+ | ) | ++ |
Referenced by group_add(), group_add_member(), group_post(), group_rmv_member(), and handle_tag().
+ +group_get_members | +( | ++ | $gid | ) | ++ |
Referenced by contactgroup_content(), group_content(), items_fetch(), and network_content().
+ +group_rec_byhash | +( | ++ | $uid, | +
+ | + | + | $hash | +
+ | ) | ++ |
Referenced by connections_post(), connedit_post(), items_fetch(), network_content(), and new_contact().
+ +group_rmv | +( | ++ | $uid, | +
+ | + | + | $name | +
+ | ) | ++ |
Referenced by group_content().
+ +group_rmv_member | +( | ++ | $uid, | +
+ | + | + | $name, | +
+ | + | + | $member | +
+ | ) | ++ |
Referenced by contactgroup_content(), and group_content().
+ +group_side | +( | ++ | $every = "connections" , |
+
+ | + | + | $each = "group" , |
+
+ | + | + | $edit = false , |
+
+ | + | + | $group_id = 0 , |
+
+ | + | + | $cid = '' , |
+
+ | + | + | $mode = 1 |
+
+ | ) | ++ |
Referenced by widget_collections().
+ +groups_containing | +( | ++ | $uid, | +
+ | + | + | $c | +
+ | ) | ++ |
Referenced by group_side().
+ +member_of | +( | ++ | $c | ) | ++ |
mini_group_select | +( | ++ | $uid, | +
+ | + | + | $group = '' |
+
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
menu_fetch ($name, $uid, $observer_xchan) | |
menu_render ($menu, $class='', $edit=false) | |
menu_fetch_id ($menu_id, $channel_id) | |
menu_create ($arr) | |
menu_list ($channel_id, $name= '', $flags=0) | |
menu_edit ($arr) | |
menu_delete ($menu_name, $uid) | |
menu_delete_id ($menu_id, $uid) | |
menu_add_item ($menu_id, $uid, $arr) | |
menu_edit_item ($menu_id, $uid, $arr) | |
menu_del_item ($menu_id, $uid, $item_id) | |
menu_add_item | +( | ++ | $menu_id, | +
+ | + | + | $uid, | +
+ | + | + | $arr | +
+ | ) | ++ |
Referenced by bookmark_add(), and mitem_post().
+ +menu_create | +( | ++ | $arr | ) | ++ |
Referenced by bookmark_add(), and menu_post().
+ +menu_del_item | +( | ++ | $menu_id, | +
+ | + | + | $uid, | +
+ | + | + | $item_id | +
+ | ) | ++ |
Referenced by mitem_content().
+ +menu_delete | +( | ++ | $menu_name, | +
+ | + | + | $uid | +
+ | ) | ++ |
menu_delete_id | +( | ++ | $menu_id, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by menu_content(), and menu_delete().
+ +menu_edit | +( | ++ | $arr | ) | ++ |
Referenced by menu_post().
+ +menu_edit_item | +( | ++ | $menu_id, | +
+ | + | + | $uid, | +
+ | + | + | $arr | +
+ | ) | ++ |
Referenced by mitem_post().
+ +menu_fetch | +( | ++ | $name, | +
+ | + | + | $uid, | +
+ | + | + | $observer_xchan | +
+ | ) | ++ |
Referenced by bookmarks_content(), comanche_menu(), mitem_content(), and profile_sidebar().
+ +menu_fetch_id | +( | ++ | $menu_id, | +
+ | + | + | $channel_id | +
+ | ) | ++ |
Referenced by menu_content(), and mitem_init().
+ +menu_list | +( | ++ | $channel_id, | +
+ | + | + | $name = '' , |
+
+ | + | + | $flags = 0 |
+
+ | ) | ++ |
If $flags is present, check that all the bits in $flags are set so that MENU_SYSTEM|MENU_BOOKMARK will return entries with both bits set. We will use this to find system generated bookmarks.
+ +Referenced by bookmark_add(), bookmarks_content(), menu_content(), and rbmark_content().
+ +menu_render | +( | ++ | $menu, | +
+ | + | + | $class = '' , |
+
+ | + | + | $edit = false |
+
+ | ) | ++ |
Referenced by bookmarks_content(), comanche_menu(), profile_sidebar(), and widget_menu_preview().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
send_message ($uid=0, $recipient='', $body='', $subject='', $replyto='', $expires= '') | |
private_messages_list ($uid, $mailbox= '', $start=0, $numitems=0) | |
private_messages_fetch_message ($channel_id, $messageitem_id, $updateseen=false) | |
private_messages_drop ($channel_id, $messageitem_id, $drop_conversation=false) | |
private_messages_fetch_conversation ($channel_id, $messageitem_id, $updateseen=false) | |
private_messages_drop | +( | ++ | $channel_id, | +
+ | + | + | $messageitem_id, | +
+ | + | + | $drop_conversation = false |
+
+ | ) | ++ |
Referenced by mail_content(), and message_content().
+ +private_messages_fetch_conversation | +( | ++ | $channel_id, | +
+ | + | + | $messageitem_id, | +
+ | + | + | $updateseen = false |
+
+ | ) | ++ |
Referenced by mail_content().
+ +private_messages_fetch_message | +( | ++ | $channel_id, | +
+ | + | + | $messageitem_id, | +
+ | + | + | $updateseen = false |
+
+ | ) | ++ |
private_messages_list | +( | ++ | $uid, | +
+ | + | + | $mailbox = '' , |
+
+ | + | + | $start = 0 , |
+
+ | + | + | $numitems = 0 |
+
+ | ) | ++ |
Referenced by message_content().
+ +send_message | +( | ++ | $uid = 0 , |
+
+ | + | + | $recipient = '' , |
+
+ | + | + | $body = '' , |
+
+ | + | + | $subject = '' , |
+
+ | + | + | $replyto = '' , |
+
+ | + | + | $expires = '' |
+
+ | ) | ++ |
When a photo was uploaded into the message using the (profile wall) ajax uploader, The permissions are initially set to disallow anybody but the owner from seeing it. This is because the permissions may not yet have been set for the post. If it's private, the photo permissions should be set appropriately. But we didn't know the final permissions on the post until now. So now we'll look for links of uploaded messages that are in the post and set them to the same permissions as the post itself.
+ +Referenced by api_direct_messages_new(), and mail_post().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
get_capath () | |
z_fetch_url ($url, $binary=false, $redirects=0, $opts=array()) | |
z_post_url ($url, $params, $redirects=0, $opts=array()) | |
json_return_and_die ($x) | |
xml_status ($st, $message= '') | |
http_status_exit ($val, $msg= '') | |
convert_xml_element_to_array ($xml_element, &$recursion_depth=0) | |
webfinger_dfrn ($s, &$hcard) | |
webfinger ($s, $debug=false) | |
fetch_lrdd_template ($host) | |
validate_url (&$url) | |
validate_email ($addr) | |
allowed_url ($url) | |
allowed_email ($email) | |
avatar_img ($email) | |
parse_xml_string ($s, $strict=true) | |
scale_external_images ($s, $include_link=true, $scale_replace=false) | |
xml2array ($contents, $namespaces=true, $get_attributes=1, $priority= 'attribute') | |
email_header_encode ($in_str, $charset= 'UTF-8') | |
email_send ($addr, $subject, $headers, $item) | |
allowed_email | +( | ++ | ) | ++ |
Referenced by check_account_email().
+ +allowed_url | +( | ++ | $url | ) | ++ |
Referenced by new_contact().
+ +avatar_img | +( | ++ | ) | ++ |
convert_xml_element_to_array | +( | ++ | $xml_element, | +
+ | + | & | +$recursion_depth = 0 |
+
+ | ) | ++ |
email_header_encode | +( | ++ | $in_str, | +
+ | + | + | $charset = 'UTF-8' |
+
+ | ) | ++ |
Referenced by check_config(), lostpass_content(), lostpass_post(), and enotify\send().
+ +email_send | +( | ++ | $addr, | +
+ | + | + | $subject, | +
+ | + | + | $headers, | +
+ | + | + | $item | +
+ | ) | ++ |
fetch_lrdd_template | +( | ++ | $host | ) | ++ |
Referenced by webfinger().
+ +get_capath | +( | +) | ++ |
Referenced by z_fetch_url(), and z_post_url().
+ +http_status_exit | +( | ++ | $val, | +
+ | + | + | $msg = '' |
+
+ | ) | ++ |
http_status_exit
+Send HTTP status header and exit
+int | $val | integer HTTP status result value |
string | $msg | optional message |
Referenced by _well_known_init(), cloud_init(), get_feed_for(), and poco_init().
+ +json_return_and_die | +( | ++ | $x | ) | ++ |
Referenced by api_albums(), api_channel_stream(), api_export_basic(), api_photos(), chat_content(), chatsvc_content(), chatsvc_init(), chatsvc_post(), dirsearch_content(), new_channel_init(), notes_init(), oexchange_content(), online_init(), post_init(), post_post(), red_item_new(), register_init(), zfinger_init(), and zotfeed_init().
+ +parse_xml_string | +( | ++ | $s, | +
+ | + | + | $strict = true |
+
+ | ) | ++ |
Referenced by consume_feed().
+ +scale_external_images | +( | ++ | $s, | +
+ | + | + | $include_link = true , |
+
+ | + | + | $scale_replace = false |
+
+ | ) | ++ |
Referenced by diaspora2bb(), and item_post().
+ +validate_email | +( | ++ | $addr | ) | ++ |
Referenced by check_account_email(), and zid_init().
+ +validate_url | +( | +& | +$url | ) | ++ |
webfinger | +( | ++ | $s, | +
+ | + | + | $debug = false |
+
+ | ) | ++ |
Referenced by webfinger_content(), and webfinger_dfrn().
+ +webfinger_dfrn | +( | ++ | $s, | +
+ | + | & | +$hcard | +
+ | ) | ++ |
xml2array | +( | ++ | $contents, | +
+ | + | + | $namespaces = true , |
+
+ | + | + | $get_attributes = 1 , |
+
+ | + | + | $priority = 'attribute' |
+
+ | ) | ++ |
xml2array() will convert the given XML text to an array in the XML structure. Link: http://www.bin-co.com/php/scripts/xml2array/ Portions significantly re-written by mike@ for macg irvin .comFriendica (namespaces, lowercase tags, get_attribute default changed, more...) Arguments : $contents - The XML text $namespaces - true or false include namespace information in the returned array as array elements. $get_attributes - 1 or 0. If this is 1 the function will get the attributes as well as the tag values - this results in a different array structure in the return value. $priority - Can be 'tag' or 'attribute'. This will change the way the resulting array sturcture. For 'tag', the tags are given more importance. Return: The parsed XML in an array form. Use print_r() to see the resulting array structure. Examples: $array = xml2array(file_get_contents('feed.xml')); $array = xml2array(file_get_contents('feed.xml', true, 1, 'attribute'));
+ +xml_status | +( | ++ | $st, | +
+ | + | + | $message = '' |
+
+ | ) | ++ |
z_fetch_url | +( | ++ | $url, | +
+ | + | + | $binary = false , |
+
+ | + | + | $redirects = 0 , |
+
+ | + | + | $opts = array() |
+
+ | ) | ++ |
z_fetch_url
+string | $url | URL to fetch |
boolean | $binary | = false TRUE if asked to return binary results (file download) |
int | $redirects | = 0 internal use, recursion counter |
array | $opts | (optional parameters) 'accept_content' => supply Accept: header with 'accept_content' as the value 'timeout' => int seconds, default system config value or 60 seconds 'http_auth' => username:password 'novalidate' => do not validate SSL certs, default is to validate using our CA list |
Referenced by check_htaccess(), directory_content(), dirprofile_init(), externals_run(), import_post(), import_profile_photo(), import_site(), import_xchan(), navbar_complete(), oembed_fetch_url(), oexchange_content(), onepoll_run(), parseurl_getsiteinfo(), poco_load(), pubsites_content(), remote_online_status(), scale_external_images(), setup_post(), sslify_init(), sync_directories(), update_suggestions(), z_post_url(), zot_finger(), and zot_register_hub().
+ +z_post_url | +( | ++ | $url, | +
+ | + | + | $params, | +
+ | + | + | $redirects = 0 , |
+
+ | + | + | $opts = array() |
+
+ | ) | ++ |
Referenced by oexchange_content(), share_init(), zot_finger(), zot_refresh(), and zot_zot().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
format_notification ($item) | |
format_notification | +( | ++ | $item | ) | ++ |
Referenced by ping_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
oembed_replacecb ($matches) | |
oembed_fetch_url ($embedurl) | |
oembed_format_object ($j) | |
oembed_iframe ($src, $width, $height) | |
oembed_bbcode2html ($text) | |
oe_build_xpath ($attr, $value) | |
oe_get_inner_html ($node) | |
oembed_html2bbcode ($text) | |
oe_build_xpath | +( | ++ | $attr, | +
+ | + | + | $value | +
+ | ) | ++ |
Referenced by oembed_fetch_url(), and oembed_html2bbcode().
+ +oe_get_inner_html | +( | ++ | $node | ) | ++ |
Referenced by oembed_html2bbcode().
+ +oembed_bbcode2html | +( | ++ | $text | ) | ++ |
Referenced by bbcode().
+ +oembed_fetch_url | +( | ++ | $embedurl | ) | ++ |
Referenced by oembed_init(), oembed_replacecb(), and tryoembed().
+ +oembed_format_object | +( | ++ | $j | ) | ++ |
Referenced by oembed_replacecb(), and tryoembed().
+ +oembed_html2bbcode | +( | ++ | $text | ) | ++ |
Find
+ + and replace it with [embed]url[/embed]Referenced by get_atom_elements(), and oembed_init().
+ +oembed_iframe | +( | ++ | $src, | +
+ | + | + | $width, | +
+ | + | + | $height | +
+ | ) | ++ |
Referenced by oembed_format_object().
+ +oembed_replacecb | +( | ++ | $matches | ) | ++ |
Referenced by oembed_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
photo_upload ($channel, $observer, $args) | |
photos_albums_list ($channel, $observer) | |
photos_album_widget ($channelx, $observer, $albums=null) | |
photos_list_photos ($channel, $observer, $album= '') | |
photos_album_exists ($channel_id, $album) | |
photos_album_rename ($channel_id, $oldname, $newname) | |
photos_album_get_db_idstr ($channel_id, $album, $remote_xchan= '') | |
photos_create_item ($channel, $creator_hash, $photo, $visible=false) | |
photo_upload | +( | ++ | $channel, | +
+ | + | + | $observer, | +
+ | + | + | $args | +
+ | ) | ++ |
Determine the album to use
+We create a wall item for every photo, but we don't want to overwhelm the data stream with a hundred newly uploaded photos. So we will make the first photo uploaded to this album in the last several hours visible by default, the rest will become visible over time when and if they acquire comments, likes, dislikes, and/or tags
+ +Referenced by photos_post(), and wall_upload_post().
+ +photos_album_exists | +( | ++ | $channel_id, | +
+ | + | + | $album | +
+ | ) | ++ |
Referenced by photos_post().
+ +photos_album_get_db_idstr | +( | ++ | $channel_id, | +
+ | + | + | $album, | +
+ | + | + | $remote_xchan = '' |
+
+ | ) | ++ |
Referenced by photos_post().
+ +photos_album_rename | +( | ++ | $channel_id, | +
+ | + | + | $oldname, | +
+ | + | + | $newname | +
+ | ) | ++ |
Referenced by photos_post().
+ +photos_album_widget | +( | ++ | $channelx, | +
+ | + | + | $observer, | +
+ | + | + | $albums = null |
+
+ | ) | ++ |
Referenced by widget_photo_albums().
+ +photos_albums_list | +( | ++ | $channel, | +
+ | + | + | $observer | +
+ | ) | ++ |
Referenced by api_albums(), photos_album_widget(), and photos_content().
+ +photos_create_item | +( | ++ | $channel, | +
+ | + | + | $creator_hash, | +
+ | + | + | $photo, | +
+ | + | + | $visible = false |
+
+ | ) | ++ |
Referenced by photos_post().
+ +photos_list_photos | +( | ++ | $channel, | +
+ | + | + | $observer, | +
+ | + | + | $album = '' |
+
+ | ) | ++ |
Referenced by api_photos().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
net_have_driver ($net) | |
probe_well_known ($addr) | |
probe_webfinger ($addr) | |
probe_legacy_webfinger ($addr) | |
probe_zot ($addr) | |
probe_dfrn ($addr) | |
probe_diaspora ($addr) | |
probe_legacy_feed ($addr) | |
probe_activity_stream ($addr) | |
net_have_driver | +( | ++ | $net | ) | ++ |
Functions to assist in probing various legacy networks to figure out what kind of capabilities might be present.
+ +Referenced by probe_well_known().
+ +probe_activity_stream | +( | ++ | $addr | ) | ++ |
probe_dfrn | +( | ++ | $addr | ) | ++ |
probe_diaspora | +( | ++ | $addr | ) | ++ |
probe_legacy_feed | +( | ++ | $addr | ) | ++ |
probe_legacy_webfinger | +( | ++ | $addr | ) | ++ |
probe_webfinger | +( | ++ | $addr | ) | ++ |
probe_well_known | +( | ++ | $addr | ) | ++ |
probe_zot | +( | ++ | $addr | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
build_sync_packet ($uid=0, $packet=null) | |
build_sync_packet | +( | ++ | $uid = 0 , |
+
+ | + | + | $packet = null |
+
+ | ) | ++ |
Send a zot packet to all hubs where this channel is duplicated, refreshing such things as personal settings, channel permissions, address book updates, etc.
+ +Referenced by connections_clone(), and settings_post().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for ITemplateEngine, including all inherited members.
+get_markup_template($file, $root='') | ITemplateEngine | |
replace_macros($s, $v) | ITemplateEngine |
![]() |
+
+ The Red Matrix
+
+ |
+
+Public Member Functions | |
replace_macros ($s, $v) | |
get_markup_template ($file, $root='') | |
Interface for template engines
+ITemplateEngine::get_markup_template | +( | ++ | $file, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
Implemented in Template, and FriendicaSmartyEngine.
+ +ITemplateEngine::replace_macros | +( | ++ | $s, | +
+ | + | + | $v | +
+ | ) | ++ |
Implemented in Template, and FriendicaSmartyEngine.
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
intro_post (&$a) | |
intro_aside (&$a) | |
intro_content (&$a) | |
intro_aside | +( | +& | +$a | ) | ++ |
intro_content | +( | +& | +$a | ) | ++ |
intro_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
invite_post (&$a) | |
invite_content (&$a) | |
invite_content | +( | +& | +$a | ) | ++ |
invite_post | +( | +& | +$a | ) | ++ |
module: invite.php
+send email invitations to join social network
+ +![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
network_query ($a, $arr) | |
network_query | +( | ++ | $a, | +
+ | + | + | $arr | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
item_post (&$a) | |
item_content (&$a) | |
handle_tag ($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) | |
fix_attached_photo_permissions ($uid, $xchan_hash, $body, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny) | |
fix_attached_file_permissions ($channel, $observer_hash, $body, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny) | |
item_check_service_class ($channel_id, $iswebpage) | |
fix_attached_file_permissions | +( | ++ | $channel, | +
+ | + | + | $observer_hash, | +
+ | + | + | $body, | +
+ | + | + | $str_contact_allow, | +
+ | + | + | $str_group_allow, | +
+ | + | + | $str_contact_deny, | +
+ | + | + | $str_group_deny | +
+ | ) | ++ |
Referenced by item_post().
+ +fix_attached_photo_permissions | +( | ++ | $uid, | +
+ | + | + | $xchan_hash, | +
+ | + | + | $body, | +
+ | + | + | $str_contact_allow, | +
+ | + | + | $str_group_allow, | +
+ | + | + | $str_contact_deny, | +
+ | + | + | $str_group_deny | +
+ | ) | ++ |
Referenced by item_post().
+ +handle_tag | +( | ++ | $a, | +
+ | + | & | +$body, | +
+ | + | & | +$access_tag, | +
+ | + | & | +$str_tags, | +
+ | + | + | $profile_uid, | +
+ | + | + | $tag | +
+ | ) | ++ |
This function removes the tag $tag from the text $body and replaces it with the appropiate link.
+unknown_type | $body | the text to replace the tag in |
unknown_type | $access_tag | - used to return tag ACL exclusions e.g. @!foo |
unknown_type | $str_tags | string to add the tag to |
unknown_type | $profile_uid | |
unknown_type | $tag | the tag to replace |
Referenced by item_post(), and photos_post().
+ +item_check_service_class | +( | ++ | $channel_id, | +
+ | + | + | $iswebpage | +
+ | ) | ++ |
Referenced by item_post().
+ +item_content | +( | +& | +$a | ) | ++ |
item_post | +( | +& | +$a | ) | ++ |
This is the POST destination for most all locally posted text stuff. This function handles status, wall-to-wall status, local comments, and remote coments that are posted on this site (as opposed to being delivered in a feed). Also processed here are posts and comments coming through the statusnet/twitter API. All of these become an "item" which is our basic unit of information. Posts that originate externally or do not fall into the above posting categories go through item_store() instead of this function.
+Is this a reply to something?
+fix naked links by passing through a callback to see if this is a red site (already known to us) which will get a zrl, otherwise link with url, add bookmark tag to both. First protect any url inside certain bbcode tags so we don't double link it.
+When a photo was uploaded into the message using the (profile wall) ajax uploader, The permissions are initially set to disallow anybody but the owner from seeing it. This is because the permissions may not yet have been set for the post. If it's private, the photo permissions should be set appropriately. But we didn't know the final permissions on the post until now. So now we'll look for links of uploaded photos and attachments that are in the post and set them to the same permissions as the post itself.
+If the post was end-to-end encrypted we can't find images and attachments in the body, use our media_str input instead which only contains these elements - but only do this when encrypted content exists because the photo/attachment may have been removed from the post and we should keep it private. If it's encrypted we have no way of knowing so we'll set the permissions regardless and realise that the media may not be referenced in the post.
+What is preventing us from being able to upload photos into comments is dealing with the photo and attachment permissions, since we don't always know who was in the distribution for the top level post.
+We might be able to provide this functionality with a lot of fiddling:
+Fold multi-line [code] sequences
+Look for any tags and linkify them
+ +Referenced by api_statuses_mediap(), api_statuses_repeat(), api_statuses_update(), oexchange_content(), and red_item_new().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
collect_recipients ($item, &$private) | |
can_comment_on_post ($observer_xchan, $item) | |
add_source_route ($iid, $hash) | |
red_zrl_callback ($matches) | |
red_escape_zrl_callback ($matches) | |
red_escape_codeblock ($m) | |
red_unescape_codeblock ($m) | |
red_zrlify_img_callback ($matches) | |
post_activity_item ($arr) | |
get_public_feed ($channel, $params) | |
get_feed_for ($channel, $observer_hash, $params) | |
construct_verb ($item) | |
construct_activity_object ($item) | |
construct_activity_target ($item) | |
limit_body_size ($body) | |
title_is_body ($title, $body) | |
get_item_elements ($x) | |
import_author_xchan ($x) | |
import_author_rss ($x) | |
encode_item ($item) | |
map_scope ($scope) | |
encode_item_xchan ($xchan) | |
encode_item_terms ($terms) | |
termtype ($t) | |
decode_tags ($t) | |
activity_sanitise ($arr) | |
array_sanitise ($arr) | |
encode_item_flags ($item) | |
encode_mail ($item) | |
get_mail_elements ($x) | |
get_profile_elements ($x) | |
get_atom_elements ($feed, $item) | |
encode_rel_links ($links) | |
item_store ($arr, $allow_exec=false) | |
item_store_update ($arr, $allow_exec=false) | |
send_status_notifications ($post_id, $item) | |
get_item_contact ($item, $contacts) | |
tag_deliver ($uid, $item_id) | |
tgroup_check ($uid, $item) | |
check_item_source ($uid, $item) | |
mail_store ($arr) | |
consume_feed ($xml, $importer, &$contact, &$hub, $datedir=0, $pass=0) | |
atom_author ($tag, $name, $uri, $h, $w, $type, $photo) | |
atom_entry ($item, $type, $author, $owner, $comment=false, $cid=0) | |
fix_private_photos ($s, $uid, $item=null, $cid=0) | |
has_permissions ($obj) | |
compare_permissions ($obj1, $obj2) | |
enumerate_permissions ($obj) | |
item_getfeedtags ($item) | |
item_getfeedattach ($item) | |
item_expire ($uid, $days) | |
retain_item ($id) | |
drop_items ($items) | |
drop_item ($id, $interactive=true, $stage=DROPITEM_NORMAL) | |
delete_item_lowlevel ($item, $stage=DROPITEM_NORMAL) | |
first_post_date ($uid, $wall=false) | |
list_post_dates ($uid, $wall) | |
posted_dates ($uid, $wall) | |
fetch_post_tags ($items, $link=false) | |
zot_feed ($uid, $observer_xchan, $mindate) | |
items_fetch ($arr, $channel=null, $observer_hash=null, $client_mode=CLIENT_MODE_NORMAL, $module= 'network') | |
update_remote_id ($channel, $post_id, $webpage, $pagetitle, $namespace, $remote_id, $mid) | |
item_add_cid ($xchan_hash, $mid, $uid) | |
item_remove_cid ($xchan_hash, $mid, $uid) | |
activity_sanitise | +( | ++ | $arr | ) | ++ |
Referenced by get_item_elements(), get_mail_elements(), item_store(), and item_store_update().
+ +add_source_route | +( | ++ | $iid, | +
+ | + | + | $hash | +
+ | ) | ++ |
add_source_route($iid,$hash) Adds $hash to the item source route specified by $iid
+integer | $iid | item['id'] of target item |
string | $hash | xchan_hash of the channel that sent the item Modifies item pointed to by $iid |
$item['route'] contains a comma-separated list of xchans that sent the current message, somewhat analogous to the * Received: header line in email. We can use this to perform loop detection and to avoid sending a particular item to any "upstream" sender (they already have a copy because they sent it to us).
+ +Referenced by process_delivery().
+ +array_sanitise | +( | ++ | $arr | ) | ++ |
Referenced by get_profile_elements().
+ +atom_author | +( | ++ | $tag, | +
+ | + | + | $name, | +
+ | + | + | $uri, | +
+ | + | + | $h, | +
+ | + | + | $w, | +
+ | + | + | $type, | +
+ | + | + | $photo | +
+ | ) | ++ |
Referenced by atom_entry().
+ +atom_entry | +( | ++ | $item, | +
+ | + | + | $type, | +
+ | + | + | $author, | +
+ | + | + | $owner, | +
+ | + | + | $comment = false , |
+
+ | + | + | $cid = 0 |
+
+ | ) | ++ |
Referenced by get_feed_for().
+ +can_comment_on_post | +( | ++ | $observer_xchan, | +
+ | + | + | $item | +
+ | ) | ++ |
can_comment_on_post($observer_xchan,$item);
+This function examines the comment_policy attached to an item and decides if the current observer has sufficient privileges to comment. This will normally be called on a remote site where perm_is_allowed() will not be suitable because the post owner does not have a local channel_id. Generally we should look at the item - in particular the author['book_flags'] and see if ABOOK_FLAG_SELF is set. If it is, you should be able to use perm_is_allowed( ... 'post_comments'), and if it isn't you need to call can_comment_on_post()
+ +Referenced by Conversation\add_thread(), and item_post().
+ +check_item_source | +( | ++ | $uid, | +
+ | + | + | $item | +
+ | ) | ++ |
check_item_source($uid,$item)
+$uid | |
$item | Checks to see if this item owner is referenced as a source for this channel and if the post matches the rules for inclusion in this channel. Returns true if we should create a second delivery chain and false if none of the rules apply, or if the item is private. |
Referenced by tag_deliver().
+ +collect_recipients | +( | ++ | $item, | +
+ | + | & | +$private | +
+ | ) | ++ |
Referenced by notifier_run().
+ +compare_permissions | +( | ++ | $obj1, | +
+ | + | + | $obj2 | +
+ | ) | ++ |
Referenced by fix_private_photos().
+ +construct_activity_object | +( | ++ | $item | ) | ++ |
Referenced by atom_entry().
+ +construct_activity_target | +( | ++ | $item | ) | ++ |
Referenced by atom_entry().
+ +construct_verb | +( | ++ | $item | ) | ++ |
Referenced by atom_entry().
+ +consume_feed | +( | ++ | $xml, | +
+ | + | + | $importer, | +
+ | + | & | +$contact, | +
+ | + | & | +$hub, | +
+ | + | + | $datedir = 0 , |
+
+ | + | + | $pass = 0 |
+
+ | ) | ++ |
consume_feed - process atom feed and update anything/everything we might need to update
+$xml = the (atom) feed to consume - RSS isn't as fully supported but may work for simple feeds.
+$importer = the contact_record (joined to user_record) of the local user who owns this relationship. It is this person's stuff that is going to be updated. $contact = the person who is sending us stuff. If not set, we MAY be processing a "follow" activity from an external network and MAY create an appropriate contact record. Otherwise, we MUST have a contact record. $hub = should we find a hub declation in the feed, pass it back to our calling process, who might (or might not) try and subscribe to it. $datedir sorts in reverse order $pass - by default ($pass = 0) we cannot guarantee that a parent item has been imported prior to its children being seen in the stream unless we are certain of how the feed is arranged/ordered. With $pass = 1, we only pull parent items out of the stream. With $pass = 2, we only pull children (comments/likes).
+So running this twice, first with pass 1 and then with pass 2 will do the right thing regardless of feed ordering. This won't be adequate in a fully-threaded model where comments can have sub-threads. That would require some massive sorting to get all the feed items into a mostly linear ordering, and might still require recursion.
+ +decode_tags | +( | ++ | $t | ) | ++ |
Referenced by get_item_elements().
+ +delete_item_lowlevel | +( | ++ | $item, | +
+ | + | + | $stage = DROPITEM_NORMAL |
+
+ | ) | ++ |
Referenced by drop_item().
+ +drop_item | +( | ++ | $id, | +
+ | + | + | $interactive = true , |
+
+ | + | + | $stage = DROPITEM_NORMAL |
+
+ | ) | ++ |
Referenced by api_statuses_destroy(), contact_remove(), delete_imported_item(), drop_items(), expire_run(), item_content(), item_expire(), like_content(), photos_post(), poller_run(), and remove_all_xchan_resources().
+ +drop_items | +( | ++ | $items | ) | ++ |
Referenced by item_post().
+ +encode_item | +( | ++ | $item | ) | ++ |
Referenced by notifier_run(), and zot_feed().
+ +encode_item_flags | +( | ++ | $item | ) | ++ |
Referenced by encode_item().
+ +encode_item_terms | +( | ++ | $terms | ) | ++ |
Referenced by encode_item().
+ +encode_item_xchan | +( | ++ | $xchan | ) | ++ |
Referenced by encode_item(), and encode_mail().
+ +encode_mail | +( | ++ | $item | ) | ++ |
Referenced by notifier_run().
+ +encode_rel_links | +( | ++ | $links | ) | ++ |
Referenced by get_atom_elements().
+ +enumerate_permissions | +( | ++ | $obj | ) | ++ |
Referenced by compare_permissions(), and fix_private_photos().
+ +fetch_post_tags | +( | ++ | $items, | +
+ | + | + | $link = false |
+
+ | ) | ++ |
Referenced by block_content(), bookmarks_init(), channel_content(), display_content(), editpost_content(), event_store_item(), events_content(), home_content(), item_expire(), items_fetch(), network_content(), notifier_run(), page_content(), search_content(), tag_deliver(), widget_item(), and zot_feed().
+ +first_post_date | +( | ++ | $uid, | +
+ | + | + | $wall = false |
+
+ | ) | ++ |
Referenced by list_post_dates(), and posted_dates().
+ +fix_private_photos | +( | ++ | $s, | +
+ | + | + | $uid, | +
+ | + | + | $item = null , |
+
+ | + | + | $cid = 0 |
+
+ | ) | ++ |
Referenced by atom_entry().
+ +get_atom_elements | +( | ++ | $feed, | +
+ | + | + | $item | +
+ | ) | ++ |
If there's a copy of the body content which is guaranteed to have survived mangling in transit, use it.
+ +Referenced by consume_feed().
+ +get_feed_for | +( | ++ | $channel, | +
+ | + | + | $observer_hash, | +
+ | + | + | $params | +
+ | ) | ++ |
Referenced by get_public_feed().
+ +get_item_contact | +( | ++ | $item, | +
+ | + | + | $contacts | +
+ | ) | ++ |
get_item_elements | +( | ++ | $x | ) | ++ |
Referenced by externals_run(), onepoll_run(), and zot_import().
+ +get_mail_elements | +( | ++ | $x | ) | ++ |
Referenced by zot_import().
+ +get_profile_elements | +( | ++ | $x | ) | ++ |
Referenced by zot_import().
+ +get_public_feed | +( | ++ | $channel, | +
+ | + | + | $params | +
+ | ) | ++ |
get_public_feed($channel,$params) generate an Atom feed
+ +Referenced by feed_init().
+ +has_permissions | +( | ++ | $obj | ) | ++ |
Referenced by fix_private_photos().
+ +import_author_rss | +( | ++ | $x | ) | ++ |
Referenced by import_author_xchan().
+ +import_author_xchan | +( | ++ | $x | ) | ++ |
Referenced by get_item_elements(), get_mail_elements(), and get_profile_elements().
+ +item_add_cid | +( | ++ | $xchan_hash, | +
+ | + | + | $mid, | +
+ | + | + | $uid | +
+ | ) | ++ |
change access control for item with message_id $mid and channel_id $uid
+ +item_expire | +( | ++ | $uid, | +
+ | + | + | $days | +
+ | ) | ++ |
Referenced by expire_run().
+ +item_getfeedattach | +( | ++ | $item | ) | ++ |
item_getfeedtags | +( | ++ | $item | ) | ++ |
item_remove_cid | +( | ++ | $xchan_hash, | +
+ | + | + | $mid, | +
+ | + | + | $uid | +
+ | ) | ++ |
item_store | +( | ++ | $arr, | +
+ | + | + | $allow_exec = false |
+
+ | ) | ++ |
Referenced by event_store_item(), item_post(), like_content(), mood_init(), photo_upload(), photos_create_item(), post_activity_item(), process_delivery(), profile_activity(), and subthread_content().
+ +item_store_update | +( | ++ | $arr, | +
+ | + | + | $allow_exec = false |
+
+ | ) | ++ |
Referenced by item_post(), photos_post(), and update_imported_item().
+ +items_fetch | +( | ++ | $arr, | +
+ | + | + | $channel = null , |
+
+ | + | + | $observer_hash = null , |
+
+ | + | + | $client_mode = CLIENT_MODE_NORMAL , |
+
+ | + | + | $module = 'network' |
+
+ | ) | ++ |
Referenced by api_statuses_user_timeline(), and get_feed_for().
+ +limit_body_size | +( | ++ | $body | ) | ++ |
Referenced by get_atom_elements().
+ +list_post_dates | +( | ++ | $uid, | +
+ | + | + | $wall | +
+ | ) | ++ |
modified posted_dates() {below} to arrange the list in years, which we'll eventually use to make a menu of years with collapsible sub-menus for the months instead of the current flat list of all representative dates.
+ +Referenced by widget_archive().
+ +mail_store | +( | ++ | $arr | ) | ++ |
Referenced by process_mail_delivery().
+ +map_scope | +( | ++ | $scope | ) | ++ |
Referenced by encode_item(), item_post(), and post_activity_item().
+ +post_activity_item | +( | ++ | $arr | ) | ++ |
post_activity_item($arr)
+post an activity +
array | $arr | In its simplest form one needs only to set $arr['body'] to post a note to the logged in channel's wall. Much more complex activities can be created. Permissions are checked. No filtering, tag expansion or other processing is performed. |
Referenced by api_channel_stream(), poke_init(), tagger_content(), and thing_init().
+ +posted_dates | +( | ++ | $uid, | +
+ | + | + | $wall | +
+ | ) | ++ |
red_escape_codeblock | +( | ++ | $m | ) | ++ |
red_escape_zrl_callback | +( | ++ | $matches | ) | ++ |
red_unescape_codeblock | +( | ++ | $m | ) | ++ |
red_zrl_callback | +( | ++ | $matches | ) | ++ |
red_zrl_callback preg_match function when fixing 'naked' links in mod item.php Check if we've got a hubloc for the site and use a zrl if we do, a url if we don't. Remove any existing zid= param which may have been pasted by mistake - and will have the author's credentials. zid's are dynamic and can't really be passed around like that.
+ +red_zrlify_img_callback | +( | ++ | $matches | ) | ++ |
retain_item | +( | ++ | $id | ) | ++ |
Referenced by item_expire().
+ +send_status_notifications | +( | ++ | $post_id, | +
+ | + | + | $item | +
+ | ) | ++ |
Referenced by item_store(), and item_store_update().
+ +tag_deliver | +( | ++ | $uid, | +
+ | + | + | $item_id | +
+ | ) | ++ |
Referenced by delete_imported_item(), item_content(), item_store(), and item_store_update().
+ +termtype | +( | ++ | $t | ) | ++ |
Referenced by encode_item_terms().
+ +tgroup_check | +( | ++ | $uid, | +
+ | + | + | $item | +
+ | ) | ++ |
Referenced by consume_feed(), and process_delivery().
+ +title_is_body | +( | ++ | $title, | +
+ | + | + | $body | +
+ | ) | ++ |
Referenced by get_atom_elements().
+ +update_remote_id | +( | ++ | $channel, | +
+ | + | + | $post_id, | +
+ | + | + | $webpage, | +
+ | + | + | $pagetitle, | +
+ | + | + | $namespace, | +
+ | + | + | $remote_id, | +
+ | + | + | $mid | +
+ | ) | ++ |
Referenced by item_post().
+ +zot_feed | +( | ++ | $uid, | +
+ | + | + | $observer_xchan, | +
+ | + | + | $mindate | +
+ | ) | ++ |
Referenced by zotfeed_init().
+ +t |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
lang_content (&$a) | |
lang_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
translation support +More...
++Functions | |
get_browser_language () | |
Get the browser's submitted preferred languages. More... | |
get_best_language () | |
Returns the best language for which also a translation exists. More... | |
push_lang ($language) | |
pop_lang () | |
load_translation_table ($lang, $install=false) | |
t ($s, $ctx= '') | |
translate string if translation exists. More... | |
tt ($singular, $plural, $count, $ctx= '') | |
string_plural_select_default ($n) | |
detect_language ($s) | |
Takes a string and tries to identify the language. More... | |
get_language_name ($s, $l=null) | |
Returns the display name of a given language code. More... | |
translation support
+This file contains functions to work with translations and other language related tasks.
+detect_language | +( | ++ | $s | ) | ++ |
Takes a string and tries to identify the language.
+It uses the pear library Text_LanguageDetect and it can identify 52 human languages. It returns the identified languges and a confidence score for each.
+Strings need to have a min length config['system']['language_detect_min_length'] and you can influence the confidence that must be met before a result will get returned through config['system']['language_detect_min_confidence'].
+ +s | A string to examine |
Referenced by item_store(), and item_store_update().
+ +get_best_language | +( | +) | ++ |
Returns the best language for which also a translation exists.
+This function takes the results from get_browser_language() and compares it with the available translations and returns the best fitting language for which there exists a translation.
+If there is no match fall back to config['system']['language']
+Referenced by create_account().
+ +get_browser_language | +( | +) | ++ |
Get the browser's submitted preferred languages.
+This functions parses the HTTP_ACCEPT_LANGUAGE header sent by the browser and extracts the preferred languages and their priority.
+Get the language setting directly from system variables, bypassing get_config() as database may not yet be configured.
+If possible, we use the value from the browser.
+Referenced by get_best_language().
+ +get_language_name | +( | ++ | $s, | +
+ | + | + | $l = null |
+
+ | ) | ++ |
Returns the display name of a given language code.
+By default we use the localized language name. You can switch the result to any language with the optional 2nd parameter $l.
+$s and $l can be in any format that PHP's Locale understands. We will mostly use the 2-letter ISO 639-1 (en, de, fr) format.
+If nothing could be looked up it returns $s.
+$s | Language code to look up |
$l | (optional) In which language to return the name |
load_translation_table | +( | ++ | $lang, | +
+ | + | + | $install = false |
+
+ | ) | ++ |
Referenced by push_lang().
+ +pop_lang | +( | +) | ++ |
Referenced by notification(), send_reg_approval_email(), and user_allow().
+ +push_lang | +( | ++ | $language | ) | ++ |
Referenced by notification(), send_reg_approval_email(), and user_allow().
+ +string_plural_select_default | +( | ++ | $n | ) | ++ |
t | +( | ++ | $s, | +
+ | + | + | $ctx = '' |
+
+ | ) | ++ |
translate string if translation exists.
+$s | string that should get translated |
$ctx | optional context to appear in po file |
Referenced by achievements_content(), acl_init(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), admin_page_logs(), admin_page_logs_post(), admin_page_plugins(), admin_page_site(), admin_page_site_post(), admin_page_summary(), admin_page_themes(), admin_page_users(), admin_post(), advanced_profile(), alt_pager(), api_content(), api_post(), api_statuses_public_timeline(), app_render(), app_store(), app_update(), appman_content(), appman_post(), apps_content(), apw_form(), attach_by_hash(), attach_by_hash_nodata(), attach_count_files(), attach_init(), attach_list_files(), attach_mkdir(), attach_store(), bbcode(), block_content(), blocks_content(), blogtheme_form(), bookmark_add(), bookmarks_content(), bookmarks_init(), categories_widget(), channel_content(), channel_init(), chanview_content(), chat_content(), chat_init(), chatroom_create(), chatroom_destroy(), chatroom_enter(), chatsvc_content(), check_account_email(), check_account_invite(), check_config(), check_form_security_std_err_msg(), check_funcs(), check_htaccess(), check_htconfig(), check_keys(), check_php(), check_smarty3(), check_store(), cloud_init(), common_content(), common_friends_visitor_widget(), common_init(), connect_content(), connect_init(), connect_post(), connections_content(), connections_post(), connedit_content(), connedit_post(), construct_page(), contact_block(), contact_poll_interval(), contact_reputation(), conversation(), create_account(), create_identity(), datesel_format(), day_translate(), delegate_content(), design_tools(), dir_safe_mode(), dir_sort_links(), dir_tagblock(), directory_content(), dirprofile_init(), dirsearch_content(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), event_store_item(), events_content(), events_post(), fbrowser_content(), fileas_widget(), filer_content(), filestorage_content(), filestorage_post(), findpeople_widget(), follow_init(), format_categories(), format_event_diaspora(), format_event_html(), format_filer(), format_like(), format_notification(), fsuggest_content(), fsuggest_post(), gender_selector(), RedBrowser\generateDirectoryIndex(), get_birthdays(), Item\get_comment_box(), get_events(), get_features(), get_mood_verbs(), get_perms(), get_plink(), get_poke_verbs(), Item\get_template_data(), group_add(), group_content(), group_post(), group_side(), help_content(), home_content(), RedBrowser\htmlActionsPanel(), identity_check_service_class(), import_author_rss(), import_channel_photo(), import_content(), import_post(), import_xchan(), dba_driver\install(), invite_content(), invite_post(), item_check_service_class(), item_content(), item_photo_menu(), item_post(), item_post_type(), items_fetch(), lang_selector(), layout_select(), layouts_content(), like_content(), load_database(), localize_item(), lockview_content(), login(), lostpass_content(), lostpass_post(), magic_init(), mail_content(), mail_post(), manage_content(), manual_config(), marital_selector(), match_content(), menu_content(), menu_post(), menu_render(), message_content(), mimetype_select(), mini_group_select(), mitem_content(), mitem_init(), mitem_post(), mood_content(), mood_init(), nav(), network_content(), network_init(), network_to_name(), new_channel_content(), new_channel_post(), new_contact(), notice(), notification(), notifications_content(), notifications_post(), notify_content(), obj_verbs(), oembed_bbcode2html(), oembed_iframe(), oexchange_content(), openid_content(), page_content(), pagelist_widget(), paginate(), pdl_selector(), pdledit_content(), pdledit_post(), photo_upload(), photos_album_widget(), photos_content(), photos_init(), photos_post(), ping_init(), poke_content(), poke_init(), populate_acl(), post_activity_item(), post_init(), probe_content(), profile_activity(), profile_content(), profile_init(), profile_load(), profile_photo_post(), profile_sidebar(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), pubsites_content(), rbmark_content(), rbmark_post(), redbasic_form(), register_content(), register_post(), regmod_content(), relative_date(), removeme_content(), rmagic_content(), rmagic_post(), rpost_content(), scale_external_images(), search(), search_content(), searchbox(), select_timezone(), send_message(), send_reg_approval_email(), send_verification_email(), settings_post(), setup_content(), sexpref_selector(), siteinfo_content(), sources_content(), sources_post(), subthread_content(), suggest_content(), tagblock(), tagger_content(), tagrm_content(), tagrm_post(), theme_attachments(), thing_content(), thing_init(), timezone_cmp(), translate_system_apps(), update_birthdays(), update_channel_content(), update_display_content(), update_network_content(), update_search_content(), upgrade_bool_message(), upgrade_link(), upgrade_message(), user_allow(), user_deny(), validate_channelname(), vcard_from_xchan(), viewconnections_content(), viewsrc_content(), vote_content(), wall_upload_post(), webpages_content(), what_next(), widget_affinity(), widget_appselect(), widget_archive(), widget_bookmarkedchats(), widget_chatroom_list(), widget_filer(), widget_follow(), widget_mailmenu(), widget_notes(), widget_savedsearch(), widget_settings_menu(), widget_suggestedchats(), widget_suggestions(), widget_tagcloud(), writepages_widget(), xchan_content(), z_readdir(), and zfinger_init().
+ +tt | +( | ++ | $singular, | +
+ | + | + | $plural, | +
+ | + | + | $count, | +
+ | + | + | $ctx = '' |
+
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
lastpost_init (&$a) | |
lastpost_aside (&$a) | |
lastpost_content (&$a, $update=0, $load=false) | |
lastpost_aside | +( | +& | +$a | ) | ++ |
lastpost_content | +( | +& | +$a, | +
+ | + | + | $update = 0 , |
+
+ | + | + | $load = false |
+
+ | ) | ++ |
Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups
+ +lastpost_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
layouts_content (&$a) | |
layouts_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
like_content (&$a) | |
like_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
lockview_content (&$a) | |
lockview_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
login_content (&$a) | |
login_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
lostpass_post (&$a) | |
lostpass_content (&$a) | |
lostpass_content | +( | +& | +$a | ) | ++ |
lostpass_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
magic_init (&$a) | |
magic_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
mail_post (&$a) | |
mail_content (&$a) | |
mail_content | +( | +& | +$a | ) | ++ |
mail_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
manage_content (&$a) | |
manage_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
match_content (&$a) | |
match_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
A Polymorphic Wapentake theme for the Red Matrix.
+![]() |
+
+ The Red Matrix
+
+ |
+
Usage:
+config displays all config entries
+config family displays all config entries for family (system, database, etc)
+config family key displays single config entry for specified family and key
+config family key value set config entry for specified family and key to value and display result
+Notes: Setting config entries which are manually set in .htconfig.php may result in conflict between database settings and the manual startup settings.
+![]() |
+
+ The Red Matrix
+
+ |
+
This will only work on Unix/Linux. If the readline module is installed, we will use that for input, otherwise we will just read from stdin and write to stdout.
+Commands are processed sequentially until the command "exit", "quit", or end of file is reached.
+Commands:
+![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$width = '90%' | |
$minwidth = '90%' | |
$itemfloat = 'none' | |
$aside = 'off' | |
$sectionwidth = '80%' | |
$sectionleft = '10px' | |
$aside = 'off' | +
Referenced by admin_content(), apw_form(), and theme_content().
+ +$itemfloat = 'none' | +
Referenced by apw_form(), and theme_content().
+ +$minwidth = '90%' | +
Referenced by apw_form(), and theme_content().
+ +$sectionleft = '10px' | +
Referenced by apw_form(), and theme_content().
+ +$sectionwidth = '80%' | +
Referenced by apw_form(), and theme_content().
+ +$width = '90%' | +
Referenced by apw_form(), fix_private_photos(), import_profile_photo(), oembed_iframe(), photo_upload(), photos_post(), and theme_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
mitem_init (&$a) | |
mitem_post (&$a) | |
mitem_content (&$a) | |
mitem_content | +( | +& | +$a | ) | ++ |
mitem_init | +( | +& | +$a | ) | ++ |
mitem_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
oauth_get_client ($request) | |
api_post (&$a) | |
api_content (&$a) | |
api_content | +( | +& | +$a | ) | ++ |
api_post | +( | +& | +$a | ) | ++ |
oauth_get_client | +( | ++ | $request | ) | ++ |
Referenced by api_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
apps_content (&$a) | |
apps_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
attach_init (&$a) | |
attach_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
bookmarks_init (&$a) | |
bookmarks_content (&$a) | |
bookmarks_content | +( | +& | +$a | ) | ++ |
bookmarks_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
chat_init (&$a) | |
chat_post (&$a) | |
chat_content (&$a) | |
chat_content | +( | +& | +$a | ) | ++ |
chat_init | +( | +& | +$a | ) | ++ |
chat_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
directory_init (&$a) | |
directory_content (&$a) | |
directory_content | +( | +& | +$a | ) | ++ |
directory_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
follow_init (&$a) | |
follow_content (&$a) | |
follow_content | +( | +& | +$a | ) | ++ |
follow_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
group_post (&$a) | |
group_content (&$a) | |
group_content | +( | +& | +$a | ) | ++ |
group_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
menu_post (&$a) | |
menu_content (&$a) | |
menu_content | +( | +& | +$a | ) | ++ |
menu_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
message_content (&$a) | |
message_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
network_init (&$a) | |
network_content (&$a, $update=0, $load=false) | |
network_content | +( | +& | +$a, | +
+ | + | + | $update = 0 , |
+
+ | + | + | $load = false |
+
+ | ) | ++ |
Referenced by update_network_content().
+ +network_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
notify_init (&$a) | |
notify_content (&$a) | |
notify_content | +( | +& | +$a | ) | ++ |
notify_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
oembed_init (&$a) | |
oembed_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
photos_init (&$a) | |
photos_post (&$a) | |
photos_content (&$a) | |
photos_content | +( | +& | +$a | ) | ++ |
Display upload form
+Display one photo
+ +photos_init | +( | +& | +$a | ) | ++ |
photos_post | +( | +& | +$a | ) | ++ |
default post action - upload a photo
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
probe_content (&$a) | |
probe_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
get_theme_config_file ($theme) | |
settings_init (&$a) | |
settings_aside (&$a) | |
settings_post (&$a) | |
get_theme_config_file | +( | ++ | $theme | ) | ++ |
Referenced by settings_post().
+ +settings_aside | +( | +& | +$a | ) | ++ |
settings_init | +( | +& | +$a | ) | ++ |
settings_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$a | page ['template'] = 'full' |
$a page['template'] = 'full' | +
Referenced by App\__construct(), and App\build_pagehead().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$a | page ['template'] = 'full' |
$a page['template'] = 'full' | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$a | page ['template'] = 'full' |
$a page['template'] = 'full' | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
mood_init (&$a) | |
mood_content (&$a) | |
mood_content | +( | +& | +$a | ) | ++ |
mood_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
msearch_post (&$a) | |
msearch_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
mytheme_init (&$a) | |
mytheme_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
def | fToSmarty |
def | fix_element |
def | convert |
def | help |
+Variables | |
string | ldelim = '{{' |
string | rdelim = '}}' |
string | path = '' |
string | outpath = path+'smarty3/' |
tuple | files = os.listdir(path) |
php_tpl = True | |
tuple | filename = os.path.join(path,a_file) |
tuple | ext = a_file.split('.') |
tuple | f = open(filename, 'r') |
tuple | newfilename = os.path.join(outpath,a_file) |
tuple | outf = open(newfilename, 'w') |
def friendica-to-smarty-tpl.convert | +( | ++ | filename, | +
+ | + | + | tofilename, | +
+ | + | + | php_tpl | +
+ | ) | ++ |
def friendica-to-smarty-tpl.fix_element | +( | ++ | element | ) | ++ |
Referenced by convert().
+ +def friendica-to-smarty-tpl.fToSmarty | +( | ++ | matches | ) | ++ |
def friendica-to-smarty-tpl.help | +( | ++ | pname | ) | ++ |
tuple friendica-to-smarty-tpl.ext = a_file.split('.') | +
tuple friendica-to-smarty-tpl.f = open(filename, 'r') | +
tuple friendica-to-smarty-tpl.filename = os.path.join(path,a_file) | +
Referenced by FriendicaSmarty.parsed().
+ +tuple friendica-to-smarty-tpl.files = os.listdir(path) | +
string friendica-to-smarty-tpl.ldelim = '{{' | +
Referenced by App.get_template_ldelim().
+ +tuple friendica-to-smarty-tpl.newfilename = os.path.join(outpath,a_file) | +
tuple friendica-to-smarty-tpl.outf = open(newfilename, 'w') | +
string friendica-to-smarty-tpl.outpath = path+'smarty3/' | +
string friendica-to-smarty-tpl.path = '' | +
Referenced by App.__construct(), App.get_baseurl(), App.set_baseurl(), and App.set_path().
+ +friendica-to-smarty-tpl.php_tpl = True | +
string friendica-to-smarty-tpl.rdelim = '}}' | +
Referenced by App.get_template_rdelim().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() | |
![]() ![]() |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
def | help |
+Variables | |
string | path = '' |
list | excludepaths = ['css', 'img', 'js', 'php', 'theme'] |
list | tplpaths = [] |
tuple | names = os.listdir(path + 'view/') |
tuple | fnull = open(os.devnull, "w") |
def updatetpl.help | +( | ++ | pname | ) | ++ |
list updatetpl.excludepaths = ['css', 'img', 'js', 'php', 'theme'] | +
tuple updatetpl.fnull = open(os.devnull, "w") | +
tuple updatetpl.names = os.listdir(path + 'view/') | +
string updatetpl.path = '' | +
list updatetpl.tplpaths = [] | +
![]() |
+
+ The Red Matrix
+
+ |
+
When I installed docblox, I had the experience that it does not generate any output at all. This script may be used to find that kind of problems with the documentation build process. If docblox generates output, use another approach for debugging.
+Basically, docblox takes a list of files to build documentation from. This script assumes there is a file or set of files breaking the build when it is included in that list. It tries to calculate the smallest list containing these files. Unfortunatly, the original problem is NP-complete, so what the script does is a best guess only.
+So it starts with a list of all files in the project. If that list can't be build, it cuts it in two parts and tries both parts independently. If only one of them breaks, it takes that one and tries the same independently. If both break, it assumes this is the smallest set. This assumption is not necessarily true. Maybe the smallest set consists of two files and both of them were in different parts when the list was divided, but by now it is my best guess. To make this assumption better, the list is shuffled after every step.
+After that, the script tries to remove a file from the list. It tests if the list breaks and if so, it assumes that the file it removed belongs to the set of errorneous files. This is done for all files, so, in the end removing one file leads to a working doc build.
+ +This function generates a comma seperated list of file names.
+array | $fileset | Set of file names |
This functions runs phpdoc on the provided list of files
+array | $fileset | Set of filenames |
This functions cuts down a fileset by removing files until it finally works. it was meant to be recursive, but php's maximum stack size is to small. So it just simulates recursion.
+In that version, it does not necessarily generate the smallest set, because it may not alter the elements order enough.
+array | $fileset | set of filenames |
int | $ps | number of files in subsets |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
nav (&$a) | |
nav_set_selected ($item) | |
nav | +( | +& | +$a | ) | ++ |
Build page header and site navigation bars
+Provide a banner/logo/whatever
+Display login or logout
+"Home" should also take you home from an authenticated remote profile connection
+The following nav links are only show to logged in users
+Admin page
+Provide a banner/logo/whatever
+ +Referenced by construct_page().
+ +nav_set_selected | +( | ++ | $item | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
new_channel_init (&$a) | |
new_channel_post (&$a) | |
new_channel_content (&$a) | |
new_channel_content | +( | +& | +$a | ) | ++ |
new_channel_init | +( | +& | +$a | ) | ++ |
new_channel_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
nogroup_init (&$a) | |
nogroup_content (&$a) | |
nogroup_content | +( | +& | +$a | ) | ++ |
nogroup_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
notes_init (&$a) | |
notes_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
notifications_post (&$a) | |
notifications_content (&$a) | |
notifications_content | +( | +& | +$a | ) | ++ |
notifications_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
notifier_run ($argv, $argc) | |
notifier_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | FKOAuthDataStore |
class | FKOAuth1 |
+Variables | |
const | REQUEST_TOKEN_DURATION 300 |
const | ACCESS_TOKEN_DURATION 31536000 |
const ACCESS_TOKEN_DURATION 31536000 | +
Referenced by FKOAuthDataStore\new_access_token().
+ +const REQUEST_TOKEN_DURATION 300 | +
OAuth server Based on oauth2-php http://code.google.com/p/oauth2-php/
+ +Referenced by FKOAuthDataStore\new_request_token().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
oexchange_init (&$a) | |
oexchange_content (&$a) | |
oexchange_content | +( | +& | +$a | ) | ++ |
oexchange_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
onedirsync_run ($argv, $argc) | |
onedirsync_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
onepoll_run ($argv, $argc) | |
onepoll_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
online_init (&$a) | |
online_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
openid_content (&$a) | |
openid_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
opensearch_init (&$a) | |
opensearch_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
page_init (&$a) | |
page_content (&$a) | |
page_content | +( | +& | +$a | ) | ++ |
page_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
writepages_widget ($who, $which) | |
pagelist_widget ($owner, $which) | |
pagelist_widget | +( | ++ | $owner, | +
+ | + | + | $which | +
+ | ) | ++ |
writepages_widget | +( | ++ | $who, | +
+ | + | + | $which | +
+ | ) | ++ |
Referenced by page_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
if(!function_exists('deletenode')) | completeurl ($url, $scheme) |
parseurl_getsiteinfo ($url) | |
arr_add_hashes (&$item, $k) | |
parse_url_content (&$a) | |
arr_add_hashes | +( | +& | +$item, | +
+ | + | + | $k | +
+ | ) | ++ |
if (!function_exists('deletenode')) completeurl | +( | ++ | $url, | +
+ | + | + | $scheme | +
+ | ) | ++ |
Referenced by parseurl_getsiteinfo().
+ +parse_url_content | +( | +& | +$a | ) | ++ |
parseurl_getsiteinfo | +( | ++ | $url | ) | ++ |
Referenced by parse_url_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
pdledit_post (&$a) | |
pdledit_content (&$a) | |
pdledit_content | +( | +& | +$a | ) | ++ |
pdledit_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
get_perms () | |
get_all_perms ($uid, $observer_xchan, $internal_use=true) | |
perm_is_allowed ($uid, $observer_xchan, $permission) | |
check_list_permissions ($uid, $arr, $perm) | |
site_default_perms () | |
check_list_permissions | +( | ++ | $uid, | +
+ | + | + | $arr, | +
+ | + | + | $perm | +
+ | ) | ++ |
Referenced by collect_recipients().
+ +get_all_perms | +( | ++ | $uid, | +
+ | + | + | $observer_xchan, | +
+ | + | + | $internal_use = true |
+
+ | ) | ++ |
get_all_perms($uid,$observer_xchan)
+$uid | : The channel_id associated with the resource owner |
$observer_xchan,: | The xchan_hash representing the observer |
Referenced by achievements_content(), blocks_content(), change_channel(), channel_content(), connedit_content(), editlayout_content(), editwebpage_content(), filestorage_content(), layouts_content(), like_content(), page_content(), webpages_content(), zfinger_init(), and zot_refresh().
+ +get_perms | +( | +) | ++ |
Referenced by connedit_content(), create_identity(), get_all_perms(), mail_post(), new_contact(), perm_is_allowed(), site_default_perms(), and zot_refresh().
+ +perm_is_allowed | +( | ++ | $uid, | +
+ | + | + | $observer_xchan, | +
+ | + | + | $permission | +
+ | ) | ++ |
Referenced by Conversation\add_thread(), advanced_profile(), api_statuses_home_timeline(), api_statuses_repeat(), attach_by_hash(), attach_by_hash_nodata(), attach_count_files(), attach_list_files(), attach_mkdir(), attach_store(), block_content(), chat_content(), chatsvc_init(), check_list_permissions(), common_content(), common_friends_visitor_widget(), contact_block(), RedDirectory\createDirectory(), RedDirectory\createFile(), RedFile\delete(), editblock_content(), get_feed_for(), RedDirectory\getChild(), RedDirectory\getChildren(), item_post(), like_content(), local_dir_update(), photo_init(), photo_upload(), photos_album_widget(), photos_albums_list(), photos_content(), photos_list_photos(), photos_post(), poco_init(), post_activity_item(), process_delivery(), process_mail_delivery(), profile_content(), profile_load(), profile_sidebar(), RedChannelList(), Conversation\set_mode(), RedBrowser\set_writeable(), RedFile\setName(), subthread_content(), tag_deliver(), tgroup_check(), update_birthdays(), viewconnections_content(), widget_archive(), widget_categories(), widget_item(), widget_photo_albums(), widget_tagcloud_wall(), z_readdir(), and zot_feed().
+ +site_default_perms | +( | +) | ++ |
Referenced by create_identity().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
photo_init (&$a) | |
photo_init | +( | +& | +$a | ) | ++ |
Profile photos - Access controls on default profile photos are not honoured since they need to be exchanged with remote sites.
+Other photos
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | photo_driver |
+Functions | |
photo_factory ($data, $type=null) | |
guess_image_type ($filename, $headers= '') | |
import_profile_photo ($photo, $xchan, $thing=false) | |
import_channel_photo ($photo, $type, $aid, $uid) | |
guess_image_type | +( | ++ | $filename, | +
+ | + | + | $headers = '' |
+
+ | ) | ++ |
Guess image mimetype from filename or from Content-Type header
+Well, this not much better, but at least it comes from the data inside the image, we won't be tricked by a manipulated extension
+ +Referenced by import_profile_photo(), photo_upload(), profile_photo_post(), and scale_external_images().
+ +import_channel_photo | +( | ++ | $photo, | +
+ | + | + | $type, | +
+ | + | + | $aid, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by import_post(), and import_xchan().
+ +import_profile_photo | +( | ++ | $photo, | +
+ | + | + | $xchan, | +
+ | + | + | $thing = false |
+
+ | ) | ++ |
Referenced by app_store(), app_update(), import_author_rss(), import_post(), import_xchan(), openid_content(), poller_run(), and thing_init().
+ +photo_factory | +( | ++ | $data, | +
+ | + | + | $type = null |
+
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | photo_imagick |
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
if(!class_exists('App')) if($argc!=2) | $phpfile = $argv[1] |
$pofile = dirname($phpfile)."/messages.po" | |
if (!file_exists($phpfile)) | |
print Out to | n |
$out = "" | |
$infile = file($pofile) | |
$k ="" | |
$ink = False | |
$infile = file($pofile) | +
Referenced by po2php_run().
+ +$ink = False | +
Referenced by po2php_run().
+ +$k ="" | +
Referenced by App\__construct(), Template\_get_var(), Template\_replcb_for(), activity_sanitise(), aes_encapsulate(), aes_unencapsulate(), app_render(), bb_sanitize_style(), build_sync_packet(), connections_post(), connedit_content(), connedit_post(), construct_page(), contact_poll_interval(), contact_reputation(), dirprofile_init(), dirsearch_content(), RedBrowser\generateDirectoryIndex(), get_plugin_info(), get_theme_info(), get_things(), guess_image_type(), import_directory_profile(), item_photo_menu(), item_store_update(), load_config(), load_pconfig(), load_xconfig(), local_dir_update(), mail_post(), mood_content(), new_contact(), FKOAuthDataStore\new_request_token(), obj_verb_selector(), openid_content(), parse_app_description(), photos_albums_list(), po2php_run(), poco_init(), poke_content(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), process_channel_sync_delivery(), requestdata(), settings_post(), sslify_init(), startup(), tt(), RedBrowser\userReadableSize(), vote_post(), x(), zfinger_init(), and zot_refresh().
+ +$out = "" | +
Referenced by dirprofile_init(), pipe_streams(), and po2php_run().
+ +$pofile = dirname($phpfile)."/messages.po" | +
Referenced by po2php_run().
+ +if | +
Referenced by oembed_format_object(), and red_comment().
+ +print Out to n | +
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$channel = get_app()->get_channel() | |
$channel = get_app()->get_channel() | +
Those who require this feature will know what to do with it. Those who don't, won't. Eventually this functionality needs to be provided by a module such that permissions can be enforced. At the moment it's more of a proof of concept; but sufficient for our immediate needs.
+ +Referenced by admin_page_channels(), api_call(), api_user(), appman_content(), attach_mkdir(), attach_store(), bbcode(), blocks_content(), bookmark_add(), bookmarks_content(), build_sync_packet(), channel_content(), channel_init(), channel_remove(), chat_content(), chat_init(), chat_post(), chatroom_create(), chatroom_destroy(), cloud_init(), connections_init(), connections_post(), connedit_content(), connedit_init(), connedit_post(), conversation(), design_tools(), directory_run(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), event_addtocal(), events_content(), events_post(), feed_init(), filestorage_content(), filestorage_post(), fix_attached_file_permissions(), fix_system_urls(), get_feed_for(), get_public_feed(), handle_tag(), home_init(), import_post(), importelm_post(), invite_content(), item_photo_menu(), item_post(), item_store(), item_store_update(), items_fetch(), layouts_content(), magic_init(), mail_content(), mail_post(), menu_add_item(), menu_edit_item(), message_content(), mitem_content(), mitem_post(), mood_init(), nav(), network_content(), network_init(), new_contact(), notifier_run(), parse_app_description(), photo_upload(), photos_albums_list(), photos_content(), photos_create_item(), photos_list_photos(), ping_init(), poke_init(), post_activity_item(), post_to_red_delete_comment(), post_to_red_delete_post(), post_to_red_displayAdminContent(), post_to_red_post(), probe_content(), process_channel_sync_delivery(), process_delivery(), process_mail_delivery(), profile_init(), profile_photo_init(), profile_photo_post(), profiles_post(), profperm_init(), rbmark_content(), rbmark_post(), rpost_content(), send_message(), settings_post(), sources_post(), tagger_content(), thing_content(), thing_init(), uexport_init(), update_remote_id(), wall_attach_post(), wall_upload_post(), webpages_content(), wfinger_init(), widget_settings_menu(), zot_build_packet(), zot_finger(), and zot_refresh().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
php_init (&$a) | |
php_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
ping_init (&$a) | |
ping_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
unload_plugin ($plugin) | |
uninstall_plugin ($plugin) | |
install_plugin ($plugin) | |
load_plugin ($plugin) | |
plugin_is_installed ($name) | |
reload_plugins () | |
register_hook ($hook, $file, $function, $priority=0) | |
unregister_hook ($hook, $file, $function) | |
load_hooks () | |
insert_hook ($hook, $fn) | |
call_hooks ($name, &$data=null) | |
get_plugin_info ($plugin) | |
get_theme_info ($theme) | |
get_theme_screenshot ($theme) | |
service_class_allows ($uid, $property, $usage=false) | |
service_class_fetch ($uid, $property) | |
upgrade_link ($bbcode=false) | |
upgrade_message ($bbcode=false) | |
upgrade_bool_message ($bbcode=false) | |
head_add_css ($src, $media= 'screen') | |
head_remove_css ($src, $media= 'screen') | |
head_get_css () | |
format_css_if_exists ($source) | |
script_path () | |
head_add_js ($src) | |
head_remove_js ($src) | |
head_get_js () | |
head_get_main_js () | |
format_js_if_exists ($source) | |
theme_include ($file, $root= '') | |
get_intltext_template ($s, $root= '') | |
get_markup_template ($s, $root= '') | |
call_hooks | +( | ++ | $name, | +
+ | + | & | +$data = null |
+
+ | ) | ++ |
Referenced by _well_known_init(), api_login(), atom_author(), atom_entry(), authenticate_success(), avatar_img(), bb2diaspora(), bbcode(), channel_remove(), chat_message(), chatsvc_post(), check_account_email(), check_account_invite(), check_account_password(), connect_content(), connections_post(), connedit_content(), connedit_post(), construct_page(), contact_block(), contact_select(), conversation(), create_identity(), cronhooks_run(), directory_content(), downgrade_accounts(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), event_store_item(), externals_run(), feature_enabled(), gender_selector(), get_all_perms(), get_atom_elements(), get_features(), get_feed_for(), get_mood_verbs(), get_perms(), get_poke_verbs(), Item\get_template_data(), App\get_widgets(), group_select(), home_content(), home_init(), hostxrd_init(), html2bbcode(), import_author_xchan(), import_directory_profile(), import_xchan(), item_photo_menu(), item_post(), item_store(), item_store_update(), like_content(), login(), magic_init(), mail_store(), marital_selector(), mood_init(), nav(), network_content(), network_to_name(), new_contact(), notification(), notifier_run(), obj_verbs(), oembed_fetch_url(), openid_content(), parse_url_content(), pdl_selector(), perm_is_allowed(), photo_upload(), photos_content(), ping_init(), poller_run(), populate_acl(), post_activity_item(), post_init(), prepare_body(), probe_well_known(), proc_run(), process_delivery(), profile_content(), profile_sidebar(), profiles_content(), profiles_post(), replace_macros(), rmagic_post(), settings_post(), sexpref_selector(), siteinfo_content(), smilies(), subthread_content(), tag_deliver(), validate_channelname(), wfinger_init(), widget_affinity(), xrd_init(), zfinger_init(), zid(), and zid_init().
+ +format_css_if_exists | +( | ++ | $source | ) | ++ |
Referenced by head_get_css().
+ +format_js_if_exists | +( | ++ | $source | ) | ++ |
Referenced by head_get_js(), and head_get_main_js().
+ +get_intltext_template | +( | ++ | $s, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
Referenced by check_config(), lostpass_content(), lostpass_post(), send_reg_approval_email(), send_verification_email(), setup_post(), and user_allow().
+ +get_markup_template | +( | ++ | $s, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
Referenced by admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), admin_page_logs(), admin_page_plugins(), admin_page_site(), admin_page_summary(), admin_page_themes(), admin_page_users(), advanced_profile(), alt_pager(), api_apply_template(), api_content(), app_render(), appman_content(), apps_content(), apw_form(), blocks_content(), blogtheme_form(), App\build_pagehead(), categories_widget(), channel_content(), chat_content(), check_php(), common_content(), common_friends_visitor_widget(), connect_content(), connections_content(), connedit_content(), construct_page(), contact_block(), conversation(), delegate_content(), design_tools(), dir_safe_mode(), dir_sort_links(), directory_content(), dirprofile_init(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), fbrowser_content(), field_timezone(), fileas_widget(), filer_content(), filestorage_content(), findpeople_widget(), format_categories(), format_filer(), RedBrowser\generateDirectoryIndex(), get_birthdays(), Item\get_comment_box(), get_events(), get_feed_for(), group_content(), group_side(), help_content(), hostxrd_init(), identity_selector(), import_content(), invite_content(), lang_selector(), layouts_content(), login(), lostpass_content(), mail_content(), manage_content(), match_content(), menu_content(), menu_render(), message_content(), micropro(), mini_group_select(), mitem_content(), mood_content(), nav(), network_content(), new_channel_content(), notification(), notifications_content(), notify_content(), oembed_format_object(), oexchange_init(), opensearch_init(), pagelist_widget(), pdledit_content(), photos_album_widget(), photos_content(), poco_init(), poke_content(), populate_acl(), profile_sidebar(), profiles_content(), rbmark_content(), redbasic_form(), register_content(), removeme_content(), rmagic_content(), rpost_content(), search_content(), setup_content(), siteinfo_content(), sources_content(), suggest_content(), theme_attachments(), thing_content(), vcard_from_xchan(), viewconnections_content(), vote_content(), webpages_content(), widget_affinity(), widget_appselect(), widget_archive(), widget_bookmarkedchats(), widget_chatroom_list(), widget_filer(), widget_follow(), widget_mailmenu(), widget_notes(), widget_savedsearch(), widget_settings_menu(), widget_suggestedchats(), widget_suggestions(), writepages_widget(), and xrd_init().
+ +get_plugin_info | +( | ++ | $plugin | ) | ++ |
Referenced by admin_page_plugins().
+ +get_theme_info | +( | ++ | $theme | ) | ++ |
Referenced by admin_page_themes(), and pretheme_init().
+ +get_theme_screenshot | +( | ++ | $theme | ) | ++ |
Referenced by admin_page_themes(), and pretheme_init().
+ +head_add_css | +( | ++ | $src, | +
+ | + | + | $media = 'screen' |
+
+ | ) | ++ |
Referenced by construct_page().
+ +head_add_js | +( | ++ | $src | ) | ++ |
Referenced by construct_page().
+ +head_get_css | +( | +) | ++ |
Referenced by App\build_pagehead().
+ +head_get_js | +( | +) | ++ |
Referenced by App\build_pagehead().
+ +head_get_main_js | +( | +) | ++ |
Referenced by App\build_pagehead().
+ +head_remove_css | +( | ++ | $src, | +
+ | + | + | $media = 'screen' |
+
+ | ) | ++ |
head_remove_js | +( | ++ | $src | ) | ++ |
insert_hook | +( | ++ | $hook, | +
+ | + | + | $fn | +
+ | ) | ++ |
insert_hook($hook,$fn)
+Insert a short-lived hook into the running page request. Hooks are normally persistent so that they can be called across asynchronous processes such as delivery and poll processes.
+insert_hook lets you attach a hook callback immediately which will not persist beyond the life of this page request or the current process.
+string | $hook,; | name of hook to attach callback |
string | $fn,; | function name of callback handler |
install_plugin | +( | ++ | $plugin | ) | ++ |
Referenced by admin_page_plugins().
+ +load_hooks | +( | +) | ++ |
Referenced by check_config(), and cli_startup().
+ +load_plugin | +( | ++ | $plugin | ) | ++ |
Referenced by check_config(), and install_plugin().
+ +plugin_is_installed | +( | ++ | $name | ) | ++ |
Referenced by get_system_apps().
+ +register_hook | +( | ++ | $hook, | +
+ | + | + | $file, | +
+ | + | + | $function, | +
+ | + | + | $priority = 0 |
+
+ | ) | ++ |
Referenced by blog_install().
+ +reload_plugins | +( | +) | ++ |
Referenced by poller_run().
+ +script_path | +( | +) | ++ |
Referenced by format_css_if_exists(), and format_js_if_exists().
+ +service_class_allows | +( | ++ | $uid, | +
+ | + | + | $property, | +
+ | + | + | $usage = false |
+
+ | ) | ++ |
Referenced by identity_check_service_class(), item_check_service_class(), and new_contact().
+ +service_class_fetch | +( | ++ | $uid, | +
+ | + | + | $property | +
+ | ) | ++ |
theme_include | +( | ++ | $file, | +
+ | + | + | $root = '' |
+
+ | ) | ++ |
uninstall_plugin | +( | ++ | $plugin | ) | ++ |
Referenced by admin_page_plugins().
+ +unload_plugin | +( | ++ | $plugin | ) | ++ |
Referenced by check_config(), and uninstall_plugin().
+ +unregister_hook | +( | ++ | $hook, | +
+ | + | + | $file, | +
+ | + | + | $function | +
+ | ) | ++ |
Referenced by blog_uninstall().
+ +upgrade_bool_message | +( | ++ | $bbcode = false | ) | ++ |
upgrade_link | +( | ++ | $bbcode = false | ) | ++ |
Referenced by upgrade_bool_message(), and upgrade_message().
+ +upgrade_message | +( | ++ | $bbcode = false | ) | ++ |
Referenced by attach_store(), chatroom_create(), identity_check_service_class(), item_check_service_class(), new_contact(), and photo_upload().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
po2php_run ($argv, $argc) | |
po2php_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
poco_init (&$a) | |
poco_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
poke_init (&$a) | |
poke_content (&$a) | |
poke_content | +( | +& | +$a | ) | ++ |
poke_init | +( | +& | +$a | ) | ++ |
Poke, prod, finger, or otherwise do unspeakable things to somebody - who must be a connection in your address book This function can be invoked with the required arguments (verb and cid and private and possibly parent) silently via ajax or other web request. You must be logged in and connected to a channel. If the required arguments aren't present, we'll display a simple form to choose a recipient and a verb. parent is a special argument which let's you attach this activity as a comment to an existing conversation, which may have started with somebody else poking (etc.) somebody, but this isn't necessary. This can be used in the adult plugin version to have entire conversations where Alice poked Bob, Bob fingered Alice, Alice hugged Bob, etc.
+private creates a private conversation with the recipient. Otherwise your channel's default post privacy is used.
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
poller_run ($argv, $argc) | |
poller_run | +( | ++ | $argv, | +
+ | + | + | $argc | +
+ | ) | ++ |
Cron Daily
+Actions in the following block are executed once per day, not on every poller run
+Cron Weekly
+Actions in the following block are executed once per day only on Sunday (once per week).
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
post_init (&$a) | |
post_post (&$a) | |
post_init | +( | +& | +$a | ) | ++ |
Zot endpoint
+So-called "magic auth" takes place by a special exchange. On the site where the "channel to be authenticated" lives (e.g. $mysite), a redirection is made via $mysite/magic to the zot endpoint of the remote site ($remotesite) with special GET parameters.
+The endpoint is typically https://$remotesite/post - or whatever was specified as the callback url in prior communications (we will bootstrap an address and fetch a zot info packet if possible where no prior communications exist)
+Four GET parameters are supplied:
+auth => the urlencoded webbie (chann) of the channel requesting access dest => the desired destination URL (urlencoded) sec => a random string which is also stored on $mysite for use during the verification phase. version => the zot revision el@h ost.d omai n
+When this packet is received, an "auth-check" zot message is sent to $mysite. (e.g. if $_GET['auth'] is fooba, a zot packet is sent to the podunk.edu zot endpoint, which is typically /post) If no information has been recorded about the requesting identity a zot information packet will be retrieved before continuing. r@po dunk. edu
+The sender of this packet is an arbitrary/random site channel. The recipients will be a single recipient corresponding to the guid and guid_sig we have associated with the requesting auth identity
+{ "type":"auth_check", "sender":{ "guid":"kgVFf_...", "guid_sig":"PT9-TApz...", "url":"http:\/\/podunk.edu", "url_sig":"T8Bp7j..." }, "recipients":{ { "guid":"ZHSqb...", "guid_sig":"JsAAXi..." } } "callback":"\/post", "version":1, "secret":"1eaa661", "secret_sig":"eKV968b1..." }
+auth_check messages MUST use encapsulated encryption. This message is sent to the origination site, which checks the 'secret' to see if it is the same as the 'sec' which it passed originally. It also checks the secret_sig which is the secret signed by the destination channel's private key and base64url encoded. If everything checks out, a json packet is returned:
+{ "success":1, "confirm":"q0Ysovd1u..." "service_class":(optional) "level":(optional) }
+'confirm' in this case is the base64url encoded RSA signature of the concatenation of 'secret' with the base64url encoded whirlpool hash of the requestor's guid and guid_sig; signed with the source channel private key. This prevents a man-in-the-middle from inserting a rogue success packet. Upon receipt and successful verification of this packet, the destination site will redirect to the original destination URL and indicate a successful remote login. Service_class can be used by cooperating sites to provide different access rights based on account rights and subscription plans. It is a string whose contents are not defined by protocol. Example: "basic" or "gold".
+ +post_post | +( | +& | +$a | ) | ++ |
post_post(&$a) zot communications and messaging
+Sender HTTP posts to this endpoint ($site/post typically) with 'data' parameter set to json zot message packet. This packet is optionally encrypted, which we will discover if the json has an 'iv' element. $contents => array( 'alg' => 'aes256cbc', 'iv' => initialisation vector, 'key' => decryption key, 'data' => encrypted data); $contents->iv and $contents->key are random strings encrypted with this site's RSA public key and then base64url encoded. Currently only 'aes256cbc' is used, but this is extensible should that algorithm prove inadequate.
+Once decrypted, one will find the normal json_encoded zot message packet.
+Defined packet types are: notify, purge, refresh, force_refresh, auth_check, ping, and pickup
+Standard packet: (used by notify, purge, refresh, force_refresh, and auth_check)
+{ "type": "notify", "sender":{ "guid":"kgVFf_1...", "guid_sig":"PT9-TApzp...", "url":"http:\/\/podunk.edu", "url_sig":"T8Bp7j5...", }, "recipients": { optional recipient array }, "callback":"\/post", "version":1, "secret":"1eaa...", "secret_sig": "df89025470fac8..." }
+Signature fields are all signed with the sender channel private key and base64url encoded. Recipients are arrays of guid and guid_sig, which were previously signed with the recipients private key and base64url encoded and later obtained via channel discovery. Absence of recipients indicates a public message or visible to all potential listeners on this site.
+"pickup" packet: The pickup packet is sent in response to a notify packet from another site
+{ "type":"pickup", "url":"http:\/\/example.com", "callback":"http:\/\/example.com\/post", "callback_sig":"teE1_fLI...", "secret":"1eaa...", "secret_sig":"O7nB4_..." }
+In the pickup packet, the sig fields correspond to the respective data element signed with this site's system private key and then base64url encoded. The "secret" is the same as the original secret from the notify packet.
+If verification is successful, a json structure is returned containing a success indicator and an array of type 'pickup'. Each pickup element contains the original notify request and a message field whose contents are dependent on the message type
+This JSON array is AES encapsulated using the site public key of the site that sent the initial zot pickup packet. Using the above example, this would be example.com.
+{ "success":1, "pickup":{ "notify":{ "type":"notify", "sender":{ "guid":"kgVFf_...", "guid_sig":"PT9-TApz...", "url":"http:\/\/z.podunk.edu", "url_sig":"T8Bp7j5D..." }, "callback":"\/post", "version":1, "secret":"1eaa661..." }, "message":{ "type":"activity", "message_id":"10b049ce384cbb2da9467319bc98169ab36290b8bbb403aa0c0accd9cb072e76@podunk.edu", "message_top":"10b049ce384cbb2da9467319bc98169ab36290b8bbb403aa0c0accd9cb072e76@podunk.edu", "message_parent":"10b049ce384cbb2da9467319bc98169ab36290b8bbb403aa0c0accd9cb072e76@podunk.edu", "created":"2012-11-20 04:04:16", "edited":"2012-11-20 04:04:16", "title":"", "body":"Hi Nickordo", "app":"", "verb":"post", "object_type":"", "target_type":"", "permalink":"", "location":"", "longlat":"", "owner":{ "name":"Indigo", "address":"indigo@podunk.edu", "url":"http:\/\/podunk.edu", "photo":{ "mimetype":"image\/jpeg", "src":"http:\/\/podunk.edu\/photo\/profile\/m\/5" }, "guid":"kgVFf_...", "guid_sig":"PT9-TAp...", }, "author":{ "name":"Indigo", "address":"indigo@podunk.edu", "url":"http:\/\/podunk.edu", "photo":{ "mimetype":"image\/jpeg", "src":"http:\/\/podunk.edu\/photo\/profile\/m\/5" }, "guid":"kgVFf_...", "guid_sig":"PT9-TAp..." } } } }
+Currently defined message types are 'activity', 'mail', 'profile' and 'channel_sync', which each have different content schemas.
+Ping packet: A ping packet does not require any parameters except the type. It may or may not be encrypted.
+{ "type": "ping" }
+On receipt of a ping packet a ping response will be returned:
+{ "success" : 1, "site" { "url":"http:\/\/podunk.edu", "url_sig":"T8Bp7j5...", "sitekey": "–—BEGIN PUBLIC KEY–— + MIICIjANBgkqhkiG9w0BAQE..." } }
+The ping packet can be used to verify that a site has not been re-installed, and to initiate corrective action if it has. The url_sig is signed with the site private key and base64url encoded - and this should verify with the enclosed sitekey. Failure to verify indicates the site is corrupt or otherwise unable to communicate using zot. This return packet is not otherwise verified, so should be compared with other results obtained from this site which were verified prior to taking action. For instance if you have one verified result with this signature and key, and other records for this url which have different signatures and keys, it indicates that the site was re-installed and corrective action may commence (remove or mark invalid any entries with different signatures). If you have no records which match this url_sig and key - no corrective action should be taken as this packet may have been returned by an imposter.
+Many message packets will arrive encrypted. The existence of an 'iv' element tells us we need to unencapsulate the AES-256-CBC content using the site private key
+The 'pickup' message arrives with a tracking ID which is associated with a particular outq_hash First verify that that the returned signatures verify, then check that we have an outbound queue item with the correct hash. If everything verifies, find any/all outbound messages in the queue for this hubloc and send them back
+If we made it to here, the signatures verify, but we still don't know if the tracking ID is valid. It wouldn't be an error if the tracking ID isn't found, because we may have sent this particular queue item with another pickup (after the tracking ID for the other pickup was verified).
+Everything is good if we made it here, so find all messages that are going to this location and send them all.
+pickup: end
+All other message types require us to verify the sender. This is a generic check, so we will do it once here and bail if anything goes wrong.
+Check if the sender is already verified here
+Have never seen this guid or this guid coming from this location. Check it and register it.
+This hub has now been proven to be valid. Any hub with the same URL and a different sitekey cannot be valid. Get rid of them (mark them deleted). There's a good chance they were re-installs.
+Requestor visits /magic/?dest=somewhere on their own site with a browser magic redirects them to $destsite/post [with auth args....] $destsite sends an auth_check packet to originator site The auth_check packet is handled here by the originator's site
+![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
post_to_red_deactivate () | |
post_to_red_get_seed_location () | |
post_to_red_get_acct_name () | |
post_to_red_get_channel_name () | |
post_to_red_get_password () | |
post_to_red_post ($post_id) | |
post_to_red_delete_post ($post_id) | |
post_to_red_delete_comment ($post_id) | |
post_to_red_displayAdminContent () | |
post_to_red_post_checkbox () | |
post_to_red_post_meta_content ($post_id) | |
post_to_red_post_field_data ($post_id) | |
post_to_red_display_admin_page () | |
post_to_red_settings_link ($links) | |
post_to_red_admin () | |
red_xmlrpc_methods ($methods) | |
red_comment ($args) | |
post_to_red_get_avatar ($avatar, $id_or_email, $size, $default, $alt) | |
xpost_to_html2bbcode ($text) | |
+Variables | |
const | post_to_red_path WP_PLUGIN_URL . "/" . str_replace(basename( __FILE__), "", plugin_basename(__FILE__)) |
const | post_to_red_version "1.2" |
$plugin_dir = basename(dirname(__FILE__)) | |
$plugin = plugin_basename(__FILE__) | |
const | post_to_red_acct_name "post_to_red_admin_options" |
post_to_red_admin | +( | +) | ++ |
post_to_red_deactivate | +( | +) | ++ |
post_to_red_delete_comment | +( | ++ | $post_id | ) | ++ |
post_to_red_delete_post | +( | ++ | $post_id | ) | ++ |
post_to_red_display_admin_page | +( | +) | ++ |
post_to_red_displayAdminContent | +( | +) | ++ |
Referenced by post_to_red_display_admin_page().
+ +post_to_red_get_acct_name | +( | +) | ++ |
Referenced by post_to_red_delete_comment(), post_to_red_delete_post(), post_to_red_displayAdminContent(), and post_to_red_post().
+ +post_to_red_get_avatar | +( | ++ | $avatar, | +
+ | + | + | $id_or_email, | +
+ | + | + | $size, | +
+ | + | + | $default, | +
+ | + | + | $alt | +
+ | ) | ++ |
post_to_red_get_channel_name | +( | +) | ++ |
Referenced by post_to_red_delete_comment(), post_to_red_delete_post(), post_to_red_displayAdminContent(), and post_to_red_post().
+ +post_to_red_get_password | +( | +) | ++ |
Referenced by post_to_red_delete_comment(), post_to_red_delete_post(), post_to_red_displayAdminContent(), and post_to_red_post().
+ +post_to_red_get_seed_location | +( | +) | ++ |
Referenced by post_to_red_delete_comment(), post_to_red_delete_post(), post_to_red_displayAdminContent(), and post_to_red_post().
+ +post_to_red_post | +( | ++ | $post_id | ) | ++ |
post_to_red_post_checkbox | +( | +) | ++ |
post_to_red_post_field_data | +( | ++ | $post_id | ) | ++ |
post_to_red_post_meta_content | +( | ++ | $post_id | ) | ++ |
post_to_red_settings_link | +( | ++ | $links | ) | ++ |
red_comment | +( | ++ | $args | ) | ++ |
red_xmlrpc_methods | +( | ++ | $methods | ) | ++ |
xpost_to_html2bbcode | +( | ++ | $text | ) | ++ |
Referenced by post_to_red_post().
+ +$plugin = plugin_basename(__FILE__) | +
Referenced by admin_content(), admin_page_plugins(), get_plugin_info(), install_plugin(), load_plugin(), uninstall_plugin(), and unload_plugin().
+ +$plugin_dir = basename(dirname(__FILE__)) | +
const post_to_red_acct_name "post_to_red_admin_options" | +
const post_to_red_path WP_PLUGIN_URL . "/" . str_replace(basename( __FILE__), "", plugin_basename(__FILE__)) | +
const post_to_red_version "1.2" | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
pretheme_init (&$a) | |
pretheme_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
probe_content (&$a) | |
probe_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
profile_init (&$a) | |
profile_content (&$a, $update=0) | |
profile_content | +( | +& | +$a, | +
+ | + | + | $update = 0 |
+
+ | ) | ++ |
profile_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
advanced_profile (&$a) | |
advanced_profile | +( | +& | +$a | ) | ++ |
Referenced by profile_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
profile_photo_set_profile_perms ($profileid= '') | |
profile_photo_init (&$a) | |
profile_photo_post (&$a) | |
profile_photo_init | +( | +& | +$a | ) | ++ |
profile_photo_post | +( | +& | +$a | ) | ++ |
profile_photo_set_profile_perms | +( | ++ | $profileid = '' | ) | ++ |
Referenced by connedit_post(), profile_photo_post(), and profperm_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
gender_selector ($current="", $suffix="") | |
sexpref_selector ($current="", $suffix="") | |
marital_selector ($current="", $suffix="") | |
gender_selector | +( | ++ | $current = "" , |
+
+ | + | + | $suffix = "" |
+
+ | ) | ++ |
Referenced by profiles_content().
+ +marital_selector | +( | ++ | $current = "" , |
+
+ | + | + | $suffix = "" |
+
+ | ) | ++ |
Referenced by profiles_content().
+ +sexpref_selector | +( | ++ | $current = "" , |
+
+ | + | + | $suffix = "" |
+
+ | ) | ++ |
Referenced by profiles_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
profiles_init (&$a) | |
profiles_post (&$a) | |
profiles_content (&$a) | |
profiles_content | +( | +& | +$a | ) | ++ |
profiles_init | +( | +& | +$a | ) | ++ |
profiles_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
profperm_init (&$a) | |
profperm_content (&$a) | |
profperm_content | +( | +& | +$a | ) | ++ |
profperm_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
pubsites_content (&$a) | |
pubsites_content | +( | +& | +$a | ) | ++ |
Referenced by register_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
qsearch_init (&$a) | |
qsearch_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
update_queue_time ($id) | |
remove_queue_item ($id) | |
remove_queue_item | +( | ++ | $id | ) | ++ |
update_queue_time | +( | ++ | $id | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
randprof_init (&$a) | |
randprof_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
rbmark_post (&$a) | |
rbmark_content (&$a) | |
rbmark_content | +( | +& | +$a | ) | ++ |
rbmark_post | +( | +& | +$a | ) | ++ |
remote bookmark
+https://yoursite/rbmark?f=&title=&url=&private=&remote_return=
+This can be called via either GET or POST, use POST for long body content as suhosin often limits GET parameter length
+f= placeholder, often required title= link text url= URL to bookmark ischat=1 if this bookmark is a chatroom private= Don't share this link remote_return= absolute URL to return after posting is finished
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
if($nav_min_opacity===false||$nav_min_opacity=== '') | else |
$nav_percent_min_opacity = (int) 100 * $nav_min_opacity | |
$nav_percent_min_opacity = (int) 100 * $nav_min_opacity | +
if ($nav_min_opacity===false||$nav_min_opacity=== '') else | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
redbasic_init (&$a) | |
redbasic_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | RedDirectory |
class | RedFile |
class | RedBasicAuth |
class | RedBrowser |
+Functions | |
RedChannelList (&$auth) | |
RedCollectionData ($file, &$auth) | |
RedFileData ($file, &$auth, $test=false) | |
RedChannelList | +( | +& | +$auth | ) | ++ |
Referenced by RedCollectionData().
+ +RedCollectionData | +( | ++ | $file, | +
+ | + | & | +$auth | +
+ | ) | ++ |
Referenced by RedDirectory\getChildren().
+ +RedFileData | +( | ++ | $file, | +
+ | + | & | +$auth, | +
+ | + | + | $test = false |
+
+ | ) | ++ |
Referenced by RedDirectory\childExists(), cloud_init(), and RedDirectory\getChild().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
redir_init (&$a) | |
redir_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$line_height = false | |
$redbasic_font_size = false | |
$resolution = false | |
$colour = false | |
$shadows = false | |
$navcolour = false | |
$nav_bg_1 = "f88" | |
$nav_bg_2 = "b00" | |
$nav_bg_3 = "f00" | |
$nav_bg_4 = "b00" | |
$displaystyle = false | |
$linkcolour = false | |
$shiny = false | |
$site_line_height = get_config("redbasic","line_height") | |
$site_redbasic_font_size = get_config("redbasic", "font_size" ) | |
$site_colour = get_config("redbasic", "colour" ) | |
if(local_user()) if($line_height===false) +if($line_height===false) if($redbasic_font_size===false) +if($redbasic_font_size===false) +if($colour===false) if($colour===false) +if($navcolour==="black") | if (file_exists('view/theme/'.current_theme(). '/css/style.css')) |
$colour = false | +
Referenced by redbasic_form(), and theme_content().
+ +$displaystyle = false | +
Referenced by redbasic_form(), and theme_content().
+ +$line_height = false | +
Referenced by redbasic_form(), and theme_content().
+ +$linkcolour = false | +
Referenced by redbasic_form(), and theme_content().
+ +$nav_bg_1 = "f88" | +
$nav_bg_2 = "b00" | +
$nav_bg_3 = "f00" | +
$nav_bg_4 = "b00" | +
$navcolour = false | +
Referenced by redbasic_form(), and theme_content().
+ +$redbasic_font_size = false | +
$resolution = false | +
Referenced by photo_init().
+ +$shadows = false | +
Referenced by redbasic_form().
+ +$shiny = false | +
Referenced by redbasic_form(), and theme_content().
+ +$site_colour = get_config("redbasic", "colour" ) | +
$site_line_height = get_config("redbasic","line_height") | +
$site_redbasic_font_size = get_config("redbasic", "font_size" ) | +
if (local_user()) if ($line_height===false) if ($line_height===false) if ($redbasic_font_size===false) if ($redbasic_font_size===false) if ($colour===false) if ($colour===false) if ($navcolour==="black") if(file_exists('view/theme/'.current_theme(). '/css/style.css')) | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
redstrap_init (&$a) | |
redstrap_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
register_init (&$a) | |
register_post (&$a) | |
register_content (&$a) | |
register_content | +( | +& | +$a | ) | ++ |
register_init | +( | +& | +$a | ) | ++ |
register_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
regmod_content (&$a) | |
regmod_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
removeme_post (&$a) | |
removeme_content (&$a) | |
removeme_content | +( | +& | +$a | ) | ++ |
removeme_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
rmagic_init (&$a) | |
rmagic_post (&$a) | |
rmagic_content (&$a) | |
rmagic_content | +( | +& | +$a | ) | ++ |
rmagic_init | +( | +& | +$a | ) | ++ |
rmagic_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
rpost_content (&$a) | |
rpost_content | +( | +& | +$a | ) | ++ |
remote post
+https://yoursite/rpost?f=&title=&body=&remote_return=
+This can be called via either GET or POST, use POST for long body content as suhosin often limits GET parameter length
+f= placeholder, often required title= Title of post body= Body of post source= Source application remote_return= absolute URL to return after posting is finished type= choices are 'html' or 'bbcode', default is 'bbcode'
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
rsd_xml_content (&$a) | |
rsd_xml_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
search_init (&$a) | |
search_content (&$a, $update=0, $load=false) | |
search_content | +( | +& | +$a, | +
+ | + | + | $update = 0 , |
+
+ | + | + | $load = false |
+
+ | ) | ++ |
Referenced by update_search_content().
+ +search_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
search_ac_init (&$a) | |
search_ac_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
authenticate_success ($user_record, $login_initial=false, $interactive=false, $return=false, $update_lastlog=false) | |
change_channel ($change_channel) | |
permissions_sql ($owner_id, $remote_verified=false, $groups=null) | |
item_permissions_sql ($owner_id, $remote_verified=false, $groups=null) | |
public_permissions_sql ($observer_hash) | |
get_form_security_token ($typename= '') | |
check_form_security_token ($typename= '', $formname= 'form_security_token') | |
check_form_security_std_err_msg () | |
check_form_security_token_redirectOnErr ($err_redirect, $typename= '', $formname= 'form_security_token') | |
check_form_security_token_ForbiddenOnErr ($typename= '', $formname= 'form_security_token') | |
if(!function_exists('init_groups_visitor')) | stream_perms_api_uids ($perms=NULL) |
stream_perms_xchans ($perms=NULL) | |
authenticate_success | +( | ++ | $user_record, | +
+ | + | + | $login_initial = false , |
+
+ | + | + | $interactive = false , |
+
+ | + | + | $return = false , |
+
+ | + | + | $update_lastlog = false |
+
+ | ) | ++ |
Referenced by api_login(), openid_content(), and register_post().
+ +change_channel | +( | ++ | $change_channel | ) | ++ |
Referenced by api_user(), authenticate_success(), import_post(), FKOAuth1\loginUser(), manage_content(), new_channel_post(), and rpost_content().
+ +check_form_security_std_err_msg | +( | +) | ++ |
Referenced by check_form_security_token_redirectOnErr().
+ +check_form_security_token | +( | ++ | $typename = '' , |
+
+ | + | + | $formname = 'form_security_token' |
+
+ | ) | ++ |
Referenced by check_form_security_token_ForbiddenOnErr(), and check_form_security_token_redirectOnErr().
+ +check_form_security_token_ForbiddenOnErr | +( | ++ | $typename = '' , |
+
+ | + | + | $formname = 'form_security_token' |
+
+ | ) | ++ |
Referenced by group_content().
+ +check_form_security_token_redirectOnErr | +( | ++ | $err_redirect, | +
+ | + | + | $typename = '' , |
+
+ | + | + | $formname = 'form_security_token' |
+
+ | ) | ++ |
Referenced by admin_page_channels(), admin_page_channels_post(), admin_page_hubloc_post(), admin_page_logs_post(), admin_page_plugins(), admin_page_site_post(), admin_page_themes(), admin_page_users(), admin_page_users_post(), group_content(), group_post(), invite_post(), profile_photo_post(), profiles_init(), profiles_post(), and settings_post().
+ +get_form_security_token | +( | ++ | $typename = '' | ) | ++ |
item_permissions_sql | +( | ++ | $owner_id, | +
+ | + | + | $remote_verified = false , |
+
+ | + | + | $groups = null |
+
+ | ) | ++ |
Construct permissions
+default permissions - anonymous user
+Profile owner - everything is visible
+Authenticated visitor. Unless pre-verified, check that the contact belongs to this $owner_id and load the groups the visitor belongs to. If pre-verified, the caller is expected to have already done this and passed the groups into this function.
+ +Referenced by block_content(), channel_content(), items_fetch(), page_content(), pdl_selector(), share_init(), widget_item(), and zot_feed().
+ +permissions_sql | +( | ++ | $owner_id, | +
+ | + | + | $remote_verified = false , |
+
+ | + | + | $groups = null |
+
+ | ) | ++ |
Construct permissions
+default permissions - anonymous user
+Profile owner - everything is visible
+Authenticated visitor. Unless pre-verified, check that the contact belongs to this $owner_id and load the groups the visitor belongs to. If pre-verified, the caller is expected to have already done this and passed the groups into this function.
+ +Referenced by attach_by_hash(), attach_by_hash_nodata(), attach_count_files(), attach_list_files(), attach_mkdir(), chat_content(), chat_message(), chatroom_enter(), chatroom_list(), chatsvc_content(), chatsvc_post(), menu_fetch(), photo_init(), photos_albums_list(), photos_content(), photos_list_photos(), RedCollectionData(), RedFileData(), and z_readdir().
+ +public_permissions_sql | +( | ++ | $observer_hash | ) | ++ |
Referenced by display_content(), and search_content().
+ +if (!function_exists('init_groups_visitor')) stream_perms_api_uids | +( | ++ | $perms = NULL | ) | ++ |
Referenced by api_status_show(), api_statuses_public_timeline(), api_users_show(), and zot_feed().
+ +stream_perms_xchans | +( | ++ | $perms = NULL | ) | ++ |
Referenced by display_content(), and search_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
new_cookie ($time) | |
ref_session_open ($s, $n) | |
ref_session_read ($id) | |
ref_session_write ($id, $data) | |
ref_session_close () | |
ref_session_destroy ($id) | |
ref_session_gc ($expire) | |
+Variables | |
$session_exists = 0 | |
$session_expire = 180000 | |
$gc_probability = 50 | |
new_cookie | +( | ++ | $time | ) | ++ |
Referenced by nuke_session().
+ +ref_session_close | +( | +) | ++ |
ref_session_destroy | +( | ++ | $id | ) | ++ |
ref_session_gc | +( | ++ | $expire | ) | ++ |
ref_session_open | +( | ++ | $s, | +
+ | + | + | $n | +
+ | ) | ++ |
ref_session_read | +( | ++ | $id | ) | ++ |
ref_session_write | +( | ++ | $id, | +
+ | + | + | $data | +
+ | ) | ++ |
$gc_probability = 50 | +
$session_exists = 0 | +
Referenced by ref_session_read(), and ref_session_write().
+ +$session_expire = 180000 | +
Referenced by ref_session_write().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
get_theme_config_file ($theme) | |
settings_init (&$a) | |
settings_post (&$a) | |
get_theme_config_file | +( | ++ | $theme | ) | ++ |
Referenced by settings_post().
+ +settings_init | +( | +& | +$a | ) | ++ |
settings_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
setup_init (&$a) | |
setup_post (&$a) | |
get_db_errno () | |
setup_content (&$a) | |
check_add (&$checks, $title, $status, $required, $help) | |
check_php (&$phpath, &$checks) | |
check_keys (&$checks) | |
check_funcs (&$checks) | |
check_htconfig (&$checks) | |
check_smarty3 (&$checks) | |
check_store (&$checks) | |
check_htaccess (&$checks) | |
manual_config (&$a) | |
load_database_rem ($v, $i) | |
load_database ($db) | |
what_next () | |
+Variables | |
$install_wizard_pass =1 | |
check_add | +( | +& | +$checks, | +
+ | + | + | $title, | +
+ | + | + | $status, | +
+ | + | + | $required, | +
+ | + | + | $help | +
+ | ) | ++ |
checks : array passed to template title : string status : boolean required : boolean help : string optional
+ +Referenced by check_funcs(), check_htaccess(), check_htconfig(), check_keys(), check_php(), check_smarty3(), and check_store().
+ +check_funcs | +( | +& | +$checks | ) | ++ |
Referenced by setup_content().
+ +check_htaccess | +( | +& | +$checks | ) | ++ |
Referenced by setup_content().
+ +check_htconfig | +( | +& | +$checks | ) | ++ |
Referenced by setup_content().
+ +check_keys | +( | +& | +$checks | ) | ++ |
Referenced by setup_content().
+ +check_php | +( | +& | +$phpath, | +
+ | + | & | +$checks | +
+ | ) | ++ |
Referenced by setup_content().
+ +check_smarty3 | +( | +& | +$checks | ) | ++ |
Referenced by setup_content().
+ +check_store | +( | +& | +$checks | ) | ++ |
Referenced by setup_content().
+ +get_db_errno | +( | +) | ++ |
Referenced by setup_post().
+ +load_database | +( | ++ | $db | ) | ++ |
Referenced by setup_post().
+ +load_database_rem | +( | ++ | $v, | +
+ | + | + | $i | +
+ | ) | ++ |
manual_config | +( | +& | +$a | ) | ++ |
Referenced by setup_content().
+ +setup_content | +( | +& | +$a | ) | ++ |
setup_init | +( | +& | +$a | ) | ++ |
setup_post | +( | +& | +$a | ) | ++ |
what_next | +( | +) | ++ |
Referenced by setup_content().
+ +$install_wizard_pass =1 | +
Referenced by setup_content(), setup_init(), and setup_post().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
share_init (&$a) | |
share_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
siteinfo_init (&$a) | |
siteinfo_content (&$a) | |
siteinfo_content | +( | +& | +$a | ) | ++ |
siteinfo_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
sitelist_init (&$a) | |
sitelist_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
smilies_content (&$a) | |
smilies_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
poco_load ($xchan= '', $url=null) | |
count_common_friends ($uid, $xchan) | |
common_friends ($uid, $xchan, $start=0, $limit=100000000, $shuffle=false) | |
count_common_friends_zcid ($uid, $zcid) | |
common_friends_zcid ($uid, $zcid, $start=0, $limit=9999, $shuffle=false) | |
count_all_friends ($uid, $cid) | |
all_friends ($uid, $cid, $start=0, $limit=80) | |
suggestion_query ($uid, $myxchan, $start=0, $limit=80) | |
update_suggestions () | |
all_friends | +( | ++ | $uid, | +
+ | + | + | $cid, | +
+ | + | + | $start = 0 , |
+
+ | + | + | $limit = 80 |
+
+ | ) | ++ |
common_friends | +( | ++ | $uid, | +
+ | + | + | $xchan, | +
+ | + | + | $start = 0 , |
+
+ | + | + | $limit = 100000000 , |
+
+ | + | + | $shuffle = false |
+
+ | ) | ++ |
Referenced by common_content(), and common_friends_visitor_widget().
+ +common_friends_zcid | +( | ++ | $uid, | +
+ | + | + | $zcid, | +
+ | + | + | $start = 0 , |
+
+ | + | + | $limit = 9999 , |
+
+ | + | + | $shuffle = false |
+
+ | ) | ++ |
count_all_friends | +( | ++ | $uid, | +
+ | + | + | $cid | +
+ | ) | ++ |
count_common_friends | +( | ++ | $uid, | +
+ | + | + | $xchan | +
+ | ) | ++ |
Referenced by common_content(), and common_friends_visitor_widget().
+ +count_common_friends_zcid | +( | ++ | $uid, | +
+ | + | + | $zcid | +
+ | ) | ++ |
poco_load | +( | ++ | $xchan = '' , |
+
+ | + | + | $url = null |
+
+ | ) | ++ |
Referenced by onepoll_run(), and update_suggestions().
+ +suggestion_query | +( | ++ | $uid, | +
+ | + | + | $myxchan, | +
+ | + | + | $start = 0 , |
+
+ | + | + | $limit = 80 |
+
+ | ) | ++ |
Referenced by suggest_content(), and widget_suggestions().
+ +update_suggestions | +( | +) | ++ |
Referenced by cli_suggest_run().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
sources_post (&$a) | |
sources_content (&$a) | |
sources_content | +( | +& | +$a | ) | ++ |
sources_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
string_splitter ($s) | |
get_words ($uid, $list) | |
get_words | +( | ++ | $uid, | +
+ | + | + | $list | +
+ | ) | ++ |
string_splitter | +( | ++ | $s | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
sslify_init (&$a) | |
sslify_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
starred_init (&$a) | |
starred_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Project
+
+ |
+
+Variables | |
$line_height = false | |
$redbasic_font_size = false | |
$resolution = false | |
$colour = false | |
$shadows = false | |
$navcolour = false | |
$nav_bg_1 = "f88" | |
$nav_bg_2 = "b00" | |
$nav_bg_3 = "f00" | |
$nav_bg_4 = "b00" | |
$displaystyle = false | |
$linkcolour = false | |
$shiny = false | |
$site_line_height = get_config("redbasic","line_height") | |
$site_redbasic_font_size = get_config("redbasic", "font_size" ) | |
$site_colour = get_config("redbasic", "colour" ) | |
if(local_user()) if(!feature_enabled(local_user(),'expert')) +if($line_height===false) if($line_height===false) +if($redbasic_font_size===false) +if($redbasic_font_size===false) +if($colour===false) if($colour===false) +if($navcolour==="black") | if (file_exists('view/theme/'.current_theme(). '/css/style.css')) |
$colour = false | +
Referenced by redbasic_form(), and theme_content().
+ +$displaystyle = false | +
Referenced by redbasic_form(), and theme_content().
+ +$line_height = false | +
Referenced by redbasic_form(), and theme_content().
+ +$linkcolour = false | +
Referenced by redbasic_form(), and theme_content().
+ +$nav_bg_1 = "f88" | +
$nav_bg_2 = "b00" | +
$nav_bg_3 = "f00" | +
$nav_bg_4 = "b00" | +
$navcolour = false | +
Referenced by redbasic_form(), and theme_content().
+ +$redbasic_font_size = false | +
$resolution = false | +
Referenced by photo_init().
+ +$shadows = false | +
Referenced by redbasic_form().
+ +$shiny = false | +
Referenced by redbasic_form(), and theme_content().
+ +$site_colour = get_config("redbasic", "colour" ) | +
$site_line_height = get_config("redbasic","line_height") | +
$site_redbasic_font_size = get_config("redbasic", "font_size" ) | +
if ($colour==="dark") if (($redbasic_font_size >=8.0)&&($redbasic_font_size<=20.0)) if (($line_height >=1.0)&&($line_height<=2.0)) if($shadows==="true") | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
subthread_content (&$a) | |
subthread_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
suggest_init (&$a) | |
suggest_content (&$a) | |
suggest_content | +( | +& | +$a | ) | ++ |
suggest_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
system_down () | |
system_down | +( | +) | ++ |
Referenced by system_unavailable().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
tagger_content (&$a) | |
tagger_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
tagrm_post (&$a) | |
tagrm_content (&$a) | |
tagrm_content | +( | +& | +$a | ) | ++ |
tagrm_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
file_tag_encode ($s) | |
file_tag_decode ($s) | |
file_tag_file_query ($table, $s, $type= 'file') | |
term_query ($table, $s, $type=TERM_UNKNOWN) | |
store_item_tag ($uid, $iid, $otype, $type, $term, $url= '') | |
get_terms_oftype ($arr, $type) | |
format_term_for_display ($term) | |
tagadelic ($uid, $count=0, $authors= '', $flags=0, $restrict=0, $type=TERM_HASHTAG) | |
tags_sort ($a, $b) | |
dir_tagadelic ($count=0) | |
tagblock ($link, $uid, $count=0, $authors= '', $flags=0, $restrict=0, $type=TERM_HASHTAG) | |
dir_tagblock ($link, $r) | |
obj_verbs () | |
obj_verb_selector ($current= '') | |
get_things ($profile_hash, $uid) | |
dir_tagadelic | +( | ++ | $count = 0 | ) | ++ |
Referenced by dirsearch_content().
+ +dir_tagblock | +( | ++ | $link, | +
+ | + | + | $r | +
+ | ) | ++ |
Referenced by widget_dirtags().
+ +file_tag_decode | +( | ++ | $s | ) | ++ |
file_tag_encode | +( | ++ | $s | ) | ++ |
file_tag_file_query | +( | ++ | $table, | +
+ | + | + | $s, | +
+ | + | + | $type = 'file' |
+
+ | ) | ++ |
format_term_for_display | +( | ++ | $term | ) | ++ |
Referenced by conversation().
+ +get_terms_oftype | +( | ++ | $arr, | +
+ | + | + | $type | +
+ | ) | ++ |
Referenced by bookmarks_init(), conversation(), editpost_content(), format_categories(), format_filer(), format_hashtags(), item_expire(), item_getfeedtags(), tag_deliver(), and tgroup_check().
+ +get_things | +( | ++ | $profile_hash, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by advanced_profile().
+ +obj_verb_selector | +( | ++ | $current = '' | ) | ++ |
Referenced by thing_content().
+ +obj_verbs | +( | +) | ++ |
verbs: [0] = first person singular, e.g. "I want", [1] = 3rd person singular, e.g. "Bill wants" We use the first person form when creating an activity, but the third person for use in activities FIXME: There is no accounting for verb gender for languages where this is significant. We may eventually require obj_verbs() to provide full conjugations and specify which form to use in the $_REQUEST params to this module.
+ +Referenced by get_things(), obj_verb_selector(), and thing_init().
+ +store_item_tag | +( | ++ | $uid, | +
+ | + | + | $iid, | +
+ | + | + | $otype, | +
+ | + | + | $type, | +
+ | + | + | $term, | +
+ | + | + | $url = '' |
+
+ | ) | ++ |
Referenced by filer_content(), tag_deliver(), and tagger_content().
+ +tagadelic | +( | ++ | $uid, | +
+ | + | + | $count = 0 , |
+
+ | + | + | $authors = '' , |
+
+ | + | + | $flags = 0 , |
+
+ | + | + | $restrict = 0 , |
+
+ | + | + | $type = TERM_HASHTAG |
+
+ | ) | ++ |
Referenced by tagblock(), and widget_tagcloud().
+ +tagblock | +( | ++ | $link, | +
+ | + | + | $uid, | +
+ | + | + | $count = 0 , |
+
+ | + | + | $authors = '' , |
+
+ | + | + | $flags = 0 , |
+
+ | + | + | $restrict = 0 , |
+
+ | + | + | $type = TERM_HASHTAG |
+
+ | ) | ++ |
Referenced by widget_tagcloud_wall().
+ +tags_sort | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
term_query | +( | ++ | $table, | +
+ | + | + | $s, | +
+ | + | + | $type = TERM_UNKNOWN |
+
+ | ) | ++ |
Referenced by channel_content(), items_fetch(), and network_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | Template |
+Functions | |
template_escape ($s) | |
template_unescape ($s) | |
+Variables | |
const | KEY_NOT_EXISTS '^R_key_not_Exists^' |
template_escape | +( | ++ | $s | ) | ++ |
Referenced by Template\_get_var(), fbrowser_content(), and photos_content().
+ +template_unescape | +( | ++ | $s | ) | ++ |
const KEY_NOT_EXISTS '^R_key_not_Exists^' | +
Referenced by Template\_get_var(), and Template\var_replace().
+ +![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
test_init (&$a) | |
+Variables | |
$a | theme_info = array() |
test_init | +( | +& | +$a | ) | ++ |
$a theme_info = array() | +
![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
test_content (&$a) | |
test_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
replace_macros ($s, $r) | |
random_string ($size=64, $type=RANDOM_STRING_HEX) | |
notags ($string) | |
escape_tags ($string) | |
z_input_filter ($channel_id, $s, $type= 'text/bbcode') | |
purify_html ($s) | |
autoname ($len) | |
xmlify ($str) | |
unxmlify ($s) | |
if(!function_exists('hex2bin')) | paginate (&$a) |
alt_pager (&$a, $i, $more= '', $less= '') | |
expand_acl ($s) | |
sanitise_acl (&$item) | |
perms2str ($p) | |
item_message_id () | |
photo_new_resource () | |
attribute_contains ($attr, $s) | |
logger ($msg, $level=0) | |
dlogger ($msg, $level=0) | |
profiler ($t1, $t2, $label) | |
activity_match ($haystack, $needle) | |
get_tags ($s) | |
tag_sort_length ($a, $b) | |
strip_zids ($s) | |
qp ($s) | |
get_mentions ($item, $tags) | |
contact_block () | |
chanlink_hash ($s) | |
chanlink_url ($s) | |
chanlink_cid ($d) | |
magiclink_url ($observer, $myaddr, $url) | |
micropro ($contact, $redirect=false, $class= '', $textmode=false) | |
search ($s, $id='search-box', $url='/search', $save=false) | |
searchbox ($s, $id='search-box', $url='/search', $save=false) | |
valid_email ($x) | |
linkify ($s) | |
sslify ($s) | |
get_poke_verbs () | |
get_mood_verbs () | |
smilies ($s, $sample=false) | |
smile_shield ($m) | |
smile_unshield ($m) | |
preg_heart ($x) | |
day_translate ($s) | |
normalise_link ($url) | |
link_compare ($a, $b) | |
unobscure (&$item) | |
theme_attachments (&$item) | |
format_categories (&$item, $writeable) | |
format_hashtags (&$item) | |
format_filer (&$item) | |
prepare_body (&$item, $attach=false) | |
prepare_text ($text, $content_type= 'text/bbcode') | |
zidify_callback ($match) | |
zidify_img_callback ($match) | |
zidify_links ($s) | |
feed_hublinks () | |
feed_salmonlinks ($nick) | |
get_plink ($item, $conversation_mode=true) | |
unamp ($s) | |
layout_select ($channel_id, $current= '') | |
mimetype_select ($channel_id, $current= 'text/bbcode') | |
lang_selector () | |
return_bytes ($size_str) | |
base64url_encode ($s, $strip_padding=true) | |
base64url_decode ($s) | |
cleardiv () | |
bb_translate_video ($s) | |
html2bb_video ($s) | |
array_xmlify ($val) | |
reltoabs ($text, $base) | |
item_post_type ($item) | |
undo_post_tagging ($s) | |
fix_mce_lf ($s) | |
protect_sprintf ($s) | |
is_a_date_arg ($s) | |
legal_webbie ($s) | |
check_webbie ($arr) | |
ids_to_querystr ($arr, $idx= 'id') | |
xchan_query (&$items, $abook=true) | |
xchan_mail_query (&$item) | |
find_xchan_in_array ($xchan, $arr) | |
get_rel_link ($j, $rel) | |
magic_link ($s) | |
stringify_array_elms (&$arr, $escape=false) | |
jindent ($json) | |
json_decode_plus ($s) | |
design_tools () | |
in_arrayi ($needle, $haystack) | |
normalise_openid ($s) | |
+Variables | |
const | RANDOM_STRING_HEX 0x00 |
const | RANDOM_STRING_TEXT 0x01 |
activity_match | +( | ++ | $haystack, | +
+ | + | + | $needle | +
+ | ) | ++ |
Referenced by Item\add_child(), Conversation\add_thread(), consume_feed(), conversation(), get_atom_elements(), item_post_type(), like_puller(), localize_item(), remove_community_tag(), and visible_activity().
+ +alt_pager | +( | +& | +$a, | +
+ | + | + | $i, | +
+ | + | + | $more = '' , |
+
+ | + | + | $less = '' |
+
+ | ) | ++ |
Referenced by channel_content(), directory_content(), message_content(), and network_content().
+ +array_xmlify | +( | ++ | $val | ) | ++ |
apply xmlify() to all values of array $val, recursively
+ +Referenced by api_apply_template(), and poco_init().
+ +attribute_contains | +( | ++ | $attr, | +
+ | + | + | $s | +
+ | ) | ++ |
autoname | +( | ++ | $len | ) | ++ |
generate a string that's random, but usually pronounceable. used to generate initial passwords
+int | $len |
Referenced by check_php(), invite_post(), and lostpass_content().
+ +base64url_decode | +( | ++ | $s | ) | ++ |
Referenced by aes_unencapsulate(), get_atom_elements(), get_item_elements(), import_post(), import_site(), import_xchan(), oembed_init(), post_init(), post_post(), smile_unshield(), zfinger_init(), and zot_register_hub().
+ +base64url_encode | +( | ++ | $s, | +
+ | + | + | $strip_padding = true |
+
+ | ) | ++ |
Referenced by aes_encapsulate(), allowed_public_recips(), create_identity(), fix_system_urls(), get_item_elements(), identity_basic_export(), import_author_zot(), import_post(), import_xchan(), item_post(), item_store(), item_store_update(), magic_init(), oembed_iframe(), post_activity_item(), post_post(), random_string(), smile_shield(), zfinger_init(), zot_build_packet(), zot_fetch(), zot_import(), zot_new_uid(), and zot_register_hub().
+ +bb_translate_video | +( | ++ | $s | ) | ++ |
Referenced by item_post().
+ +chanlink_cid | +( | ++ | $d | ) | ++ |
Referenced by connedit_content().
+ +chanlink_hash | +( | ++ | $s | ) | ++ |
Referenced by item_photo_menu(), mail_content(), message_content(), and micropro().
+ +chanlink_url | +( | ++ | $s | ) | ++ |
check_webbie | +( | ++ | $arr | ) | ++ |
Referenced by create_identity(), and new_channel_init().
+ +cleardiv | +( | +) | ++ |
Referenced by common_content(), and match_content().
+ +contact_block | +( | +) | ++ |
Referenced by profile_sidebar().
+ +day_translate | +( | ++ | $s | ) | ++ |
Referenced by advanced_profile(), cal(), events_content(), format_event_diaspora(), format_event_html(), get_birthdays(), get_events(), list_post_dates(), ping_init(), and posted_dates().
+ +design_tools | +( | +) | ++ |
Referenced by widget_design_tools().
+ +dlogger | +( | ++ | $msg, | +
+ | + | + | $level = 0 |
+
+ | ) | ++ |
escape_tags | +( | ++ | $string | ) | ++ |
use this on "body" or "content" input where angle chars shouldn't be removed, and allow them to be safely displayed.
+string | $string |
Referenced by admin_page_logs(), app_store(), app_update(), appman_post(), bookmark_add(), chatsvc_post(), connect_post(), create_identity(), events_post(), fsuggest_post(), get_atom_elements(), item_post(), mail_post(), mail_store(), menu_add_item(), menu_create(), menu_edit(), menu_edit_item(), network_content(), notes_init(), pdledit_post(), poco_load(), printable(), profiles_post(), rbmark_content(), rbmark_post(), thing_init(), and z_input_filter().
+ +expand_acl | +( | ++ | $s | ) | ++ |
Referenced by collect_recipients(), enumerate_permissions(), and lockview_content().
+ +feed_hublinks | +( | +) | ++ |
return atom link elements for all of our hubs
+ +feed_salmonlinks | +( | ++ | $nick | ) | ++ |
find_xchan_in_array | +( | ++ | $xchan, | +
+ | + | + | $arr | +
+ | ) | ++ |
Referenced by private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), xchan_mail_query(), and xchan_query().
+ +fix_mce_lf | +( | ++ | $s | ) | ++ |
Referenced by item_post(), mail_post(), and profiles_post().
+ +format_categories | +( | +& | +$item, | +
+ | + | + | $writeable | +
+ | ) | ++ |
Referenced by prepare_body().
+ +format_filer | +( | +& | +$item | ) | ++ |
Referenced by prepare_body().
+ +format_hashtags | +( | +& | +$item | ) | ++ |
Referenced by prepare_body().
+ +get_mentions | +( | ++ | $item, | +
+ | + | + | $tags | +
+ | ) | ++ |
get_mood_verbs | +( | +) | ++ |
Referenced by mood_content(), and mood_init().
+ +get_plink | +( | ++ | $item, | +
+ | + | + | $conversation_mode = true |
+
+ | ) | ++ |
Referenced by conversation(), and Item\get_template_data().
+ +get_poke_verbs | +( | +) | ++ |
Referenced by poke_content(), and poke_init().
+ +get_rel_link | +( | ++ | $j, | +
+ | + | + | $rel | +
+ | ) | ++ |
Referenced by localize_item(), remove_community_tag(), and tag_deliver().
+ +get_tags | +( | ++ | $s | ) | ++ |
Referenced by item_post(), and photos_post().
+ +html2bb_video | +( | ++ | $s | ) | ++ |
Referenced by api_statuses_mediap(), api_statuses_update(), and get_atom_elements().
+ +ids_to_querystr | +( | ++ | $arr, | +
+ | + | + | $idx = 'id' |
+
+ | ) | ++ |
Referenced by channel_content(), display_content(), items_fetch(), network_content(), and zot_feed().
+ +in_arrayi | +( | ++ | $needle, | +
+ | + | + | $haystack | +
+ | ) | ++ |
Referenced by dirprofile_init(), and import_directory_profile().
+ +is_a_date_arg | +( | ++ | $s | ) | ++ |
Referenced by channel_content(), and network_content().
+ +item_message_id | +( | +) | ++ |
Referenced by event_store_item(), item_post(), like_content(), mood_init(), photo_upload(), photos_create_item(), post_activity_item(), profile_activity(), and subthread_content().
+ +item_post_type | +( | ++ | $item | ) | ++ |
Referenced by notification().
+ +jindent | +( | ++ | $json | ) | ++ |
Indents a flat JSON string to make it more human-readable.
+string | $json | The original JSON string to process. |
json_decode_plus | +( | ++ | $s | ) | ++ |
lang_selector | +( | +) | ++ |
Referenced by lang_content().
+ +layout_select | +( | ++ | $channel_id, | +
+ | + | + | $current = '' |
+
+ | ) | ++ |
Referenced by editwebpage_content().
+ +legal_webbie | +( | ++ | $s | ) | ++ |
Referenced by check_webbie(), and new_channel_init().
+ +link_compare | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
Compare two URLs to see if they are the same, but ignore slight but hopefully insignificant differences such as if one is https and the other isn't, or if one is www.something and the other isn't - and also ignore case differences.
+Return true if the URLs match, otherwise false.
+ +Referenced by consume_feed(), tag_deliver(), tgroup_check(), and zid().
+ +linkify | +( | ++ | $s | ) | ++ |
Function: linkify
+Replace naked text hyperlink with HTML formatted hyperlink
+ +Referenced by advanced_profile(), dirprofile_init(), and profile_activity().
+ +logger | +( | ++ | $msg, | +
+ | + | + | $level = 0 |
+
+ | ) | ++ |
Referenced by RedDirectory\__construct(), RedFile\__construct(), account_remove(), account_verify_password(), Item\add_child(), Conversation\add_thread(), admin_content(), admin_page_hubloc_post(), admin_post(), aes_encapsulate(), allowed_public_recips(), api_call(), api_channel_stream(), api_export_basic(), api_favorites(), api_get_user(), api_login(), api_oauth_request_token(), api_statuses_destroy(), api_statuses_mediap(), api_statuses_repeat(), api_statuses_show(), api_statuses_update(), api_statuses_user_timeline(), attach_mkdir(), avatar_img(), base64url_decode(), blog_install(), blog_uninstall(), bookmark_add(), bookmarks_init(), build_sync_packet(), chanman_remove_everything_from_network(), channel_remove(), chanview_content(), chat_post(), check_config(), check_form_security_token_ForbiddenOnErr(), check_form_security_token_redirectOnErr(), RedDirectory\childExists(), cloud_init(), connedit_post(), consume_feed(), conversation(), create_account(), create_identity(), RedDirectory\createDirectory(), RedDirectory\createFile(), cronhooks_run(), datetime_convert(), delete_imported_item(), deliver_run(), detect_language(), dir_parse_query(), directory_content(), directory_run(), dirprofile_init(), downgrade_accounts(), email_send(), encode_item(), expire_run(), externals_run(), feed_init(), fetch_lrdd_template(), filer_content(), filerm_content(), fix_private_photos(), fix_system_urls(), RedFile\get(), get_atom_elements(), get_item_elements(), get_language_name(), Conversation\get_template_data(), RedDirectory\getChild(), RedDirectory\getChildren(), RedDirectory\getDir(), RedDirectory\getName(), RedFile\getName(), group_content(), guess_image_type(), head_set_icon(), http_status_exit(), import_author_rss(), import_author_zot(), import_channel_photo(), import_directory_profile(), import_post(), import_profile_photo(), import_site(), import_xchan(), install_plugin(), item_post(), item_store(), item_store_update(), like_content(), limit_body_size(), load_plugin(), local_dir_update(), localize_item(), RedDirectory\log(), RedBasicAuth\log(), FKOAuth1\loginUser(), FKOAuthDataStore\lookup_consumer(), FKOAuthDataStore\lookup_token(), magic_init(), mail_post(), mail_store(), menu_edit(), mini_group_select(), mood_init(), FKOAuthDataStore\new_access_token(), new_contact(), new_keypair(), FKOAuthDataStore\new_request_token(), notes_init(), notification(), notifier_run(), onedirsync_run(), onepoll_run(), openid_content(), parse_url_content(), parse_xml_string(), photo_init(), photo_upload(), photos_post(), ping_init(), poco_init(), poco_load(), poke_init(), poller_run(), post_activity_item(), post_init(), post_post(), private_messages_list(), process_channel_sync_delivery(), process_delivery(), process_mail_delivery(), process_profile_delivery(), profile_load(), profile_photo_set_profile_perms(), profile_sidebar(), prune_hub_reinstalls(), public_recips(), RedFile\put(), dba_mysql\q(), dba_mysqli\q(), q(), queue_run(), rbmark_post(), red_item_new(), RedChannelList(), RedCollectionData(), RedFileData(), register_content(), reload_plugins(), Item\remove_child(), remove_community_tag(), remove_queue_item(), scale_external_images(), search_ac_init(), enotify\send(), send_reg_approval_email(), Conversation\set_mode(), RedFile\setName(), stream_perms_api_uids(), stream_perms_xchans(), subthread_content(), sync_directories(), tag_deliver(), tagger_content(), tgroup_check(), uninstall_plugin(), unload_plugin(), update_directory_entry(), update_imported_item(), update_queue_time(), RedBasicAuth\validateUserPass(), webfinger(), webfinger_dfrn(), xml2array(), xml_status(), z_fetch_url(), z_post_url(), zfinger_init(), zid_init(), zot_build_packet(), zot_feed(), zot_fetch(), zot_finger(), zot_gethub(), zot_import(), zot_process_response(), zot_refresh(), zot_register_hub(), and zotfeed_init().
+ +magic_link | +( | ++ | $s | ) | ++ |
magiclink_url | +( | ++ | $observer, | +
+ | + | + | $myaddr, | +
+ | + | + | $url | +
+ | ) | ++ |
Referenced by item_redir_and_replace_images().
+ +micropro | +( | ++ | $contact, | +
+ | + | + | $redirect = false , |
+
+ | + | + | $class = '' , |
+
+ | + | + | $textmode = false |
+
+ | ) | ++ |
Referenced by contact_block().
+ +mimetype_select | +( | ++ | $channel_id, | +
+ | + | + | $current = 'text/bbcode' |
+
+ | ) | ++ |
Referenced by editblock_content(), and editwebpage_content().
+ +normalise_link | +( | ++ | $url | ) | ++ |
Referenced by best_link_url(), conversation(), delegate_content(), item_photo_menu(), link_compare(), tag_deliver(), and tgroup_check().
+ +normalise_openid | +( | ++ | $s | ) | ++ |
Referenced by openid_content().
+ +notags | +( | ++ | $string | ) | ++ |
This is our primary input filter.
+The high bit hack only involved some old IE browser, forget which (IE5/Mac?) that had an XSS attack vector due to stripping the high-bit on an 8-bit character after cleansing, and angle chars with the high bit set could get through as markup.
+This is now disabled because it was interfering with some legitimate unicode sequences and hopefully there aren't a lot of those browsers left.
+Use this on any text input where angle chars are not valid or permitted They will be replaced with safer brackets. This may be filtered further if these are not allowed either.
+string | $string | Input string |
Referenced by admin_page_logs_post(), admin_page_site_post(), channel_content(), connections_content(), conversation(), create_account(), directory_content(), filestorage_post(), follow_init(), get_atom_elements(), group_post(), help_content(), invite_post(), item_post(), item_store(), item_store_update(), like_content(), lostpass_post(), mail_post(), mail_store(), mood_init(), network_content(), oexchange_content(), openid_content(), photos_post(), poco_init(), poke_init(), profiles_post(), register_post(), sanitise_acl(), settings_post(), setup_content(), setup_post(), subthread_content(), tagger_content(), and xrd_init().
+ +if (!function_exists('hex2bin')) paginate | +( | +& | +$a | ) | ++ |
Referenced by admin_page_channels(), admin_page_users(), connections_content(), match_content(), photos_content(), and viewconnections_content().
+ +perms2str | +( | ++ | $p | ) | ++ |
Referenced by chat_post(), events_post(), filestorage_post(), item_post(), menu_add_item(), menu_edit_item(), photo_upload(), photos_post(), and settings_post().
+ +photo_new_resource | +( | +) | ++ |
Referenced by import_channel_photo(), import_profile_photo(), and photo_upload().
+ +preg_heart | +( | ++ | $x | ) | ++ |
prepare_body | +( | +& | +$item, | +
+ | + | + | $attach = false |
+
+ | ) | ++ |
Referenced by conversation(), email_send(), and Item\get_template_data().
+ +prepare_text | +( | ++ | $text, | +
+ | + | + | $content_type = 'text/bbcode' |
+
+ | ) | ++ |
Referenced by advanced_profile(), api_format_items(), api_format_messages(), api_status_show(), api_users_show(), atom_entry(), check_item_source(), comanche_block(), connect_content(), and prepare_body().
+ +profiler | +( | ++ | $t1, | +
+ | + | + | $t2, | +
+ | + | + | $label | +
+ | ) | ++ |
Referenced by conversation().
+ +protect_sprintf | +( | ++ | $s | ) | ++ |
Referenced by acl_init(), api_statuses_mentions(), attach_count_files(), attach_list_files(), channel_content(), chatroom_destroy(), connections_content(), dir_query_build(), dirsearch_content(), file_tag_file_query(), item_permissions_sql(), items_fetch(), menu_list(), network_content(), permissions_sql(), photos_list_photos(), public_permissions_sql(), search_ac_init(), search_content(), and term_query().
+ +purify_html | +( | ++ | $s | ) | ++ |
Referenced by get_atom_elements(), and z_input_filter().
+ +qp | +( | ++ | $s | ) | ++ |
random_string | +( | ++ | $size = 64 , |
+
+ | + | + | $type = RANDOM_STRING_HEX |
+
+ | ) | ++ |
Referenced by aes_encapsulate(), app_store(), attach_mkdir(), attach_store(), bb_parse_crypt(), bbcode(), build_sync_packet(), create_account(), create_identity(), RedDirectory\createFile(), directory_run(), event_store_event(), fsuggest_post(), group_add(), import_directory_profile(), import_xchan(), item_message_id(), item_store(), local_dir_update(), lostpass_content(), lostpass_post(), magic_init(), mail_store(), notification(), notifier_run(), prepare_body(), profiles_init(), removeme_content(), send_message(), send_reg_approval_email(), settings_post(), setup_post(), and thing_init().
+ +reltoabs | +( | ++ | $text, | +
+ | + | + | $base | +
+ | ) | ++ |
Referenced by get_atom_elements().
+ +replace_macros | +( | ++ | $s, | +
+ | + | + | $r | +
+ | ) | ++ |
This is our template processor
+string | FriendicaSmarty | $s | the string requiring macro substitution, or an instance of FriendicaSmarty |
array | $r | key value pairs (search => replace) |
Referenced by admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), admin_page_logs(), admin_page_plugins(), admin_page_site(), admin_page_summary(), admin_page_themes(), admin_page_users(), advanced_profile(), alt_pager(), api_apply_template(), api_content(), app_render(), appman_content(), apps_content(), apw_form(), blocks_content(), blogtheme_form(), App\build_pagehead(), categories_widget(), channel_content(), chat_content(), check_config(), check_php(), common_content(), common_friends_visitor_widget(), connect_content(), connections_content(), connedit_content(), construct_page(), contact_block(), conversation(), delegate_content(), design_tools(), dir_safe_mode(), dir_sort_links(), directory_content(), dirprofile_init(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), fbrowser_content(), field_timezone(), fileas_widget(), filer_content(), filestorage_content(), findpeople_widget(), format_categories(), format_filer(), RedBrowser\generateDirectoryIndex(), get_birthdays(), Item\get_comment_box(), get_events(), get_feed_for(), group_content(), group_side(), help_content(), hostxrd_init(), identity_selector(), import_content(), invite_content(), lang_selector(), layouts_content(), login(), lostpass_content(), lostpass_post(), mail_content(), manage_content(), match_content(), menu_content(), menu_render(), message_content(), micropro(), mini_group_select(), mitem_content(), mood_content(), nav(), network_content(), new_channel_content(), notification(), notifications_content(), notify_content(), oembed_format_object(), oexchange_init(), opensearch_init(), pagelist_widget(), pdledit_content(), photos_album_widget(), photos_content(), poco_init(), poke_content(), populate_acl(), profile_sidebar(), profiles_content(), rbmark_content(), redbasic_form(), register_content(), removeme_content(), rmagic_content(), rpost_content(), search_content(), send_reg_approval_email(), send_verification_email(), setup_content(), setup_post(), siteinfo_content(), sources_content(), suggest_content(), theme_attachments(), thing_content(), user_allow(), vcard_from_xchan(), viewconnections_content(), vote_content(), webpages_content(), widget_affinity(), widget_appselect(), widget_archive(), widget_bookmarkedchats(), widget_chatroom_list(), widget_filer(), widget_follow(), widget_mailmenu(), widget_notes(), widget_savedsearch(), widget_settings_menu(), widget_suggestedchats(), widget_suggestions(), writepages_widget(), and xrd_init().
+ +return_bytes | +( | ++ | $size_str | ) | ++ |
sanitise_acl | +( | +& | +$item | ) | ++ |
search | +( | ++ | $s, | +
+ | + | + | $id = 'search-box' , |
+
+ | + | + | $url = '/search' , |
+
+ | + | + | $save = false |
+
+ | ) | ++ |
Referenced by search_content().
+ +searchbox | +( | ++ | $s, | +
+ | + | + | $id = 'search-box' , |
+
+ | + | + | $url = '/search' , |
+
+ | + | + | $save = false |
+
+ | ) | ++ |
Referenced by widget_savedsearch().
+ +smile_shield | +( | ++ | $m | ) | ++ |
smile_unshield | +( | ++ | $m | ) | ++ |
smilies | +( | ++ | $s, | +
+ | + | + | $sample = false |
+
+ | ) | ++ |
Function: smilies
+Description: Replaces text emoticons with graphical images
+: string $s
+Returns string
+It is expected that this function will be called using HTML text. We will escape text between HTML pre and code blocks, and HTML attributes (such as urls) from being processed.
+At a higher level, the bbcode [nosmile] tag can be used to prevent this function from being executed by the prepare_text() routine when preparing bbcode source for HTML display
+ +Referenced by chatsvc_content(), mail_content(), message_content(), and smilies_content().
+ +sslify | +( | ++ | $s | ) | ++ |
sslify($s) Replace media element using http url with https to a local redirector if using https locally
+string | $s | Looks for HTML tags containing src elements that are http when we're viewing an https page Typically this throws an insecure content violation in the browser. So we redirect them to a local redirector which uses https and which redirects to the selected content |
Referenced by prepare_body().
+ +stringify_array_elms | +( | +& | +$arr, | +
+ | + | + | $escape = false |
+
+ | ) | ++ |
Referenced by expand_groups(), get_things(), identity_basic_export(), lockview_content(), notifier_run(), tagadelic(), and zot_import().
+ +strip_zids | +( | ++ | $s | ) | ++ |
Referenced by cloud_init(), red_zrl_callback(), and red_zrlify_img_callback().
+ +tag_sort_length | +( | ++ | $a, | +
+ | + | + | $b | +
+ | ) | ++ |
theme_attachments | +( | +& | +$item | ) | ++ |
Referenced by mail_content(), and prepare_body().
+ +unamp | +( | ++ | $s | ) | ++ |
undo_post_tagging | +( | ++ | $s | ) | ++ |
Referenced by editblock_content(), editlayout_content(), editpost_content(), and editwebpage_content().
+ +unobscure | +( | +& | +$item | ) | ++ |
Referenced by api_format_items(), api_format_messages(), api_status_show(), api_users_show(), prepare_body(), and webpages_content().
+ +unxmlify | +( | ++ | $s | ) | ++ |
Referenced by filer_content(), and get_atom_elements().
+ +valid_email | +( | ++ | $x | ) | ++ |
Referenced by check_account_email(), invite_post(), and settings_post().
+ +xchan_mail_query | +( | +& | +$item | ) | ++ |
Referenced by notifier_run().
+ +xchan_query | +( | +& | +$items, | +
+ | + | + | $abook = true |
+
+ | ) | ++ |
Referenced by api_format_items(), api_statuses_home_timeline(), api_statuses_public_timeline(), api_statuses_show(), block_content(), channel_content(), display_content(), event_store_item(), events_content(), home_content(), item_post(), items_fetch(), network_content(), notification(), notifier_run(), page_content(), ping_init(), search_content(), share_init(), widget_item(), and zot_feed().
+ +xmlify | +( | ++ | $str | ) | ++ |
escape text ($str) for XML transport
+string | $str |
Referenced by array_xmlify(), atom_author(), atom_entry(), construct_activity_object(), construct_activity_target(), encode_rel_links(), get_atom_elements(), get_feed_for(), item_getfeedattach(), subthread_content(), tagger_content(), and xml_status().
+ +z_input_filter | +( | ++ | $channel_id, | +
+ | + | + | $s, | +
+ | + | + | $type = 'text/bbcode' |
+
+ | ) | ++ |
Referenced by item_post(), item_store(), item_store_update(), and post_activity_item().
+ +zidify_callback | +( | ++ | $match | ) | ++ |
zidify_callback() and zidify_links() work together to turn any HTML a tags with class="zrl" into zid links These will typically be generated by a bbcode '[zrl]' tag. This is done inside prepare_text() rather than bbcode() because the latter is used for general purpose conversions and the former is used only when preparing text for immediate display.
+Issues: Currently the order of HTML parameters in the text is somewhat rigid and inflexible. We assume it looks like and will not work if zrl and href appear in a different order.
+ +zidify_img_callback | +( | ++ | $match | ) | ++ |
zidify_links | +( | ++ | $s | ) | ++ |
Referenced by notification().
+ +const RANDOM_STRING_HEX 0x00 | +
const RANDOM_STRING_TEXT 0x01 | +
Referenced by aes_encapsulate(), and random_string().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$channel = get_app()->get_channel() | |
$channel = get_app()->get_channel() | +
Those who require this feature will know what to do with it. Those who don't, won't. Eventually this functionality needs to be provided by a module such that permissions can be enforced. At the moment it's more of a proof of concept; but sufficient for our immediate needs.
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$headimg = get_config('blogtheme', 'headimg') | |
$headimghome = get_config('blogtheme', 'headimghome') | |
if($a->module=='display') | $bodyclass ="" |
if ($a->module=='display') $bodyclass ="" | +
$headimg = get_config('blogtheme', 'headimg') | +
Referenced by blogtheme_form(), blogtheme_imgurl(), theme_admin(), and theme_content().
+ +$headimghome = get_config('blogtheme', 'headimghome') | +
Referenced by blogtheme_form(), theme_admin(), and theme_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$headimg = get_config('blogtheme', 'headimg') | |
$headimghome = get_config('blogtheme', 'headimghome') | |
if($a->module=='display') | $bodyclass ="" |
if ($a->module=='display') $bodyclass ="" | +
if (local_user()) $headimg = get_config('blogtheme', 'headimg') | +
$headimghome = get_config('blogtheme', 'headimghome') | +
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
redbasic_init (&$a) | |
redbasic_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$channel = get_app()->get_channel() | |
$channel = get_app()->get_channel() | +
Those who require this feature will know what to do with it. Those who don't, won't. Eventually this functionality needs to be provided by a module such that permissions can be enforced. At the moment it's more of a proof of concept; but sufficient for our immediate needs.
+ +Referenced by api_call(), api_user(), attach_mkdir(), attach_store(), blocks_content(), build_sync_packet(), channel_content(), channel_init(), channel_remove(), connections_content(), connections_init(), connections_post(), conversation(), design_tools(), directory_run(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), feed_init(), fix_attached_file_permissions(), fix_system_urls(), get_feed_for(), get_public_feed(), import_post(), invite_content(), item_photo_menu(), item_post(), item_store(), item_store_update(), items_fetch(), lastpost_content(), lastpost_init(), layouts_content(), magic_init(), message_content(), message_post(), mitem_post(), mood_init(), nav(), network_content(), network_init(), new_contact(), notifier_run(), photo_upload(), photos_albums_list(), photos_create_item(), photos_list_photos(), ping_init(), poke_init(), post_activity_item(), probe_content(), process_channel_sync_delivery(), process_delivery(), process_mail_delivery(), profile_init(), profile_photo_init(), profile_photo_post(), profile_tabs(), profiles_post(), rpost_content(), send_message(), settings_aside(), settings_post(), sources_post(), tagger_content(), thing_init(), uexport_init(), wall_attach_post(), wall_upload_post(), webpages_content(), wfinger_init(), zot_build_packet(), zot_finger(), and zot_refresh().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
thing_init (&$a) | |
thing_content (&$a) | |
thing_content | +( | +& | +$a | ) | ++ |
thing_init | +( | +& | +$a | ) | ++ |
verbs: [0] = first person singular, e.g. "I want", [1] = 3rd person singular, e.g. "Bill wants" We use the first person form when creating an activity, but the third person for use in activities FIXME: There is no accounting for verb gender for languages where this is significant. We may eventually require obj_verbs() to provide full conjugations and specify which form to use in the $_REQUEST params to this module.
+The site administrator can do things that normals cannot. This is restricted because it will likely cause an activitystreams protocol violation and the activity might choke in some other network and result in unnecessary support requests. It isn't because we're trying to be heavy-handed about what you can and can't do.
+Things, objects: We do not provide definite (a, an) or indefinite (the) articles or singular/plural designators That needs to be specified in your thing. e.g. Mike has "a carrot", Greg wants "balls", Bob likes "the Boston Red Sox".
+Future work on this module might produce more complex activities with targets, e.g. Phillip likes Karen's moustache and to describe other non-thing objects like channels, such as Karl wants Susan - where Susan represents a channel profile.
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
toggle_mobile_init (&$a) | |
toggle_mobile_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
toggle_safesearch_init (&$a) | |
toggle_safesearch_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
foreach($files as $file) | print_template ($s) |
+Variables | |
if($argc > 1) | else |
$files = glob('include/*.php') | |
foreach ($files as $file) print_template | +( | ++ | $s | ) | ++ |
foreach ($files as $file) $files = glob('include/*.php') | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$a = new App() | |
$files = glob('include/*.php') | |
foreach ($files as $file) = glob('mod/*.php') | |
$dirs = glob('addon/*') | |
else | $phpath = 'php' |
$a = new App() | +
Referenced by FriendicaSmarty\__construct(), Item\__construct(), FriendicaSmartyEngine\__construct(), Template\_replcb_if(), Template\_replcb_inc(), _well_known_init(), abook_toggle_flag(), achievements_content(), acl_init(), admin_content(), admin_page_channels(), admin_page_channels_post(), admin_page_dbsync(), admin_page_hubloc(), admin_page_hubloc_post(), admin_page_logs(), admin_page_logs_post(), admin_page_plugins(), admin_page_site(), admin_page_site_post(), admin_page_summary(), admin_page_themes(), admin_page_users(), admin_page_users_post(), admin_post(), advanced_profile(), allowed_email(), allowed_url(), alt_pager(), api_account_verify_credentials(), api_albums(), api_apply_template(), api_call(), api_content(), api_direct_messages_all(), api_direct_messages_box(), api_direct_messages_conversation(), api_direct_messages_inbox(), api_direct_messages_new(), api_direct_messages_sentbox(), api_favorites(), api_followers_ids(), api_format_as(), api_format_items(), api_friends_ids(), api_get_user(), api_item_get_user(), api_login(), api_photos(), api_post(), api_rss_extra(), api_status_show(), api_statuses_destroy(), api_statuses_f(), api_statuses_followers(), api_statuses_friends(), api_statuses_home_timeline(), api_statuses_mediap(), api_statuses_mentions(), api_statuses_public_timeline(), api_statuses_repeat(), api_statuses_show(), api_statuses_update(), api_statuses_user_timeline(), api_statusnet_config(), api_users_show(), app_name_compare(), appman_content(), apw_form(), atom_entry(), attribute_contains(), authenticate_success(), avatar_img(), bb_sanitize_style(), bbcode(), best_link_url(), block_content(), block_init(), blocks_content(), blog_init(), blogtheme_display_item(), blogtheme_form(), blogtheme_imgurl(), bookmarks_content(), bookmarks_init(), build_sync_packet(), cal(), call_hooks(), categories_widget(), channel_content(), channel_init(), channel_remove(), chanview_content(), chat_content(), chat_init(), chat_post(), chatsvc_content(), chatsvc_init(), chatsvc_post(), check_config(), check_form_security_token(), check_form_security_token_ForbiddenOnErr(), check_form_security_token_redirectOnErr(), check_htaccess(), clean_urls(), cli_startup(), cli_suggest_run(), cloud_init(), comanche_parser(), comanche_replace_region(), comanche_widget(), common_content(), common_friends_visitor_widget(), common_init(), connect_content(), connect_init(), connect_post(), connections_clone(), connections_content(), connections_init(), connections_post(), connedit_clone(), connedit_content(), connedit_init(), connedit_post(), construct_page(), contact_block(), contact_select(), conversation(), create_identity(), current_theme(), current_theme_url(), del_config(), del_pconfig(), del_xconfig(), delegate_content(), deliver_run(), directory_content(), directory_init(), dirsearch_init(), display_content(), dlogger(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), ev_compare(), event_store_item(), events_content(), events_post(), expand_acl(), expand_groups(), externals_run(), fbrowser_content(), fileas_widget(), filer_content(), filerm_content(), filestorage_content(), filestorage_post(), findpeople_widget(), fix_private_photos(), follow_init(), format_event_diaspora(), fsuggest_content(), fsuggest_post(), BaseObject\get_app(), get_app(), get_best_language(), get_birthdays(), Item\get_comment_box(), get_config(), get_custom_nav(), get_events(), get_form_security_token(), FriendicaSmartyEngine\get_intltext_template(), get_intltext_template(), get_markup_template(), get_pconfig(), get_plink(), Item\get_template_data(), get_theme_screenshot(), get_xconfig(), gprobe_run(), group_content(), group_post(), group_select(), guess_image_type(), handle_tag(), head_get_icon(), head_remove_css(), head_remove_js(), head_set_icon(), help_content(), home_content(), home_init(), hostxrd_init(), import_channel_photo(), import_post(), import_profile_photo(), info(), insert_hook(), invite_content(), invite_post(), is_developer(), is_site_admin(), item_photo_menu(), item_post(), items_fetch(), lang_selector(), layouts_content(), like_content(), link_compare(), load_config(), load_contact_links(), load_database(), load_hooks(), load_pconfig(), load_translation_table(), load_xconfig(), logger(), login(), login_content(), FKOAuth1\loginUser(), lostpass_content(), lostpass_post(), magic_init(), mail_content(), mail_post(), manual_config(), match_content(), message_content(), mitem_content(), mitem_init(), mitem_post(), mood_init(), msearch_post(), mytheme_init(), nav(), nav_set_selected(), network_content(), network_init(), new_contact(), notice(), notification(), notifications_content(), notifications_post(), notifier_run(), notify_content(), notify_init(), oembed_fetch_url(), oembed_format_object(), oembed_iframe(), oexchange_content(), oexchange_init(), onedirsync_run(), onepoll_run(), openid_content(), opensearch_init(), page_content(), page_init(), paginate(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), poco_load(), poke_init(), poller_run(), pop_lang(), post_init(), preg_heart(), prepare_body(), probe_content(), proc_run(), profile_activity(), profile_content(), profile_create_sidebar(), profile_init(), profile_load(), profile_photo_init(), profile_photo_post(), profile_sidebar(), profiles_content(), profiles_init(), profiles_post(), profperm_init(), push_lang(), queue_run(), randprof_init(), rbmark_content(), rbmark_post(), red_item_new(), redbasic_form(), register_content(), regmod_content(), relative_date(), removeme_content(), removeme_post(), replace_macros(), rmagic_post(), rpost_content(), scale_external_images(), search(), search_ac_init(), search_content(), search_init(), searchbox(), send_message(), service_class_allows(), service_class_fetch(), set_config(), Conversation\set_mode(), set_pconfig(), set_xconfig(), settings_init(), settings_post(), setup_content(), setup_post(), share_init(), siteinfo_content(), siteinfo_init(), smilies(), sources_post(), subthread_content(), suggest_content(), t(), tag_deliver(), tag_sort_length(), tagger_content(), tagrm_content(), tagrm_post(), tags_sort(), terminate_friendship(), tgroup_check(), theme_admin(), theme_content(), theme_include(), thing_content(), thing_init(), timezone_cmp(), toggle_mobile_init(), tt(), uexport_init(), update_channel_content(), update_display_content(), update_network_content(), update_search_content(), update_suggestions(), user_allow(), vcard_from_xchan(), viewconnections_content(), viewconnections_init(), viewsrc_content(), vote_content(), vote_init(), vote_post(), wall_upload_post(), webpages_content(), wfinger_init(), what_next(), widget_archive(), widget_categories(), widget_chatroom_list(), widget_design_tools(), widget_filer(), widget_follow(), widget_fullprofile(), widget_item(), widget_mailmenu(), widget_photo_albums(), widget_profile(), widget_savedsearch(), widget_settings_menu(), widget_tagcloud(), widget_tagcloud_wall(), xrd_init(), z_fetch_url(), z_path(), z_root(), zfinger_init(), zid_init(), zotfeed_init(), and zping_content().
+ +$dirs = glob('addon/*') | +
$files = glob('include/*.php') | +
else $phpath = 'php' | +
Referenced by check_php(), setup_content(), and setup_post().
+ +foreach = glob('mod/*.php') | +
![]() |
+
+ The Red Matrix
+
+ |
+
+Variables | |
$str | |
EOT | |
$str | +
Referenced by api_date(), check_php(), check_webbie(), dbesc(), dba_mysql\escape(), dba_mysqli\escape(), head_get_css(), head_get_js(), head_get_main_js(), item_store_update(), list_post_dates(), load_database(), photos_album_get_db_idstr(), photos_post(), posted_dates(), relative_date(), stream_perms_api_uids(), stream_perms_xchans(), thing_init(), and xmlify().
+ +EOT | +
Referenced by nav(), subthread_content(), system_down(), and widget_clock().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
uexport_init (&$a) | |
uexport_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
update_channel_content (&$a) | |
update_channel_content | +( | +& | +$a | ) | ++ |
Module: update_profile Purpose: AJAX synchronisation of profile page
+We can remove this hack once Internet Explorer recognises HTML5 natively
+Grab the page inner contents by calling the content function from the profile module directly, but move any image src attributes to another attribute name. This is because some browsers will prefetch all the images for the page even if we don't need them. The only ones we need to fetch are those for new page additions, which we'll discover on the client side and then swap the image back.
+reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
update_community_content (&$a) | |
update_community_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
update_display_content (&$a) | |
update_display_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
update_network_content (&$a) | |
update_network_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
update_search_content (&$a) | |
update_search_content | +( | +& | +$a | ) | ++ |
Module: update_profile Purpose: AJAX synchronisation of search page
+We can remove this hack once Internet Explorer recognises HTML5 natively
+Grab the page inner contents by calling the content function from the profile module directly, but move any image src attributes to another attribute name. This is because some browsers will prefetch all the images for the page even if we don't need them. The only ones we need to fetch are those for new page additions, which we'll discover on the client side and then swap the image back.
+reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Namespaces | |
namespace | updatetpl |
+Functions | |
def | updatetpl.help |
+Variables | |
string | updatetpl.path = '' |
list | updatetpl.excludepaths = ['css', 'img', 'js', 'php', 'theme'] |
list | updatetpl.tplpaths = [] |
tuple | updatetpl.names = os.listdir(path + 'view/') |
tuple | updatetpl.fnull = open(os.devnull, "w") |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
theme_content (&$a) | |
theme_post (&$a) | |
apw_form (&$a, $schema, $font_size, $font, $iconpath, $bigshadow, $smallshadow, $shadowcolour, $radius, $line_height, $background, $bgattach, $bgcolour, $sectionbackground, $sectioncolour, $item_colour, $link_colour, $width, $minwidth, $gcrwidth, $font_colour, $symmetry, $aside, $scaling, $opacity, $nav, $itemfloat, $sectionleft, $sectionright, $sectionwidth, $asideleft, $asideright) | |
apw_form | +( | +& | +$a, | +
+ | + | + | $schema, | +
+ | + | + | $font_size, | +
+ | + | + | $font, | +
+ | + | + | $iconpath, | +
+ | + | + | $bigshadow, | +
+ | + | + | $smallshadow, | +
+ | + | + | $shadowcolour, | +
+ | + | + | $radius, | +
+ | + | + | $line_height, | +
+ | + | + | $background, | +
+ | + | + | $bgattach, | +
+ | + | + | $bgcolour, | +
+ | + | + | $sectionbackground, | +
+ | + | + | $sectioncolour, | +
+ | + | + | $item_colour, | +
+ | + | + | $link_colour, | +
+ | + | + | $width, | +
+ | + | + | $minwidth, | +
+ | + | + | $gcrwidth, | +
+ | + | + | $font_colour, | +
+ | + | + | $symmetry, | +
+ | + | + | $aside, | +
+ | + | + | $scaling, | +
+ | + | + | $opacity, | +
+ | + | + | $nav, | +
+ | + | + | $itemfloat, | +
+ | + | + | $sectionleft, | +
+ | + | + | $sectionright, | +
+ | + | + | $sectionwidth, | +
+ | + | + | $asideleft, | +
+ | + | + | $asideright | +
+ | ) | ++ |
Referenced by theme_content().
+ +theme_content | +( | +& | +$a | ) | ++ |
Theme settings
+ +theme_post | +( | +& | +$a | ) | ++ |
Referenced by settings_post().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
theme_content (&$a) | |
theme_post (&$a) | |
theme_admin (&$a) | |
theme_admin_post (&$a) | |
blogtheme_form (&$a, $headimg, $headimghome) | |
blogtheme_form | +( | +& | +$a, | +
+ | + | + | $headimg, | +
+ | + | + | $headimghome | +
+ | ) | ++ |
Referenced by theme_admin(), and theme_content().
+ +theme_admin | +( | +& | +$a | ) | ++ |
Referenced by admin_page_themes().
+ +theme_admin_post | +( | +& | +$a | ) | ++ |
Referenced by admin_post().
+ +theme_content | +( | +& | +$a | ) | ++ |
Theme settings
+ +theme_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
theme_content (&$a) | |
theme_post (&$a) | |
theme_admin (&$a) | |
theme_admin_post (&$a) | |
blogtheme_form (&$a, $headimg, $headimghome) | |
blogtheme_form | +( | +& | +$a, | +
+ | + | + | $headimg, | +
+ | + | + | $headimghome | +
+ | ) | ++ |
theme_admin | +( | +& | +$a | ) | ++ |
theme_admin_post | +( | +& | +$a | ) | ++ |
theme_content | +( | +& | +$a | ) | ++ |
Theme settings
+ +theme_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
theme_content (&$a) | |
theme_post (&$a) | |
redbasic_form (&$a, $arr) | |
redbasic_form | +( | +& | +$a, | +
+ | + | + | $arr | +
+ | ) | ++ |
Referenced by theme_content().
+ +theme_content | +( | +& | +$a | ) | ++ |
theme_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
theme_content (&$a) | |
theme_post (&$a) | |
redbasic_form (&$a, $font_size, $line_height, $colour, $shadow, $navcolour, $opaquenav, $displaystyle, $linkcolour, $iconset, $shiny) | |
redbasic_form | +( | +& | +$a, | +
+ | + | + | $font_size, | +
+ | + | + | $line_height, | +
+ | + | + | $colour, | +
+ | + | + | $shadow, | +
+ | + | + | $navcolour, | +
+ | + | + | $opaquenav, | +
+ | + | + | $displaystyle, | +
+ | + | + | $linkcolour, | +
+ | + | + | $iconset, | +
+ | + | + | $shiny | +
+ | ) | ++ |
theme_content | +( | +& | +$a | ) | ++ |
Theme settings
+ +theme_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
view_init ($a) | |
view_init | +( | ++ | $a | ) | ++ |
load view/theme/$current_theme/style.php with Red context
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
viewconnections_init (&$a) | |
viewconnections_content (&$a) | |
viewconnections_content | +( | +& | +$a | ) | ++ |
viewconnections_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
viewsrc_content (&$a) | |
viewsrc_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
vote_init (&$a) | |
vote_post (&$a) | |
vote_content (&$a) | |
vote_content | +( | +& | +$a | ) | ++ |
vote_init | +( | +& | +$a | ) | ++ |
vote_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
wall_attach_post (&$a) | |
wall_attach_post | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
wall_upload_post (&$a) | |
wall_upload_post | +( | +& | +$a | ) | ++ |
Referenced by api_statuses_mediap(), api_statuses_update(), and red_item_new().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
webfinger_content (&$a) | |
webfinger_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
webpages_content (&$a) | |
webpages_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
wfinger_init (&$a) | |
wfinger_init | +( | +& | +$a | ) | ++ |
Referenced by _well_known_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
widget_profile ($args) | |
widget_tagcloud ($args) | |
widget_collections ($args) | |
widget_appselect ($arr) | |
widget_suggestions ($arr) | |
widget_follow ($args) | |
widget_notes ($arr) | |
widget_savedsearch ($arr) | |
widget_filer ($arr) | |
widget_archive ($arr) | |
widget_fullprofile ($arr) | |
widget_categories ($arr) | |
widget_tagcloud_wall ($arr) | |
widget_affinity ($arr) | |
widget_settings_menu ($arr) | |
widget_mailmenu ($arr) | |
widget_design_tools ($arr) | |
widget_findpeople ($arr) | |
widget_photo_albums ($arr) | |
widget_vcard ($arr) | |
widget_dirsafemode ($arr) | |
widget_dirsort ($arr) | |
widget_dirtags ($arr) | |
widget_menu_preview ($arr) | |
widget_chatroom_list ($arr) | |
widget_bookmarkedchats ($arr) | |
widget_suggestedchats ($arr) | |
widget_item ($arr) | |
widget_clock ($arr) | |
widget_photo ($arr) | |
widget_affinity | +( | ++ | $arr | ) | ++ |
widget_appselect | +( | ++ | $arr | ) | ++ |
widget_archive | +( | ++ | $arr | ) | ++ |
widget_bookmarkedchats | +( | ++ | $arr | ) | ++ |
widget_categories | +( | ++ | $arr | ) | ++ |
widget_chatroom_list | +( | ++ | $arr | ) | ++ |
Referenced by chat_content().
+ +widget_clock | +( | ++ | $arr | ) | ++ |
widget_collections | +( | ++ | $args | ) | ++ |
widget_design_tools | +( | ++ | $arr | ) | ++ |
widget_dirsafemode | +( | ++ | $arr | ) | ++ |
The following directory widgets are only useful on the directory page
+ +widget_dirsort | +( | ++ | $arr | ) | ++ |
widget_dirtags | +( | ++ | $arr | ) | ++ |
widget_filer | +( | ++ | $arr | ) | ++ |
widget_findpeople | +( | ++ | $arr | ) | ++ |
widget_follow | +( | ++ | $args | ) | ++ |
widget_fullprofile | +( | ++ | $arr | ) | ++ |
widget_item | +( | ++ | $arr | ) | ++ |
widget_mailmenu | +( | ++ | $arr | ) | ++ |
widget_menu_preview | +( | ++ | $arr | ) | ++ |
widget_notes | +( | ++ | $arr | ) | ++ |
widget_photo | +( | ++ | $arr | ) | ++ |
widget_photo($arr) widget to display a single photo.
+array | $arr,; | 'src' => URL of photo 'zrl' => true or false, use zid in url 'style' => CSS string URL must be an http or https URL |
widget_photo_albums | +( | ++ | $arr | ) | ++ |
widget_profile | +( | ++ | $args | ) | ++ |
widget_savedsearch | +( | ++ | $arr | ) | ++ |
widget_settings_menu | +( | ++ | $arr | ) | ++ |
widget_suggestedchats | +( | ++ | $arr | ) | ++ |
widget_suggestions | +( | ++ | $arr | ) | ++ |
widget_tagcloud | +( | ++ | $args | ) | ++ |
widget_tagcloud_wall | +( | ++ | $arr | ) | ++ |
widget_vcard | +( | ++ | $arr | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
xchan_content (&$a) | |
xchan_content | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
xrd_init (&$a) | |
xrd_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
xref_init (&$a) | |
xref_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
zfinger_init (&$a) | |
zfinger_init | +( | +& | +$a | ) | ++ |
The special address '[system]' will return a system channel if one has been defined, Or the first valid channel we find if there are no system channels.
+This is used by magic-auth if we have no prior communications with this site - and returns an identity on this site which we can use to create a valid hub record so that we can exchange signed messages. The precise identity is irrelevant. It's the hub information that we really need at the other end - and this will return it.
+ +Referenced by _well_known_init().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
zot_new_uid ($channel_nick) | |
zot_get_hublocs ($hash) | |
zot_build_packet ($channel, $type= 'notify', $recipients=null, $remote_key=null, $secret=null) | |
zot_zot ($url, $data) | |
zot_finger ($webbie, $channel, $autofallback=true) | |
zot_refresh ($them, $channel=null, $force=false) | |
zot_gethub ($arr) | |
zot_register_hub ($arr) | |
import_xchan ($arr, $ud_flags=UPDATE_FLAGS_UPDATED) | |
zot_process_response ($hub, $arr, $outq) | |
zot_fetch ($arr) | |
zot_import ($arr, $sender_url) | |
public_recips ($msg) | |
allowed_public_recips ($msg) | |
process_delivery ($sender, $arr, $deliveries, $relay, $public=false) | |
remove_community_tag ($sender, $arr, $uid) | |
update_imported_item ($sender, $item, $uid) | |
delete_imported_item ($sender, $item, $uid) | |
process_mail_delivery ($sender, $arr, $deliveries) | |
process_profile_delivery ($sender, $arr, $deliveries) | |
import_directory_profile ($hash, $profile, $addr, $ud_flags=UPDATE_FLAGS_UPDATED, $suppress_update=0) | |
import_directory_keywords ($hash, $keywords) | |
update_modtime ($hash, $guid, $addr, $flags=0) | |
import_site ($arr, $pubkey) | |
build_sync_packet ($uid=0, $packet=null) | |
process_channel_sync_delivery ($sender, $arr, $deliveries) | |
get_rpost_path ($observer) | |
import_author_zot ($x) | |
allowed_public_recips | +( | ++ | $msg | ) | ++ |
Referenced by zot_import().
+ +build_sync_packet | +( | ++ | $uid = 0 , |
+
+ | + | + | $packet = null |
+
+ | ) | ++ |
Send a zot packet to all hubs where this channel is duplicated, refreshing such things as personal settings, channel permissions, address book updates, etc.
+ +Referenced by connections_clone(), connedit_clone(), notes_init(), profiles_post(), and settings_post().
+ +delete_imported_item | +( | ++ | $sender, | +
+ | + | + | $item, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by process_delivery().
+ +get_rpost_path | +( | ++ | $observer | ) | ++ |
Referenced by rpost_callback(), and rpost_content().
+ +import_author_zot | +( | ++ | $x | ) | ++ |
Referenced by import_author_xchan().
+ +import_directory_keywords | +( | ++ | $hash, | +
+ | + | + | $keywords | +
+ | ) | ++ |
Referenced by import_directory_profile().
+ +import_directory_profile | +( | ++ | $hash, | +
+ | + | + | $profile, | +
+ | + | + | $addr, | +
+ | + | + | $ud_flags = UPDATE_FLAGS_UPDATED , |
+
+ | + | + | $suppress_update = 0 |
+
+ | ) | ++ |
Referenced by import_xchan(), local_dir_update(), and process_profile_delivery().
+ +import_site | +( | ++ | $arr, | +
+ | + | + | $pubkey | +
+ | ) | ++ |
Referenced by import_xchan().
+ +import_xchan | +( | ++ | $arr, | +
+ | + | + | $ud_flags = UPDATE_FLAGS_UPDATED |
+
+ | ) | ++ |
import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED) Takes an associative array of a fetched discovery packet and updates all internal data structures which need to be updated as a result.
+array | $arr | => json_decoded discovery packet |
int | $ud_flags | Determines whether to create a directory update record if any changes occur, default is UPDATE_FLAGS_UPDATED (true) $ud_flags = UPDATE_FLAGS_FORCED indicates a forced refresh where we unconditionally create a directory update record this typically occurs once a month for each channel as part of a scheduled ping to notify the directory that the channel still exists |
Referenced by chanview_content(), gprobe_run(), magic_init(), mail_post(), new_contact(), poco_load(), post_init(), process_channel_sync_delivery(), update_directory_entry(), zot_refresh(), and zot_register_hub().
+ +process_channel_sync_delivery | +( | ++ | $sender, | +
+ | + | + | $arr, | +
+ | + | + | $deliveries | +
+ | ) | ++ |
Referenced by zot_import().
+ +process_delivery | +( | ++ | $sender, | +
+ | + | + | $arr, | +
+ | + | + | $deliveries, | +
+ | + | + | $relay, | +
+ | + | + | $public = false |
+
+ | ) | ++ |
Referenced by externals_run(), onepoll_run(), and zot_import().
+ +process_mail_delivery | +( | ++ | $sender, | +
+ | + | + | $arr, | +
+ | + | + | $deliveries | +
+ | ) | ++ |
Referenced by zot_import().
+ +process_profile_delivery | +( | ++ | $sender, | +
+ | + | + | $arr, | +
+ | + | + | $deliveries | +
+ | ) | ++ |
Referenced by zot_import().
+ +public_recips | +( | ++ | $msg | ) | ++ |
Referenced by allowed_public_recips().
+ +remove_community_tag | +( | ++ | $sender, | +
+ | + | + | $arr, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by process_delivery().
+ +update_imported_item | +( | ++ | $sender, | +
+ | + | + | $item, | +
+ | + | + | $uid | +
+ | ) | ++ |
Referenced by process_delivery().
+ +update_modtime | +( | ++ | $hash, | +
+ | + | + | $guid, | +
+ | + | + | $addr, | +
+ | + | + | $flags = 0 |
+
+ | ) | ++ |
Referenced by import_directory_profile(), import_xchan(), and local_dir_update().
+ +zot_build_packet | +( | ++ | $channel, | +
+ | + | + | $type = 'notify' , |
+
+ | + | + | $recipients = null , |
+
+ | + | + | $remote_key = null , |
+
+ | + | + | $secret = null |
+
+ | ) | ++ |
zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_key = null, $secret = null) builds a zot notification packet that you can either store in the queue with a message array or call zot_zot to immediately zot it to the other side
+array | $channel | => sender channel structure |
string | $type | => packet type: one of 'ping', 'pickup', 'purge', 'refresh', 'force_refresh', 'notify', 'auth_check' |
array | $recipients | => envelope information, array ( 'guid' => string, 'guid_sig' => string ); empty for public posts |
string | $remote_key | => optional public site key of target hub used to encrypt entire packet NOTE: remote_key and encrypted packets are required for 'auth_check' packets, optional for all others |
string | $secret | => random string, required for packets which require verification/callback e.g. 'pickup', 'purge', 'notify', 'auth_check'. Packet types 'ping', 'force_refresh', and 'refresh' do not require verification |
Referenced by admin_page_hubloc_post(), build_sync_packet(), directory_run(), notifier_run(), post_init(), and zping_content().
+ +zot_fetch | +( | ++ | $arr | ) | ++ |
zot_fetch($arr)
+We received a notification packet (in mod/post.php) that a message is waiting for us, and we've verified the sender. +Now send back a pickup message, using our message tracking ID ($arr['secret']), which we will sign with our site private key. +The entire pickup message is encrypted with the remote site's public key. +If everything checks out on the remote end, we will receive back a packet containing one or more messages, +which will be processed and delivered before this function ultimately returns. +
array | $arr | decrypted and json decoded notify packet from remote site |
Referenced by post_post().
+ +zot_finger | +( | ++ | $webbie, | +
+ | + | + | $channel, | +
+ | + | + | $autofallback = true |
+
+ | ) | ++ |
: zot_finger
+Look up information about channel
+string $webbie does not have to be host qualified e.g. 'foo' is treated as 'foo' | |
array $channel (optional), if supplied permissions will be enumerated specifically for $channel | |
boolean $autofallback fallback/failover to http if https connection cannot be established. Default is true. |
Referenced by chanview_content(), gprobe_run(), magic_init(), mail_post(), new_contact(), poco_load(), post_init(), probe_content(), process_channel_sync_delivery(), and update_directory_entry().
+ +zot_get_hublocs | +( | ++ | $hash | ) | ++ |
zot_get_hublocs($hash) Given a zot hash, return all distinct hubs. This function is used in building the zot discovery packet and therefore should only be used by channels which are defined on this hub
+string | $hash | - xchan_hash array of hubloc (hub location structures) hubloc_id int hubloc_guid char(255) hubloc_guid_sig text hubloc_hash char(255) hubloc_addr char(255) hubloc_flags int hubloc_status int hubloc_url char(255) hubloc_url_sig text hubloc_host char(255) hubloc_callback char(255) hubloc_connect char(255) hubloc_sitekey text hubloc_updated datetime hubloc_connected datetime |
Only search for active hublocs - e.g. those that haven't been marked deleted
+ +Referenced by process_channel_sync_delivery(), and zfinger_init().
+ +zot_gethub | +( | ++ | $arr | ) | ++ |
: zot_gethub
+A guid and a url, both signed by the sender, distinguish a known sender at a known location This function looks these up to see if the channel is known and therefore previously verified. If not, we will need to verify it.
+array | $arr | $arr must contain: string $arr['guid'] => guid of conversant string $arr['guid_sig'] => guid signed with conversant's private key string $arr['url'] => URL of the origination hub of this communication string $arr['url_sig'] => URL signed with conversant's private key |
Referenced by import_post(), post_post(), zot_fetch(), and zot_import().
+ +zot_import | +( | ++ | $arr, | +
+ | + | + | $sender_url | +
+ | ) | ++ |
zot_import
+Process an incoming array of messages which were obtained via pickup, and import, update, delete as directed.
+array | $arr | => 'pickup' structure returned from remote site |
string | $sender_url | => the url specified by the sender in the initial communication we will verify the sender and url in each returned message structure and also verify that all the messages returned match the site url that we are currently processing. |
The message types handled here are 'activity' (e.g. posts), 'mail' , 'profile', and 'channel_sync'
+Referenced by deliver_run(), and zot_fetch().
+ +zot_new_uid | +( | ++ | $channel_nick | ) | ++ |
Red implementation of zot protocol.
+https://github.com/friendica/red/wiki/zot https://github.com/friendica/red/wiki/Zot—A-High-Level-Overview
+zot_new_uid($channel_nick)
+Generates a unique string for use as a zot guid using our DNS-based url, the channel nickname and some entropy. The entropy ensures uniqueness against re-installs where the same URL and nickname are chosen. NOTE: zot doesn't require this to be unique. Internally we use a whirlpool hash of this guid and the signature of this guid signed with the channel private key. This can be verified and should make the probability of collision of the verified result negligible within the constraints of our immediate universe.
+string | channel_nickname = unique nickname of controlling entity |
Referenced by create_identity().
+ +zot_process_response | +( | ++ | $hub, | +
+ | + | + | $arr, | +
+ | + | + | $outq | +
+ | ) | ++ |
zot_process_response($hub,$arr,$outq) { Called immediately after sending a zot message which is using queue processing Updates the queue item according to the response result and logs any information returned to aid communications troubleshooting.
+string | $hub | - url of site we just contacted |
array | $arr | - output of z_post_url() |
array | $outq | - The queue structure attached to this request |
Referenced by deliver_run(), and queue_run().
+ +zot_refresh | +( | ++ | $them, | +
+ | + | + | $channel = null , |
+
+ | + | + | $force = false |
+
+ | ) | ++ |
: zot_refresh($them, $channel = null, $force = false)
+zot_refresh is typically invoked when somebody has changed permissions of a channel and they are notified to fetch new permissions via a finger/discovery operation. This may result in a new connection (abook entry) being added to a local channel and it may result in auto-permissions being granted.
+Friending in zot is accomplished by sending a refresh packet to a specific channel which indicates a permission change has been made by the sender which affects the target channel. The hub controlling the target channel does targetted discovery (a zot-finger request requesting permissions for the local channel). These are decoded here, and if necessary and abook structure (addressbook) is created to store the permissions assigned to this channel.
+Initially these abook structures are created with a 'pending' flag, so that no reverse permissions are implied until this is approved by the owner channel. A channel can also auto-populate permissions in return and send back a refresh packet of its own. This is used by forum and group communication channels so that friending and membership in the channel's "club" is automatic.
+array | $them | => xchan structure of sender |
array | $channel | => local channel structure of target recipient, required for "friending" operations |
Referenced by connedit_content(), import_author_zot(), onepoll_run(), and post_post().
+ +zot_register_hub | +( | ++ | $arr | ) | ++ |
zot_register_hub($arr)
+A communication has been received which has an unknown (to us) sender. Perform discovery based on our calculated hash of the sender at the origination address. This will fetch the discovery packet of the sender, which contains the public key we need to verify our guid and url signatures.
+array | $arr | $arr must contain: string $arr['guid'] => guid of conversant string $arr['guid_sig'] => guid signed with conversant's private key string $arr['url'] => URL of the origination hub of this communication string $arr['url_sig'] => URL signed with conversant's private key |
Referenced by post_post().
+ +zot_zot | +( | ++ | $url, | +
+ | + | + | $data | +
+ | ) | ++ |
: zot_zot
+string $url | |
array $data |
Referenced by admin_page_hubloc_post(), deliver_run(), directory_run(), notifier_run(), post_init(), queue_run(), zot_fetch(), and zping_content().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
zotfeed_init (&$a) | |
zotfeed_init | +( | +& | +$a | ) | ++ |
![]() |
+
+ The Red Project
+
+ |
+
+Functions | |
zperms_init (&$a) | |
zperms_init | +( | +& | +$a | ) | ++ |
hmmm we probably shouldn't sign somebody else's hub. FIXME
+ +![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
zping_content (&$a) | |
zping_content | +( | +& | +$a | ) | ++ |