define ( 'FRIENDICA_VERSION', '3.5-dev' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1191 );
+
+/**
+ * @brief Constant with a HTML line break.
+ *
+ * Contains a HTML line break (br) element and a real carriage return with line
+ * feed for the source.
+ * This can be used in HTML and JavaScript where needed a line break.
+ */
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
define ( 'PAGE_BLOG', 4 );
define ( 'PAGE_PRVGROUP', 5 );
-// Type of the community page
+/**
+ * Type of the community page
+ */
define ( 'CP_NO_COMMUNITY_PAGE', -1 );
define ( 'CP_USERS_ON_SERVER', 0 );
define ( 'CP_GLOBAL_COMMUNITY', 1 );
*
* @return string
* Returns the complete html for inserting into the page
+ *
+ * @hooks 'login_hook'
+ * string $o
*/
function login($register = false, $hiddens=false) {
$a = get_app();
}
/**
+ * @brief Wrap calls to proc_close(proc_open()) and call hook
+ * so plugins can take part in process :)
*
- * Wrap calls to proc_close(proc_open()) and call hook
- * so plugins can take part in process :)
- *
- * args:
- * $cmd program to run
- * next args are passed as $cmd command line
- *
+ * @param string $cmd program to run
+ *
+ * next args are passed as $cmd command line
* e.g.: proc_run("ls","-la","/tmp");
*
- * $cmd and string args are surrounded with ""
+ * @note $cmd and string args are surrounded with ""
+ *
+ * @hooks 'proc_run'
+ * array $arr
*/
function proc_run($cmd){
* @return HTML string stuitable for sidebar inclusion
*
* @note Returns empty string if passed $profile is wrong type or not populated
+ *
+ * @hooks 'profile_sidebar_enter'
+ * array $profile - profile data
+ * @hooks 'profile_sidebar'
+ * array $arr
*/
function profile_sidebar($profile, $block = 0) {
$a = get_app();
if (isset($p["about"]))
$p["about"] = bbcode($p["about"]);
- if (isset($p["location"]))
- $p["location"] = bbcode($p["location"]);
+ if (isset($p["address"]))
+ $p["address"] = bbcode($p["address"]);
if (isset($p["photo"]))
$p["photo"] = proxy_url($p["photo"], false, PROXY_SIZE_SMALL);