Esempio n. 1
0
    {
        add_option('moecdn_activete', true);
    }
    public static function redirect()
    {
        if (is_admin() && get_option('moecdn_activete', false)) {
            delete_option('moecdn_activete');
            wp_redirect(admin_url('options-general.php?page=moecdn'));
        }
    }
    public static function collect()
    {
        $n = base64_encode(get_bloginfo('name'));
        $u = base64_encode(get_bloginfo('url'));
        $v = base64_encode(get_bloginfo('version'));
        ?>
		<iframe style="display:none !important;display:none;visibility:hidden" src="https://api.nnya.cat/collect/?t=wordpress&n=<?php 
        echo $n;
        ?>
&u=<?php 
        echo $u;
        ?>
&v=<?php 
        echo $v;
        ?>
"></iframe>
		<?php 
    }
}
MoeCDN::init();