Acunetix WP Security - Version 2.2.53

Version Description

Download this release

Release Info

Developer hallsofmontezuma
Plugin Icon wp plugin Acunetix WP Security
Version 2.2.53
Comparing to
See all releases

Code changes from version 2.2.52 to 2.2.53

Files changed (5) hide show
  1. js/scripts.js +27 -0
  2. scanner.php +2 -0
  3. securityscan.php +24 -4
  4. style.css +56 -0
  5. support.php +1 -1
js/scripts.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function displaymessage()
2
+ {
3
+ alert("Hello World!");
4
+ }
5
+
6
+ $('myForm').addEvent('submit', function(e) {
7
+ /**
8
+ * Prevent the submit event
9
+ */
10
+ new Event(e).stop();
11
+
12
+ /**
13
+ * This empties the log and shows the spinning indicator
14
+ */
15
+ var log = $('log_res').empty().addClass('ajax-loading');
16
+
17
+ /**
18
+ * send takes care of encoding and returns the Ajax instance.
19
+ * onComplete removes the spinner from the log.
20
+ */
21
+ this.send({
22
+ update: log,
23
+ onComplete: function() {
24
+ log.removeClass('ajax-loading');
25
+ }
26
+ });
27
+ });
scanner.php CHANGED
@@ -23,6 +23,8 @@ function mrt_sub0(){?>
23
  check_perms("wp-content/","../wp-content","0755");
24
  ?>
25
  </table>
 
 
26
  </div>
27
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
28
  </div><?}
23
  check_perms("wp-content/","../wp-content","0755");
24
  ?>
25
  </table>
26
+
27
+
28
  </div>
29
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
30
  </div><?}
securityscan.php CHANGED
@@ -25,7 +25,6 @@ You should have received a copy of the GNU General Public License
25
  along with this program. If not, see <http://www.gnu.org/licenses/>.
26
  */
27
 
28
- $version = "2.2.52";
29
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/support.php");
30
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/scanner.php");
31
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/password_tools.php");
@@ -33,6 +32,8 @@ require_once(ABSPATH."wp-content/plugins/wp-security-scan/database.php");
33
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/functions.php");
34
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/scripts.js");
35
 
 
 
36
  add_action("init",mrt_wpdberrors,1);
37
  add_action("parse_query",mrt_wpdberrors,1);
38
  add_action('admin_menu', 'add_men_pg');
@@ -46,6 +47,16 @@ add_submenu_page(__FILE__, 'Database', 'Database', 8, 'database', 'mrt_sub3');
46
  add_submenu_page(__FILE__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
47
  }}
48
 
 
 
 
 
 
 
 
 
 
 
49
  function mrt_opt_mng_pg() {
50
  ?>
51
  <!--<div id='update-nag'>A new version of WP Security Scan is available!</div>-->
@@ -63,6 +74,8 @@ mrt_check_version();
63
  mrt_check_table_prefix();
64
  mrt_version_removal();
65
  mrt_errorsoff();
 
 
66
  $name = $wpdb->get_var("SELECT user_login FROM $wpdb->users WHERE user_login='admin'");
67
  if ($name=="admin"){
68
  echo '<font color="red">"admin" user exists.</font>';
@@ -71,8 +84,6 @@ if ($name=="admin"){
71
  echo '<font color="green">No user "admin".</font>';
72
  }
73
  ?>
74
-
75
-
76
  <br /><br />
77
  <hr align=center size=2 width=500px>
78
  <br /><br />
@@ -86,4 +97,13 @@ if ($name=="admin"){
86
  </div>
87
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
88
  </div>
89
- <?php } ?>
 
 
 
 
 
 
 
 
 
25
  along with this program. If not, see <http://www.gnu.org/licenses/>.
26
  */
27
 
 
28
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/support.php");
29
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/scanner.php");
30
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/password_tools.php");
32
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/functions.php");
33
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/scripts.js");
34
 
35
+ add_action( 'admin_notices', mrt_update_notice, 5 );
36
+ add_action('admin_head', 'mrt_hd');
37
  add_action("init",mrt_wpdberrors,1);
38
  add_action("parse_query",mrt_wpdberrors,1);
39
  add_action('admin_menu', 'add_men_pg');
47
  add_submenu_page(__FILE__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
48
  }}
49
 
50
+ function mrt_update_notice(){
51
+ /*$mrt_version = "2.2.52";
52
+ $mrt_latest = fgets(fopen("http://semperfiwebdesign.com/wp-security-scan.html", "r"));
53
+ echo $mrt_latest . " and " . $mrt_version;
54
+ if($mrt_latest > $mrt_version)
55
+ echo "New Version Available";
56
+ else
57
+ echo "Latest Version";
58
+ */ }
59
+
60
  function mrt_opt_mng_pg() {
61
  ?>
62
  <!--<div id='update-nag'>A new version of WP Security Scan is available!</div>-->
74
  mrt_check_table_prefix();
75
  mrt_version_removal();
76
  mrt_errorsoff();
77
+
78
+
79
  $name = $wpdb->get_var("SELECT user_login FROM $wpdb->users WHERE user_login='admin'");
80
  if ($name=="admin"){
81
  echo '<font color="red">"admin" user exists.</font>';
84
  echo '<font color="green">No user "admin".</font>';
85
  }
86
  ?>
 
 
87
  <br /><br />
88
  <hr align=center size=2 width=500px>
89
  <br /><br />
97
  </div>
98
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
99
  </div>
100
+ <?php }
101
+
102
+ function mrt_hd()
103
+ {
104
+ $siteurl = get_option('siteurl');?>
105
+ <script language="JavaScript" type="text/javascript" src="<?php echo $siteurl;?>/wp-content/plugins/wp-security-scan/js/scripts.js"></script>
106
+ <link rel="stylesheet" type="text/css" href="<?php echo $siteurl;?>/wp-content/plugins/wp-security-scan/style.css" />
107
+ <?php }
108
+ ?>
109
+
style.css ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ #form_box {
4
+ float: left;
5
+ width: 290px;
6
+ background: #f8f8f8;
7
+ border: 1px solid #d6d6d6;
8
+ border-left-color: #e4e4e4;
9
+ border-top-color: #e4e4e4;
10
+ font-size: 11px;
11
+ font-weight: bold;
12
+ padding: 0.5em;
13
+ margin-top: 10px;
14
+ margin-bottom: 2px;
15
+ }
16
+
17
+ #form_box div {
18
+ height: 25px;
19
+ padding: 0.2em 0.5em;
20
+ }
21
+
22
+ #form_box div.hr {
23
+ border-bottom: 2px solid #e2e2e1;
24
+ height: 0px;
25
+ margin-top: 0pt;
26
+ margin-bottom: 7px;
27
+ }
28
+
29
+ #form_box p {
30
+ float: left;
31
+ margin: 4px 0pt;
32
+ width: 120px;
33
+ }
34
+
35
+
36
+ #log {
37
+ float: left;
38
+ padding: 0.5em;
39
+ margin-left: 10px;
40
+ width: 290px;
41
+ border: 1px solid #d6d6d6;
42
+ border-left-color: #e4e4e4;
43
+ border-top-color: #e4e4e4;
44
+ margin-top: 10px;
45
+ }
46
+
47
+ #log_res {
48
+ overflow: auto;
49
+ }
50
+
51
+ #log_res.ajax-loading {
52
+ padding: 20px 0;
53
+ background: url(http://demos.mootools.net/demos/Group/spinner.gif) no-repeat center;
54
+ }
55
+
56
+
support.php CHANGED
@@ -8,7 +8,7 @@ function mrt_sub2(){
8
  <br /><br />support page coming soon...
9
  <br /><br /><strong>Backup early, backup often!</strong><br /><br /><br /><br /><br />
10
  <em>For comments, suggestions, bug reporting, etc email <a href="mailto:michael@semperfiwebdesign.com">michael@semperfiwebdesign.com</a></em>
11
- </div>
12
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
13
  </div>
14
  <?}?>
8
  <br /><br />support page coming soon...
9
  <br /><br /><strong>Backup early, backup often!</strong><br /><br /><br /><br /><br />
10
  <em>For comments, suggestions, bug reporting, etc email <a href="mailto:michael@semperfiwebdesign.com">michael@semperfiwebdesign.com</a></em>
11
+ </div>
12
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
13
  </div>
14
  <?}?>