diff --git a/boot.php b/boot.php index 76c09d956..b2c8fa9ea 100755 --- a/boot.php +++ b/boot.php @@ -1,6 +1,8 @@ ' . "\r\n" ); +define ( 'EOL', '
' . "\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); -define ( 'NULL_DATE', '0000-00-00 00:00:00' ); +//define ( 'NULL_DATE', '0000-00-00 00:00:00' ); define ( 'TEMPLATE_BUILD_PATH', 'store/[data]/smarty3' ); define ( 'DIRECTORY_MODE_NORMAL', 0x0000); // This is technically DIRECTORY_MODE_TERTIARY, but it's the default, hence 0x0000 @@ -72,9 +74,8 @@ $DIRECTORY_FALLBACK_SERVERS = array( 'https://zothub.com', 'https://zotid.net', 'https://redmatrix.nl', - 'https://whogotzot.com', 'https://red.zottel.red', - 'https://red.pixelbits.de' + 'https://red.pixelbits.de' ); @@ -196,7 +197,6 @@ define ( 'UPDATE_SUCCESS', 0); define ( 'UPDATE_FAILED', 1); - define ( 'CLIENT_MODE_NORMAL', 0x0000); define ( 'CLIENT_MODE_LOAD', 0x0001); define ( 'CLIENT_MODE_UPDATE', 0x0002); @@ -263,13 +263,11 @@ define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder * Permissions */ - define ( 'PERMS_R_STREAM', 0x00001); define ( 'PERMS_R_PROFILE', 0x00002); define ( 'PERMS_R_PHOTOS', 0x00004); define ( 'PERMS_R_ABOOK', 0x00008); - define ( 'PERMS_W_STREAM', 0x00010); define ( 'PERMS_W_WALL', 0x00020); define ( 'PERMS_W_TAGWALL', 0x00040); @@ -321,7 +319,6 @@ define ( 'ATTACH_FLAG_DIR', 0x0001); define ( 'ATTACH_FLAG_OS', 0x0002); - define ( 'MENU_ITEM_ZID', 0x0001); define ( 'MENU_ITEM_NEWWIN', 0x0002); define ( 'MENU_ITEM_CHATROOM', 0x0004); @@ -336,13 +333,11 @@ define ( 'POLL_MULTIPLE_CHOICE', 0x0004); define ( 'POLL_OVERWRITE', 0x8000); // If you vote twice remove the prior entry - define ( 'UPDATE_FLAGS_UPDATED', 0x0001); define ( 'UPDATE_FLAGS_FORCED', 0x0002); define ( 'UPDATE_FLAGS_DELETED', 0x1000); - define ( 'DROPITEM_NORMAL', 0); define ( 'DROPITEM_PHASE1', 1); define ( 'DROPITEM_PHASE2', 2); @@ -414,6 +409,7 @@ define ( 'XCHAN_FLAGS_ORPHAN', 0x0002); define ( 'XCHAN_FLAGS_CENSORED', 0x0004); define ( 'XCHAN_FLAGS_SELFCENSORED', 0x0008); define ( 'XCHAN_FLAGS_SYSTEM', 0x0010); +define ( 'XCHAN_FLAGS_PUBFORUM', 0x0020); define ( 'XCHAN_FLAGS_DELETED', 0x1000); /* * Traficlights for Administration of HubLoc @@ -447,7 +443,6 @@ define ( 'TERM_OBJ_OBJECT', 5 ); define ( 'TERM_OBJ_THING', 6 ); define ( 'TERM_OBJ_APP', 7 ); - /** * various namespaces we may need to parse */ @@ -512,7 +507,6 @@ define ( 'GRAVITY_PARENT', 0); define ( 'GRAVITY_LIKE', 3); define ( 'GRAVITY_COMMENT', 6); - /** * Account Flags */ @@ -573,6 +567,9 @@ define ( 'ITEM_RETAINED', 0x4000); // We looked at this item once to dec define ( 'ITEM_RSS', 0x8000); // Item comes from a feed. Use this to decide whether to link the title // Don't make us evaluate this same item again. +define ( 'DBTYPE_MYSQL', 0 ); +define ( 'DBTYPE_POSTGRES', 1 ); + /** * * Reverse the effect of magic_quotes_gpc if it is enabled. @@ -588,7 +585,6 @@ function startup() { @set_time_limit(0); if(function_exists ('ini_set')) { - // This has to be quite large to deal with embedded private photos @ini_set('pcre.backtrack_limit', 500000); @@ -614,7 +610,6 @@ function startup() { } unset($process); } - } /** @@ -629,8 +624,6 @@ function startup() { * before we spit the page out. * */ - - class App { public $install = false; // true if we are installing the software @@ -642,10 +635,9 @@ class App { public $poi = null; // "person of interest", generally a referenced connection public $layout = array(); // Comanche parsed template - private $perms = null; // observer permissions private $widgets = array(); // widgets for this page - private $widgetlist = null; // widget ordering and inclusion directives + //private $widgetlist = null; // widget ordering and inclusion directives public $groups; public $language; @@ -671,24 +663,24 @@ class App { public $timezone; public $interactive = true; public $plugins; - private $apps = array(); + private $apps = array(); public $identities; public $css_sources = array(); public $js_sources = array(); public $theme_info = array(); + public $is_sys = false; + public $nav_sel; - public $nav_sel; - - public $category; + public $category; // Allow themes to control internal parameters // by changing App values in theme.php - public $sourcename = ''; - public $videowidth = 425; - public $videoheight = 350; - public $force_max_items = 0; - public $theme_thread_allow = true; + public $sourcename = ''; + public $videowidth = 425; + public $videoheight = 350; + public $force_max_items = 0; + public $theme_thread_allow = true; // An array for all theme-controllable parameters // Mostly unimplemented yet. Only options 'template_engine' and @@ -722,18 +714,9 @@ class App { private $hostname; private $baseurl; private $path; - private $db; - - private $curl_code; - private $curl_headers; - - private $cached_profile_image; - private $cached_profile_picdate; - function __construct() { - // we'll reset this after we read our config file date_default_timezone_set('UTC'); @@ -752,7 +735,6 @@ class App { . 'library/langdet' . PATH_SEPARATOR . '.' ); - $this->scheme = 'http'; if(x($_SERVER,'HTTPS') && $_SERVER['HTTPS']) $this->scheme = 'https'; @@ -791,7 +773,6 @@ class App { $this->cmd = 'channel/' . substr($this->cmd,1); - /** * * Break the URL path into C style argc/argv style arguments for our @@ -819,7 +800,6 @@ class App { $this->module = 'home'; } - /** * See if there is any page number information, and initialise * pagination @@ -856,21 +836,20 @@ class App { } function get_baseurl($ssl = false) { - - if(is_array($this->config) && array_key_exists('system',$this->config) && is_array($this->config['system']) && array_key_exists('baseurl',$this->config['system']) && strlen($this->config['system']['baseurl'])) { $url = $this->config['system']['baseurl']; + return $url; } - $scheme = $this->scheme; $this->baseurl = $scheme . "://" . $this->hostname . ((isset($this->path) && strlen($this->path)) ? '/' . $this->path : '' ); + return $this->baseurl; } @@ -897,7 +876,6 @@ class App { if(x($parsed,'path')) $this->path = trim($parsed['path'],'\\/'); } - } function get_hostname() { @@ -932,7 +910,6 @@ class App { return $this->channel; } - function set_observer($xchan) { $this->observer = $xchan; } @@ -972,9 +949,10 @@ class App { function get_widgets($location = '') { if($location && count($this->widgets)) { $ret = array(); - foreach($widgets as $w) - if($w['location'] == $location) + foreach($this->widgets as $w) { + if ($w['location'] == $location) $ret[] = $w; + } $arr = array('location' => $location, 'widgets' => $ret); call_hooks('get_widgets', $arr); return $arr['widgets']; @@ -1026,7 +1004,6 @@ class App { // always put main.js at the end $this->page['htmlhead'] .= head_get_main_js(); - } /** @@ -1036,11 +1013,11 @@ class App { * @param string $name */ function register_template_engine($class, $name = '') { - if ($name===""){ + if ($name === ""){ $v = get_class_vars( $class ); - if(x($v,"name")) $name = $v['name']; + if(x($v, "name")) $name = $v['name']; } - if ($name===""){ + if ($name === ""){ echo "template engine $class cannot be registered without a name.\n"; killme(); } @@ -1051,11 +1028,11 @@ class App { * return template engine instance. If $name is not defined, * return engine defined by theme, or default * - * @param strin $name Template engine name + * @param string $name Template engine name * @return object Template Engine instance */ function template_engine($name = ''){ - if ($name!=="") { + if ($name !== "") { $template_engine = $name; } else { $template_engine = 'smarty3'; @@ -1096,6 +1073,7 @@ class App { break; }*/ } + function get_template_ldelim($engine = 'smarty3') { return $this->ldelim[$engine]; } @@ -1106,7 +1084,6 @@ class App { function head_set_icon($icon) { $this->data['pageicon'] = $icon; - } function head_get_icon() { @@ -1116,7 +1093,7 @@ class App { return $icon; } -} +} // End App class // retrieve the App structure @@ -1128,21 +1105,26 @@ function get_app() { } - -// Multi-purpose function to check variable state. -// Usage: x($var) or $x($array,'key') -// returns false if variable/key is not set -// if variable is set, returns 1 if has 'non-zero' value, otherwise returns 0. -// e.g. x('') or x(0) returns 0; - - -function x($s,$k = NULL) { - if($k != NULL) { - if((is_array($s)) && (array_key_exists($k,$s))) { +/** + * @brief Multi-purpose function to check variable state. + * + * Usage: x($var) or $x($array, 'key') + * + * returns false if variable/key is not set + * if variable is set, returns 1 if has 'non-zero' value, otherwise returns 0. + * e.g. x('') or x(0) returns 0; + * + * @param string|array $s variable to check + * @param string $k key inside the array to check + * @return bool + */ +function x($s, $k = null) { + if($k != null) { + if((is_array($s)) && (array_key_exists($k, $s))) { if($s[$k]) return (int) 1; return (int) 0; - } + } return false; } else { @@ -1159,7 +1141,6 @@ function x($s,$k = NULL) { // called from db initialisation if db is dead. - function system_unavailable() { include('include/system_unavailable.php'); system_down(); @@ -1169,6 +1150,7 @@ function system_unavailable() { function clean_urls() { global $a; + // if($a->config['system']['clean_urls']) return true; // return false; @@ -1176,9 +1158,11 @@ function clean_urls() { function z_path() { global $a; + $base = $a->get_baseurl(); if(! clean_urls()) $base .= '/?q='; + return $base; } @@ -1190,6 +1174,7 @@ function z_root() { function absurl($path) { if(strpos($path,'/') === 0) return z_path() . $path; + return $path; } @@ -1199,9 +1184,6 @@ function os_mkdir($path,$mode = 0777,$recursive = false) { @umask($oldumask); } - - - function is_ajax() { return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); } @@ -1211,7 +1193,6 @@ function is_ajax() { // base url for use in cmdline programs which don't have // $_SERVER variables, and synchronising the state of installed plugins. - function check_config(&$a) { $build = get_config('system','db_version'); @@ -1221,21 +1202,22 @@ function check_config(&$a) { $saved = get_config('system','urlverify'); if(! $saved) set_config('system','urlverify',bin2hex(z_root())); + if(($saved) && ($saved != bin2hex(z_root()))) { // our URL changed. Do something. $oldurl = hex2bin($saved); logger('Baseurl changed!'); - $oldhost = substr($oldurl,strpos($oldurl,'//')+2); - $host = substr(z_root(),strpos(z_root(),'//')+2); + $oldhost = substr($oldurl, strpos($oldurl, '//') + 2); + $host = substr(z_root(), strpos(z_root(), '//') + 2); $is_ip_addr = ((preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$host)) ? true : false); $was_ip_addr = ((preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$oldhost)) ? true : false); // only change the url to an ip address if it was already an ip and not a dns name if((! $is_ip_addr) || ($is_ip_addr && $was_ip_addr)) { fix_system_urls($oldurl,z_root()); - set_config('system','urlverify',bin2hex(z_root())); + set_config('system', 'urlverify', bin2hex(z_root())); } else logger('Attempt to change baseurl from a DNS name to an IP address was refused.'); @@ -1250,8 +1232,8 @@ function check_config(&$a) { // so we just need to keep this around a couple of weeks until the hubs that // already exist have one $syschan_exists = get_sys_channel(); - if (! $syschan_exists) - create_sys_channel(); + if (! $syschan_exists) + create_sys_channel(); if($build != DB_UPDATE_VERSION) { $stored = intval($build); @@ -1322,7 +1304,6 @@ function check_config(&$a) { } else set_config('database','update_r' . $x, 'success'); - } } set_config('system','db_version', DB_UPDATE_VERSION); @@ -1379,13 +1360,10 @@ function check_config(&$a) { } } - load_hooks(); - return; } - function fix_system_urls($oldurl,$newurl) { require_once('include/crypto.php'); @@ -1434,7 +1412,7 @@ function fix_system_urls($oldurl,$newurl) { $replace_xchan_url = ((strpos($rr['xchan_url'],$oldurl) !== false) ? true : false); - $x = q("update xchan set xchan_addr = '%s', xchan_url = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_date = '%s' where xchan_hash = '%s' limit 1", + $x = q("update xchan set xchan_addr = '%s', xchan_url = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_date = '%s' where xchan_hash = '%s'", dbesc($channel_address . '@' . $rhs), dbesc(($replace_xchan_url) ? str_replace($oldurl,$newurl,$rr['xchan_url']) : $rr['xchan_url']), dbesc(str_replace($oldurl,$newurl,$rr['xchan_connurl'])), @@ -1447,7 +1425,7 @@ function fix_system_urls($oldurl,$newurl) { dbesc($rr['xchan_hash']) ); - $y = q("update hubloc set hubloc_addr = '%s', hubloc_url = '%s', hubloc_url_sig = '%s', hubloc_host = '%s', hubloc_callback = '%s' where hubloc_hash = '%s' and hubloc_url = '%s' limit 1", + $y = q("update hubloc set hubloc_addr = '%s', hubloc_url = '%s', hubloc_url_sig = '%s', hubloc_host = '%s', hubloc_callback = '%s' where hubloc_hash = '%s' and hubloc_url = '%s'", dbesc($channel_address . '@' . $rhs), dbesc($newurl), dbesc(base64url_encode(rsa_sign($newurl,$c[0]['channel_prvkey']))), @@ -1469,16 +1447,13 @@ function fix_system_urls($oldurl,$newurl) { } - - // wrapper for adding a login box. If $register == true provide a registration // link. This will most always depend on the value of $a->config['system']['register_policy']. // returns the complete html for inserting into the page - function login($register = false, $form_id = 'main-login', $hiddens=false) { $a = get_app(); - $o = ""; + $o = ''; $reg = false; $reglink = get_config('system','register_link'); if(! strlen($reglink)) @@ -1497,17 +1472,15 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) { } else { $a->page['htmlhead'] .= replace_macros(get_markup_template("login_head.tpl"),array( - '$baseurl' => $a->get_baseurl(true) + '$baseurl' => $a->get_baseurl(true) )); $tpl = get_markup_template("login.tpl"); if(strlen($a->query_string)) - $_SESSION['login_return_url'] = $a->query_string; + $_SESSION['login_return_url'] = $a->query_string; } - $o .= replace_macros($tpl,array( - '$dest_url' => $dest_url, '$logout' => t('Logout'), '$login' => t('Login'), @@ -1516,14 +1489,12 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) { '$lpassword' => array('password', t('Password'), '', ''), '$remember' => array('remember', t('Remember me'), '', ''), '$hiddens' => $hiddens, - '$register' => $reg, - '$lostpass' => t('Forgot your password?'), '$lostlink' => t('Password Reset'), )); - call_hooks('login_hook',$o); + call_hooks('login_hook', $o); return $o; } @@ -1531,7 +1502,6 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) { // Used to end the current process, after saving session state. - function killme() { session_write_close(); exit; @@ -1540,33 +1510,44 @@ function killme() { // redirect to another URL and terminate this process. - function goaway($s) { header("Location: $s"); killme(); } - +/** + * @brief Returns the entity id of locally logged in account or false. + * + * Returns numeric account_id if authenticated or 0. It is possible to be + * authenticated and not connected to a channel. + * + * @return int|bool account_id or false + */ function get_account_id() { if(get_app()->account) return intval(get_app()->account['account_id']); + return false; } - -// Returns the entity id of locally logged in user or false. - - +/** + * @brief Returns the entity id of locally logged in user or false. + * + * Returns authenticated numeric channel_id if authenticated and connected to + * a channel or 0. Sometimes referred to as $uid in the code. + * + * @return int|bool channel_id or false + */ function local_user() { - if((x($_SESSION,'authenticated')) && (x($_SESSION,'uid'))) + if((x($_SESSION, 'authenticated')) && (x($_SESSION, 'uid'))) return intval($_SESSION['uid']); + return false; } // Returns contact id of authenticated site visitor or false - function remote_user() { if((x($_SESSION,'authenticated')) && (x($_SESSION,'visitor_id'))) return $_SESSION['visitor_id']; @@ -1577,15 +1558,14 @@ function remote_user() { // contents of $s are displayed prominently on the page the next time // a page is loaded. Usually used for errors or alerts. - function notice($s) { $a = get_app(); - if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array(); + if(! x($_SESSION, 'sysmsg')) $_SESSION['sysmsg'] = array(); if($a->interactive) { // shameless plug, permission is denied and they have no identity. // There's a fairly good chance that they've not got zot. - if((stristr($s,t('permission denied'))) && (! get_observer_hash())) { - $s .= '
' . t('Got Zot?') . ''; + if((stristr($s, t('permission denied'))) && (! get_observer_hash())) { + $s .= '
' . t('Got Zot?') . ''; } $_SESSION['sysmsg'][] = $s; } @@ -1594,24 +1574,21 @@ function notice($s) { function info($s) { $a = get_app(); - if(! x($_SESSION,'sysmsg_info')) $_SESSION['sysmsg_info'] = array(); + if(! x($_SESSION, 'sysmsg_info')) $_SESSION['sysmsg_info'] = array(); if($a->interactive) $_SESSION['sysmsg_info'][] = $s; } - - -// wrapper around config to limit the text length of an incoming message - - +/** + * @brief Wrapper around config to limit the text length of an incoming message + * + * @return int + */ function get_max_import_size() { - return(intval(get_config('system','max_import_size'))); + return(intval(get_config('system', 'max_import_size'))); } - - - /** * * Wrap calls to proc_close(proc_open()) and call hook @@ -1625,8 +1602,6 @@ function get_max_import_size() { * * $cmd and string args are surrounded with "" */ - - function proc_run($cmd){ $a = get_app(); @@ -1659,24 +1634,28 @@ function proc_run($cmd){ if(count($args) && $args[0] === 'php') $args[0] = ((x($a->config,'system')) && (x($a->config['system'],'php_path')) && (strlen($a->config['system']['php_path'])) ? $a->config['system']['php_path'] : 'php'); - for($x = 0; $x < count($args); $x ++) + + for($x = 0; $x < count($args); $x++) $args[$x] = escapeshellarg($args[$x]); $cmdline = implode($args," "); - if(is_windows()) { $cwd = getcwd(); $cmd = "cmd /c start \"title\" /D \"$cwd\" /b $cmdline"; proc_close(proc_open($cmd, array(), $foo)); } else - proc_close(proc_open($cmdline." &",array(),$foo)); + proc_close(proc_open($cmdline ." &", array(), $foo)); } - +/** + * @brief Checks if we are running on M$ Windows. + * + * @return bool true if we run on M$ Windows + */ function is_windows() { - return ((strtoupper(substr(PHP_OS,0,3)) === 'WIN') ? true : false); + return ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false); } @@ -1708,7 +1687,6 @@ function current_theme(){ $page_theme = null; } - $is_mobile = $a->is_mobile || $a->is_tablet; $standard_system_theme = ((isset($a->config['system']['theme'])) ? $a->config['system']['theme'] : ''); @@ -1723,7 +1701,7 @@ function current_theme(){ $system_theme = ((isset($a->config['system']['mobile_theme'])) ? $a->config['system']['mobile_theme'] : ''); $theme_name = ((isset($_SESSION) && x($_SESSION,'mobile_theme')) ? $_SESSION['mobile_theme'] : $system_theme); - if($theme_name === '' || $theme_name === '---' ) { + if($theme_name === '' || $theme_name === '---' ) { // user has selected to have the mobile theme be the same as the normal one $system_theme = $standard_system_theme; $theme_name = $standard_theme_name; @@ -1731,21 +1709,20 @@ function current_theme(){ } } else { - $system_theme = $standard_system_theme; - $theme_name = $standard_theme_name; + $system_theme = $standard_system_theme; + $theme_name = $standard_theme_name; if($page_theme) $theme_name = $page_theme; } - if($theme_name && (file_exists('view/theme/' . $theme_name . '/css/style.css') || file_exists('view/theme/' . $theme_name . '/php/style.php'))) return($theme_name); foreach($app_base_themes as $t) { - if(file_exists('view/theme/' . $t . '/css/style.css')|| + if(file_exists('view/theme/' . $t . '/css/style.css') || file_exists('view/theme/' . $t . '/php/style.php')) return($t); } @@ -1770,9 +1747,17 @@ function current_theme_url($installing = false) { $opts .= ((x($a->layout,'schema')) ? '&schema=' . $a->layout['schema'] : ''); if(file_exists('view/theme/' . $t . '/php/style.php')) return('view/theme/' . $t . '/php/style.pcss' . $opts); + return('view/theme/' . $t . '/css/style.css'); } +/** + * @brief Check if current user has admin role. + * + * Check if the current user has ACCOUNT_ROLE_ADMIN. + * + * @return bool true if user is an admin + */ function is_site_admin() { $a = get_app(); if((intval($_SESSION['authenticated'])) @@ -1782,19 +1767,25 @@ function is_site_admin() { return false; } +/** + * @brief Check if current user has developer role. + * + * Check if the current user has ACCOUNT_ROLE_DEVELOPER. + * + * @return bool true if user is a developer + */ function is_developer() { $a = get_app(); if((intval($_SESSION['authenticated'])) && (is_array($a->account)) && ($a->account['account_roles'] & ACCOUNT_ROLE_DEVELOPER)) return true; + return false; } - function load_contact_links($uid) { - $a = get_app(); $ret = array(); @@ -1804,9 +1795,8 @@ function load_contact_links($uid) { // logger('load_contact_links'); - $r = q("SELECT abook_id, abook_flags, abook_my_perms, abook_their_perms, xchan_hash, xchan_photo_m, xchan_name, xchan_url from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d) ", - intval($uid), - intval(ABOOK_FLAG_SELF) + $r = q("SELECT abook_id, abook_flags, abook_my_perms, abook_their_perms, xchan_hash, xchan_photo_m, xchan_name, xchan_url from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d ", + intval($uid) ); if($r) { foreach($r as $rr){ @@ -1815,30 +1805,30 @@ function load_contact_links($uid) { } else $ret['empty'] = true; + $a->contacts = $ret; - return; } /** - * returns querystring as string from a mapped array + * @brief Returns querystring as string from a mapped array. * - * @param params Array + * @param array $params mapped array with query parameters + * @param string $name of parameter, default null * @return string */ - -function build_querystring($params, $name=null) { - $ret = ""; - foreach($params as $key=>$val) { +function build_querystring($params, $name = null) { + $ret = ''; + foreach($params as $key => $val) { if(is_array($val)) { - if($name==null) { + if($name === null) { $ret .= build_querystring($val, $key); } else { - $ret .= build_querystring($val, $name."[$key]"); + $ret .= build_querystring($val, $name . "[$key]"); } } else { $val = urlencode($val); - if($name!=null) { + if($name != null) { $ret .= $name . "[$key]" . "=$val&"; } else { $ret .= "$key=$val&"; @@ -1858,6 +1848,7 @@ function argc() { function argv($x) { if(array_key_exists($x,get_app()->argv)) return get_app()->argv[$x]; + return ''; } @@ -1869,15 +1860,16 @@ function get_observer_hash() { $observer = get_app()->get_observer(); if(is_array($observer)) return $observer['xchan_hash']; + return ''; } /** -* 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 -*/ + * 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 + */ function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} @@ -1890,13 +1882,31 @@ function curPageURL() { return $pageURL; } -function get_custom_nav(&$a,$navname) { +/** + * @brief Returns a custom navigation by name??? + * + * If no $navname provided load default page['nav'] + * + * @todo not fully implemented yet + * + * @param App $a global application object + * @param string $navname + * @return mixed + */ +function get_custom_nav(&$a, $navname) { if(! $navname) return $a->page['nav']; // load custom nav menu by name here - } +/** + * @brief Loads a page definition file for a module. + * + * If there is no parsed Comanche template already load a module's pdl file + * and parse it with Comanche. + * + * @param App &$a global application object + */ function load_pdl(&$a) { require_once('include/comanche.php'); @@ -1904,44 +1914,43 @@ function load_pdl(&$a) { $n = 'mod_' . $a->module . '.pdl' ; $u = comanche_get_channel_id(); if($u) - $s = get_pconfig($u,'system',$n); + $s = get_pconfig($u, 'system', $n); + if((! $s) && (($p = theme_include($n)) != '')) $s = @file_get_contents($p); - if($s) - comanche_parser($a,$s); - } + if($s) + comanche_parser($a, $s); + } } - - +/** + * @brief build the page. + * + * Build the page - now that we have all the components + * + * @param App &$a global application object + */ function construct_page(&$a) { - - /** - * Build the page - now that we have all the components - */ - - $comanche = ((count($a->layout)) ? true : false); require_once(theme_include('theme_init.php')); $installing = false; - if($a->module == 'setup') + if($a->module == 'setup') { $installing = true; - else { + } else { nav($a); } if($comanche) { if($a->layout['nav']) { - $a->page['nav'] = get_custom_nav($a->layout['nav']); + $a->page['nav'] = get_custom_nav($a, $a->layout['nav']); } } - if(($p = theme_include(current_theme() . '.js')) != '') head_add_js($p); @@ -1950,10 +1959,10 @@ function construct_page(&$a) { require_once('include/js_strings.php'); - if(x($a->page,'template_style')) + if(x($a->page, 'template_style')) head_add_css($a->page['template_style'] . '.css'); else - head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css'); + head_add_css(((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.css'); head_add_css('mod_' . $a->module . '.css'); head_add_css(current_theme_url($installing)); @@ -1963,11 +1972,12 @@ function construct_page(&$a) { $a->build_pagehead(); $arr = $a->get_widgets(); - ksort($arr,SORT_NUMERIC); + ksort($arr, SORT_NUMERIC); if(count($arr)) { foreach($arr as $x) { - if(! array_key_exists($x['location'],$a->page)) + if(! array_key_exists($x['location'], $a->page)) $a->page[$x['location']] = ''; + $a->page[$x['location']] .= $x['html']; } } @@ -1983,27 +1993,25 @@ function construct_page(&$a) { if($comanche) { $arr = array('module' => $a->module, 'layout' => $a->layout); - call_hooks('construct_page',$arr); + call_hooks('construct_page', $arr); $a->layout = $arr['layout']; foreach($a->layout as $k => $v) { - if((strpos($k,'region_') === 0) && strlen($v)) { - if(strpos($v,'$region_') !== false) { - $v = preg_replace_callback('/\$region_([a-zA-Z0-9]+)/ism','comanche_replace_region',$v); + if((strpos($k, 'region_') === 0) && strlen($v)) { + if(strpos($v, '$region_') !== false) { + $v = preg_replace_callback('/\$region_([a-zA-Z0-9]+)/ism', 'comanche_replace_region', $v); } // And a couple of convenience macros - if(strpos($v,'$nav') !== false) { - $v = str_replace('$nav',$a->page['nav'],$v); + if(strpos($v, '$nav') !== false) { + $v = str_replace('$nav', $a->page['nav'], $v); } - if(strpos($v,'$content') !== false) { - - $v = str_replace('$content',$a->page['content'],$v); + if(strpos($v, '$content') !== false) { + $v = str_replace('$content', $a->page['content'], $v); } - $a->page[substr($k,7)] = $v; - + $a->page[substr($k, 7)] = $v; } } } @@ -2030,13 +2038,8 @@ function construct_page(&$a) { header("Content-type: text/html; charset=utf-8"); require_once(theme_include( - ((x($a->page,'template')) - ? $a->page['template'] - : 'default' ) - . '.php' ) + ((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.php' ) ); - - return; } @@ -2047,20 +2050,24 @@ function appdirpath() { function head_set_icon($icon) { global $a; + $a->data['pageicon'] = $icon; // logger('head_set_icon: ' . $icon); } function head_get_icon() { global $a; + $icon = $a->data['pageicon']; - if(! strpos($icon,'://')) + if(! strpos($icon, '://')) $icon = z_root() . $icon; + return $icon; } function get_directory_realm() { - if($x = get_config('system','directory_realm')) + if($x = get_config('system', 'directory_realm')) return $x; + return DIRECTORY_REALM; } diff --git a/doc/Widgets.md b/doc/Widgets.md index 48006adcd..68f9e4cea 100644 --- a/doc/Widgets.md +++ b/doc/Widgets.md @@ -39,6 +39,12 @@ Some/many of these widgets have restrictions which may restrict the type of page * categories - categories filter (channel page) * tagcloud_wall - tagcloud for channel page only + * args: 'limit' - number of tags to return (default 50) +
 
+ +* catcloud_wall - tagcloud for channel page categories + * args: 'limit' - number of categories to return (default 50) +
 
* affinity - affinity slider for network page - must be logged in @@ -79,3 +85,17 @@ Some/many of these widgets have restrictions which may restrict the type of page * style - CSS style string
 
+* photo_rand - display a random photo from one of your photo albums. Photo permissions are honoured + * args: + * album - album name (very strongly recommended if you have lots of photos) + * scale - typically 0 (original size), 1 (640px), or 2 (320px) + * style - CSS style string + * channel_id - if not your own +
 
+ +* random_block - display a random block element from your webpage design tools collection. Permissions are honoured. + * args: + * contains - only return blocks which include the contains string in the block name + * channel_id - if not your own +
 
+ diff --git a/doc/de/main.bb b/doc/de/main.bb index a3582e17c..f16016124 100644 --- a/doc/de/main.bb +++ b/doc/de/main.bb @@ -7,10 +7,10 @@ Die Red-Matrix ist eine dezentrale Kommunikations- und Publishing-Plattform. Sie [zrl=[baseurl]/help/features]Features der Red-Matrix[/zrl] Die Red-Matrix funktioniert schon heute als ein globales verteiltes Netzwerk und beweist täglich ihre Vielseitigkeit und Skalierbarkeit auf kleinen Privatservern wie auch auf riesigen Sites. -Kommunikationsplattformen für Familien (auf Wunsch auch ohne Verbindung zum restlichen Red-Netzwerk), verteilte Online-Communities, Support-Foren, Homepages. Oder auch professionelle Inhalte-Anbieter mit kommerziellen Premium-Kanälen und eingeschränktem Zugriff – was immer Du willst, die Red-Matrix unterstützt Dich in Deinem kreativen Schaffen. +Kommunikationsplattformen für Familien, verteilte Online-Communities, Support-Foren, Blogs und Homepages. Oder auch professionelle Inhalte-Anbieter mit kommerziellen Premium-Kanälen und eingeschränktem Zugriff – was immer Du willst, die Red-Matrix unterstützt Dich in Deinem kreativen Schaffen. [zrl=[baseurl]/help/what_is_zot]Got Zot? Hast Du schon Zot? Wenn nicht wird es Zeit.[/zrl] -Zot ist das großartige neue Kommunikationsprotokoll, das extra für die Red-Matrix entwickelt wurde. Als Teilnehmer bist Du dank „Nomadischer Identität“ nicht länger an einen Hoster gebunden. Ziehe einfach auf einen anderen Server um und behalte dabei alle Deine Kontakte, oder klone Deinen Kanal und lasse ihn auf mehreren Servern gleichzeitig laufen – sollte einer davon plötzlich geschlossen werden, ist das kein Problem für Dich. Und bist Du erst Teil der Red-Matrix, musst Du Dich nie wieder mehrfach anmelden, selbst wenn Du Seiten auf einem andere Red-Server betrachtest. Zot ist, was die Red-Matrix besonders macht. +Zot ist das großartige neue Kommunikationsprotokoll, das extra für die Red-Matrix entwickelt wurde. Als Mitglied bist Du dank „Nomadischer Identität“ nicht länger an einen einzigen Server oder Anbieter gebunden. Ziehe einfach auf einen anderen Server um und behalte dabei alle Deine Kontakte, oder klone Deinen Kanal und lasse ihn auf mehreren Servern gleichzeitig laufen – sollte einer davon plötzlich geschlossen werden, ist das kein Problem für Dich. Und bist Du erst Teil der Red-Matrix, musst Du Dich nie wieder mehrfach anmelden, selbst wenn Du Seiten auf einem andere Red-Server betrachtest. Zot ist, was die Red-Matrix besonders macht. [size=large][b]Erste Schritte[/b][/size] [zrl=[baseurl]/help/Privacy]Datenschutz[/zrl] @@ -18,6 +18,7 @@ Zot ist das großartige neue Kommunikationsprotokoll, das extra für die Red-Mat [zrl=[baseurl]/help/accounts_profiles_channels_basics]Du in der Red-Matrix: Konten, Profile und Kanäle kurz erklärt[/zrl] [zrl=[baseurl]/help/profiles]Profile[/zrl] [zrl=[baseurl]/help/channels]Kanäle[/zrl] +[zrl=[baseurl]/help/roles]Zugriffsrechte-Kategorien und Kanaltypen[/zrl] [zrl=[baseurl]/help/first-post]Dein erster Beitrag[/zrl] [zrl=[baseurl]/help/connecting_to_channels]Sich mit anderen Kanälen verbinden[/zrl] [zrl=[baseurl]/help/permissions]Zugriffsrechte und Verschlüsselung: Du hast alles unter Kontrolle[/zrl] @@ -44,6 +45,7 @@ Zot ist das großartige neue Kommunikationsprotokoll, das extra für die Red-Mat [zrl=[baseurl]/help/faq_admins]FAQ für Admins[/zrl] [size=large][b]Technische Dokumentation[/b][/size] +[zrl=[baseurl]/help/history]Die Geschichte der RedMatrix[/zrl] [zrl=[baseurl]/help/Zot---A-High-Level-Overview]Zot – ein grober Überblick[/zrl] [zrl=[baseurl]/help/zot]Eine Einführung ins Zot-Protokoll[/zrl] [zrl=[baseurl]/help/zot_structures]Zot-Strukturen[/zrl] @@ -62,6 +64,7 @@ Zot ist das großartige neue Kommunikationsprotokoll, das extra für die Red-Mat [zrl=[baseurl]/doc/html/]Code-Referenz (mit doxygen generiert - setzt Cookies)[/zrl] [zrl=[baseurl]/help/to_do_doco]To-Do-Liste für das Projekt Red-Dokumentation[/zrl] [zrl=[baseurl]/help/to_do_code]To-Do-Liste für Entwickler[/zrl] +[zrl=[baseurl]/help/roadmap]Roadmap für Version 3[/zrl] [zrl=[baseurl]/help/git_for_non_developers]Git für Nicht-Entwickler[/zrl] [size=large][b]Häufig gestellte Fragen für Entwickler[/b][/size] diff --git a/doc/de/registration.bb b/doc/de/registration.bb index fa331e561..c7aaac55e 100644 --- a/doc/de/registration.bb +++ b/doc/de/registration.bb @@ -12,7 +12,7 @@ Gib ein Passwort Deiner Wahl ein und wiederhole es in der zweiten Box, um sicher [b]Nutzungsbedingungen[/b] -Klicke auf den Link, um die Nutzungsbedingungen dieses Servers zu lesen. Wenn Du sie gelesen hast, setze den Haken im Registrierungsformular, um sie zu akzeptieren. +Klicke auf den Link, um die [zrl=[baseurl]/help/TermsOfService]Nutzungsbedingungen[/zrl] dieses Servers zu lesen. Wenn Du sie gelesen hast, setze den Haken im Registrierungsformular, um sie zu akzeptieren. [b]Registrieren[/b] diff --git a/doc/developers.bb b/doc/developers.bb index 18e39c4ea..5365fd77a 100644 --- a/doc/developers.bb +++ b/doc/developers.bb @@ -64,4 +64,7 @@ In the interests of consistency we adopt the following code styling. We may acce [li] Generally speaking, opening braces go on the same line as the thing which opens the brace. They are the last character on the line. Closing braces are on a line by themselves. [/li] +[b]See Also[/b] +[zrl=[baseurl]/help/sql_conventions]SQL Conventions[/zrl] + #include doc/macros/main_footer.bb; diff --git a/doc/faq_admins.bb b/doc/faq_admins.bb index e4541035b..ec4f8d969 100644 --- a/doc/faq_admins.bb +++ b/doc/faq_admins.bb @@ -38,11 +38,19 @@ valid SSL certificate rather than disabling port 443. [b]What do I need to do when moving my hub to a different server[/b] 1) Git clone on the new server. Repeat the process for any custom themes, and addons. -2) Copy .htconfig.php +2) Rsync .htconfig.php 3) Rsync everything in store/ -4) Rsync everything in custom/ (this will only exist if you have custom modules) +4) Rsync everything in mod/site/ and view/site (these will only exist if you have custom modules) 5) Dump and restore DB. +[*] +[b]How do I reinstall an existing hub on the same server?[/b] + +1) [code]git reset --hard HEAD[/code] will reset all files to their upstream defaults. This will not reset any local files that do not also exist upstream. Eg, if you have local changes to mod/channel.php, this will reset them - but will not reset any changes in mod/site/channel.php +2) If you absolutely must reinstall - for example, if you need to upgrade operating system - follow the steps for moving to a different server, but instead of using rsync, backup and restore some other way. + +Do not reinstall a hub with a fresh database and fresh .htconfig.php unless as a very last resort. Creating a temporary account and ask for help via a support channel for non-trivial reinstalls is preferable to reinstalling fresh. + [*] [b]How do I set the default homepage for logged out viewers?[/b] diff --git a/doc/features.bb b/doc/features.bb index fc977fcc1..0faea57cc 100644 --- a/doc/features.bb +++ b/doc/features.bb @@ -1,17 +1,17 @@ [b]Features[/b] -[b][color= grey][size=24]Red Matrix Features[/size][/color][/b] +[b][size=24]Red Matrix Features[/size][/b] The Red Matrix is a general-purpose communication network, with several unique features. It is designed to be used by the widest range of users on the web, from non-technical bloggers, to expert PHP programmers and seasoned systems administrators. This page lists some of the core features of Red that are bundled with the official. As with any free and open source software, there may be many other extensions, additions, plugins, themes and configurations that are limited only by the needs and imagination of Red's users. -[b][color= grey][size=20]Built for Privacy and Freedom[/size][/color][/b] +[b][size=20]Built for Privacy and Freedom[/size][/b] One of the design goals of Red is to enable easy communication on the web, while preserving privacy, if so desired by users. To achieve this goal, Red includes a number of features allowing arbitrary levels of privacy: -[b][color= grey]Affinity Slider[/color][/b] +[b]Affinity Slider[/b] When adding contacts in the Red Matrix, users have the option of assigning affinity levels to the new member in their contact list. For example, when adding someone who happens to be a person who's blog you follow, you could assign their channel an affinity level of "Acquaintances". @@ -23,26 +23,26 @@ At this point, Red's [i]Affinity Slider[/i] tool, which usually appears at the t The Affinity Slider allows instantaneous filtering of large amounts of content, grouped by levels of closeness. -[b][color= grey]Access Control Lists[/color][/b] +[b]Access Control Lists[/b] When sharing content with someone in their contact list, users have the option of restricting who sees the content. By clicking on the padlock underneath the sharing box, one could choose desired recipients of the post, by clicking on their names. Once sent, the message will be viewable only by the sender and the selected recipients. In other words, the message will not appear on any public walls. -[b][color=grey]Private Message Encryption and Privacy Concerns[/color][/b] +[b]Private Message Encryption and Privacy Concerns[/b] In the Red Matrix, public messages are not encrypted prior to leaving the originating server, they are also stored in the database in clear text. -Messages marked [b][color=white]private[/color][/b], however, are encrypted with AES-CBC 256-bit symmetric cipher, which is then protected (encrypted in turn) by public key cryptography, based on 4096-bit RSA keys, associated with the channel that is sending the message. +Messages marked [b]private[/b], however, are encrypted with AES-CBC 256-bit symmetric cipher, which is then protected (encrypted in turn) by public key cryptography, based on 4096-bit RSA keys, associated with the channel that is sending the message. Each Red channel has it's own unique set of private and associated public RSA 4096-bit keys, generated when the channels is first created. -[b][color= grey]TLS/SSL[/color][/b] +[b]TLS/SSL[/b] For Red hubs that use TLS/SSL, client to server communications are encrypted via TLS/SSL. Given recent disclosures in the media regarding widespread, global surveillance and encryption circumvention by the NSA and GCHQ, it is reasonable to assume that HTTPS-protected communications may be compromised in various ways. -[b][color= grey]Channel Settings[/color][/b] +[b]Channel Settings[/b] In Red, each channel allows fine-grained permissions to be set for various aspects of communication. For example, under the "Security and Privacy Settings" heading, each aspect on the left side of the page, has six (6) possible viewing/access options, that can be selected by clicking on the dropdown menu. @@ -58,11 +58,11 @@ The six options are: - Anybody on the Internet. -[b][color= grey]Account Cloning[/color][/b] +[b]Account Cloning[/b] -Accounts in the Red Matrix are called to as [i]nomadic identities[/]. Nomadic, because a user's identity (see What is Zot? for the full explanation) is stuck to the hub where the identity was originally created. For example, when you created your Facebook, or Gmail account, it is tied to those services. They cannot function without Facebook.com or Gmail.com. +Accounts in the Red Matrix are referred to as [i]nomadic identities[/i], because a user's identity is not bound to the hub where the identity was originally created (see What is Zot? for the full explanation). For example, when you create a Facebook or Gmail account, it is tied to those services. They cannot function without Facebook.com or Gmail.com. -By contrast, say you've created a Red identity called [b][color=white]tina@redhub.com[/color][/b]. You can clone it to another Red hub by choosing the same, or a different name: [b][color=white]liveForever@SomeRedMatrixHub.info[/color][/b] +By contrast, say you've created a Red identity called [b]tina@redhub.com[/b]. You can clone it to another Red hub by choosing the same, or a different name: [b]liveForever@SomeRedMatrixHub.info[/b] Both channels are now synchronized, which means all your contacts and preferences will be duplicated on your clone. It doesn't matter whether you send a post from your original hub, or the new hub. Posts will be mirrored on both accounts. @@ -72,26 +72,26 @@ This is a rather revolutionary feature, if we consider some scenarios: - The administrator of your hub can no longer afford to pay for his free and public Red Matrix hub. He announces that the hub will be shutting down in two weeks. This gives you ample time to clone your identity(ies) and preserve your Red relationships, friends and content. - - What if your identity is subject to government censorship? Your hub provider is compelled to delete your account, along with any identities and associated data. With cloning, the Red Matrix offers [b][color=white]censorship resistance [/color][/b]. You can have hundreds of clones, if you wanted to, all named different, and existing on many different hubs, strewn around the internet. + - What if your identity is subject to government censorship? Your hub provider is compelled to delete your account, along with any identities and associated data. With cloning, the Red Matrix offers [b]censorship resistance[/b]. You can have hundreds of clones, if you wanted to, all named different, and existing on many different hubs, strewn around the internet. Red offers interesting new possibilities for privacy. You can read more at the <<Private Communications Best Practices>> page. Some caveats apply. For a full explanation of identity cloning, read the <HOW TO CLONE MY IDENTITY>. -[b][color= grey]Account Backup[/color][/b] +[b]Account Backup[/b] Red offers a simple, one-click account backup, where you can download a complete backup of your profile(s). Backups can then be used to clone or restore a profile. -[b][color= grey]Account Deletion[/color][/b] +[b]Account Deletion[/b] Accounts can be immediately deleted by clicking on a link. That's it. All associated content is immediately deleted from the matrix (this includes posts and any other content produced by the deleted profile). -[b][color=grey][size=20]Content Creation[/size][/color][/b] +[b][size=20]Content Creation[/size][/b] -[b][color=white]Writing Posts[/color][/b] +[b]Writing Posts[/b] Red supports a number of different ways of adding content, from a graphical text editor, to various types of markup and pure HTML. @@ -99,13 +99,13 @@ Red bundles the TinyMCE rich text editor, which can be turned on under "Set For user who prefer not to use TinyMCE, content can be entered by typing BBCode markup. Furthermore, when creating "Websites" or using "Comanche" and its PCL[FINISH], content can be entered in HTML, Markdown and plain text. -[b][color=white]Deletion of content[/color][/b] +[b]Deletion of content[/b] Any content created in the Red Matrix remains under the control of the user (or channel) that originally created. At any time, a user can delete a message, or a range of messages. The deletion process ensures that the content is deleted, regardless of whether it was posted on a channel's primary (home) hub, or on another hub, where the channel was remotely authenticated via Zot. -[b][color=white]Media[/color][/b] +[b]Media[/b] Similar to any other modern blogging system, social network, or a micro-blogging service, Red supports the uploading of files, embedding of videos, linking web pages. -[b][color=white]Previewing[/color][/b] +[b]Previewing[/b] Post can be previewed prior to sending. #include doc/macros/main_footer.bb; diff --git a/doc/hidden_configs.bb b/doc/hidden_configs.bb index 7b7a688c4..da5134123 100644 --- a/doc/hidden_configs.bb +++ b/doc/hidden_configs.bb @@ -100,6 +100,8 @@ This document assumes you're an administrator. the main logs as well. [b]system > hide_in_statistics[/b] Tell the red statistics servers to completely hide this hub in hub lists. + [b]system > reserved_channels[/b] + Don't allow members to register channels with this comma separated list of names (no spaces) #include doc/macros/main_footer.bb; diff --git a/doc/history.md b/doc/history.md new file mode 100644 index 000000000..b626d376e --- /dev/null +++ b/doc/history.md @@ -0,0 +1,50 @@ +RedMatrix History +================= + +RedMatrix is a collaborative effort by the RedMatrix community and based on work introduced in Friendica by the Friendica community. The core design, the project mission, and software base itself were created/written primarily by Mike Macgirvin and represent the culmination of over a decade of software design using variations of this platform and an evolving vision of the role of communication software in our lives. Many others have contributed to this work, both conceptually and in terms of actual code (way too many to list individually). + +##Mike Macgirvin -- Biography + +Mike Macgirvin is an American software engineer now living in Australia. He spent his early adult years designing and repairing semiconductor fabrication equipment for a number of companies as a self-described "machine wizard". In 1985 he became a research engineer at Stanford University for the Gravity Probe-B space mission and soon became a Unix systems administrator writing communication software and utilities; and becoming an expert in emerging internet technologies such as the now ubiquitous "World Wide Web". He authored an email "client" called "ML" which pioneered some advanced concepts in encryption, the ability to filter message streams into different "views", and multi-protocol support; and was an active proponent of and participant in the open source software *movement*. In 1996 he went to Netscape Communications to become tech lead on their Messaging Server and integrate this with Collabra (groupware) into a comprehensive communications server package. He stayed on after Netscape was acquired by America Online and was tech manager of the Groups@AOL project until 2001. + +During a layoff round, Mike was let go from America Online in August 2001 and purchased a music store in Mountain View, California later to be known as "Sonica Music Company". Opening a retail store for non-essential goods at the beginning of a prolonged economic downturn was in retrospect probably not the wisest career move. Sonica eventually folded; in late 2006. Mike returned to working on software and systems support full-time and was employed briefly at Symantec before moving to Australia in early 2007. He currently lives on a farm "out in the middle of nowhere" and is employed as a Computer Systems Officer at the University of Wollongong. + + +##RedMatrix - The Early Years + +The software which went into creating RedMatrix has been through three distinct historical phases. It began in 2003 when Mike Macgirvin was looking for a content management system to power the website for his music store and found the available solutions to be lacking in various respects. The project was born as the "PurpleHaze weblog" under the nom de plume "Nerdware Communications". It was a multi-user PHP/MySQL CMS which provided blogs, forums, photo albums, events and more. Initially it provided the basis for a social community and shopping for customers of the store, but was also linked to Mike's personal weblog running on another domain. The distinguishing characteristic of this software was the ability for so-called "normal users" to re-assemble the components and choose different content feeds - and in essence create their own personal "multi-user CMS" as a view. Their custom view was able to communicate with anybody else that used the system, but could be partitioned so that adult sites and motorcycle enthusiast sites would not be visible to each other and not clash (or in this case Mike's personal website and the music store website). This software was developed primarily from 2003 until 2008. + +In 2006 this software was used as the prototype for Symantec's "safeweb" reputation and community site. It was developed and enhanced until about 2008. A rewrite took place in 2008 named "Reflection" but work stagnated as the community dwindled. The need for content management systems and communications software dropped dramatically during this time as humans flocked to the new social aggregrators - Facebook and Twitter. + + +##Mistpark/Friendica + +In early 2010, Mike left Facebook, concerned at the company's increasing hold and control of personal information. In his words "Companies die. We watched it happen in the dot-com years. When they do, their databases are sold to the highest bidder.". Mike used some remnants of the old CMS project to create a decentralised social communications platform. This was launched in July 2010 as "Mistpark". The name was chosen as a tribute to his new home in the Southern Highlands of Australia. The key innovation in this project was the ability to authenticate remotely and invisibly to other decentralised instances of the software so to allow remote viewing of private photos and provide "wall-to-wall" posting across website instances. The lack of simple remote identity *provenance* was a serious limitation of other decentralised communication protocols. + +In late 2010, the name was changed to "Friendika". The name Friendika had some symbolic issues, since the suffix was common with "swastika" and "Amerika", both having negative connotations, however the dot-com domain was available. Friendica was in fact the first choice but the 'friendica.com' domain name was already registered. It became available a year later and the project was renamed to Friendica in late 2011. + +Soon after version 1 was released in July 2010 - providing basic social communications, the software also took on a new role - cross-service federation; which was first introduced in August and September 2010. Federation allowed the software to "behave as" a StatusNet site and friends and messages could communicate to the other service from their own platforms. It was also hoped to provide federation with Diaspora - a project with similar scope being developed in secret in New York and first released in November of that year. Over the course of the next year, the federation ability was extended to provide integrated communications from RSS feeds, to and from email, StatusNet, Facebook, Twitter, and the emerging Diaspora project. The software provided a single "view" of your entire social space no matter what provider you or your friends used. StatusNet and Diaspora were supported natively so that one account could access any of these services. Facebook and Twitter used "API federation" which required the person to have an account on those services with which to link. + +By July 2012, Twitter and Facebook had both changed their terms of service and essentially outlawed "API federation" in the way Friendica was using it. Diaspora announced they were changing their protocol and would not maintain compatibility nor provide any warning when compatibility would break (or documentation on the proposed changes). The creator of StatusNet was also leaving his project to create something new (pump.io). As the software's primary purpose by this time was "federation of different social services into one interface", this created a bit of a crisis. The federated social web was crumbling. Also of concern was that independent and decentralised social websites shut down frequently, requiring all their members to start over again on another site. Often the effort involved to do this seemed daunting - and many people ran back to the relative safety of the large corporate providers - Facebook, Twitter, and now Google+. + +Mike realised he did not want to be held hostage to the decisions that other projects and companies and independent websites make. Friendica could operate on its own without attaching to these other networks, but its vision and implementation of a federated social world depended on federation with others for its project identity - so this created an identity crisis. + +Mike had been working on this project for some time and there were a number of things which needed re-writing, including the base communication protocol which Friendica used (DFRN or the "Distributed Friends and Relations Network" protocol). These ideas were starting to emerge as a different method of communication he called "zot". Zot began as a way to create a common language for federated websites, but there was no interest in this ability and as mentioned, the federated web was crumbling. The first version was soon scrapped and zot was re-designed and re-ignited as a streamlined communication protocol which was location-independent; e.g. not tied to any website. This would allow people to carry on unaffected if their website operator shut down temporarily or permanently. They wouldn't have to make friends all over again, and permissions of everything on the system wouldn't have to be changed to allow bob@site1 to see something that was private to him, even though he was now bob@site2. This was a serious problem with decentralisation. People moved and their online identities were lost and had to be re-created from scratch and existing relationships destroyed and had to be created all over again. + + +##RedMatrix + +In July 2012, Mike left the Friendica project and began development of "zot" and a new base project called "red" in his somewhat elusive *spare time*. Red is Spanish for "network". It wasn't really a "social network" and especially not a "federated social network". It was just Red (technically "la red"), or "the network". Work began by removing all the "federation" components and going back to basics - communication and remote authentication. It was a major re-write and took roughly six months before even basic communication was re-established. It was also no longer compatible with Friendica - which had been given to the "Friendica community" and by this time (December 2012) was developing separately on its own track. + +It became clear during this time that the single most compelling feature of the project wasn't the social network at all, but the authentication layer and decentralised access control mechanisms. Combined with zot's location independence it created a new model for software which had never existed previously - decentralised identity-aware web publishing and single sign-on to any compatible provider across the web. These weren't *evolutionary*, they were **revolutionary**. One of the biggest flaws of the modern web is the reliance on different passwords for every service you use, or reliance on a single provider if you were to tie them to - say your Facebook login. Facebook can remove your account at any time. Gone. If you rely on their authentication for all your websites, your entire online identity - now gone. This is also what was missing from Friendica - a compelling software feature which could stand on its own, without requiring a social network and especially without requiring a federated social network with all the mentioned external dependencies. + +An early visitor to the project noted that he had some difficulty finding the project on Google because of the choice of name - "red". Yes, this was a poor decision in retrospect. We were buried on page 23,712 of the search results. The concept that was emerging around this identity-aware publishing was that of "a matrix of inter-connected thought streams", since we didn't have a concept of "people" and "friends". All were just connected "channels" with different ways to connect. So "Red Matrix" was chosen to give it a searchable name. It had nothing to do with the Matrix film and red and blue pills, though that is frequently cited (erronously); and in fact isn't a bad analogy. + +The concept of identity-aware content was alien to anything that existed previously on the web, so to make it useful we had to provide the ability to use it for content. It needed content publishing tools. This brought back concepts from the old "Content Management System" on which the software was originally based. To get it up and running quickly we created a markup language for webpages called "Comanche" which let you describe a page in high-level terms based on bbcode tags. We also added WebDAV so you could put decentralised access control on files and drag/drop from your operating system. So now you could have private photos, webpages, files, events, conversations, chatrooms - and they are visible to those you choose - no matter what site they use. All they need is zot. And your viewers could move to another site or just pop up at a different site any time they want and we don't care. And it **also** had a built-in social network; with lots of additional privacy and encryption features which were added even before the Snowden revelations gave them added urgency. + +Over time a few federation components re-emerged. The ability to view RSS feeds was important to many people. Diaspora never really managed to re-write their protocol, so that was re-implemented and allowed RedMatrix to connect with Diaspora and Friendica again (Friendica still had their Diaspora protocol intact, so this was the most common language now remaining on the free web - despite its faults). Diaspora communications aren't able to make use of the advanced identity features, but they work for basic communications. + +That brings us up to the present. Where will RedMatrix go from here? I don't know. That's up to you. + + + diff --git a/doc/html/Contact_8php.html b/doc/html/Contact_8php.html index 9377c0de9..c4386bb73 100644 --- a/doc/html/Contact_8php.html +++ b/doc/html/Contact_8php.html @@ -246,7 +246,7 @@ Functions
-

Referenced by admin_page_users(), admin_page_users_post(), chanman_remove_everything_from_network(), and removeaccount_post().

+

Referenced by admin_page_users(), admin_page_users_post(), and removeaccount_post().

diff --git a/doc/html/README_8md.html b/doc/html/README_8md.html index ec5f607aa..0b5de21e2 100644 --- a/doc/html/README_8md.html +++ b/doc/html/README_8md.html @@ -28,7 +28,7 @@ - + - + - - - - - - - - - - - - - + + + + + + + + + + + + + +
The Red Matrix
diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 8ccd006ba..e56263af5 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -129,22 +129,23 @@ $(document).ready(function(){initNavTree('annotated.html','');});
oCBaseObject
oCCache
oCConversation
oCdba_driver
oCdba_driverAbstract database driver class
oCdba_mysql
oCdba_mysqli
oCenotify
oCFKOAuth1
oCFKOAuthDataStore
oCFriendicaSmarty
oCFriendicaSmartyEngine
oCItem
oCITemplateEngine
oCphoto_driver
oCphoto_gd
oCphoto_imagick
oCProtoDriver
oCTemplate
\CZotDriver
oCdba_postgres
oCenotify
oCFKOAuth1
oCFKOAuthDataStore
oCFriendicaSmarty
oCFriendicaSmartyEngine
oCItem
oCITemplateEngine
oCphoto_driver
oCphoto_gd
oCphoto_imagick
oCProtoDriver
oCTemplate
\CZotDriver
diff --git a/doc/html/annotated.js b/doc/html/annotated.js index 79baf4d64..d812058de 100644 --- a/doc/html/annotated.js +++ b/doc/html/annotated.js @@ -14,6 +14,7 @@ var annotated = [ "dba_driver", "classdba__driver.html", "classdba__driver" ], [ "dba_mysql", "classdba__mysql.html", "classdba__mysql" ], [ "dba_mysqli", "classdba__mysqli.html", "classdba__mysqli" ], + [ "dba_postgres", "classdba__postgres.html", "classdba__postgres" ], [ "enotify", "classenotify.html", null ], [ "FKOAuth1", "classFKOAuth1.html", "classFKOAuth1" ], [ "FKOAuthDataStore", "classFKOAuthDataStore.html", "classFKOAuthDataStore" ], diff --git a/doc/html/apw_2php_2style_8php.html b/doc/html/apw_2php_2style_8php.html index 59c530336..6c183a3a5 100644 --- a/doc/html/apw_2php_2style_8php.html +++ b/doc/html/apw_2php_2style_8php.html @@ -118,9 +118,9 @@ Variables    $x = splitFilename($font)   - $fname = $x[0] + $fname = $x[0]   - $fext = $x[1] + $fext = $x[1]   if(file_exists('view/theme/apw/font/'.$fname.
'i.'.$fext)) if(file_exists('view/theme/apw/font/'.$fname.
@@ -143,7 +143,7 @@ Variables
- +
$fext = $x[1]$fext = $x[1]
@@ -155,7 +155,7 @@ Variables
- +
$fname = $x[0]$fname = $x[0]
@@ -246,7 +246,7 @@ Variables
-

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(), chatroom_list_count(), 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(), diaspora_get_contact_by_handle(), 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(), handle_feed(), 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(), update_feed_item(), widget_archive(), widget_follow(), widget_item(), widget_tagcloud(), and zot_feed().

+

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(), blocks_content(), build_sync_packet(), catblock(), chat_message(), chatroom_list(), chatroom_list_count(), 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(), diaspora_get_contact_by_handle(), drop_items(), editblock_content(), editlayout_content(), editwebpage_content(), event_addtocal(), events_post(), feature_enabled(), first_post_date(), fix_attached_photo_permissions(), fix_private_photos(), follow_init(), get_all_perms(), get_channel_default_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(), handle_feed(), import_channel_photo(), item_add_cid(), item_expire(), item_post(), item_remove_cid(), item_store_update(), items_fetch(), layouts_content(), list_post_dates(), load_contact_links(), load_pconfig(), local_dir_update(), FKOAuth1\loginUser(), menu_add_item(), menu_content(), menu_del_item(), menu_delete(), menu_delete_id(), menu_edit_item(), menu_fetch(), menu_post(), mini_group_select(), mitem_content(), mitem_init(), mitem_post(), 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(), update_feed_item(), webpages_content(), widget_archive(), widget_follow(), widget_item(), widget_tagcloud(), and zot_feed().

@@ -255,12 +255,12 @@ Variables
- +
$x = splitFilename($font)$x = splitFilename($font)
-

Referenced by Template\_replcb_for(), Template\_replcb_if(), account_remove(), acl_init(), activity_sanitise(), admin_page_channels(), admin_page_themes(), advanced_profile(), aes_encapsulate(), api_group_members(), api_login(), 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(), RedMatrix\RedDAV\RedDirectory\childExists(), cloud_init(), common_init(), connedit_content(), construct_page(), consume_feed(), conversation(), RedMatrix\RedDAV\RedDirectory\createFile(), photo_gd\cropImage(), photo_imagick\cropImage(), decode_tags(), deliver_run(), diaspora_comment(), diaspora_like(), diaspora_mention_callback(), dir_tagadelic(), directory_content(), directory_run(), dirprofile_init(), discover_by_url(), discover_by_webbie(), display_content(), downgrade_accounts(), editblock_content(), editlayout_content(), editwebpage_content(), email_header_encode(), encode_item(), encode_mail(), event_store_item(), events_post(), expand_groups(), expire_run(), externals_run(), feature_enabled(), fetch_post_tags(), fetch_xrd_links(), filer_content(), find_xchan_in_array(), findpeople_widget(), fix_private_photos(), fix_system_urls(), photo_gd\flip(), foofoo(), fsuggest_post(), get_all_perms(), get_diaspora_reshare_xml(), get_directory_realm(), get_item_elements(), get_mail_elements(), get_mentions(), get_online_status(), get_profile_elements(), get_profile_fields_advanced(), get_profile_fields_basic(), get_role_perms(), get_system_apps(), get_terms_oftype(), get_theme_uid(), get_things(), RedMatrix\RedDAV\RedDirectory\getChild(), RedMatrix\RedDAV\RedDirectory\getDir(), RedMatrix\RedDAV\RedDirectory\getQuotaInfo(), gprobe_run(), handle_feed(), hcard_init(), hostxrd_init(), ids_to_querystr(), impel_init(), import_author_diaspora(), import_author_rss(), import_author_unknown(), 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(), netgrowth_content(), network_content(), new_channel_init(), new_contact(), notification(), notifications_off(), notifications_on(), notifier_run(), oembed_fetch_url(), onedirsync_run(), onepoll_run(), openid_content(), page_init(), parse_app_description(), parse_xml_string(), pdledit_content(), pemtome(), 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_location_delivery(), process_mail_delivery(), profile_init(), profile_load(), profile_photo_post(), prune_hub_reinstalls(), public_recips(), pubrsatome(), RedMatrix\RedDAV\RedFile\put(), dba_mysql\q(), dba_mysqli\q(), randprof_init(), red_item_new(), RedCollectionData(), RedFileData(), remote_online_status(), remove_community_tag(), remove_obsolete_hublocs(), rpost_content(), photo_driver\save(), scrape_feed(), scrape_vcard(), search_ac_init(), send_status_notifications(), service_limits_content(), share_init(), share_unshield(), site_default_perms(), smilies(), sources_content(), sslify_init(), photo_driver\store(), store_diaspora_comment_sig(), string_splitter(), stringify_array_elms(), sync_directories(), sync_locations(), tag_deliver(), tagadelic(), tagrm_content(), tagrm_post(), theme_status(), thing_content(), toggle_theme(), update_channels_active_halfyear_stat(), update_channels_active_monthly_stat(), update_directory_entry(), update_imported_item(), upgrade_bool_message(), upgrade_message(), valid_email(), RedMatrix\RedDAV\RedBasicAuth\validateUserPass(), webpages_content(), what_next(), widget_affinity(), widget_bookmarkedchats(), widget_suggestedchats(), widget_suggestions(), xchan_query(), xmlify(), zfinger_init(), zot_build_packet(), zot_encode_locations(), zot_process_response(), zot_refresh(), zot_register_hub(), and zotfeed_init().

+

Referenced by Template\_replcb_for(), Template\_replcb_if(), account_remove(), acl_init(), activity_sanitise(), admin_page_channels(), admin_page_themes(), advanced_profile(), aes_encapsulate(), api_group_members(), api_login(), 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(), RedMatrix\RedDAV\RedDirectory\childExists(), cloud_init(), common_init(), connedit_content(), construct_page(), consume_feed(), conversation(), RedMatrix\RedDAV\RedDirectory\createFile(), photo_gd\cropImage(), photo_imagick\cropImage(), decode_tags(), deliver_run(), diaspora_comment(), diaspora_like(), diaspora_mention_callback(), diaspora_request(), dir_tagadelic(), directory_content(), directory_run(), discover_by_url(), discover_by_webbie(), display_content(), downgrade_accounts(), editblock_content(), editlayout_content(), editwebpage_content(), email_header_encode(), encode_item(), encode_mail(), dba_postgres\escape(), event_store_item(), events_post(), expand_groups(), expire_run(), externals_run(), feature_enabled(), fetch_post_tags(), fetch_xrd_links(), filer_content(), find_xchan_in_array(), findpeople_widget(), fix_private_photos(), fix_system_urls(), photo_gd\flip(), foofoo(), fsuggest_post(), get_all_perms(), get_diaspora_reshare_xml(), get_directory_realm(), get_item_elements(), get_mail_elements(), get_mentions(), get_online_status(), get_profile_elements(), get_profile_fields_advanced(), get_profile_fields_basic(), get_role_perms(), get_system_apps(), get_terms_oftype(), get_theme_uid(), get_things(), RedMatrix\RedDAV\RedDirectory\getChild(), RedMatrix\RedDAV\RedDirectory\getDir(), RedMatrix\RedDAV\RedDirectory\getQuotaInfo(), gprobe_run(), handle_feed(), hcard_init(), hostxrd_init(), ids_to_querystr(), impel_init(), import_author_diaspora(), import_author_rss(), import_author_unknown(), 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(), locs_content(), 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(), netgrowth_content(), network_content(), new_channel_init(), new_contact(), notification(), notifications_off(), notifications_on(), notifier_run(), oembed_fetch_url(), onedirsync_run(), onepoll_run(), openid_content(), page_init(), parse_app_description(), parse_xml_string(), pdledit_content(), pemtome(), 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_location_delivery(), process_mail_delivery(), profile_init(), profile_load(), profile_photo_post(), prune_hub_reinstalls(), public_recips(), pubrsatome(), RedMatrix\RedDAV\RedFile\put(), dba_mysql\q(), dba_mysqli\q(), dba_postgres\q(), randprof_init(), red_item_new(), RedCollectionData(), RedFileData(), reflect_comment_store(), reflect_find_user(), reflect_photo_callback(), remote_online_status(), remove_community_tag(), remove_obsolete_hublocs(), rpost_content(), photo_driver\save(), scrape_feed(), scrape_vcard(), search_ac_init(), send_status_notifications(), service_limits_content(), share_init(), share_unshield(), site_default_perms(), smilies(), sources_content(), sslify_init(), photo_driver\store(), store_diaspora_comment_sig(), string_splitter(), stringify_array_elms(), sync_directories(), sync_locations(), tag_deliver(), tagadelic(), tagrm_content(), tagrm_post(), theme_status(), thing_content(), toggle_theme(), update_channels_active_halfyear_stat(), update_channels_active_monthly_stat(), update_directory_entry(), update_imported_item(), upgrade_bool_message(), upgrade_message(), valid_email(), RedMatrix\RedDAV\RedBasicAuth\validateUserPass(), webpages_content(), what_next(), widget_affinity(), widget_bookmarkedchats(), widget_suggestedchats(), widget_suggestions(), xchan_query(), xmlify(), zfinger_init(), zot_build_packet(), zot_encode_locations(), zot_process_response(), zot_refresh(), zot_register_hub(), and zotfeed_init().

diff --git a/doc/html/auth_8php.html b/doc/html/auth_8php.html index 6df3cfea4..644e47434 100644 --- a/doc/html/auth_8php.html +++ b/doc/html/auth_8php.html @@ -122,15 +122,15 @@ Functions  account_verify_password ($email, $pass)  Verify login credentials. More...
  -if((x($_POST, 'auth-params'))&&$_POST['auth-params']===
+if((x($_POST, 'auth-params'))&&$_POST['auth-params']===
'login') match_openid ($authid)  Returns the channel_id for a given openid_identity. More...
  - @@ -183,7 +183,7 @@ Variables

Variables

if((isset($_SESSION))&&(x($_SESSION,
-'authenticated'))&&((!(x($_POST,
+
if((isset($_SESSION))&&(x($_SESSION,
+'authenticated'))&&((!(x($_POST,
'auth-params')))||($_POST['auth-params']!==
'login'))) 
else
 
- + @@ -233,7 +233,7 @@ Variables
if ((x($_POST, 'auth-params'))&&$_POST['auth-params']=== 'login') match_openid if ((x($_POST, 'auth-params'))&&$_POST['auth-params']=== 'login') match_openid (   $authid)
- +
if ((isset($_SESSION))&&(x($_SESSION, 'authenticated'))&&((!(x($_POST, 'auth-params')))||($_POST['auth-params']!== 'login'))) elseif ((isset($_SESSION))&&(x($_SESSION, 'authenticated'))&&((!(x($_POST, 'auth-params')))||($_POST['auth-params']!== 'login'))) else
@@ -245,7 +245,7 @@ Variables
-
if((x($_POST, 'password')) && strlen($_POST['password']))
+
if((x($_POST, 'password')) && strlen($_POST['password']))
$encrypted = hash('whirlpool', trim($_POST['password']))

Inline - not a function look for auth parameters or re-validate an existing session also handles logout

diff --git a/doc/html/bbcode_8php.html b/doc/html/bbcode_8php.html index 0134be28f..06bf7cfa8 100644 --- a/doc/html/bbcode_8php.html +++ b/doc/html/bbcode_8php.html @@ -337,7 +337,7 @@ Functions
-

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(), preg_callback_help_include(), register_content(), siteinfo_content(), and tagrm_content().

+

Referenced by advanced_profile(), bb2diaspora(), chatsvc_content(), construct_activity_object(), construct_activity_target(), directory_content(), events_content(), format_event_html(), format_ical_text(), format_notification(), get_events(), help_content(), mail_content(), menu_render(), message_content(), notification(), notifications_content(), notify_content(), ping_init(), preg_callback_help_include(), register_content(), siteinfo_content(), and tagrm_content().

diff --git a/doc/html/blocks_8php.html b/doc/html/blocks_8php.html index 8993de9ed..d6ab862e3 100644 --- a/doc/html/blocks_8php.html +++ b/doc/html/blocks_8php.html @@ -112,6 +112,8 @@ $(document).ready(function(){initNavTree('blocks_8php.html','');}); + +

Functions

 blocks_init (&$a)
 
 blocks_content (&$a)
 
@@ -130,6 +132,22 @@ Functions
+
+ + +
+
+ + + + + + + + +
blocks_init ($a)
+
+
diff --git a/doc/html/blocks_8php.js b/doc/html/blocks_8php.js index b2123aa00..c10da1ce2 100644 --- a/doc/html/blocks_8php.js +++ b/doc/html/blocks_8php.js @@ -1,4 +1,5 @@ var blocks_8php = [ - [ "blocks_content", "blocks_8php.html#a2531a8fd51db3cecb2eb20c002c66e12", null ] + [ "blocks_content", "blocks_8php.html#a2531a8fd51db3cecb2eb20c002c66e12", null ], + [ "blocks_init", "blocks_8php.html#aebe88302181883d2b17d6e98a1aaebe9", null ] ]; \ No newline at end of file diff --git a/doc/html/boot_8php.html b/doc/html/boot_8php.html index 714b94af4..a725415e2 100644 --- a/doc/html/boot_8php.html +++ b/doc/html/boot_8php.html @@ -123,8 +123,9 @@ Functions    get_app ()   - x ($s, $k=NULL) -  + x ($s, $k=null) + Multi-purpose function to check variable state. More...
+   system_unavailable ()    clean_urls () @@ -150,8 +151,10 @@ Functions  goaway ($s)    get_account_id () + Returns the entity id of locally logged in account or false. More...
   local_user () + Returns the entity id of locally logged in user or false. More...
   remote_user ()   @@ -160,26 +163,31 @@ Functions  info ($s)    get_max_import_size () + Wrapper around config to limit the text length of an incoming message. More...
   proc_run ($cmd)    is_windows () + Checks if we are running on M$ Windows. More...
   current_theme ()    current_theme_url ($installing=false)    is_site_admin () + Check if current user has admin role. More...
   is_developer () + Check if current user has developer role. More...
   load_contact_links ($uid)    build_querystring ($params, $name=null) + Returns querystring as string from a mapped array. More...
   argc ()   - argv ($x) + argv ($x)    dba_timer ()   @@ -188,10 +196,13 @@ Functions  curPageURL ()    get_custom_nav (&$a, $navname) + Returns a custom navigation by name??? More...
   load_pdl (&$a) + Loads a page definition file for a module. More...
   construct_page (&$a) + build the page. More...
   appdirpath ()   @@ -210,14 +221,12 @@ Variables   const ZOT_REVISION 1   -const DB_UPDATE_VERSION 1130 +const DB_UPDATE_VERSION 1131   -const EOL '<br />' . "\r\n" +const EOL '<br>' . "\r\n"   const ATOM_TIME 'Y-m-d\TH:i:s\Z'   -const NULL_DATE '0000-00-00 00:00:00' -  const TEMPLATE_BUILD_PATH 'store/[data]/smarty3'   const DIRECTORY_MODE_NORMAL 0x0000 @@ -324,6 +333,8 @@ Variables   const PHOTO_THING 0x0004   +const PHOTO_ADULT 0x0008 +  const MENU_SYSTEM 0x0001   const MENU_BOOKMARK 0x0002 @@ -488,6 +499,28 @@ Variables   const NOTIFY_SYSTEM 0x8000   +const VNOTIFY_NETWORK 0x0001 +  +const VNOTIFY_CHANNEL 0x0002 +  +const VNOTIFY_MAIL 0x0004 +  +const VNOTIFY_EVENT 0x0008 +  +const VNOTIFY_EVENTTODAY 0x0010 +  +const VNOTIFY_BIRTHDAY 0x0020 +  +const VNOTIFY_SYSTEM 0x0040 +  +const VNOTIFY_INFO 0x0080 +  +const VNOTIFY_ALERT 0x0100 +  +const VNOTIFY_INTRO 0x0200 +  +const VNOTIFY_REGISTER 0x0400 +  const HUBLOC_FLAGS_PRIMARY 0x0001   const HUBLOC_FLAGS_UNVERIFIED 0x0002 @@ -508,6 +541,8 @@ Variables   const XCHAN_FLAGS_SYSTEM 0x0010   +const XCHAN_FLAGS_PUBFORUM 0x0020 +  const XCHAN_FLAGS_DELETED 0x1000   const HUBLOC_NOTUSED 0x0000 @@ -720,8 +755,14 @@ Variables   const ITEM_RSS 0x8000   +const DBTYPE_MYSQL 0 +  +const DBTYPE_POSTGRES 1 +  -

Function Documentation

+

Detailed Description

+

This file defines some global constants and includes the central App class.

+

Function Documentation

@@ -768,7 +809,7 @@ Variables
-

Referenced by App\__construct(), _well_known_init(), achievements_content(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_profs(), admin_page_users(), admin_post(), api_get_user(), apps_content(), attach_init(), block_content(), blocks_content(), channel_init(), chat_content(), chat_init(), cloud_init(), common_init(), connect_init(), connections_content(), connedit_content(), connedit_init(), contactgroup_content(), dirsearch_content(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), feed_init(), filestorage_content(), group_content(), group_post(), hcard_init(), help_content(), importelm_post(), item_content(), layouts_content(), like_content(), lockview_content(), mail_content(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), new_channel_init(), notes_init(), notify_init(), oembed_init(), oexchange_content(), oexchange_init(), online_init(), p_init(), page_init(), pdledit_content(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), profile_init(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), queue_run(), rbmark_content(), receive_post(), register_init(), regmod_content(), regver_content(), rpost_content(), settings_init(), settings_post(), setup_init(), share_init(), sources_content(), starred_init(), subthread_content(), tagger_content(), tagrm_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().

+

Referenced by App\__construct(), _well_known_init(), achievements_content(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_profs(), admin_page_users(), admin_post(), api_get_user(), apps_content(), attach_init(), block_content(), blocks_init(), 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(), editblock_init(), editlayout_content(), editlayout_init(), editpost_content(), editwebpage_content(), editwebpage_init(), events_content(), feed_init(), filestorage_content(), group_content(), group_post(), hcard_init(), help_content(), home_content(), home_init(), importelm_post(), item_content(), layouts_content(), layouts_init(), like_content(), lockview_content(), mail_content(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), new_channel_init(), notes_init(), notify_init(), oembed_init(), oexchange_content(), oexchange_init(), online_init(), p_init(), page_init(), pdledit_content(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), profile_init(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), queue_run(), rbmark_content(), receive_post(), register_init(), regmod_content(), regver_content(), rpost_content(), settings_init(), settings_post(), setup_init(), share_init(), sources_content(), starred_init(), subthread_content(), tagger_content(), tagrm_content(), thing_content(), uexport_init(), update_channel_content(), update_display_content(), update_home_content(), update_network_content(), update_search_content(), viewconnections_init(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_init(), xref_init(), and zotfeed_init().

@@ -786,7 +827,7 @@ Variables
-

Referenced by App\__construct(), _well_known_init(), achievements_content(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_profs(), admin_page_users(), admin_post(), api_get_user(), api_statuses_destroy(), api_statuses_repeat(), api_statuses_show(), apps_content(), attach_init(), block_content(), block_init(), blocks_content(), channel_init(), chat_content(), chat_init(), cloud_init(), common_init(), connect_init(), connections_content(), connections_post(), connedit_content(), connedit_init(), connedit_post(), contactgroup_content(), dirsearch_content(), display_content(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), feed_init(), filestorage_content(), get_online_status(), group_content(), group_post(), hcard_init(), help_content(), importelm_post(), item_content(), layouts_content(), like_content(), lockview_content(), mail_content(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), new_channel_init(), notes_init(), notify_init(), oembed_init(), oexchange_content(), oexchange_init(), online_init(), p_init(), page_init(), pdledit_content(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), profile_init(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), queue_run(), rbmark_content(), receive_post(), register_init(), regmod_content(), regver_content(), rpost_content(), settings_post(), setup_init(), share_init(), sources_content(), starred_init(), subthread_content(), tagger_content(), tagrm_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().

+

Referenced by App\__construct(), _well_known_init(), achievements_content(), admin_content(), admin_page_channels(), admin_page_dbsync(), admin_page_profs(), admin_page_users(), admin_post(), api_get_user(), api_statuses_destroy(), api_statuses_repeat(), api_statuses_show(), apps_content(), attach_init(), block_content(), block_init(), blocks_content(), blocks_init(), 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(), editblock_init(), editlayout_content(), editlayout_init(), editpost_content(), editwebpage_content(), editwebpage_init(), events_content(), feed_init(), filestorage_content(), get_online_status(), group_content(), group_post(), hcard_init(), help_content(), home_content(), home_init(), importelm_post(), item_content(), layouts_content(), layouts_init(), like_content(), lockview_content(), mail_content(), manage_content(), menu_content(), menu_post(), message_content(), mitem_content(), mitem_init(), mitem_post(), new_channel_init(), notes_init(), notify_init(), oembed_init(), oexchange_content(), oexchange_init(), online_init(), p_init(), page_init(), pdledit_content(), photo_init(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), profile_init(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), queue_run(), rbmark_content(), receive_post(), register_init(), regmod_content(), regver_content(), rpost_content(), settings_post(), setup_init(), share_init(), sources_content(), starred_init(), subthread_content(), tagger_content(), tagrm_content(), thing_content(), uexport_init(), update_channel_content(), update_display_content(), update_home_content(), update_network_content(), update_search_content(), view_init(), viewconnections_init(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), webpages_init(), widget_collections(), widget_mailmenu(), widget_settings_menu(), xref_init(), and zotfeed_init().

@@ -813,10 +854,12 @@ Variables
-

returns querystring as string from a mapped array

+ +

Returns querystring as string from a mapped array.

Parameters
- + +
paramsArray
array$paramsmapped array with query parameters
string$nameof parameter, default null
@@ -872,7 +915,15 @@ Variables
+ +

build the page.

Build the page - now that we have all the components

+
Parameters
+ + +
App&$aglobal application object
+
+

Referenced by RedMatrix\RedDAV\RedBrowser\generateDirectoryIndex().

@@ -946,7 +997,7 @@ Variables
-

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

+

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

@@ -991,6 +1042,10 @@ Variables
+

Returns the entity id of locally logged in account or false.

+

Returns numeric account_id if authenticated or 0. It is possible to be authenticated and not connected to a channel.

+
Returns
int|bool account_id or false
+

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

@@ -1008,7 +1063,7 @@ Variables
-

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

+

Referenced by FriendicaSmarty\__construct(), FriendicaSmartyEngine\__construct(), abook_toggle_flag(), account_remove(), allowed_public_recips(), api_apply_template(), api_format_items(), api_get_user(), api_statuses_home_timeline(), api_statuses_repeat(), api_statuses_user_timeline(), api_user(), app_render(), app_store(), argc(), argv(), atom_entry(), authenticate_success(), avatar_img(), bbcode(), best_link_url(), build_sync_packet(), call_hooks(), can_comment_on_post(), categories_widget(), change_channel(), channel_remove(), check_form_security_token(), check_form_security_token_ForbiddenOnErr(), check_form_security_token_redirectOnErr(), check_htaccess(), cli_suggest_run(), comanche_get_channel_id(), comanche_replace_region(), comanche_widget(), common_friends_visitor_widget(), connedit_content(), contact_block(), contact_select(), create_identity(), current_theme(), deliver_run(), design_tools(), diaspora_asphoto(), diaspora_comment(), diaspora_conversation(), diaspora_like(), diaspora_message(), diaspora_msg_build(), diaspora_photo(), diaspora_post(), diaspora_profile(), diaspora_pubmsg_build(), diaspora_request(), diaspora_reshare(), diaspora_send_followup(), diaspora_send_images(), diaspora_send_mail(), diaspora_send_relay(), diaspora_send_retraction(), diaspora_send_status(), diaspora_share(), diaspora_transmit(), diaspora_unshare(), dir_tagblock(), dirsearch_content(), drop_item(), editpost_content(), event_store_item(), externals_run(), fileas_widget(), findpeople_widget(), fix_attached_photo_permissions(), fix_private_photos(), format_event_diaspora(), RedMatrix\RedDAV\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(), ical_wrapper(), identity_selector(), import_channel_photo(), import_directory_profile(), import_post(), import_profile_photo(), import_xchan(), info(), insert_hook(), is_developer(), is_public_profile(), is_site_admin(), item_message_id(), item_photo_menu(), item_redir_and_replace_images(), item_store(), item_store_update(), items_fetch(), load_contact_links(), load_hooks(), local_dir_update(), login(), FKOAuth1\loginUser(), manage_content(), map_scope(), menu_add_item(), menu_edit_item(), nav_set_selected(), new_contact(), notice(), notification(), notifier_run(), oembed_fetch_url(), oembed_format_object(), onedirsync_run(), onepoll_run(), page_init(), parse_app_description(), photos_album_widget(), ping_init(), poco_load(), poller_run(), post_activity_item(), preg_heart(), prepare_body(), proc_run(), process_delivery(), process_location_delivery(), profile_activity(), profile_sidebar(), public_permissions_sql(), register_page_template(), replace_macros(), rmagic_init(), rpost_callback(), scale_external_images(), scrape_feed(), scrape_vcard(), search(), send_message(), send_reg_approval_email(), send_status_notifications(), send_verification_email(), service_class_allows(), service_class_fetch(), siteinfo_init(), smilies(), store_diaspora_comment_sig(), tag_deliver(), tgroup_check(), theme_include(), tryzrlvideo(), tt(), update_suggestions(), user_allow(), user_approve(), vcard_from_xchan(), verify_email_address(), wfinger_init(), what_next(), widget_archive(), widget_catcloud_wall(), 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_photo_rand(), widget_profile(), widget_random_block(), widget_savedsearch(), widget_settings_menu(), widget_tagcloud(), widget_tagcloud_wall(), widget_vcard(), z_fetch_url(), and zot_finger().

@@ -1036,6 +1091,18 @@ Variables
+

Returns a custom navigation by name???

+

If no $navname provided load default page['nav']

+
Todo:
not fully implemented yet
+
Parameters
+ + + +
App$aglobal application object
string$navname
+
+
+
Returns
mixed
+

Referenced by construct_page().

@@ -1070,6 +1137,9 @@ Variables
+

Wrapper around config to limit the text length of an incoming message.

+
Returns
int
+

Referenced by get_item_elements(), and limit_body_size().

@@ -1087,7 +1157,7 @@ Variables
-

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(), impel_init(), importelm_post(), item_content(), item_permissions_sql(), magic_init(), mitem_content(), new_contact(), notice(), permissions_sql(), photo_init(), photos_content(), photos_post(), ping_init(), poll_post(), prepare_body(), profile_content(), profile_sidebar(), RedMatrix\RedDAV\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().

+

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(), editpost_content(), events_post(), get_public_feed(), impel_init(), importelm_post(), item_content(), item_permissions_sql(), magic_init(), new_contact(), notice(), permissions_sql(), photo_init(), photos_content(), photos_post(), ping_init(), poll_post(), prepare_body(), profile_content(), profile_sidebar(), RedMatrix\RedDAV\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_catcloud_wall(), widget_categories(), widget_item(), widget_photo_albums(), widget_suggestedchats(), widget_suggestions(), widget_tagcloud_wall(), and z_readdir().

@@ -1105,7 +1175,7 @@ Variables
-

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

+

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

@@ -1156,7 +1226,7 @@ Variables
-

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(), impel_init(), 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_content(), tagrm_post(), thing_init(), user_allow(), user_approve(), and viewconnections_content().

+

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(), filestorage_content(), follow_init(), fsuggest_post(), group_content(), group_post(), impel_init(), 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_content(), tagrm_post(), thing_init(), user_allow(), user_approve(), and viewconnections_content().

@@ -1190,6 +1260,10 @@ Variables
+

Check if current user has developer role.

+

Check if the current user has ACCOUNT_ROLE_DEVELOPER.

+
Returns
bool true if user is a developer
+

Referenced by achievements_content(), and change_channel().

@@ -1207,7 +1281,11 @@ Variables
-

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

+

Check if current user has admin role.

+

Check if the current user has ACCOUNT_ROLE_ADMIN.

+
Returns
bool true if user is an admin
+ +

Referenced by admin_content(), admin_post(), app_render(), blocks_content(), blocks_init(), change_channel(), check_account_admin(), design_tools(), editblock_content(), editblock_init(), editlayout_content(), editlayout_init(), editwebpage_content(), editwebpage_init(), findpeople_widget(), invite_content(), invite_post(), item_post(), layouts_content(), layouts_init(), menu_content(), menu_post(), mitem_content(), mitem_init(), mitem_post(), nav(), parse_app_description(), ping_init(), register_post(), regmod_content(), thing_init(), webpages_content(), and webpages_init().

@@ -1224,6 +1302,9 @@ Variables
+

Checks if we are running on M$ Windows.

+
Returns
bool true if we run on M$ Windows
+

Referenced by check_php(), and proc_run().

@@ -1241,7 +1322,7 @@ Variables
-

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

+

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

@@ -1277,6 +1358,15 @@ Variables
+

Loads a page definition file for a module.

+

If there is no parsed Comanche template already load a module's pdl file and parse it with Comanche.

+
Parameters
+ + +
App&$aglobal application object
+
+
+

Referenced by RedMatrix\RedDAV\RedBrowser\generateDirectoryIndex().

@@ -1294,7 +1384,11 @@ Variables
-

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(), RedMatrix\RedDAV\RedBrowser\generateDirectoryIndex(), get_birthdays(), Item\get_comment_box(), get_events(), get_online_status(), Item\get_template_data(), get_theme_uid(), group_content(), group_get_members(), group_post(), group_select(), group_side(), handle_tag(), hcard_init(), home_init(), identity_selector(), impel_init(), invite_content(), invite_post(), is_public_profile(), item_content(), item_permissions_sql(), item_photo_menu(), item_post(), item_store(), item_store_update(), items_fetch(), layouts_content(), lockview_content(), locs_post(), login(), login_content(), magic_init(), mail_content(), mail_post(), manage_content(), match_content(), menu_add_item(), menu_content(), menu_edit_item(), menu_post(), message_content(), mimetype_select(), mitem_content(), mitem_init(), mitem_post(), mood_content(), mood_init(), nav(), navbar_complete(), network_content(), network_init(), new_contact(), notes_init(), notifications_content(), notifications_post(), notify_content(), notify_init(), oexchange_content(), parse_app_description(), pdledit_content(), pdledit_post(), permissions_sql(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), poke_content(), poke_init(), post_init(), prepare_body(), private_messages_list(), profile_activity(), profile_content(), profile_create_sidebar(), profile_init(), profile_load(), profile_photo_init(), profile_photo_post(), profile_photo_set_profile_perms(), profile_sidebar(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), profperm_init(), rbmark_content(), redbasic_form(), regmod_content(), removeaccount_content(), removeaccount_post(), removeme_content(), removeme_post(), rmagic_init(), rpost_content(), search(), search_ac_init(), search_content(), searchbox(), send_message(), service_class_allows(), service_class_fetch(), service_limits_content(), Conversation\set_mode(), settings_init(), settings_post(), share_init(), smilies(), sources_content(), sources_post(), starred_init(), stream_perms_api_uids(), stream_perms_xchans(), subthread_content(), suggest_content(), suggest_init(), tagger_content(), tagrm_content(), tagrm_post(), theme_content(), theme_post(), thing_content(), thing_init(), uexport_init(), vcard_from_xchan(), viewconnections_content(), viewconnections_init(), viewsrc_content(), webpages_content(), widget_affinity(), widget_appselect(), widget_design_tools(), widget_filer(), widget_follow(), widget_fullprofile(), widget_mailmenu(), widget_notes(), widget_profile(), widget_savedsearch(), widget_settings_menu(), widget_suggestions(), z_input_filter(), zid_init(), and zping_content().

+

Returns the entity id of locally logged in user or false.

+

Returns authenticated numeric channel_id if authenticated and connected to a channel or 0. Sometimes referred to as $uid in the code.

+
Returns
int|bool channel_id or false
+ +

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(), 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(), RedMatrix\RedDAV\RedBrowser\generateDirectoryIndex(), get_birthdays(), Item\get_comment_box(), get_events(), get_online_status(), Item\get_template_data(), get_theme_uid(), group_content(), group_get_members(), group_post(), group_select(), group_side(), handle_tag(), hcard_init(), home_content(), home_init(), identity_selector(), impel_init(), invite_content(), invite_post(), is_public_profile(), item_content(), item_permissions_sql(), item_photo_menu(), item_post(), item_store(), item_store_update(), items_fetch(), layouts_content(), lockview_content(), locs_content(), locs_post(), login(), login_content(), magic_init(), mail_content(), mail_post(), manage_content(), match_content(), menu_add_item(), menu_content(), menu_edit_item(), menu_post(), message_content(), mimetype_select(), mitem_content(), mitem_init(), mitem_post(), mood_content(), mood_init(), nav(), navbar_complete(), network_content(), network_init(), new_contact(), notes_init(), notifications_content(), notifications_post(), notify_content(), notify_init(), oexchange_content(), parse_app_description(), pdledit_content(), pdledit_post(), permissions_sql(), photos_content(), photos_init(), photos_post(), ping_init(), poco_init(), poke_content(), poke_init(), post_init(), prepare_body(), private_messages_list(), profile_activity(), profile_content(), profile_create_sidebar(), profile_init(), profile_load(), profile_photo_init(), profile_photo_post(), profile_photo_set_profile_perms(), profile_sidebar(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), profperm_init(), rbmark_content(), redbasic_form(), regmod_content(), removeaccount_content(), removeaccount_post(), removeme_content(), removeme_post(), rmagic_init(), rpost_content(), search(), search_ac_init(), search_content(), searchbox(), send_message(), service_class_allows(), service_class_fetch(), service_limits_content(), Conversation\set_mode(), settings_init(), settings_post(), share_init(), smilies(), sources_content(), sources_post(), starred_init(), stream_perms_api_uids(), stream_perms_xchans(), subthread_content(), suggest_content(), suggest_init(), tagger_content(), tagrm_content(), tagrm_post(), theme_content(), theme_post(), thing_content(), thing_init(), uexport_init(), vcard_from_xchan(), viewconnections_content(), viewconnections_init(), viewsrc_content(), webpages_content(), widget_affinity(), widget_appselect(), widget_design_tools(), widget_filer(), widget_follow(), widget_fullprofile(), widget_mailmenu(), widget_notes(), widget_profile(), widget_savedsearch(), widget_settings_menu(), widget_suggestions(), z_input_filter(), zid_init(), and zping_content().

@@ -1328,7 +1422,7 @@ Variables
-

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(), profile_content(), rbmark_content(), regmod_content(), and rpost_content().

+

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(), profile_content(), rbmark_content(), regmod_content(), and rpost_content().

@@ -1346,7 +1440,7 @@ Variables
-

Referenced by account_remove(), achievements_content(), admin_content(), admin_page_channels(), admin_page_channels_post(), admin_page_hubloc(), admin_page_plugins(), admin_page_profs(), admin_page_themes(), admin_page_users(), admin_page_users_post(), api_content(), api_post(), appman_content(), appman_post(), attach_init(), block_content(), blocks_content(), bookmarks_content(), channel_content(), channel_init(), chat_content(), chat_init(), chatroom_enter(), check_form_security_token_redirectOnErr(), common_content(), common_init(), connect_init(), connect_post(), connections_content(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), dirprofile_init(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), filestorage_content(), filestorage_post(), follow_init(), fsuggest_content(), fsuggest_post(), group_add(), group_content(), group_post(), hcard_init(), import_content(), import_post(), importelm_post(), invite_content(), invite_post(), item_content(), item_post(), layouts_content(), like_content(), locs_post(), 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_init(), pdledit_content(), photos_content(), photos_post(), poke_content(), post_init(), profile_content(), profile_init(), profile_load(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), register_content(), register_post(), regmod_content(), removeaccount_post(), removeme_post(), rmagic_post(), search_content(), service_limits_content(), settings_post(), sources_content(), sources_post(), subthread_content(), suggest_content(), thing_content(), thing_init(), user_deny(), viewconnections_content(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), and xchan_content().

+

Referenced by account_remove(), achievements_content(), admin_content(), admin_page_channels(), admin_page_channels_post(), admin_page_hubloc(), admin_page_plugins(), admin_page_profs(), admin_page_themes(), admin_page_users(), admin_page_users_post(), api_content(), api_post(), appman_content(), appman_post(), attach_init(), block_content(), blocks_content(), bookmarks_content(), channel_content(), channel_init(), chat_content(), chat_init(), chatroom_enter(), check_form_security_token_redirectOnErr(), common_content(), common_init(), connect_init(), connect_post(), connections_content(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), filestorage_content(), filestorage_post(), follow_init(), fsuggest_content(), fsuggest_post(), group_add(), group_content(), group_post(), hcard_init(), import_content(), import_post(), importelm_post(), invite_content(), invite_post(), item_content(), item_post(), layouts_content(), like_content(), locs_content(), locs_post(), 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_init(), pdledit_content(), photos_content(), photos_post(), poke_content(), post_init(), profile_content(), profile_init(), profile_load(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), register_content(), register_post(), regmod_content(), removeaccount_post(), removeme_post(), rmagic_post(), search_content(), service_limits_content(), settings_post(), sources_content(), sources_post(), subthread_content(), suggest_content(), thing_content(), thing_init(), user_deny(), viewconnections_content(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), and xchan_content().

@@ -1402,7 +1496,7 @@ Variables

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

$cmd and string args are surrounded with ""

-

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

+

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

@@ -1419,7 +1513,7 @@ Variables
-

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().

+

Referenced by app_render(), channel_content(), directory_content(), display_content(), drop_items(), get_online_status(), home_content(), 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().

@@ -1456,7 +1550,7 @@ Variables - +
@@ -1470,7 +1564,7 @@ Variables - + @@ -1480,7 +1574,19 @@ Variables
 $k = NULL $k = null 
-

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

+

Multi-purpose function to check variable state.

+

Usage: x($var) or $x($array, 'key')

+

returns false if variable/key is not set if variable is set, returns 1 if has 'non-zero' value, otherwise returns 0. e.g. x('') or x(0) returns 0;

+
Parameters
+ + + +
string | array$svariable to check
string$kkey inside the array to check
+
+
+
Returns
bool
+ +

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

@@ -1514,7 +1620,7 @@ Variables
-

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

+

Referenced by admin_content(), admin_page_profs(), admin_page_profs_post(), allowed_public_recips(), app_render(), app_store(), app_update(), appman_post(), authenticate_success(), bb_parse_crypt(), bbcode(), blocks_content(), chanlink_cid(), chanlink_hash(), chanlink_url(), channel_content(), channel_remove(), chat_content(), chat_post(), chatsvc_content(), check_config(), connect_post(), connections_content(), connections_post(), conversation(), create_identity(), deliver_run(), diaspora_comment(), diaspora_like(), diaspora_post(), diaspora_request(), diaspora_reshare(), directory_content(), discover_by_url(), discover_by_webbie(), display_content(), event_store_item(), externals_run(), filestorage_content(), find_upstream_directory(), follow_init(), format_categories(), format_filer(), get_parent_cloudpath(), RedMatrix\RedDAV\RedBrowser\getAssetUrl(), group_post(), handle_tag(), App\head_get_icon(), head_get_icon(), home_content(), home_init(), hostxrd_init(), import_post(), import_xchan(), invite_content(), item_photo_menu(), item_post(), item_store(), layouts_content(), like_content(), locs_post(), 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(), oembed_iframe(), openid_content(), pagelist_widget(), parse_app_description(), pdledit_post(), photo_upload(), photos_album_widget(), photos_albums_list(), photos_create_item(), photos_list_photos(), poll_content(), post_activity_item(), post_init(), post_post(), profile_activity(), profile_sidebar(), public_recips(), pubsites_content(), rbmark_content(), rbmark_post(), reflect_article_callback(), reflect_comment_store(), reflect_photo_callback(), register_post(), remove_obsolete_hublocs(), removeaccount_content(), removeme_content(), rmagic_init(), rmagic_post(), rpost_content(), script_path(), search_content(), searchbox(), send_reg_approval_email(), send_verification_email(), setup_content(), setup_post(), siteinfo_content(), siteinfo_init(), sources_content(), sources_post(), sslify(), sync_directories(), tagger_content(), theme_attachments(), thing_init(), toggle_safesearch_init(), update_suggestions(), user_allow(), vcard_from_xchan(), verify_email_address(), webpages_content(), wfinger_init(), widget_archive(), widget_chatroom_list(), widget_dirtags(), widget_filer(), widget_savedsearch(), widget_suggestions(), xchan_store(), xref_init(), zfinger_init(), zid_init(), zot_build_packet(), zot_fetch(), zot_new_uid(), and zot_refresh().

@@ -1532,7 +1638,6 @@ Variables
'https://zothub.com',
'https://zotid.net',
'https://redmatrix.nl',
-
'https://whogotzot.com',
'https://red.zottel.red',
'https://red.pixelbits.de'
)
@@ -1565,7 +1670,7 @@ Variables
-

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

+

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

@@ -1607,7 +1712,7 @@ Variables
-

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

+

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

@@ -1635,7 +1740,7 @@ Variables
-

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

+

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(), get_channel_default_perms(), item_post(), manage_content(), new_contact(), notifier_run(), perm_is_allowed(), ping_init(), poco_init(), poller_run(), process_channel_sync_delivery(), settings_post(), viewconnections_content(), widget_follow(), widget_settings_menu(), zfinger_init(), and zot_refresh().

@@ -1860,7 +1965,7 @@ Variables
-

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

+

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

@@ -1927,7 +2032,7 @@ Variables

activity stream defines

-

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

+

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

@@ -2127,7 +2232,7 @@ Variables
-

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

+

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

@@ -2325,13 +2430,39 @@ Variables
- +
const DB_UPDATE_VERSION 1130const DB_UPDATE_VERSION 1131

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

+
+ + +
+
+ + + + +
const DBTYPE_MYSQL 0
+
+ +
+
+ +
+
+ + + + +
const DBTYPE_POSTGRES 1
+
+ +

Referenced by contact_block(), dba_factory(), notifier_run(), queue_run(), RedCollectionData(), and search_content().

+
@@ -2385,7 +2516,7 @@ Variables
-

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

+

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

@@ -2413,7 +2544,7 @@ Variables
-

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

+

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

@@ -2455,7 +2586,7 @@ Variables
-

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

+

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

@@ -2478,12 +2609,12 @@ Variables
- +
const EOL '<br />' . "\r\n"const EOL '<br>' . "\r\n"
-

Referenced by account_remove(), achievements_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), admin_page_profs(), admin_page_site_post(), admin_page_users(), api_content(), api_post(), appman_content(), appman_post(), attach_init(), block_content(), blocks_content(), bookmarks_content(), bookmarks_init(), channel_content(), channel_init(), chat_content(), chat_init(), chatroom_enter(), check_account_email(), check_account_invite(), check_form_security_std_err_msg(), check_htaccess(), check_keys(), check_php(), check_smarty3(), check_store(), common_content(), common_init(), connect_init(), connections_content(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), dirprofile_init(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), filestorage_content(), filestorage_post(), follow_init(), format_like(), fsuggest_content(), fsuggest_post(), group_add(), group_content(), group_post(), hcard_init(), import_post(), importelm_post(), invite_content(), invite_post(), item_content(), item_post(), layouts_content(), like_content(), load_database(), locs_post(), 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_init(), pdledit_content(), pdledit_post(), photos_content(), photos_post(), poke_content(), post_init(), post_post(), profile_content(), profile_init(), profile_load(), profile_photo_post(), profiles_content(), profiles_init(), profiles_post(), profperm_content(), pubsites_content(), register_content(), register_post(), regmod_content(), removeaccount_post(), removeme_post(), rmagic_post(), search_content(), service_limits_content(), settings_post(), setup_content(), sources_content(), sources_post(), subthread_content(), suggest_content(), sync_locations(), tagrm_content(), tagrm_post(), thing_content(), thing_init(), user_allow(), user_approve(), user_deny(), viewconnections_content(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), xchan_content(), and zot_process_message_request().

+

Referenced by account_remove(), achievements_content(), admin_page_channels(), admin_page_dbsync(), admin_page_hubloc(), admin_page_profs(), admin_page_site_post(), admin_page_users(), api_content(), api_post(), appman_content(), appman_post(), attach_init(), block_content(), blocks_content(), bookmarks_content(), bookmarks_init(), channel_content(), channel_init(), chat_content(), chat_init(), chatroom_enter(), check_account_email(), check_account_invite(), check_form_security_std_err_msg(), check_htaccess(), check_keys(), check_php(), check_smarty3(), check_store(), common_content(), common_init(), connect_init(), connections_content(), connections_post(), connedit_content(), connedit_post(), delegate_content(), directory_content(), display_content(), drop_item(), editblock_content(), editlayout_content(), editpost_content(), editwebpage_content(), events_content(), events_post(), filestorage_content(), filestorage_post(), follow_init(), format_like(), fsuggest_content(), fsuggest_post(), group_add(), group_content(), group_post(), hcard_init(), import_post(), importelm_post(), invite_content(), invite_post(), item_content(), item_post(), layouts_content(), like_content(), load_database(), locs_content(), locs_post(), 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_init(), 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(), refimport_content(), register_content(), register_post(), regmod_content(), removeaccount_post(), removeme_post(), rmagic_post(), search_content(), service_limits_content(), settings_post(), setup_content(), sources_content(), sources_post(), subthread_content(), suggest_content(), sync_locations(), tagrm_content(), tagrm_post(), thing_content(), thing_init(), user_allow(), user_approve(), user_deny(), viewconnections_content(), viewsrc_content(), wall_attach_post(), wall_upload_post(), webpages_content(), xchan_content(), and zot_process_message_request().

@@ -2536,7 +2667,7 @@ Variables
-

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

+

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

@@ -2564,7 +2695,7 @@ Variables
-

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

+

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

@@ -2604,7 +2735,7 @@ Variables
-

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

+

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

@@ -2682,7 +2813,7 @@ Variables
-

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

+

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

@@ -2710,7 +2841,7 @@ Variables
-

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

+

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

@@ -2808,7 +2939,7 @@ Variables
-

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

+

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

@@ -2823,7 +2954,7 @@ Variables

Item Flags

-

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

+

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

@@ -2931,7 +3062,7 @@ Variables
-

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

+

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

@@ -2959,7 +3090,7 @@ Variables
-

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

+

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

@@ -3028,7 +3159,7 @@ Variables
-

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

+

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

@@ -3042,7 +3173,7 @@ Variables
-

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

+

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

@@ -3114,7 +3245,7 @@ Variables
-

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

+

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

@@ -3128,7 +3259,7 @@ Variables
-

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

+

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

@@ -3890,20 +4021,6 @@ Variables

Referenced by item_post(), and notification().

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

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

-
@@ -4051,7 +4168,7 @@ Variables
-

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

+

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

@@ -4163,7 +4280,7 @@ Variables
-

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

+

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

@@ -4177,7 +4294,7 @@ Variables
-

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

+

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

@@ -4191,7 +4308,7 @@ Variables
-

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

+

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

@@ -4205,7 +4322,7 @@ Variables
-

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

+

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

@@ -4219,7 +4336,7 @@ Variables
-

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

+

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

@@ -4234,7 +4351,7 @@ Variables

Permissions

-

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

+

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

@@ -4276,7 +4393,7 @@ Variables
-

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

+

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

@@ -4290,7 +4407,7 @@ Variables
-

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

+

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

@@ -4304,7 +4421,7 @@ Variables
-

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

+

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

@@ -4318,7 +4435,7 @@ Variables
-

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

+

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

@@ -4374,7 +4491,7 @@ Variables
-

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

+

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

@@ -4388,7 +4505,7 @@ Variables
-

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

+

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

@@ -4402,7 +4519,21 @@ Variables
-

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

+

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

+ +
+ + +
+
+ + + + +
const PHOTO_ADULT 0x0008
+
+ +

Referenced by photos_content(), and photos_post().

@@ -4417,7 +4548,7 @@ Variables

Photo types

-

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

+

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

@@ -4431,7 +4562,7 @@ Variables
-

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

+

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

@@ -4545,7 +4676,7 @@ Variables

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().

+

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

@@ -4588,7 +4719,7 @@ Variables

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().

+

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

@@ -4696,7 +4827,7 @@ Variables
-

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

+

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

@@ -4800,7 +4931,7 @@ Variables
-

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

+

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

@@ -4956,6 +5087,161 @@ Variables

Referenced by admin_page_dbsync().

+ + + +
+
+ + + + +
const VNOTIFY_ALERT 0x0100
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_BIRTHDAY 0x0020
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_CHANNEL 0x0002
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_EVENT 0x0008
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_EVENTTODAY 0x0010
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_INFO 0x0080
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_INTRO 0x0200
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_MAIL 0x0004
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_NETWORK 0x0001
+
+

visual notification options

+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_REGISTER 0x0400
+
+ +

Referenced by ping_init().

+ +
+
+ +
+
+ + + + +
const VNOTIFY_SYSTEM 0x0040
+
+ +

Referenced by ping_init().

+
@@ -5026,6 +5312,20 @@ Variables

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

+ + + +
+
+ + + + +
const XCHAN_FLAGS_PUBFORUM 0x0020
+
+ +

Referenced by dirsearch_content(), and import_xchan().

+
diff --git a/doc/html/boot_8php.js b/doc/html/boot_8php.js index 742aa4d99..b460c9fee 100644 --- a/doc/html/boot_8php.js +++ b/doc/html/boot_8php.js @@ -39,7 +39,7 @@ var boot_8php = [ "remote_user", "boot_8php.html#a5542c5c2806ab8bca04bad53d47b5209", null ], [ "startup", "boot_8php.html#aca47505b8732177f52bb2d647eb2741c", null ], [ "system_unavailable", "boot_8php.html#ac608a34f3bc180e7724192e0fd31f9b0", null ], - [ "x", "boot_8php.html#a01353c9abebc3544ea080ac161729632", null ], + [ "x", "boot_8php.html#ae97836b0547953be182a2334c9c91d3c", null ], [ "z_path", "boot_8php.html#aba208673515cbb8a55e5fa4a1da99fda", null ], [ "z_root", "boot_8php.html#add517a0958ac684792c62142a3877f81", null ], [ "$DIRECTORY_FALLBACK_SERVERS", "boot_8php.html#a107d53f96acf5319905a34b1870db09a", null ], @@ -101,6 +101,8 @@ var boot_8php = [ "CONTACT_IS_FRIEND", "boot_8php.html#a27299ecfb9e9a99826f17a1c14c6995f", null ], [ "CONTACT_IS_SHARING", "boot_8php.html#a6c5e9e293c8242dcb9bc2c3ea2fee2c9", null ], [ "DB_UPDATE_VERSION", "boot_8php.html#ac59a18a4838710d6c2de37aed6b21f03", null ], + [ "DBTYPE_MYSQL", "boot_8php.html#a8c9a11c47394244cbe18cd75b9726d5f", null ], + [ "DBTYPE_POSTGRES", "boot_8php.html#a37ddabc112db443b4c67fbc0f708817e", null ], [ "DEFAULT_DB_ENGINE", "boot_8php.html#aa8a2b61e70900139d1ca28e46f1da49d", null ], [ "DIRECTORY_FALLBACK_MASTER", "boot_8php.html#abedd940e664017c61b48c6efa31d0cb8", null ], [ "DIRECTORY_MODE_NORMAL", "boot_8php.html#ab7d65a7e7417825a4db62906bb600729", null ], @@ -214,7 +216,6 @@ var boot_8php = [ "NOTIFY_TAGSELF", "boot_8php.html#ab724491497ab2618b23a01d5da60aec0", null ], [ "NOTIFY_TAGSHARE", "boot_8php.html#af6937db5f581d006bf4a5c3d9c7e0461", null ], [ "NOTIFY_WALL", "boot_8php.html#a505410c7edc5f5bb5fa227b98359793e", null ], - [ "NULL_DATE", "boot_8php.html#a6cd1b4081630b2bf7be38836cd9f410c", null ], [ "PAGE_ADULT", "boot_8php.html#ace83842dbeb84f7ed9ac59a9f57a7c32", null ], [ "PAGE_APPLICATION", "boot_8php.html#a8231d115060d41a9c2a677f2c86f10ed", null ], [ "PAGE_AUTOCONNECT", "boot_8php.html#aa275653b9c87abc7391bb8040c1c2de9", null ], @@ -251,6 +252,7 @@ var boot_8php = [ "PERMS_W_STREAM", "boot_8php.html#a8bb0395933b5e886f086f6a2fb0bfa55", null ], [ "PERMS_W_TAGWALL", "boot_8php.html#a99a4a17cb644e7e6826ea07ecaf09777", null ], [ "PERMS_W_WALL", "boot_8php.html#a6b14a31a8aa9f3452a13383f413bffa2", null ], + [ "PHOTO_ADULT", "boot_8php.html#a921c55b9fa59a327a5f0e07fa1ccb2e0", null ], [ "PHOTO_NORMAL", "boot_8php.html#a4a49b29838ef2c45ab3556b52baec6a4", null ], [ "PHOTO_PROFILE", "boot_8php.html#ab4bc9c50ecc927b92d519e36562b0df0", null ], [ "PHOTO_THING", "boot_8php.html#a78849a1bf8ce8d9804b4cbb502e8f383", null ], @@ -291,11 +293,23 @@ var boot_8php = [ "UPDATE_FLAGS_FORCED", "boot_8php.html#ab9dca53455cd157d3c6ba2bdecdbd22d", null ], [ "UPDATE_FLAGS_UPDATED", "boot_8php.html#a9690d73434125ce594a1f5e7c2a4f7c0", null ], [ "UPDATE_SUCCESS", "boot_8php.html#ac86615ddc0763a00f5311c90e991730c", null ], + [ "VNOTIFY_ALERT", "boot_8php.html#a9f8a2938ddd9ee2867e6f8ce77b61b2f", null ], + [ "VNOTIFY_BIRTHDAY", "boot_8php.html#ac89396b9144391acd08d6d0f9b332220", null ], + [ "VNOTIFY_CHANNEL", "boot_8php.html#a7b511bd93202c43405adbe3b5bcebbfe", null ], + [ "VNOTIFY_EVENT", "boot_8php.html#ad94aca4c260b8a892397786201dc4664", null ], + [ "VNOTIFY_EVENTTODAY", "boot_8php.html#a76480b213af379c0c6c7fa4e39019ca9", null ], + [ "VNOTIFY_INFO", "boot_8php.html#a37281c30bd92cecb499878d6778c570f", null ], + [ "VNOTIFY_INTRO", "boot_8php.html#a1997c4b7d0253e036bc0fb6b20e4af71", null ], + [ "VNOTIFY_MAIL", "boot_8php.html#a0afeb43da443d6ff3526ede5ecdcc3b3", null ], + [ "VNOTIFY_NETWORK", "boot_8php.html#a997614f25e58f8313641e1eb0109fd10", null ], + [ "VNOTIFY_REGISTER", "boot_8php.html#ae09767b94688657978ff9366ec63684b", null ], + [ "VNOTIFY_SYSTEM", "boot_8php.html#a7e5627b5ca4b7464feb0f08663b19ea1", null ], [ "XCHAN_FLAGS_CENSORED", "boot_8php.html#accd6f36cc9f40225cbd720e4d12a7c6e", null ], [ "XCHAN_FLAGS_DELETED", "boot_8php.html#a9ea1290e00c6d40684892047f2c778a9", null ], [ "XCHAN_FLAGS_HIDDEN", "boot_8php.html#a1af3ed96de14aa0d7891b39cc75b60f2", null ], [ "XCHAN_FLAGS_NORMAL", "boot_8php.html#a8fdcc4ffb365a3267bd02ce8a8d466d6", null ], [ "XCHAN_FLAGS_ORPHAN", "boot_8php.html#a1c923b99bf77e4203ae94e5684b6ad0f", null ], + [ "XCHAN_FLAGS_PUBFORUM", "boot_8php.html#a0209e605028a5bb492683951ab30d49d", null ], [ "XCHAN_FLAGS_SELFCENSORED", "boot_8php.html#a5a681a672e007cdc22b43345d71f07c6", null ], [ "XCHAN_FLAGS_SYSTEM", "boot_8php.html#afef254290febac854c85fc698d9483a6", null ], [ "ZCURL_TIMEOUT", "boot_8php.html#a3cd42a70c6b3999590e4fd7a1a9096af", null ], diff --git a/doc/html/channel_8php.html b/doc/html/channel_8php.html index 61550f610..b9c52f43a 100644 --- a/doc/html/channel_8php.html +++ b/doc/html/channel_8php.html @@ -148,6 +148,7 @@ Functions

Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups

+

in "list mode", only mark the parent item and any like activities as "seen". We won't distinguish between comment likes and post likes. The important thing is that the number of unseen comments will be accurate. The SQL to separate the comment likes could also get somewhat hairy.

Referenced by update_channel_content().

diff --git a/doc/html/classApp-members.html b/doc/html/classApp-members.html index 6e2218d84..199120188 100644 --- a/doc/html/classApp-members.html +++ b/doc/html/classApp-members.html @@ -117,8 +117,6 @@ $(document).ready(function(){initNavTree('classApp.html','');}); $argcApp $argvApp $baseurlAppprivate - $cached_profile_imageAppprivate - $cached_profile_picdateAppprivate $categoryApp $channelApp $cidApp @@ -128,18 +126,16 @@ $(document).ready(function(){initNavTree('classApp.html','');}); $contactsApp $contentApp $css_sourcesApp - $curl_codeAppprivate - $curl_headersAppprivate $dataApp - $dbAppprivate - $errorApp - $force_max_itemsApp - $groupsApp - $hooksApp - $hostnameAppprivate - $identitiesApp - $installApp - $interactiveApp + $errorApp + $force_max_itemsApp + $groupsApp + $hooksApp + $hostnameAppprivate + $identitiesApp + $installApp + $interactiveApp + $is_sysApp $js_sourcesApp $languageApp $layoutApp @@ -170,40 +166,39 @@ $(document).ready(function(){initNavTree('classApp.html','');}); $userApp $videoheightApp $videowidthApp - $widgetlistAppprivate - $widgetsAppprivate - __construct()App - build_pagehead()App - get_account()App - get_apps()App - get_baseurl($ssl=false)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()App - head_set_icon($icon)App - register_template_engine($class, $name= '')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 + $widgetsAppprivate + __construct()App + build_pagehead()App + get_account()App + get_apps()App + get_baseurl($ssl=false)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()App + head_set_icon($icon)App + register_template_engine($class, $name= '')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
diff --git a/doc/html/classApp.html b/doc/html/classApp.html index bd8e6bbf0..c0a79a04e 100644 --- a/doc/html/classApp.html +++ b/doc/html/classApp.html @@ -254,6 +254,8 @@ Public Attributes    $theme_info = array()   + $is_sys = false +   $nav_sel    $category @@ -279,8 +281,6 @@ Private Attributes    $widgets = array()   - $widgetlist = null -   $apps = array()    $theme @@ -297,16 +297,6 @@ Private Attributes    $path   - $db -  - $curl_code -  - $curl_headers -  - $cached_profile_image -  - $cached_profile_picdate

Detailed Description

class: App

@@ -861,7 +851,7 @@ Private Attributes

return template engine instance. If $name is not defined, return engine defined by theme, or default

Parameters
- +
strin$nameTemplate engine name
string$nameTemplate engine name
@@ -950,46 +940,6 @@ Private Attributes

Referenced by get_baseurl().

-
- - -
-
- - - - - -
- - - - -
App::$cached_profile_image
-
-private
-
- -
-
- -
-
- - - - - -
- - - - -
App::$cached_profile_picdate
-
-private
-
-
@@ -1100,46 +1050,6 @@ Private Attributes
-
- - -
-
- - - - - -
- - - - -
App::$curl_code
-
-private
-
- -
-
- -
-
- - - - - -
- - - - -
App::$curl_headers
-
-private
-
-
@@ -1152,26 +1062,6 @@ Private Attributes
-
- - -
-
- - - - - -
- - - - -
App::$db
-
-private
-
-
@@ -1280,6 +1170,18 @@ Private Attributes
+
+ + +
+
+ + + + +
App::$is_sys = false
+
+
@@ -1713,26 +1615,6 @@ Private Attributes
-
- - -
-
- - - - - -
- - - - -
App::$widgetlist = null
-
-private
-
-
@@ -1753,8 +1635,6 @@ Private Attributes
-

Referenced by get_widgets().

-

The documentation for this class was generated from the following file: diff --git a/doc/html/functions_0x65.html b/doc/html/functions_0x65.html index f9b5ba9bd..efb086291 100644 --- a/doc/html/functions_0x65.html +++ b/doc/html/functions_0x65.html @@ -142,8 +142,16 @@ $(document).ready(function(){initNavTree('functions_0x65.html','');});

- e -

diff --git a/doc/html/functions_0x67.html b/doc/html/functions_0x67.html index 744665c6b..a20e1109e 100644 --- a/doc/html/functions_0x67.html +++ b/doc/html/functions_0x67.html @@ -193,6 +193,9 @@ $(document).ready(function(){initNavTree('functions_0x67.html','');});
  • get_data_value() : Item
  • +
  • get_display_mode() +: Item +
  • get_FormatsMap() : photo_imagick
  • @@ -205,6 +208,9 @@ $(document).ready(function(){initNavTree('functions_0x67.html','');});
  • get_id() : Item
  • +
  • get_install_script() +: dba_driver +
  • get_intltext_template() : FriendicaSmartyEngine
  • @@ -218,13 +224,16 @@ $(document).ready(function(){initNavTree('functions_0x67.html','');}); : Redmatrix\Import\Import
  • get_markup_template() -: ITemplateEngine +: Template +, ITemplateEngine , FriendicaSmartyEngine -, Template
  • get_mode() : Conversation
  • +
  • get_null_date() +: dba_driver +
  • get_observer() : App , Conversation @@ -296,6 +305,12 @@ $(document).ready(function(){initNavTree('functions_0x67.html','');});
  • getDir() : RedMatrix\RedDAV\RedDirectory
  • +
  • getdriver() +: dba_mysqli +, dba_postgres +, dba_mysql +, dba_driver +
  • getETag() : RedMatrix\RedDAV\RedFile
  • @@ -306,8 +321,8 @@ $(document).ready(function(){initNavTree('functions_0x67.html','');}); : photo_driver
  • getImage() -: photo_imagick -, photo_gd +: photo_gd +, photo_imagick , photo_driver
  • getLastModified() @@ -315,8 +330,8 @@ $(document).ready(function(){initNavTree('functions_0x67.html','');}); , RedMatrix\RedDAV\RedFile
  • getName() -: RedMatrix\RedDAV\RedFile -, RedMatrix\RedDAV\RedDirectory +: RedMatrix\RedDAV\RedDirectory +, RedMatrix\RedDAV\RedFile
  • getQuotaInfo() : RedMatrix\RedDAV\RedDirectory diff --git a/doc/html/functions_0x69.html b/doc/html/functions_0x69.html index 5c919b259..3d44a81a4 100644 --- a/doc/html/functions_0x69.html +++ b/doc/html/functions_0x69.html @@ -148,9 +148,13 @@ $(document).ready(function(){initNavTree('functions_0x69.html','');});
  • install() : dba_driver
  • +
  • INSTALL_SCRIPT +: dba_driver +, dba_postgres +
  • is_commentable() -: Conversation -, Item +: Item +, Conversation
  • is_preview() : Conversation diff --git a/doc/html/functions_0x6e.html b/doc/html/functions_0x6e.html index 72fb064ff..5fde22d13 100644 --- a/doc/html/functions_0x6e.html +++ b/doc/html/functions_0x6e.html @@ -146,6 +146,10 @@ $(document).ready(function(){initNavTree('functions_0x6e.html','');});
  • new_request_token() : FKOAuthDataStore
  • +
  • NULL_DATE +: dba_driver +, dba_postgres +
  • diff --git a/doc/html/functions_0x6f.html b/doc/html/functions_0x6f.html index cff96e18b..0d3b556fc 100644 --- a/doc/html/functions_0x6f.html +++ b/doc/html/functions_0x6f.html @@ -140,6 +140,10 @@ $(document).ready(function(){initNavTree('functions_0x6f.html','');});
    Here is a list of all class members with links to the classes they belong to:

    - o -

    diff --git a/doc/html/functions_0x75.html b/doc/html/functions_0x75.html index f85b7b8f1..69f595432 100644 --- a/doc/html/functions_0x75.html +++ b/doc/html/functions_0x75.html @@ -140,9 +140,20 @@ $(document).ready(function(){initNavTree('functions_0x75.html','');});
    Here is a list of all class members with links to the classes they belong to:

    - u -

    diff --git a/doc/html/functions_func_0x63.html b/doc/html/functions_func_0x63.html index d11eca53f..8ae0c6e4b 100644 --- a/doc/html/functions_func_0x63.html +++ b/doc/html/functions_func_0x63.html @@ -154,6 +154,7 @@ $(document).ready(function(){initNavTree('functions_func_0x63.html','');});
  • close() : dba_mysqli +, dba_postgres , dba_driver , dba_mysql
  • @@ -165,10 +166,15 @@ $(document).ready(function(){initNavTree('functions_func_0x63.html','');}); : ProtoDriver , ZotDriver +
  • concat() +: dba_driver +, dba_postgres +
  • connect() -: dba_mysqli -, dba_driver +: dba_driver , dba_mysql +, dba_mysqli +, dba_postgres
  • convert_child() : Redmatrix\Import\Import @@ -182,6 +188,9 @@ $(document).ready(function(){initNavTree('functions_func_0x63.html','');});
  • count_descendants() : Item
  • +
  • count_unseen_descendants() +: Item +
  • createDirectory() : RedMatrix\RedDAV\RedDirectory
  • @@ -190,8 +199,8 @@ $(document).ready(function(){initNavTree('functions_func_0x63.html','');});
  • cropImage() : photo_driver -, photo_gd , photo_imagick +, photo_gd
  • diff --git a/doc/html/functions_func_0x65.html b/doc/html/functions_func_0x65.html index 2add8b68a..8fa81466f 100644 --- a/doc/html/functions_func_0x65.html +++ b/doc/html/functions_func_0x65.html @@ -141,8 +141,16 @@ $(document).ready(function(){initNavTree('functions_func_0x65.html','');});

    - e -

    diff --git a/doc/html/functions_func_0x67.html b/doc/html/functions_func_0x67.html index 2e4957360..473e0a9c6 100644 --- a/doc/html/functions_func_0x67.html +++ b/doc/html/functions_func_0x67.html @@ -192,6 +192,9 @@ $(document).ready(function(){initNavTree('functions_func_0x67.html','');});
  • get_data_value() : Item
  • +
  • get_display_mode() +: Item +
  • get_FormatsMap() : photo_imagick
  • @@ -204,6 +207,9 @@ $(document).ready(function(){initNavTree('functions_func_0x67.html','');});
  • get_id() : Item
  • +
  • get_install_script() +: dba_driver +
  • get_intltext_template() : FriendicaSmartyEngine
  • @@ -217,13 +223,16 @@ $(document).ready(function(){initNavTree('functions_func_0x67.html','');}); : Redmatrix\Import\Import
  • get_markup_template() -: ITemplateEngine +: Template +, ITemplateEngine , FriendicaSmartyEngine -, Template
  • get_mode() : Conversation
  • +
  • get_null_date() +: dba_driver +
  • get_observer() : App , Conversation @@ -295,6 +304,12 @@ $(document).ready(function(){initNavTree('functions_func_0x67.html','');});
  • getDir() : RedMatrix\RedDAV\RedDirectory
  • +
  • getdriver() +: dba_mysqli +, dba_postgres +, dba_mysql +, dba_driver +
  • getETag() : RedMatrix\RedDAV\RedFile
  • @@ -305,8 +320,8 @@ $(document).ready(function(){initNavTree('functions_func_0x67.html','');}); : photo_driver
  • getImage() -: photo_imagick -, photo_gd +: photo_gd +, photo_imagick , photo_driver
  • getLastModified() @@ -314,8 +329,8 @@ $(document).ready(function(){initNavTree('functions_func_0x67.html','');}); , RedMatrix\RedDAV\RedFile
  • getName() -: RedMatrix\RedDAV\RedFile -, RedMatrix\RedDAV\RedDirectory +: RedMatrix\RedDAV\RedDirectory +, RedMatrix\RedDAV\RedFile
  • getQuotaInfo() : RedMatrix\RedDAV\RedDirectory diff --git a/doc/html/functions_func_0x6f.html b/doc/html/functions_func_0x6f.html index c955abd89..382222e6f 100644 --- a/doc/html/functions_func_0x6f.html +++ b/doc/html/functions_func_0x6f.html @@ -139,6 +139,10 @@ $(document).ready(function(){initNavTree('functions_func_0x6f.html','');});  

    - o -

    diff --git a/doc/html/functions_func_0x75.html b/doc/html/functions_func_0x75.html index 00d4ae0f4..7996cb15c 100644 --- a/doc/html/functions_func_0x75.html +++ b/doc/html/functions_func_0x75.html @@ -139,9 +139,16 @@ $(document).ready(function(){initNavTree('functions_func_0x75.html','');});  

    - u -

    diff --git a/doc/html/functions_vars.html b/doc/html/functions_vars.html index 18ed219ed..fae3826ec 100644 --- a/doc/html/functions_vars.html +++ b/doc/html/functions_vars.html @@ -85,6 +85,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); @@ -146,12 +149,6 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • $browser : RedMatrix\RedDAV\RedBasicAuth
  • -
  • $cached_profile_image -: App -
  • -
  • $cached_profile_picdate -: App -
  • $category : App
  • @@ -211,12 +208,6 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • $css_sources : App
  • -
  • $curl_code -: App -
  • -
  • $curl_headers -: App -
  • $d : Template
  • @@ -226,13 +217,15 @@ $(document).ready(function(){initNavTree('functions_vars.html','');}); , RedMatrix\RedDAV\RedFile
  • $db -: App -, dba_driver +: dba_driver
  • $debug : dba_driver , Template
  • +
  • $display_mode +: Item +
  • $done : Template
  • @@ -276,6 +269,9 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • $interactive : App
  • +
  • $is_sys +: App +
  • $itemlist : Redmatrix\Import\Import
  • @@ -318,9 +314,9 @@ $(document).ready(function(){initNavTree('functions_vars.html','');}); : Template
  • $observer -: App +: Conversation , RedMatrix\RedDAV\RedBasicAuth -, Conversation +, App
  • $os_path : RedMatrix\RedDAV\RedDirectory @@ -470,9 +466,6 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • $wall_to_wall : Item
  • -
  • $widgetlist -: App -
  • $widgets : App
  • @@ -483,6 +476,30 @@ $(document).ready(function(){initNavTree('functions_vars.html','');}); : Conversation + + +

    - i -

    + + +

    - n -

    + + +

    - u -

    diff --git a/doc/html/globals.html b/doc/html/globals.html index 11075a6de..a7aaa8b45 100644 --- a/doc/html/globals.html +++ b/doc/html/globals.html @@ -156,9 +156,6 @@ $(document).ready(function(){initNavTree('globals.html','');});
  • $aside : minimalisticdarkness.php
  • -
  • $bodyclass -: default.php -
  • $called_api : api.php
  • @@ -184,9 +181,9 @@ $(document).ready(function(){initNavTree('globals.html','');}); : docblox_errorchecker.php
  • $files -: extract.php +: typo.php +, extract.php , tpldebug.php -, typo.php
  • $fname : style.php @@ -194,12 +191,6 @@ $(document).ready(function(){initNavTree('globals.html','');});
  • $gc_probability : session.php
  • -
  • $headimg -: default.php -
  • -
  • $headimghome -: default.php -
  • $i : docblox_errorchecker.php
  • diff --git a/doc/html/globals_0x62.html b/doc/html/globals_0x62.html index 64384e429..6e98928f8 100644 --- a/doc/html/globals_0x62.html +++ b/doc/html/globals_0x62.html @@ -222,23 +222,8 @@ $(document).ready(function(){initNavTree('globals_0x62.html','');});
  • blocks_content() : blocks.php
  • -
  • blog_init() -: theme.php -
  • -
  • blog_install() -: theme.php -
  • -
  • blog_uninstall() -: theme.php -
  • -
  • blogtheme_display_item() -: theme.php -
  • -
  • blogtheme_form() -: config.php -
  • -
  • blogtheme_imgurl() -: theme.php +
  • blocks_init() +: blocks.php
  • bookmark_add() : bookmarks.php diff --git a/doc/html/globals_0x63.html b/doc/html/globals_0x63.html index 310dbf5c7..16df1649d 100644 --- a/doc/html/globals_0x63.html +++ b/doc/html/globals_0x63.html @@ -153,6 +153,9 @@ $(document).ready(function(){initNavTree('globals_0x63.html','');});
  • can_comment_on_post() : items.php
  • +
  • catblock() +: taxonomy.php +
  • categories_widget() : contact_widgets.php
  • @@ -168,9 +171,6 @@ $(document).ready(function(){initNavTree('globals_0x63.html','');});
  • chanlink_url() : text.php
  • -
  • chanman_remove_everything_from_network() -: chanman.php -
  • channel_content() : channel.php
  • diff --git a/doc/html/globals_0x64.html b/doc/html/globals_0x64.html index 52b9313da..77a5ed11d 100644 --- a/doc/html/globals_0x64.html +++ b/doc/html/globals_0x64.html @@ -156,11 +156,26 @@ $(document).ready(function(){initNavTree('globals_0x64.html','');});
  • day_translate() : text.php
  • +
  • db_concat() +: dba_driver.php +
  • +
  • db_getfunc() +: dba_driver.php +
  • +
  • db_optimizetable() +: dba_driver.php +
  • +
  • db_quoteinterval() +: dba_driver.php +
  • DB_UPDATE_VERSION : boot.php
  • +
  • db_utcnow() +: dba_driver.php +
  • dba_factory() -: dba_driver.php +: dba_driver.php
  • dba_timer() : boot.php @@ -174,12 +189,30 @@ $(document).ready(function(){initNavTree('globals_0x64.html','');});
  • dbesc_array_cb() : dba_driver.php
  • +
  • dbesc_identifier() +: dba_driver.php +
  • +
  • dbescbin() +: dba_driver.php +
  • +
  • dbescdate() +: dba_driver.php +
  • dbg() : dba_driver.php
  • dbq() : dba_driver.php
  • +
  • DBTYPE_MYSQL +: boot.php +
  • +
  • DBTYPE_POSTGRES +: boot.php +
  • +
  • dbunescbin() +: dba_driver.php +
  • decode_tags() : items.php
  • @@ -327,6 +360,9 @@ $(document).ready(function(){initNavTree('globals_0x64.html','');});
  • diaspora_unshare() : diaspora.php
  • +
  • dir_flag_build() +: dirsearch.php +
  • dir_parse_query() : dirsearch.php
  • @@ -372,9 +408,6 @@ $(document).ready(function(){initNavTree('globals_0x64.html','');});
  • directory_run() : directory.php
  • -
  • dirprofile_init() -: dirprofile.php -
  • dirsearch_content() : dirsearch.php
  • diff --git a/doc/html/globals_0x65.html b/doc/html/globals_0x65.html index ddd15a2ec..15f68dbbc 100644 --- a/doc/html/globals_0x65.html +++ b/doc/html/globals_0x65.html @@ -147,20 +147,29 @@ $(document).ready(function(){initNavTree('globals_0x65.html','');});
  • editblock_content() : editblock.php
  • +
  • editblock_init() +: editblock.php +
  • editlayout_content() : editlayout.php
  • +
  • editlayout_init() +: editlayout.php +
  • editpost_content() : editpost.php
  • editwebpage_content() : editwebpage.php
  • +
  • editwebpage_init() +: editwebpage.php +
  • else -: style.php -, auth.php +: auth.php , fpostit.php , tpldebug.php +, style.php
  • email_header_encode() : network.php diff --git a/doc/html/globals_0x66.html b/doc/html/globals_0x66.html index 628fca243..b88d3b72a 100644 --- a/doc/html/globals_0x66.html +++ b/doc/html/globals_0x66.html @@ -267,12 +267,18 @@ $(document).ready(function(){initNavTree('globals_0x66.html','');});
  • format_event_html() : event.php
  • +
  • format_event_ical() +: event.php +
  • format_filer() : text.php
  • format_hashtags() : text.php
  • +
  • format_ical_text() +: event.php +
  • format_js_if_exists() : plugin.php
  • diff --git a/doc/html/globals_0x67.html b/doc/html/globals_0x67.html index 97c4bc683..f71204ab9 100644 --- a/doc/html/globals_0x67.html +++ b/doc/html/globals_0x67.html @@ -183,6 +183,9 @@ $(document).ready(function(){initNavTree('globals_0x67.html','');});
  • get_channel_by_nick() : identity.php
  • +
  • get_channel_default_perms() +: identity.php +
  • get_cloudpath() : attach.php
  • diff --git a/doc/html/globals_0x68.html b/doc/html/globals_0x68.html index 8a464ae94..0848dd574 100644 --- a/doc/html/globals_0x68.html +++ b/doc/html/globals_0x68.html @@ -193,7 +193,7 @@ $(document).ready(function(){initNavTree('globals_0x68.html','');}); : theme.php
  • home_content() -: home.php +: home.php
  • home_init() : home.php diff --git a/doc/html/globals_0x69.html b/doc/html/globals_0x69.html index 0ea6ac4fb..46871c62e 100644 --- a/doc/html/globals_0x69.html +++ b/doc/html/globals_0x69.html @@ -144,6 +144,9 @@ $(document).ready(function(){initNavTree('globals_0x69.html','');});
    Here is a list of all file members with links to the files they belong to:

    - i -

    diff --git a/doc/html/globals_0x70.html b/doc/html/globals_0x70.html index f80d0607b..c4c0eaf40 100644 --- a/doc/html/globals_0x70.html +++ b/doc/html/globals_0x70.html @@ -309,6 +309,9 @@ $(document).ready(function(){initNavTree('globals_0x70.html','');});
  • PERMS_W_WALL : boot.php
  • +
  • PHOTO_ADULT +: boot.php +
  • photo_factory() : photo_driver.php
  • @@ -523,7 +526,7 @@ $(document).ready(function(){initNavTree('globals_0x70.html','');}); : zot.php
  • process_delivery() -: zot.php +: zot.php
  • process_location_delivery() : zot.php diff --git a/doc/html/globals_0x72.html b/doc/html/globals_0x72.html index d5a31e359..299bcdb49 100644 --- a/doc/html/globals_0x72.html +++ b/doc/html/globals_0x72.html @@ -213,6 +213,9 @@ $(document).ready(function(){initNavTree('globals_0x72.html','');});
  • RedFileData() : reddav.php
  • +
  • REDMATRIX_IMPORTCHANNEL +: refimport.php +
  • reduce() : docblox_errorchecker.php
  • @@ -234,6 +237,42 @@ $(document).ready(function(){initNavTree('globals_0x72.html','');});
  • ref_session_write() : session.php
  • +
  • refimport_content() +: refimport.php +
  • +
  • reflect_article_callback() +: refimport.php +
  • +
  • REFLECT_BASEURL +: refimport.php +
  • +
  • REFLECT_BLOGNAME +: refimport.php +
  • +
  • reflect_comment_store() +: refimport.php +
  • +
  • REFLECT_EXPORTUSERNAME +: refimport.php +
  • +
  • reflect_find_user() +: refimport.php +
  • +
  • reflect_get_channel() +: refimport.php +
  • +
  • REFLECT_MAXPERRUN +: refimport.php +
  • +
  • REFLECT_OVERWRITE +: refimport.php +
  • +
  • reflect_photo_callback() +: refimport.php +
  • +
  • REFLECT_USERFILE +: refimport.php +
  • REGISTER_APPROVE : boot.php
  • diff --git a/doc/html/globals_0x74.html b/doc/html/globals_0x74.html index 48ce7c771..2580271b1 100644 --- a/doc/html/globals_0x74.html +++ b/doc/html/globals_0x74.html @@ -237,12 +237,6 @@ $(document).ready(function(){initNavTree('globals_0x74.html','');});
  • tgroup_check() : items.php
  • -
  • theme_admin() -: config.php -
  • -
  • theme_admin_post() -: config.php -
  • theme_attachments() : text.php
  • @@ -253,7 +247,7 @@ $(document).ready(function(){initNavTree('globals_0x74.html','');}); : plugin.php
  • theme_post() -: config.php +: config.php
  • theme_status() : admin.php diff --git a/doc/html/globals_0x75.html b/doc/html/globals_0x75.html index 06edcdfdf..bec61a442 100644 --- a/doc/html/globals_0x75.html +++ b/doc/html/globals_0x75.html @@ -207,6 +207,9 @@ $(document).ready(function(){initNavTree('globals_0x75.html','');});
  • UPDATE_FLAGS_UPDATED : boot.php
  • +
  • update_home_content() +: update_home.php +
  • update_imported_item() : zot.php
  • diff --git a/doc/html/globals_0x76.html b/doc/html/globals_0x76.html index 749f67860..a37a10692 100644 --- a/doc/html/globals_0x76.html +++ b/doc/html/globals_0x76.html @@ -177,6 +177,39 @@ $(document).ready(function(){initNavTree('globals_0x76.html','');});
  • visible_activity() : conversation.php
  • +
  • VNOTIFY_ALERT +: boot.php +
  • +
  • VNOTIFY_BIRTHDAY +: boot.php +
  • +
  • VNOTIFY_CHANNEL +: boot.php +
  • +
  • VNOTIFY_EVENT +: boot.php +
  • +
  • VNOTIFY_EVENTTODAY +: boot.php +
  • +
  • VNOTIFY_INFO +: boot.php +
  • +
  • VNOTIFY_INTRO +: boot.php +
  • +
  • VNOTIFY_MAIL +: boot.php +
  • +
  • VNOTIFY_NETWORK +: boot.php +
  • +
  • VNOTIFY_REGISTER +: boot.php +
  • +
  • VNOTIFY_SYSTEM +: boot.php +
  • vote_content() : vote.php
  • diff --git a/doc/html/globals_0x77.html b/doc/html/globals_0x77.html index 027bdc27f..34f372963 100644 --- a/doc/html/globals_0x77.html +++ b/doc/html/globals_0x77.html @@ -159,6 +159,9 @@ $(document).ready(function(){initNavTree('globals_0x77.html','');});
  • webpages_content() : webpages.php
  • +
  • webpages_init() +: webpages.php +
  • wfinger_init() : wfinger.php
  • @@ -180,6 +183,9 @@ $(document).ready(function(){initNavTree('globals_0x77.html','');});
  • widget_bookmarkedchats() : widgets.php
  • +
  • widget_catcloud_wall() +: widgets.php +
  • widget_categories() : widgets.php
  • @@ -234,9 +240,15 @@ $(document).ready(function(){initNavTree('globals_0x77.html','');});
  • widget_photo_albums() : widgets.php
  • +
  • widget_photo_rand() +: widgets.php +
  • widget_profile() : widgets.php
  • +
  • widget_random_block() +: widgets.php +
  • widget_savedsearch() : widgets.php
  • diff --git a/doc/html/globals_0x78.html b/doc/html/globals_0x78.html index dc2845bd9..e3a2f782c 100644 --- a/doc/html/globals_0x78.html +++ b/doc/html/globals_0x78.html @@ -145,7 +145,7 @@ $(document).ready(function(){initNavTree('globals_0x78.html','');});

    - x -