diff options
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -70,7 +70,7 @@ require_once('include/security.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '10.3.58'); +define('STD_VERSION', '10.5'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1263); @@ -774,7 +774,7 @@ class miniApp { * */ class App { - + public static $request = null; public static $install = false; // true if we are installing the software public static $account = null; // account record of the logged-in account public static $channel = null; // channel record of the current channel of the logged-in account @@ -1802,26 +1802,6 @@ function shutdown() { } /** - * @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 (isset($_SESSION['account_id'])) { - return intval($_SESSION['account_id']); - } - - if (App::$account) { - return intval(App::$account['account_id']); - } - - return false; -} - -/** * @brief Returns the entity id (channel_id) of locally logged in channel or false. * * Returns authenticated numeric channel_id if authenticated and connected to |