static function setReferer($referer = null, $force = false) { if (!$referer) { $referer = Request::refererInInput(); if ($referer) { $force = true; } else { $referer = Request::referer(); } } if (strpos($referer, '/auth/') !== false) { $referer = '/'; } if (!Session::get('authreferer') || $force) { Session::put('authreferer', $referer); } }
function session($k, $default = '') { if (is_array($k)) { foreach ($k as $sk => $sv) { \Boofw\Phpole\Http\Session::put($sk, $sv); } return null; } return \Boofw\Phpole\Http\Session::get($k, $default); }
static function old($k) { return Session::get('_old_input.' . $k, ''); }