checked() doesn't return anything
Remove useless line
Fix variable mistakes here
There is no $v_file to close in these two places
That should be $excludeDir
Clean up wrong args and use of void return values in the themes
Fix some typos and remove some code that made no sense
Use the right image identifier here
Various fixes
You need to actually pass the filename to check it
printTabs() and printSubtabs() take no arguments and return nothing