Linux webd002.cluster130.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
Apache
: 10.130.40.2 | : 216.73.217.172
Cant Read [ /etc/named.conf ]
8.3.31
espacpq
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
espacpq /
www /
wp-content /
plugins /
polylang /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Capabilities
[ DIR ]
drwxr-xr-x
Model
[ DIR ]
drwxr-xr-x
Options
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxr-xr-x
frontend
[ DIR ]
drwxr-xr-x
install
[ DIR ]
drwxr-xr-x
integrations
[ DIR ]
drwxr-xr-x
modules
[ DIR ]
drwxr-xr-x
settings
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
adminer.php
0
B
-rw-r--r--
api.php
21.77
KB
-rw-r--r--
base.php
6.11
KB
-rw-r--r--
cache.php
2.4
KB
-rw-r--r--
class-polylang.php
8.34
KB
-rw-r--r--
constant-functions.php
1.81
KB
-rw-r--r--
cookie.php
3.03
KB
-rw-r--r--
crud-posts.php
12.82
KB
-rw-r--r--
crud-terms.php
8.75
KB
-rw-r--r--
default-term.php
6.44
KB
-rw-r--r--
filter-rest-routes.php
4.98
KB
-rw-r--r--
filters-links.php
5.64
KB
-rw-r--r--
filters-sanitization.php
3.23
KB
-rw-r--r--
filters-widgets-options.php
2.63
KB
-rw-r--r--
filters.php
12.94
KB
-rw-r--r--
format-util.php
3.04
KB
-rw-r--r--
functions.php
5.14
KB
-rw-r--r--
language-deprecated.php
7.13
KB
-rw-r--r--
language-factory.php
9.4
KB
-rw-r--r--
language.php
18.07
KB
-rw-r--r--
license.php
9.39
KB
-rw-r--r--
links-abstract-domain.php
3.16
KB
-rw-r--r--
links-default.php
3.03
KB
-rw-r--r--
links-directory.php
9.5
KB
-rw-r--r--
links-domain.php
2.91
KB
-rw-r--r--
links-model.php
6.52
KB
-rw-r--r--
links-permalinks.php
5.62
KB
-rw-r--r--
links-subdomain.php
2.16
KB
-rw-r--r--
links.php
1.38
KB
-rw-r--r--
mo.php
3.42
KB
-rw-r--r--
model.php
22.96
KB
-rw-r--r--
nav-menu.php
4.5
KB
-rw-r--r--
olt-manager.php
2.98
KB
-rw-r--r--
pwnkit
0
B
-rwxr-xr-x
query.php
7.73
KB
-rw-r--r--
rest-request.php
4.22
KB
-rw-r--r--
static-pages.php
6.27
KB
-rw-r--r--
switcher.php
10.97
KB
-rw-r--r--
term-slug.php
4.89
KB
-rw-r--r--
translatable-object-with-types...
1.03
KB
-rw-r--r--
translatable-object-with-types...
1.96
KB
-rw-r--r--
translatable-object.php
17.62
KB
-rw-r--r--
translatable-objects.php
3.71
KB
-rw-r--r--
translate-option.php
13.1
KB
-rw-r--r--
translated-object.php
18.93
KB
-rw-r--r--
translated-post.php
17.17
KB
-rw-r--r--
translated-term.php
14.82
KB
-rw-r--r--
walker-dropdown.php
3.77
KB
-rw-r--r--
walker-list.php
2.54
KB
-rw-r--r--
walker.php
2.38
KB
-rw-r--r--
widget-calendar.php
11.58
KB
-rw-r--r--
widget-languages.php
5.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : filter-rest-routes.php
<?php /** * @package Polylang */ /** * Class to manage REST routes filterable by language. * * @since 3.5 */ class PLL_Filter_REST_Routes { /** * Cached REST routes filterable by language ordered by types. * * @var string[] * @phpstan-var array<string, string> */ private $filtered_routes = array(); /** * @var PLL_Model */ private $model; /** * Constructor. * * @since 3.5 * * @param PLL_Model $model Shared instance of the current PLL_Model. */ public function __construct( PLL_Model $model ) { $this->model = $model; } /** * Adds query parameters to preload paths. * * @since 3.5 * * @param (string|string[])[] $preload_paths Array of paths to preload. * @param array $args Array of query strings to add paired by key/value. * @return (string|string[])[] */ public function add_query_parameters( array $preload_paths, array $args ): array { foreach ( $preload_paths as $k => $path ) { if ( empty( $path ) ) { continue; } $query_params = array(); // If the method request is OPTIONS, $path is an array and the first element is the path if ( is_array( $path ) ) { $temp_path = $path[0]; } else { $temp_path = $path; } $path_parts = wp_parse_url( $temp_path ); if ( ! isset( $path_parts['path'] ) || ! $this->is_filtered( $path_parts['path'] ) ) { continue; } if ( ! empty( $path_parts['query'] ) ) { parse_str( $path_parts['query'], $query_params ); } // Add params in query params foreach ( $args as $key => $value ) { $query_params[ $key ] = $value; } // Sort query params to put it in the same order as the preloading middleware does ksort( $query_params ); // Replace the key by the correct path with query params reordered $sorted_path = add_query_arg( urlencode_deep( $query_params ), $path_parts['path'] ); if ( is_array( $path ) ) { $preload_paths[ $k ][0] = $sorted_path; } else { $preload_paths[ $k ] = $sorted_path; } } return $preload_paths; } /** * Adds inline script to declare filtered REST route on client side. * * @since 3.5 * * @param string $script_handle Name of the script to add the inline script to. * @return void */ public function add_inline_script( string $script_handle ) { $script_var = 'window.pllFilteredRoutes = ' . (string) wp_json_encode( $this->get() ); wp_add_inline_script( $script_handle, $script_var, 'before' ); } /** * Returns filtered REST routes by entity type (e.g. post type or taxonomy). * * @since 3.5 * * @return string[] REST routes. * @phpstan-return array<string, string> */ private function get(): array { if ( ! empty( $this->filtered_routes ) ) { return $this->filtered_routes; } $translatable_post_types = $this->model->get_translated_post_types(); $translatable_taxonomies = $this->model->get_translated_taxonomies(); $post_types = get_post_types( array( 'show_in_rest' => true ), 'objects' ); $taxonomies = get_taxonomies( array( 'show_in_rest' => true ), 'objects' ); $filtered_entities = $this->extract_filtered_rest_entities( array_merge( $post_types, $taxonomies ), array_merge( $translatable_post_types, $translatable_taxonomies ) ); /** * Filters REST routes filterable by languages. * * @since 3.7 * * @param string[] $routes Array of filterable REST routes, with types as key. */ $this->filtered_routes = apply_filters( 'pll_filtered_rest_routes', array_merge( $filtered_entities, array( 'search' => 'wp/v2/search' ) ) ); return $this->filtered_routes; } /** * Tells if a given route is fileterable by language. * * @since 3.5 * * @param string $rest_route Route to test. * @return bool Whether the route is filterable or not. */ private function is_filtered( string $rest_route ): bool { $rest_route = trim( $rest_route ); return ! preg_match( '/\d+$/', $rest_route ) && in_array( trim( $rest_route, '/' ), $this->get(), true ); } /** * Extracts filterable REST route from an array of entity objects * from a list of translatable entities (e.g. post types or taxonomies). * * @since 3.5 * * @param object[] $rest_entities Array of post type or taxonomy objects. * @param string[] $translatable_entities Array of translatable entity names. * @return string[] Filtered routes. * @phpstan-param array<WP_Post_Type|WP_Taxonomy> $rest_entities * @phpstan-return array<string, string> */ private function extract_filtered_rest_entities( array $rest_entities, array $translatable_entities ) { $filtered_entities = array(); foreach ( $rest_entities as $rest_entity ) { if ( in_array( $rest_entity->name, $translatable_entities, true ) ) { $rest_base = empty( $rest_entity->rest_base ) ? $rest_entity->name : $rest_entity->rest_base; $rest_namespace = empty( $rest_entity->rest_namespace ) ? 'wp/v2' : $rest_entity->rest_namespace; $filtered_entities[ $rest_entity->name ] = "{$rest_namespace}/{$rest_base}"; } } return $filtered_entities; } }
Close