upgrade
This commit is contained in:
46
main/help/help.php
Normal file
46
main/help/help.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
/**
|
||||
* This script displays a help window.
|
||||
*
|
||||
* @package chamilo.help
|
||||
*/
|
||||
require_once __DIR__.'/../inc/global.inc.php';
|
||||
|
||||
$allowedHelp = [
|
||||
'Blogs',
|
||||
'Group',
|
||||
'Groups',
|
||||
'Announcements',
|
||||
'Settings',
|
||||
'Doc',
|
||||
'Dropbox',
|
||||
'Exercise',
|
||||
'Tracking',
|
||||
'User',
|
||||
'Links',
|
||||
'Path',
|
||||
'Survey',
|
||||
'Classes',
|
||||
'Wiki',
|
||||
];
|
||||
|
||||
$help_name = isset($_GET['open']) ? Security::remove_XSS($_GET['open']) : null;
|
||||
|
||||
if (empty($help_name) || !in_array($help_name, $allowedHelp)) {
|
||||
api_not_allowed(true);
|
||||
}
|
||||
|
||||
?>
|
||||
<a class="btn btn-default" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php">
|
||||
<?php echo get_lang('AccessToFaq'); ?>
|
||||
</a>
|
||||
<div class="page-header">
|
||||
<h3><?php echo get_lang('H'.$help_name); ?></h3>
|
||||
</div>
|
||||
<?php echo get_lang($help_name.'Content'); ?>
|
||||
<hr>
|
||||
<a class="btn btn-default" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php">
|
||||
<?php echo get_lang('AccessToFaq'); ?>
|
||||
</a>
|
||||
Reference in New Issue
Block a user