diff options
Diffstat (limited to 'includes/pages/guest_faq.php')
-rw-r--r-- | includes/pages/guest_faq.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php new file mode 100644 index 00000000..6b5eeeeb --- /dev/null +++ b/includes/pages/guest_faq.php @@ -0,0 +1,21 @@ +<?php +function guest_faq() { + $html = ""; + $faqs = sql_select("SELECT * FROM `FAQ`"); + foreach ($faqs as $faq) + if ($faq['Antwort'] != "") { + list ($frage_de, $frage_en) = explode('<br />', $faq['Frage']); + list ($antwort_de, $antwort_en) = explode('<br />', $faq['Antwort']); + $html .= "<dl>"; + if ($_SESSION['Sprache'] == "DE") { + $html .= "<dt>" . $frage_de . "</dt>"; + $html .= "<dd>" . $antwort_de . "</dd>"; + } else { + $html .= "<dt>" . $frage_en . "</dt>"; + $html .= "<dd>" . $antwort_en . "</dd>"; + } + $html .= "</dl>"; + } + return $html; +} +?> |