protected function load_file($file) { $cache = Neuron_Core_Cache::getInstance('language/' . $this->sName . '/'); if ($data = $cache->getCache($file)) { $this->cache[$file] = unserialize($data); } else { Neuron_Core_MessageBundle::bundle2text($this->sUrl, $this->sName); // Now check again. If it not exists, enter an empty array. if ($data = $cache->getCache($file)) { $this->cache[$file] = unserialize($data); } else { $cache->setCache($file, serialize(array())); } } }
} else { header('WWW-Authenticate: Basic realm="Profile Logs"'); header('HTTP/1.0 401 Unauthorized'); echo 'Please login to access your profile logs.'; exit; } break; case 'messagebundle': /* $output_type = 'xml'; $xml_name = 'messagebundle'; $xml_version = null; */ header('Content-type: text/xml'); $text = Neuron_Core_Text::getInstance(); echo Neuron_Core_MessageBundle::text2bundle($text); exit; break; case 'getsession': session_write_close(); session_start(); $id = session_id(); echo $id; exit; break; default: $output['content'] = array(); break; } $pgen->stop(); $db = Neuron_Core_Database::__getInstance();