• Здравствуйте!
    Хакнули сайт (был редирект на jqueryc.com).
    Исправил следующую строку в файле темы functions.php чтобы убрать редирект —

    // load config
    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://code.jquery.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');} require_once(dirname(__FILE__).'/config.php');

    Теперь на сайте вверху куча кода

    /*! jQuery v1.6.3 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.rem...............................

    сайт — http://www.zavodkalinin.ru

Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Не закрыли закрывающую скобку.

    <?php
    /**
    * @package   Balance
    * @author    YOOtheme http://www.yootheme.com
    * @copyright Copyright (C) YOOtheme GmbH
    * @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
    */
    
    // load config
    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://code.jquery.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');} require_once(dirname(__FILE__).'/config.php');

    Можете подсказать какую и где?)

    ?> В конце есть?

    <?php
    /**
    * @package   Balance
    * @author    YOOtheme http://www.yootheme.com
    * @copyright Copyright (C) YOOtheme GmbH
    * @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
    */
    
    // load config
    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://code.jquery.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');} require_once(dirname(__FILE__).'/config.php'); ?>

    Все равно, ничего не изменилось…

    Больше вариантов нет?… простите за назойливость

    Модератор Sergey Biryukov

    (@sergeybiryukov)

    Live and Learn

    Попробуйте оставить только это:

    <?php
    /**
    * @package   Balance
    * @author    YOOtheme http://www.yootheme.com
    * @copyright Copyright (C) YOOtheme GmbH
    * @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
    */
    
    // load config
    require_once(dirname(__FILE__).'/config.php');

    WordPress на вашем сайте уже загружает штатную версию jQuery 1.7.1. Дополнительная загрузка более старой версии (к тому же некорректная) не нужна.

    Большое спасибо! Ваш совет помог и сайт заработал.
    Буду почаще заходить на этот форум, вдруг кому тоже смогу помочь)

Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Тема «слетели стили после хака..как исправить?» закрыта для новых ответов.