/**
  * tries to detect and load all the different backgrounds that can be found in the
  * backgrounds folder, so that the user can chose the nicest one :)
  *
  * @static
  */
 function scanBackgoundImages()
 {
     $gifImages = Glob::glob(AUTHIMAGE_BACKGROUND_FOLDER, '*.gif');
     $backgroundImages = array();
     if (!empty($gifImages)) {
         foreach ($gifImages as $image) {
             $imageName = basename($image);
             array_push($backgroundImages, $imageName);
         }
     }
     return $backgroundImages;
 }
 /**
  * refreshes the list of folders from disk
  */
 function getPluginListFromFolder()
 {
     $pluginList = array();
     $pluginFiles = Glob::glob($this->_pluginDir, "*");
     if (!is_array($pluginFiles)) {
         return $pluginList;
     }
     foreach ($pluginFiles as $pluginFile) {
         if (File::isDir($pluginFile)) {
             // build up the name of the file
             $pluginId = array_pop(explode("/", $pluginFile));
             $pluginFileName = "plugin" . $pluginId . ".class.php";
             $pluginFullPath = PLOG_CLASS_PATH . "{$pluginFile}/{$pluginFileName}";
             // and try to include it
             if (File::isReadable($pluginFile . "/" . $pluginFileName)) {
                 $pluginList[] = $pluginId;
             }
         }
     }
     return $pluginList;
 }