Changeset View
Changeset View
Standalone View
Standalone View
core/units/helpers/upload_helper.php
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | |||||
$this->Application->HttpQuery->Cookie[$cookie_name] = $this->Application->GetVar('flashsid'); | $this->Application->HttpQuery->Cookie[$cookie_name] = $this->Application->GetVar('flashsid'); | ||||
// this prevents session from auto-expiring when KeepSessionOnBrowserClose & FireFox is used | // this prevents session from auto-expiring when KeepSessionOnBrowserClose & FireFox is used | ||||
$this->Application->HttpQuery->Cookie[$cookie_name . '_live'] = $this->Application->GetVar('flashsid'); | $this->Application->HttpQuery->Cookie[$cookie_name . '_live'] = $this->Application->GetVar('flashsid'); | ||||
$admin_session = $this->Application->recallObject('Session.admin'); | $admin_session = $this->Application->recallObject('Session.admin'); | ||||
/* @var $admin_session Session */ | /* @var $admin_session Session */ | ||||
if ( $admin_session->RecallVar('user_id') == USER_ROOT ) { | if ( $this->Application->permissionCheckingDisabled($admin_session->RecallVar('user_id')) ) { | ||||
return true; | return true; | ||||
} | } | ||||
// copy some data from given session to current session | // copy some data from given session to current session | ||||
$backup_user_id = $this->Application->RecallVar('user_id'); | $backup_user_id = $this->Application->RecallVar('user_id'); | ||||
$this->Application->StoreVar('user_id', $admin_session->RecallVar('user_id')); | $this->Application->StoreVar('user_id', $admin_session->RecallVar('user_id')); | ||||
$backup_user_groups = $this->Application->RecallVar('UserGroups'); | $backup_user_groups = $this->Application->RecallVar('UserGroups'); | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |