phpBB-Social-Network/phpBB-Social-Network — pull request #150 by Senky (2012-12-16 09:24:27+00:00)
Title: Replace readdir() & preg_match() with glob()

In `/root/socialnet/includes/socialnet.php` lines 28 - 36 combination of `opendir`, `readdir`, `preg_match` and `closedir` can be replaced with simple `glob()` (passes phpBB requirements) to make code simplier, clearer, and faster.

http://phpbbsocialnetwork.com/viewtopic.php?f=6&t=4615