Three things:<div>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).</div><div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div><a href="http://ottodestruct.com/themecheck.zip">http://ottodestruct.com/themecheck.zip</a></div><div><br></div><div>-Otto<br><br></div>