Skip to content

Commit

Permalink
Released version 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
riklewis committed Dec 9, 2019
1 parent 3326bb2 commit 86c63cc
Show file tree
Hide file tree
Showing 19 changed files with 1,028 additions and 0 deletions.
938 changes: 938 additions & 0 deletions svn/tags/1.4/better-detection.php

Large diffs are not rendered by default.

Binary file added svn/tags/1.4/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/icon-36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/icon-white-36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-bg_glass_55_fbf9ee_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-bg_glass_65_ffffff_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-bg_glass_75_dadada_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-bg_glass_75_e6e6e6_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-bg_glass_95_fef1ec_1x400.png
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.
Binary file added svn/tags/1.4/images/ui-icons_222222_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-icons_454545_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/tags/1.4/images/ui-icons_888888_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions svn/tags/1.4/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
# Silence is golden.
16 changes: 16 additions & 0 deletions svn/tags/1.4/jquery-ui-tabs.min.css

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions svn/tags/1.4/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
jQuery(function() {
//initialise tab widget
jQuery("#better-detection-tabs").tabs({
activate: function(event,ui) {
var inp = jQuery("[name='_wp_http_referer']");
var val = inp.val().split("#")[0];
inp.val(val+"#"+ui.newPanel.attr("id"));
}
});

//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+"' class='better-detection-spinner'>").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
}
});
}
});
});
15 changes: 15 additions & 0 deletions svn/tags/1.4/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
=== Better Detection ===
Contributors: bettersecurity, riklewis
Tags: better, better, security, detection, content, scanner
Requires at least: 3.5
Tested up to: 5.3
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.
Binary file added svn/tags/1.4/working.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added svn/trunk/working.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86c63cc

Please sign in to comment.