dolibarr 21.0.0-beta
index.php
1<?php
2/*
3 * Copyright (C) 2024 Anthony Damhet <a.damhet@progiseize.fr>
4 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20// Load Dolibarr environment
21require '../../../main.inc.php';
22
29// Protection if external user
30if ($user->socid > 0) {
32}
33
34// Includes
35require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
36
37// Load documentation translations
38$langs->load('uxdocumentation');
39
40//
41$documentation = new Documentation($db);
42
43// Output html head + body - Param is Title
44$documentation->docHeader();
45
46// Set view for menu and breadcrumb
47$documentation->view = array('DocumentationHome');
48
49// Output sidebar
50$documentation->showSidebar(); ?>
51
52<div class="doc-wrapper">
53
54 <?php $documentation->showBreadCrumb(); ?>
55
56 <div class="doc-content-wrapper">
57 <?php echo $langs->trans('WelcomeToDocumentation'); ?>
58 <?php $documentation->showSummary(1, 1); ?>
59 </div>
60
61</div>
62
63<?php
64// Output close body + html
65$documentation->docFooter();
66?>
Class to manage UI documentation.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.