|
|
@ -38,7 +38,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); |
|
|
|
define ( 'FRIENDICA_CODENAME', 'Asparagus'); |
|
|
|
define ( 'FRIENDICA_VERSION', '3.5.1-dev' ); |
|
|
|
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); |
|
|
|
define ( 'DB_UPDATE_VERSION', 1203 ); |
|
|
|
define ( 'DB_UPDATE_VERSION', 1210 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Constant with a HTML line break. |
|
|
@ -53,7 +53,7 @@ define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Image storage quality. |
|
|
|
* |
|
|
|
* |
|
|
|
* Lower numbers save space at cost of image detail. |
|
|
|
* For ease of upgrade, please do not change here. Change jpeg quality with |
|
|
|
* $a->config['system']['jpeg_quality'] = n; |
|
|
@ -95,7 +95,7 @@ define ( 'DEFAULT_DB_ENGINE', 'MyISAM' ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name SSL Policy |
|
|
|
* |
|
|
|
* |
|
|
|
* SSL redirection policies |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -106,7 +106,7 @@ define ( 'SSL_POLICY_SELFSIGN', 2 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Logger |
|
|
|
* |
|
|
|
* |
|
|
|
* log levels |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -119,7 +119,7 @@ define ( 'LOGGER_ALL', 4 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Cache |
|
|
|
* |
|
|
|
* |
|
|
|
* Cache levels |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -131,7 +131,7 @@ define ( 'CACHE_HOUR', 3 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Register |
|
|
|
* |
|
|
|
* |
|
|
|
* Registration policies |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -142,7 +142,7 @@ define ( 'REGISTER_OPEN', 2 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Contact_is |
|
|
|
* |
|
|
|
* |
|
|
|
* Relationship types |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -153,7 +153,7 @@ define ( 'CONTACT_IS_FRIEND', 3); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Update |
|
|
|
* |
|
|
|
* |
|
|
|
* DB update return values |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -205,7 +205,7 @@ define ( 'ACCOUNT_TYPE_COMMUNITY', 3 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name CP |
|
|
|
* |
|
|
|
* |
|
|
|
* Type of the community page |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -216,7 +216,7 @@ define ( 'CP_GLOBAL_COMMUNITY', 1 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Network |
|
|
|
* |
|
|
|
* |
|
|
|
* Network and protocol family types |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -288,7 +288,7 @@ define ( 'ZCURL_TIMEOUT' , (-1)); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Notify |
|
|
|
* |
|
|
|
* |
|
|
|
* Email notification options |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -310,7 +310,7 @@ define ( 'NOTIFY_SYSTEM', 0x8000 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Term |
|
|
|
* |
|
|
|
* |
|
|
|
* Tag/term types |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -330,7 +330,7 @@ define ( 'TERM_OBJ_PHOTO', 2 ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Namespaces |
|
|
|
* |
|
|
|
* |
|
|
|
* Various namespaces we may need to parse |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -353,7 +353,7 @@ define ( 'NAMESPACE_ATOM1', 'http://www.w3.org/2005/Atom' ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Activity |
|
|
|
* |
|
|
|
* |
|
|
|
* Activity stream defines |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -399,7 +399,7 @@ define ( 'ACTIVITY_OBJ_QUESTION', 'http://activityschema.org/object/question' ); |
|
|
|
|
|
|
|
/** |
|
|
|
* @name Gravity |
|
|
|
* |
|
|
|
* |
|
|
|
* Item weight for query ordering |
|
|
|
* @{ |
|
|
|
*/ |
|
|
@ -466,9 +466,9 @@ function startup() { |
|
|
|
/** |
|
|
|
* |
|
|
|
* class: App |
|
|
|
* |
|
|
|
* |
|
|
|
* @brief Our main application structure for the life of this page. |
|
|
|
* |
|
|
|
* |
|
|
|
* Primarily deals with the URL that got us here |
|
|
|
* and tries to make some sense of it, and |
|
|
|
* stores our page contents and config storage |
|
|
@ -1015,9 +1015,9 @@ class App { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Register template engine class |
|
|
|
* |
|
|
|
* |
|
|
|
* If $name is "", is used class static property $class::$name |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string $class |
|
|
|
* @param string $name |
|
|
|
*/ |
|
|
@ -1035,7 +1035,7 @@ class App { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Return template engine instance. |
|
|
|
* |
|
|
|
* |
|
|
|
* If $name is not defined, return engine defined by theme, |
|
|
|
* or default |
|
|
|
* |
|
|
@ -1358,7 +1358,7 @@ class App { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Retrieve the App structure |
|
|
|
* |
|
|
|
* |
|
|
|
* Useful in functions which require it but don't get it passed to them |
|
|
|
*/ |
|
|
|
function get_app() { |
|
|
@ -1612,7 +1612,7 @@ function run_update_function($x) { |
|
|
|
* and mark it uninstalled in the database (for now we'll remove it). |
|
|
|
* Then go through the config list and if we have a plugin that isn't installed, |
|
|
|
* call the install procedure and add it to the database. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param App $a |
|
|
|
* |
|
|
|
*/ |
|
|
@ -1678,17 +1678,17 @@ function get_guid($size=16, $prefix = "") { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @brief Wrapper for adding a login box. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param bool $register |
|
|
|
* If $register == true provide a registration link. |
|
|
|
* This will most always depend on the value of $a->config['register_policy']. |
|
|
|
* @param bool $hiddens |
|
|
|
* |
|
|
|
* |
|
|
|
* @return string |
|
|
|
* Returns the complete html for inserting into the page |
|
|
|
* |
|
|
|
* |
|
|
|
* @hooks 'login_hook' |
|
|
|
* string $o |
|
|
|
*/ |
|
|
@ -1778,7 +1778,7 @@ function goaway($s) { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Returns the user id of locally logged in user or false. |
|
|
|
* |
|
|
|
* |
|
|
|
* @return int|bool user id or false |
|
|
|
*/ |
|
|
|
function local_user() { |
|
|
@ -1789,7 +1789,7 @@ function local_user() { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Returns contact id of authenticated site visitor or false |
|
|
|
* |
|
|
|
* |
|
|
|
* @return int|bool visitor_id or false |
|
|
|
*/ |
|
|
|
function remote_user() { |
|
|
@ -1846,13 +1846,13 @@ function get_max_import_size() { |
|
|
|
* so plugins can take part in process :) |
|
|
|
* |
|
|
|
* @param (string|integer) $cmd program to run or priority |
|
|
|
* |
|
|
|
* |
|
|
|
* next args are passed as $cmd command line |
|
|
|
* e.g.: proc_run("ls","-la","/tmp"); |
|
|
|
* or: proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id); |
|
|
|
* |
|
|
|
* @note $cmd and string args are surrounded with "" |
|
|
|
* |
|
|
|
* |
|
|
|
* @hooks 'proc_run' |
|
|
|
* array $arr |
|
|
|
*/ |
|
|
@ -2011,9 +2011,9 @@ function current_theme(){ |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Return full URL to theme which is currently in effect. |
|
|
|
* |
|
|
|
* |
|
|
|
* Provide a sane default if nothing is chosen or the specified theme does not exist. |
|
|
|
* |
|
|
|
* |
|
|
|
* @return string |
|
|
|
*/ |
|
|
|
function current_theme_url() { |
|
|
@ -2360,7 +2360,7 @@ function current_load() { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief get c-style args |
|
|
|
* |
|
|
|
* |
|
|
|
* @return int |
|
|
|
*/ |
|
|
|
function argc() { |
|
|
@ -2369,7 +2369,7 @@ function argc() { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Returns the value of a argv key |
|
|
|
* |
|
|
|
* |
|
|
|
* @param int $x argv key |
|
|
|
* @return string Value of the argv key |
|
|
|
*/ |
|
|
@ -2382,12 +2382,12 @@ function argv($x) { |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Get the data which is needed for infinite scroll |
|
|
|
* |
|
|
|
* |
|
|
|
* For invinite scroll we need the page number of the actual page |
|
|
|
* and the the URI where the content of the next page comes from. |
|
|
|
* This data is needed for the js part in main.js. |
|
|
|
* Note: infinite scroll does only work for the network page (module) |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string $module The name of the module (e.g. "network") |
|
|
|
* @return array Of infinite scroll data |
|
|
|
* 'pageno' => $pageno The number of the actual page |
|
|
|