if ((parse_url($_GET['zrl'], PHP_URL_QUERY) == '') &&
strstr(parse_url($_GET['zrl'], PHP_URL_PATH), '/profile/')) {
if ($this->session->get('visitor_home') != $_GET['zrl']) {
- Core\Session::set('my_url', $_GET['zrl']);
- Core\Session::set('authenticated', 0);
+ $this->session->set('my_url', $_GET['zrl']);
+ $this->session->set('authenticated', 0);
$remote_contact = Contact::getByURL($_GET['zrl'], false, ['subscribe']);
if (!empty($remote_contact['subscribe'])) {
public static $exists = false;
public static $expire = 180000;
- public static function set($name, $value)
- {
- DI::session()->set($name, $value);
- }
-
public static function setMultiple(array $values)
{
DI::session()->setMultiple($values);
self::$star = false;
}
- Session::set('network-tab', self::$selectedTab);
+ DI::session()->set('network-tab', self::$selectedTab);
DI::pConfig()->set(local_user(), 'network.view', 'selected_tab', self::$selectedTab);
self::$accountTypeString = $get['accounttype'] ?? $this->parameters['accounttype'] ?? '';
DI::auth()->setForUser(DI::app(), $user, true, true);
if ($limited_id) {
- Session::set('submanage', $original_id);
+ DI::session()->set('submanage', $original_id);
}
$ret = [];
// Set a time stamp for this page. We will make use of it when we
// search for new items (update routine)
$last_updated_array[$last_updated_key] = time();
- Session::set('last_updated', $last_updated_array);
+ DI::session()->set('last_updated', $last_updated_array);
if ($is_owner && !DI::config()->get('theme', 'hide_eventlist')) {
$o .= ProfileModel::getBirthdays();
if ($valid) {
$this->pConfig->set(local_user(), '2fa', 'verified', true);
- Session::set('2fa', true);
+ DI::session()->set('2fa', true);
DI::sysmsg()->addInfo($this->t('Two-factor authentication successfully activated.'));
// Set a time stamp for this page. We will make use of it when we
// search for new items (update routine)
$last_updated_array[$last_updated_key] = time();
- Session::set('last_updated', $last_updated_array);
+ DI::session()->set('last_updated', $last_updated_array);
if ($is_owner && !$a->getProfileOwner() && !DI::config()->get('theme', 'hide_eventlist')) {
$o .= ProfileModel::getBirthdays();