/**
  *  Validate Settings
  *
  *  @return true
  */
 public function validate()
 {
     parent::validate();
     // set table prefix
     $this->settings['tablePrefix'] = $this->settings['tablePrefix'];
     try {
         $this->getDB()->sendQuery("SELECT COUNT(*) FROM " . $this->dbPrefix . $this->settings['tablePrefix'] . "pfpost");
     } catch (Exception $e) {
         throw new UserInputException('tablePrefix', 'invalid');
     }
     // source path
     $tmpPath = FileUtil::addTrailingSlash($this->settings['sourcePath']);
     if ($this->data['avatars']) {
         if (!@file_exists($tmpPath . 'moderate.php')) {
             $tmpPath = FileUtil::addTrailingSlash(dirname($tmpPath));
             if (!@file_exists($tmpPath . 'moderate.php')) {
                 throw new UserInputException('sourcePath', 'invalid');
             }
         }
     }
     $this->settings['sourcePath'] = $tmpPath;
     return true;
 }