-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Released version 1.2 to Wordpress repository
- Loading branch information
Showing
19 changed files
with
943 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
# Silence is golden. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
jQuery(function() { | ||
//initialise tab widget | ||
jQuery("#better-detection-tabs").tabs(); | ||
|
||
//update error count | ||
function better_detection_error_count() { | ||
var trs = Math.max(0,jQuery("#better-detection-tabs-errors").find("tr").length-2); | ||
jQuery("#better-detection-error-count").html(" ("+trs+")"); | ||
} | ||
better_detection_error_count(); | ||
|
||
//handle button clicks | ||
jQuery("#better-detection-tabs").on("click","input",function(e) { | ||
var data = {'action':'better_detection','mode':'unknown','key':ajax_object.key}; | ||
var inp = jQuery(this); | ||
if(inp.hasClass("action-fixed")) { | ||
data.mode = "fixed"; | ||
data.id = inp.attr("id").replace("action-fix-",""); | ||
} | ||
if(inp.hasClass("action-ignore")) { | ||
data.mode = "ignore"; | ||
data.id = inp.attr("id").replace("action-ign-",""); | ||
} | ||
if(inp.hasClass("action-test")) { | ||
data.val = inp.siblings("input").val(); | ||
if(data.val) { | ||
data.mode = "test"; | ||
data.id = inp.attr("id").replace("action-tst-",""); | ||
} | ||
} | ||
if(data.mode!=="unknown") { | ||
inp.after("<img src='"+ajax_object.gif+"' style='height:21px'>").hide().siblings("input[type=button]").hide(); | ||
jQuery.post(ajax_object.url, data, function(response) { | ||
if(response==="Success") { | ||
inp.closest("tr").fadeOut("slow",function() { //remove row | ||
jQuery(this).remove(); | ||
var trs = jQuery("#better-detection-tabs-errors").find("tr"); | ||
if(trs.length===2) { | ||
jQuery("#better-detection-tabs-errors").html("<p>No new errors have been detected - yay!</p>"); //if only header/footer left then show message | ||
} | ||
better_detection_error_count(); | ||
}); | ||
} | ||
else { | ||
inp.siblings("img").remove(); //remove working image | ||
inp.siblings("input").addBack().show(); //restore buttons | ||
} | ||
}); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
=== Better Detection === | ||
Contributors: bettersecurity, riklewis | ||
Tags: better, security, detection, content, files | ||
Requires at least: 3.5 | ||
Tested up to: 5.2 | ||
Stable tag: trunk | ||
Requires PHP: 5.6 | ||
License: GPLv3 | ||
License URI: https://www.gnu.org/licenses/gpl-3.0.html | ||
|
||
Improve the security of your website by detecting unexpected changes to content | ||
|
||
== Description == | ||
|
||
This plugin will create and store hashes of content (eg. posts, pages, etc.) and monitor these moving forwards in order to detect when changes occur. When changes are made outside of the normal working process, such as a direct database update, this will then be detected as the hash will get out of sync with the content. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters