-
Notifications
You must be signed in to change notification settings - Fork 28
/
pophelp.php
26 lines (21 loc) · 900 Bytes
/
pophelp.php
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
<?php
$relPath = "./pinc/";
include_once($relPath.'base.inc');
include_once($relPath.'slim_header.inc');
include_once('faq/pophelp/prefs/prefs_pophelp.inc');
include_once('faq/pophelp/teams/teams_pophelp.inc');
require_login();
$pophelp = [
'prefs' => $prefs_pophelp,
'teams' => $teams_pophelp,
];
$category = get_enumerated_param($_GET, 'category', null, array_keys($pophelp));
$name = get_enumerated_param($_GET, 'name', null, array_keys($pophelp[$category]));
$title = $pophelp[$category][$name]['title'];
$content = $pophelp[$category][$name]['content'];
slim_header($title);
echo "<table class='basic' style='width: 360px; margin-left: auto; margin-right: auto;'>\n";
echo "<tr><th>$title</th></tr>\n";
echo "<tr><td>$content</td></tr>\n";
echo "<tr><td class='center-align'><b><a href='javascript:window.close();'>" . _("Close Window") . "</a></b></td></tr>\n";
echo "</table>\n";