function getHelpIndex($database)
 {
     $return = array();
     $sql = "SELECT " . FIELD_HELPINDEX_TITLE . " FROM " . TBL_HELPINDEX;
     $sql .= " WHERE " . FIELD_HELPINDEX_LANG . "='dutch'";
     $query = $database->query($sql);
     if (!errorSDK::is_error($query)) {
         while ($index = $database->fetch_array($query)) {
             $return[] = $index[FIELD_HELPINDEX_TITLE];
         }
     } else {
         return $query;
     }
     return $return;
 }
 function showheadlines()
 {
     $fileoutput = $this->getfile('themes/' . $this->themedir . '/headlines.html');
     $output = NULL;
     $headlines = $this->news->headlines('show');
     if (errorSDK::is_error($headlines)) {
         $this->error($headlines);
     } else {
         $output = NULL;
         foreach ($headlines as $headline) {
             $tempoutput = ereg_replace('%headline.title', $headline['subject'], $fileoutput);
             $tempoutput = ereg_replace('%headline.message', substr($headline['message'], 0, 60) . '...', $tempoutput);
             $tempoutput = ereg_replace('%headline.user', $headline['author'], $tempoutput);
             $tempoutput = ereg_replace('%headline.date', setdate($headline['date']), $tempoutput);
             $tempoutput = ereg_replace('%headline.link', 'news.php?action=viewcomments&id=' . $headline['id'], $tempoutput);
             $output .= $tempoutput;
         }
     }
     return $output;
 }