Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/session/session.php
Show First 20 Lines • Show All 703 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
if ($this->CachedNeedQueryString != null && $use_cache) { | if ($this->CachedNeedQueryString != null && $use_cache) { | ||||
return $this->CachedNeedQueryString; | return $this->CachedNeedQueryString; | ||||
} | } | ||||
$result = false; | $result = false; | ||||
switch ($this->Mode) { | switch ($this->Mode) { | ||||
case self::smAUTO: | case self::smAUTO: | ||||
if (!$this->CookiesEnabled) { | if ( !$this->CookiesEnabled && PHP_SAPI !== 'cli' ) { | ||||
$result = true; | $result = true; | ||||
} | } | ||||
break; | break; | ||||
/*case self::smCOOKIES_ONLY: | /*case self::smCOOKIES_ONLY: | ||||
break;*/ | break;*/ | ||||
case self::smGET_ONLY: | case self::smGET_ONLY: | ||||
case self::smCOOKIES_AND_GET: | case self::smCOOKIES_AND_GET: | ||||
if ( PHP_SAPI !== 'cli' ) { | |||||
$result = true; | $result = true; | ||||
} | |||||
break; | break; | ||||
} | } | ||||
$this->CachedNeedQueryString = $result; | $this->CachedNeedQueryString = $result; | ||||
return $result; | return $result; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 391 Lines • ▼ Show 20 Line(s) | |||||
$ret = $user_id > 0; | $ret = $user_id > 0; | ||||
if (($this->RecallVar('admin') == 1 || defined('ADMIN')) && ($user_id == USER_ROOT)) { | if (($this->RecallVar('admin') == 1 || defined('ADMIN')) && ($user_id == USER_ROOT)) { | ||||
$ret = true; | $ret = true; | ||||
} | } | ||||
return $ret; | return $ret; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |