forked from DistributedProofreaders/dproofreaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpophelp.php
29 lines (23 loc) · 977 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
27
28
29
<?php
$relPath="./pinc/";
include_once($relPath.'base.inc');
include_once($relPath.'misc.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 = array(
'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";
// vim: sw=4 ts=4 expandtab