X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=05f7abcac4661158f174442f6a70acb366a36e0f;hb=49919b5b1d0dc6c288d8f09a3c08a86290bf5d27;hp=b43fd6dc2f3b195fec1df0766b40fb066cbc2de3;hpb=454836243d4e792934c8fd2fc82b622b2f2e72b0;p=friendica.git diff --git a/boot.php b/boot.php index b43fd6dc2f..05f7abcac4 100644 --- a/boot.php +++ b/boot.php @@ -32,15 +32,15 @@ use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; -use Friendica\Model\Notify; +use Friendica\Model\Notification; use Friendica\Util\BasePath; use Friendica\Util\DateTimeFormat; define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'Red Hot Poker'); -define('FRIENDICA_VERSION', '2020.09-dev'); +define('FRIENDICA_VERSION', '2021.03-rc'); define('DFRN_PROTOCOL_VERSION', '2.23'); -define('NEW_UPDATE_ROUTINE_VERSION', 1170); +define('NEW_TABLE_STRUCTURE_VERSION', 1288); /** * Constant with a HTML line break. @@ -145,36 +145,36 @@ $netgroup_ids = [ define('MAX_LIKERS', 75); /** - * @name Notify + * @name Notification * * Email notification options * @{ */ -/** @deprecated since 2020.03, use Notify\Type::INTRO instead */ -define('NOTIFY_INTRO', Notify\Type::INTRO); -/** @deprecated since 2020.03, use Notify\Type::CONFIRM instead */ -define('NOTIFY_CONFIRM', Notify\Type::CONFIRM); -/** @deprecated since 2020.03, use Notify\Type::WALL instead */ -define('NOTIFY_WALL', Notify\Type::WALL); -/** @deprecated since 2020.03, use Notify\Type::COMMENT instead */ -define('NOTIFY_COMMENT', Notify\Type::COMMENT); -/** @deprecated since 2020.03, use Notify\Type::MAIL instead */ -define('NOTIFY_MAIL', Notify\Type::MAIL); -/** @deprecated since 2020.03, use Notify\Type::SUGGEST instead */ -define('NOTIFY_SUGGEST', Notify\Type::SUGGEST); -/** @deprecated since 2020.03, use Notify\Type::PROFILE instead */ -define('NOTIFY_PROFILE', Notify\Type::PROFILE); -/** @deprecated since 2020.03, use Notify\Type::TAG_SELF instead */ -define('NOTIFY_TAGSELF', Notify\Type::TAG_SELF); -/** @deprecated since 2020.03, use Notify\Type::TAG_SHARE instead */ -define('NOTIFY_TAGSHARE', Notify\Type::TAG_SHARE); -/** @deprecated since 2020.03, use Notify\Type::POKE instead */ -define('NOTIFY_POKE', Notify\Type::POKE); -/** @deprecated since 2020.03, use Notify\Type::SHARE instead */ -define('NOTIFY_SHARE', Notify\Type::SHARE); - -/** @deprecated since 2020.12, use Notify\Type::SYSTEM instead */ -define('NOTIFY_SYSTEM', Notify\Type::SYSTEM); +/** @deprecated since 2020.03, use Notification\Type::INTRO instead */ +define('NOTIFY_INTRO', Notification\Type::INTRO); +/** @deprecated since 2020.03, use Notification\Type::CONFIRM instead */ +define('NOTIFY_CONFIRM', Notification\Type::CONFIRM); +/** @deprecated since 2020.03, use Notification\Type::WALL instead */ +define('NOTIFY_WALL', Notification\Type::WALL); +/** @deprecated since 2020.03, use Notification\Type::COMMENT instead */ +define('NOTIFY_COMMENT', Notification\Type::COMMENT); +/** @deprecated since 2020.03, use Notification\Type::MAIL instead */ +define('NOTIFY_MAIL', Notification\Type::MAIL); +/** @deprecated since 2020.03, use Notification\Type::SUGGEST instead */ +define('NOTIFY_SUGGEST', Notification\Type::SUGGEST); +/** @deprecated since 2020.03, use Notification\Type::PROFILE instead */ +define('NOTIFY_PROFILE', Notification\Type::PROFILE); +/** @deprecated since 2020.03, use Notification\Type::TAG_SELF instead */ +define('NOTIFY_TAGSELF', Notification\Type::TAG_SELF); +/** @deprecated since 2020.03, use Notification\Type::TAG_SHARE instead */ +define('NOTIFY_TAGSHARE', Notification\Type::TAG_SHARE); +/** @deprecated since 2020.03, use Notification\Type::POKE instead */ +define('NOTIFY_POKE', Notification\Type::POKE); +/** @deprecated since 2020.03, use Notification\Type::SHARE instead */ +define('NOTIFY_SHARE', Notification\Type::SHARE); + +/** @deprecated since 2020.12, use Notification\Type::SYSTEM instead */ +define('NOTIFY_SYSTEM', Notification\Type::SYSTEM); /* @}*/ /** @@ -201,6 +201,7 @@ define('PRIORITY_HIGH', 20); define('PRIORITY_MEDIUM', 30); define('PRIORITY_LOW', 40); define('PRIORITY_NEGLIGIBLE', 50); +define('PRIORITIES', [PRIORITY_CRITICAL, PRIORITY_HIGH, PRIORITY_MEDIUM, PRIORITY_LOW, PRIORITY_NEGLIGIBLE]); /* @}*/ /** @@ -382,38 +383,6 @@ function is_site_admin() return local_user() && $admin_email && in_array($a->user['email'] ?? '', $adminlist); } -function explode_querystring($query) -{ - $arg_st = strpos($query, '?'); - if ($arg_st !== false) { - $base = substr($query, 0, $arg_st); - $arg_st += 1; - } else { - $base = ''; - $arg_st = 0; - } - - $args = explode('&', substr($query, $arg_st)); - foreach ($args as $k => $arg) { - /// @TODO really compare type-safe here? - if ($arg === '') { - unset($args[$k]); - } - } - $args = array_values($args); - - if (!$base) { - $base = $args[0]; - unset($args[0]); - $args = array_values($args); - } - - return [ - 'base' => $base, - 'args' => $args, - ]; -} - /** * Returns the complete URL of the current page, e.g.: http(s)://something.com/network *