���� JFIF fdasasfas213sdaf
Server IP : 91.108.106.221 / Your IP : 216.73.216.210 Web Server : LiteSpeed System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64 User : u479334040 ( 479334040) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u479334040/domains/omjaindia.com/public_html/wp-content/plugins/hostinger/includes/ |
Upload File : |
<?php namespace Hostinger; defined( 'ABSPATH' ) || exit; class Helper { const HOSTINGER_LOCALES = array( 'lt_LT' => 'hostinger.lt', 'uk_UA' => 'hostinger.com.ua', 'id_ID' => 'hostinger.co.id', 'en_US' => 'hostinger.com', 'es_ES' => 'hostinger.es', 'es_AR' => 'hostinger.com.ar', 'es_MX' => 'hostinger.mx', 'es_CO' => 'hostinger.co', 'pt_BR' => 'hostinger.com.br', 'ro_RO' => 'hostinger.ro', 'fr_FR' => 'hostinger.fr', 'it_IT' => 'hostinger.it', 'pl_PL' => 'hostinger.pl', 'en_PH' => 'hostinger.ph', 'ar_AE' => 'hostinger.ae', 'ms_MY' => 'hostinger.my', 'ko_KR' => 'hostinger.kr', 'vi_VN' => 'hostinger.vn', 'th_TH' => 'hostinger.in.th', 'tr_TR' => 'hostinger.web.tr', 'pt_PT' => 'hostinger.pt', 'de_DE' => 'hostinger.de', 'en_IN' => 'hostinger.in', 'ja_JP' => 'hostinger.jp', 'nl_NL' => 'hostinger.nl', 'en_GB' => 'hostinger.co.uk', 'el_GR' => 'hostinger.gr', 'cs_CZ' => 'hostinger.cz', 'hu_HU' => 'hostinger.hu', 'sv_SE' => 'hostinger.se', 'da_DK' => 'hostinger.dk', 'fi_FI' => 'hostinger.fi', 'sk_SK' => 'hostinger.sk', 'no_NO' => 'hostinger.no', 'hr_HR' => 'hostinger.hr', 'zh_HK' => 'hostinger.com.hk', 'he_IL' => 'hostinger.co.il', 'lv_LV' => 'hostinger.lv', 'et_EE' => 'hostinger.ee', 'ur_PK' => 'hostinger.pk', ); public const HOMEPAGE_DISPLAY = 'page'; /** * * Check if plugin is active * * @since 1.0.0 * @access public */ public static function is_plugin_active( $plugin_slug ): bool { $active_plugins = (array) get_option( 'active_plugins', array() ); foreach ( $active_plugins as $active_plugin ) { if ( strpos( $active_plugin, $plugin_slug . '.php' ) !== false ) { return true; } } return false; } public function is_preview_domain( $headers = null ): bool { // @codeCoverageIgnoreStart if ( $headers === null && function_exists( 'getallheaders' ) ) { $headers = getallheaders(); } // @codeCoverageIgnoreEnd if ( isset( $headers['X-Preview-Indicator'] ) && $headers['X-Preview-Indicator'] ) { return true; } return false; } public static function woocommerce_onboarding_choice(): bool { return (bool) get_option( 'hostinger_woo_onboarding_choice', false ); } public static function generate_bypass_code( $length ) { $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; $code = ''; $max_index = strlen( $characters ) - 1; for ( $i = 0; $i < $length; $i++ ) { $random_index = wp_rand( 0, $max_index ); $code .= $characters[ $random_index ]; } return $code; } public function should_plugin_split_notice_shown() { $plugin_split_notice_hidden = get_option( 'hts_plugin_split_notice_hidden', false ); if ( $plugin_split_notice_hidden !== false ) { return false; } if ( ! version_compare( HOSTINGER_VERSION, '3.0.0', '>=' ) ) { return false; } if ( is_plugin_active( 'hostinger-easy-onboarding/hostinger-easy-onboarding.php' ) ) { return false; } return true; } public function get_hostinger_plugin_url(): string { $website_locale = get_locale() ?? 'en_US'; $reseller_locale = get_option( 'hostinger_reseller', null ); $base_domain = $reseller_locale ?? ( self::HOSTINGER_LOCALES[ $website_locale ] ?? 'hostinger.com' ); $plugin_url = rtrim( $base_domain, '/' ) . '/'; $plugin_url .= str_replace( ABSPATH, '', HOSTINGER_ABSPATH ); return $plugin_url; } public function get_recommended_php_version(): string { $wp_version = get_bloginfo( 'version' ); if ( empty( $wp_version ) ) { return '8.2'; } // Remove any additional version info (like -RC1, -beta1, etc.). $wp_version = preg_replace( '/[-+].*$/', '', $wp_version ); if ( version_compare( $wp_version, '6.6', '>=' ) ) { return '8.2'; } if ( version_compare( $wp_version, '6.3', '>=' ) ) { return '8.1'; } if ( version_compare( $wp_version, '5.3', '>=' ) ) { return '7.4'; } if ( version_compare( $wp_version, '5.0', '>=' ) ) { return '7.3'; } if ( version_compare( $wp_version, '4.9', '=' ) ) { return '7.2'; } if ( version_compare( $wp_version, '4.7', '>=' ) ) { return '7.1'; } if ( version_compare( $wp_version, '4.4', '>=' ) ) { return '7.0'; } return '5.6'; } public function get_edit_site_url(): string { if ( wp_is_block_theme() ) { return add_query_arg( array( 'canvas' => 'edit', ), admin_url( 'site-editor.php' ) ); } $show_on_front = get_option( 'show_on_front' ); $front_page_id = get_option( 'page_on_front' ); if ( $show_on_front === self::HOMEPAGE_DISPLAY && $front_page_id ) { return add_query_arg( array( 'post' => $front_page_id, 'action' => 'edit', ), admin_url( 'post.php' ) ); } return ''; } }