/**
* @file mod/manage.php
*/
+
use Friendica\App;
-use Friendica\Core\Authentication;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
-use Friendica\Core\System;
+use Friendica\Core\Session;
use Friendica\Database\DBA;
-require_once "include/text.php";
-
function manage_post(App $a) {
if (! local_user()) {
unset($_SESSION['sysmsg_info']);
}
- Authentication::setAuthenticatedSessionForUser($r[0], true, true);
+ Session::setAuthenticatedForUser($a, $r[0], true, true);
if ($limited_id) {
$_SESSION['submanage'] = $original_id;
}
$ret = [];
- Addon::callHooks('home_init',$ret);
+ Hook::callAll('home_init',$ret);
$a->internalRedirect('profile/' . $a->user['nickname'] );
// NOTREACHED