Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
asiafoodco.com /
shop /
classes /
cache /
Delete
Unzip
Name
Size
Permission
Date
Action
Cache.php
7.2
KB
-rwxr-x---
2018-05-03 14:19
CacheApc.php
1.99
KB
-rwxr-x---
2018-05-03 14:19
CacheFs.php
3.66
KB
-rwxr-x---
2018-05-03 14:19
CacheMemcache.php
4.65
KB
-rwxr-x---
2018-05-03 14:19
CacheXcache.php
1.87
KB
-rwxr-x---
2018-05-03 14:19
index.php
1.24
KB
-rwxr-x---
2018-05-03 14:19
Save
Rename
<?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class CacheFsCore extends Cache { /** * @var int Number of subfolders to dispatch cached filenames */ protected $depth; protected function __construct() { $this->depth = Db::getInstance()->getValue('SELECT value FROM '._DB_PREFIX_.'configuration WHERE name= \'PS_CACHEFS_DIRECTORY_DEPTH\'', false); $keys_filename = $this->getFilename(self::KEYS_NAME); if (@filemtime($keys_filename)) $this->keys = unserialize(file_get_contents($keys_filename)); } /** * @see Cache::_set() */ protected function _set($key, $value, $ttl = 0) { return (@file_put_contents($this->getFilename($key), serialize($value))); } /** * @see Cache::_get() */ protected function _get($key) { if ($this->keys[$key] > 0 && $this->keys[$key] < time()) { $this->delete($key); return false; } $filename = $this->getFilename($key); if (!@filemtime($filename)) { unset($this->keys[$key]); $this->_writeKeys(); return false; } $file = file_get_contents($filename); return unserialize($file); } /** * @see Cache::_exists() */ protected function _exists($key) { if ($this->keys[$key] > 0 && $this->keys[$key] < time()) { $this->delete($key); return false; } return isset($this->keys[$key]) && @filemtime($this->getFilename($key)); } /** * @see Cache::_delete() */ protected function _delete($key) { $filename = $this->getFilename($key); if (!@filemtime($filename)) return true; return unlink($filename); } /** * @see Cache::_writeKeys() */ protected function _writeKeys() { @file_put_contents($this->getFilename(self::KEYS_NAME), serialize($this->keys)); } /** * @see Cache::flush() */ public function flush() { $this->delete('*'); return true; } /** * Delete cache directory */ public static function deleteCacheDirectory() { Tools::deleteDirectory(_PS_CACHEFS_DIRECTORY_, false); } /** * Create cache directory * * @param int $level_depth * @param string $directory */ public static function createCacheDirectories($level_depth, $directory = false) { if (!$directory) $directory = _PS_CACHEFS_DIRECTORY_; $chars = '0123456789abcdef'; for ($i = 0, $length = strlen($chars); $i < $length; $i++) { $new_dir = $directory.$chars[$i].'/'; if (mkdir($new_dir)) if (chmod($new_dir, 0777)) if ($level_depth - 1 > 0) CacheFs::createCacheDirectories($level_depth - 1, $new_dir); } } /** * Transform a key into its absolute path * * @param string $key * @return string */ protected function getFilename($key) { $key = md5($key); $path = _PS_CACHEFS_DIRECTORY_; for ($i = 0; $i < $this->depth; $i++) $path .= $key[$i].'/'; if (!is_dir($path)) @mkdir($path, 0777, true); return $path.$key; } }