This repository has been archived by the owner on Jul 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
help.php
44 lines (36 loc) · 1.68 KB
/
help.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
require('../../config.php');
if (defined('WB_PATH') == false) {
exit("Cannot access this file directly");
}
require(WB_PATH . '/modules/admin.php');
require_once (WB_PATH.'/modules/foldergallery/info.php');
// check if module language file exists for the language set by the user (e.g. DE, EN)
if (!file_exists(WB_PATH . '/modules/foldergallery/help/' . LANGUAGE . '.php')) {
// no module language file exists for the language set by the user, include default module language file EN.php
require_once(WB_PATH . '/modules/foldergallery/help/EN.php');
} else {
// a module language file exists for the language defined by the user, load it
require_once(WB_PATH . '/modules/foldergallery/help/' . LANGUAGE . '.php');
}
//Template
$t = new Template(dirname(__FILE__).'/help', 'remove');
$t->set_file('help', 'help.htt');
// clear the comment-block, if present
$t->set_block('help', 'CommentDoc'); $t->clear_var('CommentDoc');
$t->set_var(array(
'TITLE' => $FG_HELP['TITLE'],
'VERSION' => $FG_HELP['VERSION'],
'YOUR_VERSION_TEXT' => sprintf($FG_HELP['YOUR_VERSION'],$module_version),
'VERSION_TEXT' => $FG_HELP['VERSION_TEXT'],
'HOMEPAGE_TEXT' => $FG_HELP['HOMEPAGE_TEXT'],
'HELP_TITLE' => $FG_HELP['HELP_TITLE'],
'HELP_TEXT' => $FG_HELP['HELP_TEXT'],
'BUG_TITLE' => $FG_HELP['BUG_TITLE'],
'BUG_TEXT' => $FG_HELP['BUG_TEXT'],
'BACK_STRING' => $FG_HELP['BACK_STRING'],
'BACK_ONCLICK' => 'javascript: window.location = \''.ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'\';'
));
$t->pparse('output', 'help');
$admin->print_footer();
?>