Esempio n. 1
0
	/**
	 * Returns file name.
	 * @param  string
	 * @return string
	 */
	protected function getCacheFile($key)
	{
		return parent::getCacheFile(substr_replace(
			$key,
			trim(strtr($this->hint, '\\/@', '.._'), '.') . '-',
			strpos($key, NCache::NAMESPACE_SEPARATOR) + 1,
			0
		)) . '.php';
	}
	public function initialize()
	{
		date_default_timezone_set('Europe/Prague');
		NFileStorage::$useDirectories = TRUE;

		$this->getService("session")->exists() && $this->getService("session")->start();
		header('X-Frame-Options: SAMEORIGIN');
	}
Esempio n. 3
0
File: loader.php Progetto: GE3/GE3
 protected function getCacheFile($key)
 {
     return parent::getCacheFile($key) . '.php';
 }