File indexing completed on 2024-12-29 05:24:44
0001 <?php 0002 require APPLICATION_LIB . "/Local/LoginCookie.php"; 0003 0004 header("Content-type: text/css"); 0005 if (isset($_GET['k'])) { 0006 $key = $_GET['k']; 0007 $id = Local_LoginCookie::readJwt($key); 0008 if ($id) { 0009 $cookie_lifetime = (int)Zend_Registry::get('config')->resources->session->remember_me_seconds; 0010 /** @var Zend_Cache_Core $cache */ 0011 $cache = Zend_Registry::get('cache'); 0012 if ($data = $cache->load($id)) { 0013 $cookie_domain = Local_Tools_ParseDomain::get_domain($_SERVER['HTTP_HOST']); 0014 $cookie_params = session_get_cookie_params(); 0015 setcookie($data['domain'], $data['id'], time() + $cookie_lifetime, $cookie_params['path'], $cookie_domain, $cookie_params['secure'], true); 0016 if (false == empty($data['remember_me'])) { 0017 $cookie_name = Zend_Registry::get('config')->settings->session->remember_me->name; 0018 setcookie($cookie_name, serialize($data['remember_me']), time() + $cookie_lifetime, $cookie_params['path'], $cookie_domain, $cookie_params['secure'], true); 0019 } 0020 $cache->remove($id); 0021 } 0022 } 0023 } 0024 include APPLICATION_PATH . "/../httpdocs/theme/flatui/css/empty.css";