Theme Authenticity Checker (TAC) - Version 1.2

Version Description

Download this release

Release Info

Developer builtBackwards
Plugin Icon wp plugin Theme Authenticity Checker (TAC)
Version 1.2
Comparing to
See all releases

Code changes from version 1.1 to 1.2

Files changed (2) hide show
  1. readme.txt +9 -3
  2. tac.php +3 -3
readme.txt CHANGED
@@ -2,13 +2,19 @@
2
  Contributors: builtBackwards
3
  Donate link: http://builtbackwards.com/donate
4
  Tags: themes, security, javascript, admin
5
- Requires at least: 2.3.0
6
- Tested up to: 2.5.1
7
- Stable tag: 1.1
8
 
9
  Scan all of your theme files for potentially malicious or unwanted code.
10
 
11
  == Description ==
 
 
 
 
 
 
12
 
13
  TAC got its start when we repeatedly found obfuscated malicious code in free Wordpress themes available throughout the web. A quick way to scan a theme for undesirable code was needed, so we put together this plugin.
14
 
2
  Contributors: builtBackwards
3
  Donate link: http://builtbackwards.com/donate
4
  Tags: themes, security, javascript, admin
5
+ Requires at least: 2.6
6
+ Tested up to: 2.6
7
+ Stable tag: 1.2
8
 
9
  Scan all of your theme files for potentially malicious or unwanted code.
10
 
11
  == Description ==
12
+ = NOTICE: CURRENT VERSION 1.2 IS ONLY COMPATIBLE WITH WORDPRESS 2.6 =
13
+
14
+ Don't worry, this release is only a band-aid to deal with a core function change in Wordpress 2.6.
15
+ The next version will be backwards compatible to at least Wordpress 2.5 as well as working with 2.6
16
+
17
+ [View CHANGELOG on Plugin Homepage](http://builtbackwards.com/projects/tac/ "View CHANGELOG on Plugin Homepage")
18
 
19
  TAC got its start when we repeatedly found obfuscated malicious code in free Wordpress themes available throughout the web. A quick way to scan a theme for undesirable code was needed, so we put together this plugin.
20
 
tac.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: TAC (Theme Authentication Checker)
4
  Plugin URI: http://builtbackwards.com/projects/tac/
5
  Description: TAC scans all of your theme files for potentially malicious or unwanted code.
6
  Author: builtBackwards
7
- Version: 1.1
8
  Author URI: http://builtbackwards.com/
9
  */
10
 
@@ -29,7 +29,7 @@ Author URI: http://builtbackwards.com/
29
  function check_theme($template_files) {
30
  foreach ($template_files as $tfile)
31
  {
32
- $lines = file("../".$tfile, FILE_IGNORE_NEW_LINES);
33
  $line_index = 0;
34
  $is_first = true;
35
  foreach($lines as $this_line)
@@ -86,7 +86,7 @@ function tac() {
86
  $version = $themes[$theme_name]['Version'];
87
  $author = $themes[$theme_name]['Author'];
88
  $screenshot = $themes[$theme_name]['Screenshot'];
89
- $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
90
  ?>
91
  <div id="tacthemes">
92
  <?php if ( $screenshot ) : ?>
4
  Plugin URI: http://builtbackwards.com/projects/tac/
5
  Description: TAC scans all of your theme files for potentially malicious or unwanted code.
6
  Author: builtBackwards
7
+ Version: 1.2
8
  Author URI: http://builtbackwards.com/
9
  */
10
 
29
  function check_theme($template_files) {
30
  foreach ($template_files as $tfile)
31
  {
32
+ $lines = file(ABSPATH . 'wp-content' . $tfile, FILE_IGNORE_NEW_LINES);
33
  $line_index = 0;
34
  $is_first = true;
35
  foreach($lines as $this_line)
86
  $version = $themes[$theme_name]['Version'];
87
  $author = $themes[$theme_name]['Author'];
88
  $screenshot = $themes[$theme_name]['Screenshot'];
89
+ $stylesheet_dir = "wp-content".$themes[$theme_name]['Stylesheet Dir'];
90
  ?>
91
  <div id="tacthemes">
92
  <?php if ( $screenshot ) : ?>