dolibarr 24.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
30// Protection if external user
31if ($user->socid > 0) {
33}
34
35// Includes
36require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
37
38// Load documentation translations
39$langs->load('uxdocumentation');
40
41//
42$documentation = new Documentation($db);
43$group = 'Resources';
44
45// Output html head + body - Param is Title
46$documentation->docHeader($langs->trans('DocListLinks', $group));
47
48// Set view for menu and breadcrumb
49$documentation->view = array($group);
50
51// Output sidebar
52$documentation->showSidebar(); ?>
53
54<div class="doc-wrapper">
55
56 <?php $documentation->showBreadCrumb(); ?>
57
58 <div class="doc-content-wrapper">
59
60 <h1 class="documentation-title"><?php echo $langs->trans($group); ?></h1>
61 <p class="documentation-text"><?php echo $langs->trans('DocGroupIndexDescription', $group); ?></p>
62
63 <?php $documentation->showSummary(); ?>
64 </div>
65
66</div>
67<?php
68// Output close body + html
69$documentation->docFooter();
70?>
Class to manage UI documentation.
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $db
API class for accounts.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.