*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/**
* \file /multicompany/admin/about.php
* \ingroup multicompany
* \brief About Page
*/
$res=@include("../../main.inc.php"); // For root directory
if (empty($res) && file_exists($_SERVER['DOCUMENT_ROOT']."/main.inc.php")) {
$res=@include($_SERVER['DOCUMENT_ROOT']."/main.inc.php"); // Use on dev env only
}
if (empty($res)) {
$res=@include("../../../main.inc.php"); // For "custom" directory
}
// Libraries
dol_include_once('/multicompany/lib/multicompany.lib.php');
dol_include_once('/multicompany/lib/PHP_Markdown/Michelf/Markdown.inc.php');
// Translations
$langs->loadLangs(array('admin', 'multicompany@multicompany'));
// Security check
if (empty($user->admin) || !empty($user->entity)) {
accessforbidden();
}
/*
* View
*/
$help_url='EN:Module_MultiCompany|FR:Module_MultiSociété';
llxHeader('', $langs->trans("Module5000Name"), $help_url);
// Subheader
$linkback=''.$langs->trans("BackToModuleList").'';
print load_fiche_titre($langs->trans("MultiCompanySetup"), $linkback, 'multicompany@multicompany',0,'multicompany_title');
// Configuration header
$head = multicompany_prepare_head();
dol_fiche_head($head, 'about', $langs->trans("Module5000Name"));
// About page goes here
$buffer = file_get_contents(dol_buildpath('/multicompany/README.md',0));
use Michelf\Markdown;
print Markdown::defaultTransform($buffer);
print '
';
$url = 'https://www.inodbox.com/';
$link = 'iNodbox';
print $langs->transnoentities("MulticompanyMoreModules", $link).'
';
print '
';
print '
';
print '
';
dol_fiche_end();
llxFooter();
$db->close();