$mail = new mail($to, $from, $subject, $text); $mail->setHTMLContent($texthtml); if ($mail->send()) { $message .= '<br><span class="ok">' . $p->t('news/uebersetzungsanforderungGesendet', array($to)) . '</span>'; } else { $message .= '<br><span class="error">' . $p->t('news/fehlerBeimSenden', array($to)) . '</span>'; } } else { $message .= '<br><span class="error">' . $p->t('news/keinUebersetzerVorhanden') . '</span>'; } } } $sprachen = array(DEFAULT_LANGUAGE); $news = new news(); if ($news_id != '') { $news->load($news_id); $sprachen = $content->getLanguages($news->content_id); $studiengang_kz = $news->studiengang_kz; $semester = $news->semester; if ($studiengang_kz == '0' && $semester == '' && !$berechtigt) { die($p->t('global/keineBerechtigungFuerDieseSeite')); } } if ($studiengang_kz == '0' && $semester == '') { $type = $p->t('news/allgemein'); } elseif ($studiengang_kz == '0' && $semester == '0') { $type = $p->t('news/freifach'); } else { $type = $p->t('news/studiengang'); } echo '<h1>' . $p->t('news/newsverwaltung') . ' - ' . $type . '</h1>';