[theme-reviewers] Functions.php Worm

Otto otto at ottodestruct.com
Wed Oct 13 17:14:03 UTC 2010


Three things:
1. That was indeed just a quick example off the top of my head. In fact,
it's a broken one too (should be $this->error, not $error).

2. You can do any kind of checks you want. The way it works is that it reads
in all the files then runs them through all the checks. If you want to loop
through the $php_files and look in all of them, that's easily doable.
They're indexed by filename in case a more specific check is needed.

3. Ah, hell.. Here's the code. It works, for a certain definition of "work".
Toss it in a directory on your webserver somewhere. Make sure you have a
high level of PHP (probably 5.1 or higher). Warning: I literally wrote this
in about an hour. Don't expect anything particularly smart, it's very
preliminary.

http://ottodestruct.com/themecheck.zip

-Otto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20101013/fa5dd96a/attachment.htm>


More information about the theme-reviewers mailing list