// first thing's first, let's make sure this isn't part of a package
$files = glob(PATH_THIRD.$name.'/*.php');
// check if the file is sitting right here
$pi_files = glob($temp_dir.'/pi.*.php');
{
// check directories (GLOB_ONLYDIR not available on Windows < PHP 4.3.3, too bad...)
// stop at first plugin file found to keep things sane
foreach (glob($temp_dir.'/*', GLOB_ONLYDIR) as $dir)
{
$pi_files = glob($dir.'/pi.*.php');