Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');

/**
 * Class WpMetaSeo
 * Main plugin functions here
 */
class WpMetaSeo
{
    /**
     * Initiated
     *
     * @var boolean
     */
    private static $initiated = false;

    /**
     * Init
     *
     * @return void
     */
    public static function init()
    {
        ob_start();
        if (!self::$initiated) {
            self::initHooks();
        }
    }

    /**
     * Initializes WordPress hooks
     *
     * @return void
     */
    private static function initHooks()
    {
        self::$initiated = true;
    }

    /**
     * Attached to activate_{ plugin_basename( __FILES__ ) } by register_activation_hook()
     *
     * @param string $wp  Default wordpress version
     * @param string $php Default php version
     *
     * @return void
     */
    public static function pluginActivation($wp = '4.0', $php = '5.6.0')
    {
        global $wp_version;

        if (is_multisite() && ms_is_switched()) {
            delete_option('rewrite_rules');
        } else {
            $wpmsseo_rewrite = new MetaSeoRewrite();
            $wpmsseo_rewrite->wpmsScheduleFlush();
        }

        if (version_compare(PHP_VERSION, $php, '<')) {
            $flag = 'PHP';
        } elseif (version_compare($wp_version, $wp, '<')) {
            $flag = 'WordPress';
        } else {
            //Set two param as flags that determine whether show import meta data
            // from other SEO plugin button or not to 0
            update_option('_aio_import_notice_flag', 0);
            update_option('_yoast_import_notice_flag', 0);
            update_option('plugin_to_sync_with', 0);
            self::installDb();
            return;
        }

        $version = 'PHP' === $flag ? $php : $wp;
        deactivate_plugins(basename(__FILE__));
        wp_die(
            '<p>The <strong>WP Meta SEO</strong>
 plugin requires ' . esc_html($flag) . '  version ' . esc_html($version) . ' or greater.</p>',
            'Plugin Activation Error',
            array(
                'response'  => 200,
                'back_link' => true
            )
        );

        if (!class_exists('DOMDocument')) {
            deactivate_plugins(basename(__FILE__));
            wp_die(
                '<p>To active WP Meta SEO plugin , please install  “dom” PHP extension </p>',
                'Plugin Activation Error',
                array(
                    'response'  => 200,
                    'back_link' => true
                )
            );
        }
    }

    /**
     * Attached to deactivate_{ plugin_basename( __FILES__ ) } by register_activation_hook()
     *
     * @return void
     */
    public static function pluginDeactivation()
    {
        if (is_multisite() && ms_is_switched()) {
            delete_option('rewrite_rules');
        } else {
            add_action('shutdown', 'flush_rewrite_rules');
        }
    }

    /**
     * Create metaseo_images table
     *
     * @return void
     */
    public static function installDb()
    {
        global $wpdb;
        $table_name = $wpdb->prefix . 'metaseo_images';

        $sql = 'CREATE TABLE IF NOT EXISTS ' . $table_name . ' (
			  `id` int(11) NOT NULL AUTO_INCREMENT,
			  `post_id` int(11) NOT NULL,
			  `posts_optimized_id` text COLLATE utf8_unicode_ci NOT NULL,
			  `posts_need_to_optimize_id` varchar(1000) COLLATE utf8_unicode_ci NOT NU