403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/system/core/caching/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/core/caching/AdminFilesCache.inc.php
<?php
/* --------------------------------------------------------------
   AdminFilesCache.inc.php 2017-10-03
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2017 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

/**
 * Class AdminFilesCache
 */
class AdminFilesCache
{
	/**
	 * Returns an array of all files in the admin/html directory as absolute file path.
	 * 
	 * Notice: Only files are considered, so empty directories are skipped.
	 * 
	 * @return array
	 */
	public static function getFiles()
	{
		$dataCache = DataCache::get_instance();
		$cacheKey  = 'Admin-files';
		
		$files = [];
		if($dataCache->key_exists($cacheKey, true))
		{
			$files = $dataCache->get_data($cacheKey, true);
		}
		else
		{
			$iterator = new RecursiveDirectoryIterator(DIR_FS_CATALOG . 'admin/html');
			
			foreach(new RecursiveIteratorIterator($iterator) as $file)
			{
				if($file->getFilename() !== '.' && $file->getFilename() !== '..')
				{
					$files[] = str_replace('\\', '/', (string)$file);
				}
			}
			
			$dataCache->set_data($cacheKey, $files, true);
		}
		
		return $files;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit