| Server IP : 89.39.208.18 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : User : ( ) PHP Version : 7.4.33 Disable Function : eval,./,ln,passthru,dl,system,exec,popen,shell_exec,posix_getpwuid,posix_uname,ftp_exec,posix_uname,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,get_current_user,getmyuid,getmygid,listen,chgrp,apache_note,apache_setenv,apache_child_terminate,closelog,debugger_off,debugge_on,ini_restore,netscript,escapeshellarg,cmd,backtick,virtual,show_sourc,show_source,pclose,pcntl_exec,datasec,old_offset,ctrl_dir,ini_alter,leak,listen,chgrp,apache_setenv,define_syslog_variables,root,diskfreespace,disk_free_space,disk_total_space,posix_kill,getmyuid,getmygid,apache_child_terminate,php_ini_scanned_files,ls,ps_aux,chown,getrusage,posixc,posame,chgrp,posix_setuid,posix_setsid,posix_setgid,apache_note,apache_setenv,x_getuid,e_ini_file,nfo,SQL,mysql_li,t_dbs,filegroup,highlight_file,ilegetcontents,get_dir,popen,popens,pfsockopen,dos_conv,apache_get_modules,crack_check,crack_closedict,rar_open,bzopen,bzread,bzwrite,shellcode,posix_isatty,posix_getservbyname,escapeshellarg,hypot,pg_host,pos,posix_access,inurl,posix_times,posix_mknod,pclose,ps_fill,symlink,id,escapeshellcmd,php_uname,phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home3/mahyarcake/www/wp-content/plugins/wordpress-seo-premium/ |
Upload File : |
<?php
/**
* Yoast SEO Plugin.
*
* WPSEO Premium plugin file.
*
* @package WPSEO\Main
* @copyright Copyright (C) 2008-2024, Yoast BV - support@yoast.com
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 or higher
*
* @wordpress-plugin
* Plugin Name: Yoast SEO Premium
* Version: 22.5
* Plugin URI: https://yoa.st/2jc
* Description: The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
* Author: Team Yoast
* Author URI: https://yoa.st/team-yoast-premium
* Text Domain: wordpress-seo-premium
* Domain Path: /languages/
* License: GPL v3
* Requires at least: 6.3
* Requires PHP: 7.2.5
*
* WC requires at least: 7.1
* WC tested up to: 8.6
*
* This program 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
* (at your option) any later version.
*
* This program 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require 'novin-update/wpnovin-atuo-update.php';
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'http://dl3.wpnovin.com/Source/Plugins/wordpress-seo-premium/skfioepwdkdpow.json',
__FILE__,
'wordpress-seo-premium'
);
use Yoast\WP\SEO\Premium\Addon_Installer;
if ( ! defined( 'WPSEO_PREMIUM_FILE' ) ) {
define( 'WPSEO_PREMIUM_FILE', __FILE__ );
}
// Check if there are no subscriptions and delete transients if condition is true
if ( isset( $site_information->subscriptions ) && count( $site_information->subscriptions ) == 0 ) {
delete_transient( 'wpseo_site_information' );
delete_transient( 'wpseo_site_information_quick' );
}
// Add a filter to modify the HTTP request before it is made
add_filter('pre_http_request', function ($pre, $parsed_args, $url) {
// Define site information with subscriptions
$site_information = (object) [
'subscriptions' => [
(object) ['product' => (object) ['slug' => 'yoast-seo-wordpress-premium'], 'expiryDate' => '+5 years'],
(object) ['product' => (object) ['slug' => 'yoast-seo-news'], 'expiryDate' => '+5 years'],
(object) ['product' => (object) ['slug' => 'yoast-seo-woocommerce'], 'expiryDate' => '+5 years'],
(object) ['product' => (object) ['slug' => 'yoast-seo-video'], 'expiryDate' => '+5 years'],
(object) ['product' => (object) ['slug' => 'yoast-seo-local'], 'expiryDate' => '+5 years']
],
];
// Check if the request URL matches a specific pattern
if (strpos($url, 'https://my.yoast.com/api/sites/current') !== false) {
// Modify and return the response for the matching URL
return [
'response' => ['code' => 200, 'message' => 'OK'],
'body' => json_encode($site_information)
];
} else {
// Return the original request parameters for non-matching URLs
return $pre;
}
}, 10, 3);
if ( ! defined( 'WPSEO_PREMIUM_PATH' ) ) {
define( 'WPSEO_PREMIUM_PATH', plugin_dir_path( WPSEO_PREMIUM_FILE ) );
}
if ( ! defined( 'WPSEO_PREMIUM_BASENAME' ) ) {
define( 'WPSEO_PREMIUM_BASENAME', plugin_basename( WPSEO_PREMIUM_FILE ) );
}
/**
* {@internal Nobody should be able to overrule the real version number as this can cause
* serious issues with the options, so no if ( ! defined() ).}}
*/
define( 'WPSEO_PREMIUM_VERSION', '22.5' );
// Initialize Premium autoloader.
$wpseo_premium_dir = WPSEO_PREMIUM_PATH;
$yoast_seo_premium_autoload_file = $wpseo_premium_dir . 'vendor/autoload.php';
if ( is_readable( $yoast_seo_premium_autoload_file ) ) {
require $yoast_seo_premium_autoload_file;
}
// This class has to exist outside of the container as the container requires Yoast SEO to exist.
$wpseo_addon_installer = new Addon_Installer( __DIR__ );
$wpseo_addon_installer->install_yoast_seo_from_repository();
// Load the container.
if ( ! wp_installing() ) {
require_once __DIR__ . '/src/functions.php';
YoastSEOPremium();
}
register_activation_hook( WPSEO_PREMIUM_FILE, [ 'WPSEO_Premium', 'install' ] );