Version Description
- Remove the check for include and require commands (#wpforce)
Download this release
Release Info
Developer | sergej.mueller |
Plugin | AntiVirus |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- antivirus.php +13 -7
- js/script.js +4 -5
- js/script.orginal.js +1 -1
- lang/antivirus-de_DE.mo +0 -0
- lang/antivirus-de_DE.po +1 -1
- readme.txt +3 -0
antivirus.php
CHANGED
@@ -7,7 +7,7 @@ Description: Security solution as a smart, effectively plugin to protect your bl
|
|
7 |
Author: Sergej Müller
|
8 |
Author URI: http://wpseo.de
|
9 |
Plugin URI: http://wpantivirus.com
|
10 |
-
Version: 1.3.
|
11 |
*/
|
12 |
|
13 |
|
@@ -543,9 +543,11 @@ class AntiVirus {
|
|
543 |
/* Ab WP 3.4 */
|
544 |
if ( function_exists('wp_get_theme') ) {
|
545 |
/* Init */
|
546 |
-
$
|
547 |
-
$
|
548 |
-
|
|
|
|
|
549 |
/* Leer? */
|
550 |
if ( empty($name) or empty($files) ) {
|
551 |
return false;
|
@@ -554,6 +556,7 @@ class AntiVirus {
|
|
554 |
/* Rückgabe */
|
555 |
return array(
|
556 |
'Name' => $name,
|
|
|
557 |
'Template Files' => $files
|
558 |
);
|
559 |
/* Bis WP 3.4 */
|
@@ -611,7 +614,7 @@ class AntiVirus {
|
|
611 |
* Rückgabe des Namen des aktuellen Theme
|
612 |
*
|
613 |
* @since 0.1
|
614 |
-
* @change
|
615 |
*
|
616 |
* @return string $theme Name des aktuellen Theme
|
617 |
*/
|
@@ -619,7 +622,10 @@ class AntiVirus {
|
|
619 |
private static function get_theme_name()
|
620 |
{
|
621 |
if ( $theme = self::get_current_theme() ) {
|
622 |
-
if (!empty($theme['
|
|
|
|
|
|
|
623 |
return $theme['Name'];
|
624 |
}
|
625 |
}
|
@@ -808,7 +814,7 @@ class AntiVirus {
|
|
808 |
|
809 |
private static function get_preg_match()
|
810 |
{
|
811 |
-
return '/(assert|file_get_contents|curl_exec|popen|proc_open|unserialize|eval|base64_encode|base64_decode|create_function|exec|shell_exec|system|passthru|ob_get_contents|file|curl_init|readfile|fopen|fsockopen|pfsockopen|fclose|fread|
|
812 |
}
|
813 |
|
814 |
|
7 |
Author: Sergej Müller
|
8 |
Author URI: http://wpseo.de
|
9 |
Plugin URI: http://wpantivirus.com
|
10 |
+
Version: 1.3.2
|
11 |
*/
|
12 |
|
13 |
|
543 |
/* Ab WP 3.4 */
|
544 |
if ( function_exists('wp_get_theme') ) {
|
545 |
/* Init */
|
546 |
+
$theme = wp_get_theme();
|
547 |
+
$name = $theme->get('Name');
|
548 |
+
$slug = $theme->get_stylesheet();
|
549 |
+
$files = $theme->get_files('php', 1);
|
550 |
+
|
551 |
/* Leer? */
|
552 |
if ( empty($name) or empty($files) ) {
|
553 |
return false;
|
556 |
/* Rückgabe */
|
557 |
return array(
|
558 |
'Name' => $name,
|
559 |
+
'Slug' => $slug,
|
560 |
'Template Files' => $files
|
561 |
);
|
562 |
/* Bis WP 3.4 */
|
614 |
* Rückgabe des Namen des aktuellen Theme
|
615 |
*
|
616 |
* @since 0.1
|
617 |
+
* @change 1.3.1
|
618 |
*
|
619 |
* @return string $theme Name des aktuellen Theme
|
620 |
*/
|
622 |
private static function get_theme_name()
|
623 |
{
|
624 |
if ( $theme = self::get_current_theme() ) {
|
625 |
+
if ( !empty($theme['Slug']) ) {
|
626 |
+
return $theme['Slug'];
|
627 |
+
}
|
628 |
+
if ( !empty($theme['Name']) ) {
|
629 |
return $theme['Name'];
|
630 |
}
|
631 |
}
|
814 |
|
815 |
private static function get_preg_match()
|
816 |
{
|
817 |
+
return '/(assert|file_get_contents|curl_exec|popen|proc_open|unserialize|eval|base64_encode|base64_decode|create_function|exec|shell_exec|system|passthru|ob_get_contents|file|curl_init|readfile|fopen|fsockopen|pfsockopen|fclose|fread|file_put_contents|iframe)\s*?\(/';
|
818 |
}
|
819 |
|
820 |
|
js/script.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
jQuery(document).ready(function(b){function g(a){var d=parseInt(a||0);b.post(av_ajax,{action:"get_ajax_response",_ajax_nonce:av_nonce,_theme_file:av_files[d],_action_request:"check_theme_file"},function(c){var a=b("#av_template_"+d);if(c){c=eval("("+c+")");if(!c.nonce||c.nonce!=av_nonce)return;a.addClass("danger");for(var e=c.data,f=e.length,c=0;c<f;c+=3){
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
b("#av_cronjob_enable").click(f);f()});
|
1 |
+
jQuery(document).ready(function(b){function g(a){var d=parseInt(a||0);b.post(av_ajax,{action:"get_ajax_response",_ajax_nonce:av_nonce,_theme_file:av_files[d],_action_request:"check_theme_file"},function(c){var a=b("#av_template_"+d);if(c){c=eval("("+c+")");if(!c.nonce||c.nonce!=av_nonce)return;a.addClass("danger");for(var e=c.data,f=e.length,c=0;c<f;c+=3){parseInt(e[c]);var h=e[c+2],i=e[c+1].replace(/@span@/g,"<span>").replace(/@\/span@/g,"</span>");a.text();a.append('<p><a href="#" id="'+h+'">'+
|
2 |
+
av_msg_1+"</a> <code>"+i+"</code></p>");b("#"+h).click(function(){b.post(av_ajax,{action:"get_ajax_response",_ajax_nonce:av_nonce,_file_md5:b(this).attr("id"),_action_request:"update_white_list"},function(a){if(a){a=eval("("+a+")");if(a.nonce&&a.nonce==av_nonce){a=b("#"+a.data[0]).parent();a.parent().children().length<=1&&a.parent().hide("slow").remove();a.hide("slow").remove()}}});return false})}}else a.addClass("done");av_files_loaded++;av_files_loaded>=av_files_total?b("#av_manual .alert").text(av_msg_3).fadeIn().fadeOut().fadeIn().fadeOut().fadeIn().animate({opacity:1},
|
3 |
+
500).fadeOut("slow",function(){b(this).empty()}):g(d+1)})}function f(){var a=b("#av_cronjob_enable"),d=a.parents(".form-table").find("input:text");"function"===typeof b.fn.prop?d.prop("disabled",!a.prop("checked")):d.attr("disabled",!a.attr("checked"))}av_nonce=av_settings.nonce;av_ajax=av_settings.ajax;av_theme=av_settings.theme;av_msg_1=av_settings.msg_1;av_msg_2=av_settings.msg_2;av_msg_3=av_settings.msg_3;b("#av_manual a.button").click(function(){b.post(av_ajax,{action:"get_ajax_response",_ajax_nonce:av_nonce,
|
4 |
+
_action_request:"get_theme_files"},function(a){if(a&&(a=eval("("+a+")"),a.nonce&&a.nonce==av_nonce)){var d="";av_files=a.data;av_files_total=av_files.length;av_files_loaded=0;jQuery.each(av_files,function(a,b){d+='<div id="av_template_'+a+'">'+b+"</div>"});b("#av_manual .alert").empty();b("#av_manual .output").empty().append(d);g()}});return!1});b("#av_cronjob_enable").click(f);f()});
|
|
js/script.orginal.js
CHANGED
@@ -54,7 +54,7 @@ jQuery(document).ready(
|
|
54 |
line = lines[i + 1].replace(/@span@/g, '<span>').replace(/@\/span@/g, '</span>'),
|
55 |
file = item.text();
|
56 |
|
57 |
-
item.append('<p><a href="#" id="' + md5 + '">' + av_msg_1 + '</a> <
|
58 |
|
59 |
$('#' + md5).click(
|
60 |
function() {
|
54 |
line = lines[i + 1].replace(/@span@/g, '<span>').replace(/@\/span@/g, '</span>'),
|
55 |
file = item.text();
|
56 |
|
57 |
+
item.append('<p><a href="#" id="' + md5 + '">' + av_msg_1 + '</a> <code>' + line + '</code></p>');
|
58 |
|
59 |
$('#' + md5).click(
|
60 |
function() {
|
lang/antivirus-de_DE.mo
CHANGED
Binary file
|
lang/antivirus-de_DE.po
CHANGED
@@ -31,7 +31,7 @@ msgid "View line"
|
|
31 |
msgstr "Zeige Zeile"
|
32 |
|
33 |
msgid "There is no virus"
|
34 |
-
msgstr "
|
35 |
|
36 |
msgid "Scan finished"
|
37 |
msgstr "Prüfung abgeschlossen"
|
31 |
msgstr "Zeige Zeile"
|
32 |
|
33 |
msgid "There is no virus"
|
34 |
+
msgstr "Als 'Kein Virus' markieren"
|
35 |
|
36 |
msgid "Scan finished"
|
37 |
msgstr "Prüfung abgeschlossen"
|
readme.txt
CHANGED
@@ -43,6 +43,9 @@ Useful plugin that will scan your theme templates for malicious injections. Auto
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 1.3.1 =
|
47 |
* Compatibility with WordPress 3.4
|
48 |
* High-resolution plugin icon for retina displays
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 1.3.2 =
|
47 |
+
* Remove the check for include and require commands (#wpforce)
|
48 |
+
|
49 |
= 1.3.1 =
|
50 |
* Compatibility with WordPress 3.4
|
51 |
* High-resolution plugin icon for retina displays
|