forked from featherbb/featherbb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.php
More file actions
57 lines (43 loc) · 1.47 KB
/
help.php
File metadata and controls
57 lines (43 loc) · 1.47 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Copyright (C) 2015 FeatherBB
* based on code by (C) 2008-2012 FluxBB
* and Rickard Andersson (C) 2002-2008 PunBB
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
namespace controller;
class help
{
public function __construct()
{
$this->feather = \Slim\Slim::getInstance();
$this->start = $this->feather->start;
$this->config = $this->feather->config;
$this->user = $this->feather->user;
$this->request = $this->feather->request;
$this->header = new \controller\header();
$this->footer = new \controller\footer();
}
public function __autoload($class_name)
{
require FEATHER_ROOT . $class_name . '.php';
}
public function display()
{
global $lang_common;
if ($this->user->g_read_board == '0') {
message($lang_common['No view'], '403');
}
// Load the help.php language file
require FEATHER_ROOT.'lang/'.$this->user->language.'/help.php';
$page_title = array(feather_escape($this->config['o_board_title']), $lang_help['Help']);
define('FEATHER_ACTIVE_PAGE', 'help');
$this->header->setTitle($page_title)->display();
$this->feather->render('help.php', array(
'lang_help' => $lang_help,
'lang_common' => $lang_common,
)
);
$this->footer->display();
}
}