summaryrefslogtreecommitdiff
path: root/includes/pages/guest_faq.php
blob: 6b5eeeebab2e11db8c875bc9182e24afb08fdd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}
?>