$file ) { checkcount(); if ( strpos($name, '.git') !== false || strpos($name, '.svn') !== false ) $found = true; } foreach ( $css_files as $name => $file ) { checkcount(); if ( strpos($name, '.git') !== false || strpos($name, '.svn') !== false ) $found = true; } foreach ( $other_files as $name => $file ) { checkcount(); if ( strpos($name, '.git') !== false || strpos($name, '.svn') !== false ) $found = true; } if ($found) { $this->error[] = "REQUIREDPlease remove any extraneous directories like .git or .svn from the ZIP file before uploading it."; $ret = false; } return $ret; } function getError() { return $this->error; } } $themechecks[] = new DirectoriesCheck;