]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Merge pull request #12025 from annando/no-boot-src-module
[friendica.git] / boot.php
index d43ef8b0d464c603d0b38469f906edeabb426e98..60c8bf5a30ebbfdb750d949b40d8bfb6ea066b8a 100644 (file)
--- a/boot.php
+++ b/boot.php
 
 use Friendica\Core\Session;
 
-/**
- * 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");
-
-/**
- * @name Gravity
- *
- * Item weight for query ordering
- * @{
- */
-define('GRAVITY_PARENT',       0);
-define('GRAVITY_ACTIVITY',     3);
-define('GRAVITY_COMMENT',      6);
-define('GRAVITY_UNKNOWN',      9);
-/* @}*/
-
 /**
  * Returns the user id of locally logged in user or false.
  *
  * @return int|bool user id or false
+ * @deprecated since version 2022.12, use Core\Session::getLocalUser() instead
  */
 function local_user()
 {
@@ -64,6 +44,7 @@ function local_user()
  * Returns the public contact id of logged in user or false.
  *
  * @return int|bool public contact id or false
+ * @deprecated since version 2022.12, use Core\Session:: getPublicContact() instead
  */
 function public_contact()
 {
@@ -74,6 +55,7 @@ function public_contact()
  * Returns public contact id of authenticated site visitor or false
  *
  * @return int|bool visitor_id or false
+ * @deprecated since version 2022.12, use Core\Session:: getRemoteUser() instead
  */
 function remote_user()
 {