summaryrefslogtreecommitdiff
path: root/includes/pages/guest_faq.php
blob: b6452f87bf4b8c410994ef4e5798d4f7b4d2cef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
function faq_title() {
  return _("FAQ");
}

function guest_faq() {
	$html = "";
	$faqs = sql_select("SELECT * FROM `FAQ`");
	foreach ($faqs as $faq) {
		$html .= "<dl>";
		if ($_SESSION['locale'] == "de_DE.UTF-8") {
			$html .= sprintf(
				'<dt>%s</dt> <dd>%s</dd>',
				$faq['Frage_de'],
				$faq['Antwort_de']
			);
		} else {
			$html .= sprintf(
				'<dt>%s</dt> <dd>%s</dd>',
				$faq['Frage_en'],
				$faq['Antwort_en']
			);
		}
		$html .= "</dl>";
	}
	return $html;
}
?>