LISA7

Рейтинг
1
Регистрация
19.03.2013

Отвечаю по порядку.

SeVlad, Titanium написал, что этот сайт может распространять вредоносное по, или быть вовлечен в подлог и мошенничество.

Так вот я же и не знаю в каком из файлов искать. Какой файл скопировать? Может исходный код страницы?

---------- Добавлено 21.03.2013 в 18:49 ----------

kgtu5, а откуда это обращение к сайту? не знаком такой сайт. А где поправить код? Простите за тупость(((

Вот такое сообщение антивируса:

Trend Micro подтверждает, что данный веб-сайт может передавать вредоносное программное обеспечение или быть вовлеченным в сетевое мошенничество или подлог.

Закрыть это окно

Открыть эту страницу вопреки риску?

Открыть заблокированную страницу

Попросите Trend Micro пересмотреть степень риска (если уверены, что веб-сайт безопасен).

Больше не блокировать (добавить его в список разрешенных сайтов)

---------- Добавлено 21.03.2013 в 18:52 ----------

SeVlad, а что начит тема взята на помоке???

кстати, ссылку, которую вы выложили для понимания Титаниум тоже запретил к открытию в браузере)). Это о чем - нибудь вам скажет?

Тема Libero для Wordpress. Какие файлы нужны? вот, выкладываю, если нужно другие - напишите.

---------- Добавлено 21.03.2013 в 18:56 ----------

functions.php

<?php

require TEMPLATEPATH . '/lib/shortcodes/shortcodes.php';

require TEMPLATEPATH . '/lib/features.php';

if ( function_exists('register_sidebar') ) {

register_sidebar(array(

'name' => 'Left Sidebar',

'before_widget' => '<li id="%1$s" class="widget %2$s">',

'after_widget' => '</li>',

'before_title' => '<h2 class="widgettitle">',

'after_title' => '</h2>',

));

register_sidebar(

array(

'name' => 'Right Sidebar',

'before_widget' => '<li id="%1$s" class="widget %2$s">',

'after_widget' => '</li>',

'before_title' => '<h2 class="widgettitle">',

'after_title' => '</h2>',

));

}

$themename = "Libera";

$shortname = str_replace(' ', '_', strtolower($themename));

function get_theme_option($option)

{

global $shortname;

return stripslashes(get_option($shortname . '_' . $option));

}

function get_theme_settings($option)

{

return stripslashes(get_option($option));

}

function cats_to_select()

{

$categories = get_categories('hide_empty=0');

$categories_array[] = array('value'=>'0', 'title'=>'Select');

foreach ($categories as $cat) {

if($cat->category_count == '0') {

$posts_title = 'No posts!';

} elseif($cat->category_count == '1') {

$posts_title = '1 post';

} else {

$posts_title = $cat->category_count . ' posts';

}

$categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');

}

return $categories_array;

}

$options = array (

array( "type" => "open"),

array( "name" => "Contact Form Email",

"desc" => "The messages submitted from the contact form will be sent to this email address.",

"id" => $shortname."_contact_form_email",

"std" => get_option('admin_email'),

"type" => "text"),

array( "name" => "Logo Image",

"desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",

"id" => $shortname."_logo",

"std" => get_bloginfo('template_url') . "/images/logo.png",

"type" => "text"),

array( "name" => "Featured Posts Enabled?",

"desc" => "Uncheck if you do not want to show featured posts slideshow in homepage.",

"id" => $shortname."_featured_posts",

"std" => "true",

"type" => "checkbox"),

array( "name" => "Featured Posts Category",

"desc" => "Last 5 posts form the selected categoey will be listed as featured at homepage. <br />The selected category should contain at last 2 posts with images. <br /> <br /> <b>How to add images to your featured posts slideshow?</b> <br />

<b>&raquo;</b> If you are using WordPress version 2.9 and above: Just set \"Post Thumbnail\" when adding new post for the posts in selected category above. <br />

<b>&raquo;</b> If you are using WordPress version under 2.9 you have to add custom fields in each post on the category you set as featured category. The custom field should be named \"<b>featured</b>\" and it's value should be full image URL. <a href=\"http://newwpthemes.com/public/featured_custom_field.jpg\" target=\"_blank\">Click here</a> for a screenshot. <br /> <br />

In both situation, the image sizes should be: Width: <b>520 px</b>. Height: <b>300 px.</b>",

"id" => $shortname."_featured_posts_category",

"options" => cats_to_select(),

"std" => "0",

"type" => "select"),

array( "name" => "Header Banner (468x60 px)",

"desc" => "Header banner code. You may use any html code here, including your 468x60 px Adsense code.",

"id" => $shortname."_ad_header",

"type" => "textarea",

"std" => ''

), array( "name" => "Sidebar 125x125 px Ads",

"desc" => "Add your 125x125 px ads here. You can add unlimited ads. Each new banner should be in new line with using the following format: <br/>http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html",

"id" => $shortname."_ads_125",

"type" => "textarea",

"std" => 'http://newwpthemes.com/uploads/newwp/newwp12.png,http://newwpthemes.com/

http://flexithemes.com/wp-content/partners/fta.gif, http://flexithemes.com/?partner=19'

),

array( "name" => "Twitter",

"desc" => "Enter your twitter account url here.",

"id" => $shortname."_twitter",

"std" => "http://twitter.com/WPTwits",

"type" => "text"),

array( "name" => "Twitter Text",

"desc" => "",

"id" => $shortname."_twittertext",

"std" => "Follow me!",

"type" => "text"),

array( "name" => "Sidebar 1 Bottom Banner",

"desc" => "Sidebar 1 Bottom Banner code.",

"id" => $shortname."_ad_sidebar1_bottom",

"type" => "textarea",

"std" => ''

), array( "name" => "Sidebar 2 Bottom Banner",

"desc" => "Sidebar 2 Bottom Banner code.",

"id" => $shortname."_ad_sidebar2_bottom",

"type" => "textarea",

"std" => ''

), array( "name" => "Head Scrip(s)",

"desc" => "The content of this box will be added immediately before &lt;/head&gt; tag. Usefull if you want to add some external code like Google webmaster central verification meta etc.",

"id" => $shortname."_head",

"type" => "textarea"

),

array( "name" => "Footer Scrip(s)",

"desc" => "The content of this box will be added immediately before &lt;/body&gt; tag. Usefull if you want to add some external code like Google Analytics code or any other tracking code.",

"id" => $shortname."_footer",

"type" => "textarea"

),

array( "type" => "close")

);

function mytheme_add_admin() {

global $themename, $shortname, $options;

if ( $_GET['page'] == basename(__FILE__) ) {

if ( 'save' == $_REQUEST['action'] ) {

foreach ($options as $value) {

update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }

foreach ($options as $value) {

if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }

echo '<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';

die;

}

}

add_theme_page($themename . " Theme Options", "".$themename . " Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');

}

function mytheme_admin_init() {

global $themename, $shortname, $options;

$get_theme_options = get_option($shortname . '_options');

if($get_theme_options != 'yes') {

$new_options = $options;

foreach ($new_options as $new_value) {

update_option( $new_value['id'], $new_value['std'] );

}

update_option($shortname . '_options', 'yes');

}

}

12
Всего: 11