Skip to content

Commit

Permalink
Released version 1.2 to Wordpress repository
Browse files Browse the repository at this point in the history
  • Loading branch information
riklewis committed Jul 3, 2019
1 parent a1a9706 commit 318b91a
Show file tree
Hide file tree
Showing 19 changed files with 943 additions and 1 deletion.
867 changes: 867 additions & 0 deletions svn/tags/1.2/better-detection.php

Large diffs are not rendered by default.

Binary file added svn/tags/1.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
# Silence is golden.
7 changes: 7 additions & 0 deletions svn/tags/1.2/jquery-ui-tabs.min.css

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions svn/tags/1.2/main.js
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
}
});
}
});
});
15 changes: 15 additions & 0 deletions svn/tags/1.2/readme.txt
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.
Binary file added svn/tags/1.2/working.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion svn/trunk/better-detection.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
--------------------------- Installation ---------------------------
*/

define('BETTER_DETECTION_VERSION','1.1');
define('BETTER_DETECTION_VERSION','1.2');

function better_detection_activation() {
global $wpdb;
Expand Down

0 comments on commit 318b91a

Please sign in to comment.