File manager - Edit - /home/u478019808/domains/bestandroidphones.store/public_html/static/img/logo/mu-plugins.tar
Back
hostinger-auto-updates.php 0000644 00000006625 15024366166 0011712 0 ustar 00 <?php /** * Plugin Name: Hostinger Smart Auto Updates * Plugin URI: https://www.hostinger.com * Description: Faster and more secure updates for your themes, plugins, and core files. Managed entirely by Hostinger. * Version: 1.0.7 * Author: Hostinger * Author URI: https://www.hostinger.com * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: hostinger-auto-updates * Domain Path: /languages * Requires at least: 5.0 * Requires PHP: 7.4 * Network: true */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Disable automatic updates */ add_filter( 'automatic_updater_disabled', '__return_true' ); // Core updates add_filter( 'auto_update_theme', '__return_false' ); // Theme updates add_filter( 'auto_update_plugin', '__return_false' ); // Plugin updates /** * Use Hostinger's proxy services for WordPress.org API and download requests. * * @param mixed $response_override Response to replace with. * @param array $args HTTP request arguments. * @param string $url Request URL. * @return mixed */ if ( ! function_exists( 'hostinger_use_proxy_services' ) ) { function hostinger_use_proxy_services( $response_override, $args, $url ) { $proxy_domains = [ 'api.wordpress.org' => 'wpapi.hostinger.io', 'downloads.wordpress.org' => 'wpdownloads.hostinger.io', ]; foreach ( $proxy_domains as $original_domain => $proxy_domain ) { if ( strpos( $url, $original_domain ) !== false ) { $proxy_url = str_replace( $original_domain, $proxy_domain, $url ); $response = wp_remote_request( $proxy_url, $args ); return $response; } } return $response_override; } } add_filter( 'pre_http_request', 'hostinger_use_proxy_services', 10, 3 ); /** * Modify the default auto-update tests. * * @param array $tests The array of site status tests. * @return array Modified array of site status tests. */ if ( ! function_exists( 'hostinger_change_default_autoupdates_test' ) ) { function hostinger_change_default_autoupdates_test( $tests ) { // Remove default auto-update tests unset( $tests['async']['background_updates'] ); unset( $tests['direct']['plugin_theme_auto_updates'] ); // Add a new test to indicate Hostinger manages updates $tests['direct']['hostinger_plugin_theme_auto_updates'] = [ 'label' => __( 'Auto-updates managed by Hostinger' ), 'test' => function () { $result = [ 'label' => __( 'Automatic updates managed by Hostinger' ), 'status' => 'good', 'badge' => [ 'label' => __( 'Security' ), 'color' => 'blue', ], 'description' => __( 'Automatic updates ensure your site is always running the latest and most secure versions of WordPress, plugins, and themes.' ), 'actions' => '', 'test' => 'hostinger_managed_updates', ]; return $result; }, ]; return $tests; } } add_filter( 'site_status_tests', 'hostinger_change_default_autoupdates_test' ); elementor-safe-mode.php 0000644 00000007466 15024431664 0011127 0 ustar 00 <?php /** * Plugin Name: Elementor Safe Mode * Description: Safe Mode allows you to troubleshoot issues by only loading the editor, without loading the theme or any other plugin. * Plugin URI: https://elementor.com/?utm_source=safe-mode&utm_campaign=plugin-uri&utm_medium=wp-dash * Author: Elementor.com * Version: 1.0.0 * Author URI: https://elementor.com/?utm_source=safe-mode&utm_campaign=author-uri&utm_medium=wp-dash * * Text Domain: elementor * * @package Elementor * @category Safe Mode * * Elementor is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Elementor is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Safe_Mode { const OPTION_ENABLED = 'elementor_safe_mode'; const OPTION_TOKEN = self::OPTION_ENABLED . '_token'; public function is_enabled() { return get_option( self::OPTION_ENABLED ); } public function is_valid_token() { $token = isset( $_COOKIE[ self::OPTION_TOKEN ] ) ? wp_kses_post( wp_unslash( $_COOKIE[ self::OPTION_TOKEN ] ) ) : null; if ( $token && get_option( self::OPTION_TOKEN ) === $token ) { return true; } return false; } public function is_requested() { return ! empty( $_REQUEST['elementor-mode'] ) && 'safe' === $_REQUEST['elementor-mode']; } public function is_editor() { return is_admin() && isset( $_GET['action'] ) && 'elementor' === $_GET['action']; } public function is_editor_preview() { return isset( $_GET['elementor-preview'] ); } public function is_editor_ajax() { // PHPCS - There is already nonce verification in the Ajax Manager return is_admin() && isset( $_POST['action'] ) && 'elementor_ajax' === $_POST['action']; // phpcs:ignore WordPress.Security.NonceVerification.Missing } public function add_hooks() { add_filter( 'pre_option_active_plugins', function () { return get_option( 'elementor_safe_mode_allowed_plugins' ); } ); add_filter( 'pre_option_stylesheet', function () { return 'elementor-safe'; } ); add_filter( 'pre_option_template', function () { return 'elementor-safe'; } ); add_action( 'elementor/init', function () { do_action( 'elementor/safe_mode/init' ); } ); } /** * Plugin row meta. * * Adds row meta links to the plugin list table * * Fired by `plugin_row_meta` filter. * * @access public * * @param array $plugin_meta An array of the plugin's metadata, including * the version, author, author URI, and plugin URI. * @param string $plugin_file Path to the plugin file, relative to the plugins * directory. * * @return array An array of plugin row meta links. */ public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) { if ( basename( __FILE__ ) === $plugin_file ) { $row_meta = [ 'docs' => '<a href="https://go.elementor.com/safe-mode/" target="_blank">' . esc_html__( 'Learn More', 'elementor' ) . '</a>', ]; $plugin_meta = array_merge( $plugin_meta, $row_meta ); } return $plugin_meta; } public function __construct() { add_filter( 'plugin_row_meta', [ $this, 'plugin_row_meta' ], 10, 4 ); $enabled_type = $this->is_enabled(); if ( ! $enabled_type || ! $this->is_valid_token() ) { return; } if ( ! $this->is_requested() && 'global' !== $enabled_type ) { return; } if ( ! $this->is_editor() && ! $this->is_editor_preview() && ! $this->is_editor_ajax() ) { return; } $this->add_hooks(); } } new Safe_Mode();
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings