1   <?php
  2     $dir = FULL_PATH.'/compat/';
  3  
  4     if (is_dir($dir))
  5     {
  6        if ($dh = opendir($dir))
  7        {
  8            while (($file = readdir($dh)) !== false)
  9            {
  10                   if($file != "." && $file != ".." && substr($file,-3)=="php")
  11                   {
  12                 require_once($dir.$file);
  13                   }
  14            }
  15            closedir($dh);
  16        }
  17     }
  18   ?>