forked from Piwigo/PEM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp_user.php
More file actions
45 lines (37 loc) · 1.29 KB
/
Copy pathhelp_user.php
File metadata and controls
45 lines (37 loc) · 1.29 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
<?php
/*
* This file is part of PEM package
*
* Copyright(c) Nicolas Roudaire https://www.nikrou.net/
* Licensed under the GPL version 2.0 license.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
define('INTERNAL', true);
$root_path = './';
require_once($root_path.'include/common.inc.php');
$tpl->set_filename('page', 'page.tpl');
if (!isset($user['id']))
{
message_die('You must be connected to read help user');
}
// +-----------------------------------------------------------------------+
// | html code display |
// +-----------------------------------------------------------------------+
$help_user = '';
$selected_language_file = $root_path.'language/'.$_SESSION['language']['code'].'/help_user.html';
$default_language_file = $root_path.'language/'.$conf['default_language'].'/help_user.html';
if (is_file($selected_language_file))
{
$help_user = file_get_contents($selected_language_file);
}
elseif (is_file($default_language_file))
{
$help_user = file_get_contents($default_language_file);
}
$tpl->assign('main_content', $help_user);
include($root_path.'include/header.inc.php');
include($root_path.'include/footer.inc.php');
$tpl->parse('page');
$tpl->p();