コード例 #1
0
ファイル: PhpFileStorage.php プロジェクト: krecek/nrsn
	/**
	 * 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';
	}
コード例 #2
0
	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');
	}
コード例 #3
0
ファイル: loader.php プロジェクト: GE3/GE3
 protected function getCacheFile($key)
 {
     return parent::getCacheFile($key) . '.php';
 }