27if (!defined(
'NOREQUIREMENU')) {
28 define(
'NOREQUIREMENU',
'1');
30if (!defined(
'NOTOKENRENEWAL')) {
31 define(
'NOTOKENRENEWAL',
'1');
36require
'../main.inc.php';
44require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
45require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
46require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
49$langs->loadLangs(array(
'errors',
'admin',
'modulebuilder',
'exports'));
51$mode =
GETPOST(
'mode',
'alpha');
52$action =
GETPOST(
'action',
'aZ09');
58if (empty($user->admin)) {
77$help_url =
'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
78llxHeader(
'', $langs->trans(
"Setup"), $help_url,
'', 0, 0,
'',
'',
'',
'mod-admin page-modulehelp');
80print
'<!-- Force style container -->'.
"\n".
'<style>
89$arrayofnatures = array(
'core' => $langs->transnoentitiesnoconv(
"Core"),
'external' => $langs->transnoentitiesnoconv(
"External").
' - '.$langs->trans(
"AllPublishers"));
96'@phan-var-force DolibarrModules[] $modules';
103$modNameLoaded = array();
104$familyinfo = array();
106foreach ($modulesdir as $dir) {
109 dol_syslog(
"Scan directory ".$dir.
" for module descriptor files (modXXX.class.php)");
110 $handle = @opendir($dir);
111 if (is_resource($handle)) {
112 while (($file = readdir($handle)) !==
false) {
114 if (is_readable($dir.$file) && substr($file, 0, 3) ==
'mod' && substr($file,
dol_strlen($file) - 10) ==
'.class.php') {
115 $modName = substr($file, 0,
dol_strlen($file) - 10);
118 if (!empty($modNameLoaded[$modName])) {
119 $mesg =
"Error: Module ".$modName.
" was found twice: Into ".$modNameLoaded[$modName].
" and ".$dir.
". You probably have an old file on your disk.<br>";
126 $res = include_once $dir.$file;
127 if (class_exists($modName)) {
129 $objMod =
new $modName(
$db);
130 '@phan-var-force DolibarrModules $objMod';
131 $modNameLoaded[$modName] = $dir;
133 if (!$objMod->numero > 0 && $modName !=
'modUser') {
134 dol_syslog(
'The module descriptor '.$modName.
' must have a numero property', LOG_ERR);
136 $j = $objMod->numero;
138 $modulequalified = 1;
141 $const_name =
'MAIN_MODULE_'.strtoupper(preg_replace(
'/^mod/i',
'', get_class($objMod)));
143 $modulequalified = 0;
146 $modulequalified = 0;
149 $modulequalified = 0;
155 if ($modulequalified > 0) {
157 $external = ($objMod->isCoreOrExternalModule() ==
'external');
160 $arrayofnatures[
'external_'.$publisher] = $langs->trans(
"External").
' - '.$publisher;
162 $arrayofnatures[
'external_'] = $langs->trans(
"External").
' - '.$langs->trans(
"UnknownPublishers");
165 ksort($arrayofnatures);
169 if ($modulequalified > 0) {
170 $modules[$i] = $objMod;
171 $filename[$i] = $modName;
174 if (is_array($objMod->familyinfo) && !empty($objMod->familyinfo)) {
175 $familyinfo = array_merge($familyinfo, $objMod->familyinfo);
176 $familykey = key($objMod->familyinfo);
178 $familykey = $objMod->family;
180 if (empty($familykey) || $familykey ===
null) {
181 $familykey =
'other';
184 $moduleposition = ($objMod->module_position ? $objMod->module_position :
'50');
185 if ($moduleposition ==
'50' && ($objMod->isCoreOrExternalModule() ==
'external')) {
186 $moduleposition =
'80';
189 if (empty($familyinfo[$familykey][
'position'])) {
190 $familyinfo[$familykey][
'position'] =
'0';
193 $orders[$i] = $familyinfo[$familykey][
'position'].
"_".$familykey.
"_".$moduleposition.
"_".$j;
197 $specialstring =
'unknown';
198 if ($objMod->version ==
'development' || $objMod->version ==
'experimental') {
199 $specialstring =
'expdev';
201 if (isset($categ[$specialstring])) {
202 $categ[$specialstring]++;
204 $categ[$specialstring] = 1;
209 dol_syslog(
"Module ".get_class($objMod).
" not qualified");
212 dol_syslog(
"Failed to load ".$dir.$file.
" ".$e->getMessage(), LOG_ERR);
216 $silentModules = array(
'modSupplierOrder',
'modSupplierInvoice',
'modFournisseur');
217 if (!in_array($modName, $silentModules)) {
218 print
info_admin(
"admin/modules.php Warning bad descriptor file : ".$dir.$file.
" (Class ".$modName.
" not found into file)", 0, 0,
'1',
'warning');
222 dol_syslog(
"Failed to load ".$dir.$file.
" ".$e->getMessage(), LOG_ERR);
229 dol_syslog(
"htdocs/admin/modulehelp.php: Failed to open directory ".$dir.
". See permission and open_basedir option.", LOG_WARNING);
243foreach ($orders as $tmpkey => $tmpvalue) {
244 $tmpMod = $modules[$tmpkey];
245 '@phan-var-force DolibarrModules $tmpMod';
246 if ($tmpMod->numero == $id) {
248 $modName = $filename[$tmpkey];
249 $dirofmodule = $dirmod[$tmpkey];
255if (!is_object($objMod)) {
256 $msg = __FILE__.
" Module with no found for id:".
$id;
261$value = $orders[$key];
262$tab = explode(
'_', $value);
263$familyposition = $tab[0];
265$module_position = $tab[2];
273$modulename = $objMod->getName();
274$moduledesc = $objMod->getDesc(1);
275$moduleauthor = $objMod->getPublisher();
276$moduledir = strtolower(preg_replace(
'/^mod/i',
'', get_class($objMod)));
278$const_name =
'MAIN_MODULE_'.strtoupper(preg_replace(
'/^mod/i',
'', get_class($objMod)));
280$text =
'<span class="opacitymedium">'.$langs->trans(
"LastActivationDate").
':</span> ';
282 $text .=
dol_print_date($objMod->getLastActivationDate(),
'dayhour');
284 $text .= $langs->trans(
"Disabled");
286$tmp = $objMod->getLastActivationInfo();
287$authorid = (empty($tmp[
'authorid']) ?
'' : $tmp[
'authorid']);
290 $tmpuser->fetch($authorid);
291 $text .=
'<br><span class="opacitymedium">'.$langs->trans(
"LastActivationAuthor").
':</span> ';
292 $text .= $tmpuser->getNomUrl(-1);
294$ip = (empty($tmp[
'ip']) ?
'' : $tmp[
'ip']);
296 $text .=
'<br><span class="opacitymedium">'.$langs->trans(
"LastActivationIP").
':</span> ';
299$lastactivationversion = (empty($tmp[
'lastactivationversion']) ?
'' : $tmp[
'lastactivationversion']);
300if ($lastactivationversion && $lastactivationversion !=
'dolibarr') {
301 $text .=
'<br><span class="opacitymedium">'.$langs->trans(
"LastActivationVersion").
':</span> ';
302 $text .= $lastactivationversion;
307$title = ($modulename ? $modulename : $moduledesc);
309print
'<div class="centpercent">';
311$picto =
'object_'.$objMod->picto;
319 dol_syslog(
"Error for module ".$key.
" - Property name of module looks empty", LOG_WARNING);
323if (isset($objMod->langfiles) && is_array($objMod->langfiles)) {
324 foreach ($objMod->langfiles as $domain) {
325 $langs->load($domain);
333$version = $objMod->getVersion(0);
335if (preg_match(
'/development/i', $version)) {
336 $versiontrans .=
img_warning($langs->trans(
"Development"),
'style="float: left"');
338if (preg_match(
'/experimental/i', $version)) {
339 $versiontrans .=
img_warning($langs->trans(
"Experimental"),
'style="float: left"');
341if (preg_match(
'/deprecated/i', $version)) {
342 $versiontrans .=
img_warning($langs->trans(
"Deprecated"),
'style="float: left"');
344$versiontrans .= $objMod->getVersion(1);
348if ($objMod->isCoreOrExternalModule() ==
'external') {
349 $imginfo =
"info_black";
355if ($mode ==
'desc') {
357 $text .=
'<br>'.$moduledesc.
'<br><br><br>';
360 $moduledescriptorfile = get_class($objMod).
'.class.php';
361 $text .=
'<span class="opacitymedium">'.$langs->trans(
"DescriptorFile").
':</span> '.$moduledescriptorfile;
363 $text .=
'<br><span class="opacitymedium">'.$langs->trans(
"IdModule").
':</span> '.$objMod->numero;
366 if ($objMod->isCoreOrExternalModule() ==
'external') {
367 $tmpdirofmoduletoshow = preg_replace(
'/^'.preg_quote(DOL_DOCUMENT_ROOT,
'/').
'/',
'', (
string) $dirofmodule);
368 $textexternal .=
'<br><span class="opacitymedium">'.$langs->trans(
"Origin").
':</span> '.$langs->trans(
"ExternalModule").
' - '.$langs->trans(
"InstalledInto", $tmpdirofmoduletoshow);
370 $installmoduleslock = DOL_DATA_ROOT.
'/installmodules.lock';
371 global $dolibarr_allow_download_external_modules;
372 if ((!file_exists($installmoduleslock) || !empty($dolibarr_allow_download_external_modules)) && preg_match(
'/\/custom\//', (
string) $dirofmodule)) {
374 $textexternal .=
' <a href="'.DOL_URL_ROOT.
'/admin/tools/export_files.php?export_type=externalmodule&what='.urlencode($moduledir).
'&compression=zip&zipfilename_template=module_'.$moduledir.
'-'.$version.
'.notorig" target="_blank" rel="noopener">'.
img_picto(
'',
'download').
'</a>';
377 $textexternal .=
img_picto($langs->trans(
"DownloadOfModuleFileDisallowed"),
'download',
'class="opacitymedium paddingleft"');
380 if ($objMod->editor_name !=
'dolibarr') {
381 $textexternal .=
'<br><span class="opacitymedium">'.$langs->trans(
"Publisher").
':</span> '.(empty($objMod->editor_name) ? $langs->trans(
"Unknown") : $objMod->editor_name);
383 $editor_url = $objMod->editor_url;
384 if (!preg_match(
'/^http/', $editor_url)) {
385 $editor_url =
'https://'.$editor_url;
387 $editor_url_to_show = preg_replace(
'/(utm_[a-z_]+|origin)=[a-z0-9_]+/i',
'', $editor_url);
388 $editor_url_to_show = preg_replace(
'/[\/\?]+$/',
'', $editor_url_to_show);
389 if (!empty($objMod->editor_url) && !preg_match(
'/dolibarr\.org/i', $objMod->editor_url)) {
390 $textexternal .= ($objMod->editor_name !=
'dolibarr' ?
' - ' :
'').
img_picto(
'',
'globe').
' <a href="'.$editor_url.
'" target="_blank" rel="noopener noreferrer external">'.$editor_url_to_show.
'</a>';
392 $text .= $textexternal;
394 $text .=
'<br><span class="opacitymedium">'.$langs->trans(
"Origin").
':</span> '.$langs->trans(
"Core");
395 if (empty($objMod->numero)) {
396 $text .=
' <span class="italic opacitymedium">('.$langs->trans(
"AlwaysEnabled").
')</span>';
397 } elseif (!empty($objMod->enabled_bydefault)) {
398 $text .=
' <span class="italic opacitymedium">('.$langs->trans(
"EnabledByDefaultAtInstall").
')</span>';
402 $text .=
'<br><span class="opacitymedium">'.$langs->trans(
"Version").
':</span> '.$version;
406 $moduledesclong = $objMod->getDescLong();
407 if ($moduledesclong) {
408 $text .=
'<br><hr><div class="moduledesclong">'.$moduledesclong.
'<div>';
412if ($mode ==
'feature') {
413 $text .=
'<br><strong>'.$langs->trans(
"DependsOn").
':</strong> ';
414 if (is_array($objMod->depends) && count($objMod->depends)) {
416 foreach ($objMod->depends as $modulestringorarray) {
417 if (is_array($modulestringorarray)) {
418 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).implode(
', ', $modulestringorarray);
420 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$modulestringorarray;
425 $text .=
'<span class="opacitymedium">'.$langs->trans(
"None").
'</span>';
429 $text .=
'<br><strong>'.$langs->trans(
"RequiredBy").
':</strong> ';
430 if (is_array($objMod->requiredby) && count($objMod->requiredby)) {
432 foreach ($objMod->requiredby as $modulestringorarray) {
433 if (is_array($modulestringorarray)) {
434 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).implode(
', ', $modulestringorarray);
436 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$modulestringorarray;
441 $text .=
'<span class="opacitymedium">'.$langs->trans(
"None").
'</span>';
446 $text .=
'<br><strong>'.$langs->trans(
"AddDataTables").
':</strong> ';
447 $listofsqlfiles1 =
dol_dir_list(DOL_DOCUMENT_ROOT.
'/install/mysql/tables/',
'files', 0,
'llx.*-'.$moduledir.
'\.sql', array(
'\.key\.sql',
'\.sql\.back'));
448 $listofsqlfiles2 =
dol_dir_list(
dol_buildpath($moduledir.
'/sql/'),
'files', 0,
'llx.*\.sql', array(
'\.key\.sql',
'\.sql\.back'));
449 $sqlfiles = array_merge($listofsqlfiles1, $listofsqlfiles2);
451 if (count($sqlfiles) > 0) {
453 foreach ($sqlfiles as $val) {
454 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).preg_replace(
'/\-'.$moduledir.
'$/',
'', preg_replace(
'/\.sql$/',
'', preg_replace(
'/llx_/',
'', $val[
'name'])));
458 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
463 $text .=
'<br><strong>'.$langs->trans(
"AddDictionaries").
':</strong> ';
464 if (isset($objMod->dictionaries) && isset($objMod->dictionaries[
'tablib']) && is_array($objMod->dictionaries[
'tablib']) && count($objMod->dictionaries[
'tablib'])) {
466 foreach ($objMod->dictionaries[
'tablib'] as $val) {
467 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$val;
471 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
476 $text .=
'<br><strong>'.$langs->trans(
"AddData").
':</strong> ';
479 $text .=
img_picto(
'',
'tick',
'class="pictofixedwidth"').$langs->trans(
"Yes").
' <span class="opacitymedium">('.$moduledir.
'/sql/data.sql)</span>';
481 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
486 $text .=
'<br><strong>'.$langs->trans(
"AddRemoveTabs").
':</strong> ';
487 if (isset($objMod->tabs) && is_array($objMod->tabs) && count($objMod->tabs)) {
489 foreach ($objMod->tabs as $val) {
490 if (is_array($val)) {
493 if (is_string($val)) {
494 $tmp = explode(
':', $val, 3);
495 $text .= ($i ?
', ' :
'').$tmp[0].
':'.$tmp[1];
500 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
505 $text .=
'<br><strong>'.$langs->trans(
"AddModels").
':</strong> ';
506 if (isset($objMod->module_parts) && isset($objMod->module_parts[
'models']) && $objMod->module_parts[
'models']) {
507 $text .=
img_picto(
'',
'tick',
'class="pictofixedwidth"').$langs->trans(
"Yes");
509 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
514 $text .=
'<br><strong>'.$langs->trans(
"AddSubstitutions").
':</strong> ';
515 if (isset($objMod->module_parts) && isset($objMod->module_parts[
'substitutions']) && $objMod->module_parts[
'substitutions']) {
516 $text .=
img_picto(
'',
'tick',
'class="pictofixedwidth"').$langs->trans(
"Yes");
518 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
523 $text .=
'<br><strong>'.$langs->trans(
"AddSheduledJobs").
':</strong> ';
524 if (isset($objMod->cronjobs) && is_array($objMod->cronjobs) && count($objMod->cronjobs)) {
526 foreach ($objMod->cronjobs as $val) {
527 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$langs->trans($val[
'label']);
531 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
536 $text .=
'<br><strong>'.$langs->trans(
"AddTriggers").
':</strong> ';
537 $moreinfoontriggerfile =
'';
538 if (isset($objMod->module_parts) && isset($objMod->module_parts[
'triggers']) && $objMod->module_parts[
'triggers']) {
541 $yesno =
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
543 require_once DOL_DOCUMENT_ROOT.
'/core/class/interfaces.class.php';
545 $triggers = $interfaces->getTriggersList(array((($objMod->isCoreOrExternalModule() ==
'external') ?
'/'.$moduledir :
'').
'/core/triggers'));
546 foreach ($triggers as $triggercursor) {
547 if ($triggercursor[
'module'] == $moduledir) {
549 $moreinfoontriggerfile =
' ('.$triggercursor[
'relpath'].
')';
553 $text .= ($yesno ==
'Yes' ?
img_picto(
'',
'tick',
'class="pictofixedwidth"') :
'').$langs->trans($yesno).$moreinfoontriggerfile;
557 $text .=
'<br><strong>'.$langs->trans(
"AddBoxes").
':</strong> ';
558 if (isset($objMod->boxes) && is_array($objMod->boxes) && count($objMod->boxes)) {
560 foreach ($objMod->boxes as $val) {
561 $boxstring = (empty($val[
'file']) ? (empty($val[0]) ?
'' : $val[0]) : $val[
'file']);
563 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$boxstring;
568 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
573 $text .=
'<br><strong>'.$langs->trans(
"AddHooks").
':</strong> ';
574 if (isset($objMod->module_parts) && isset($objMod->module_parts[
'hooks']) && is_array($objMod->module_parts[
'hooks']) && count($objMod->module_parts[
'hooks'])) {
576 foreach ($objMod->module_parts[
'hooks'] as $key => $val) {
577 if ($key ===
'entity') {
582 if ($key ===
'data') {
583 if (is_array($val)) {
584 foreach ($val as $value) {
585 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).($value);
593 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).($val);
597 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
602 $text .=
'<br><strong>'.$langs->trans(
"AddPermissions").
':</strong> ';
603 if (isset($objMod->rights) && is_array($objMod->rights) && count($objMod->rights)) {
605 foreach ($objMod->rights as $val) {
606 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).($val[1]);
610 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
615 $text .=
'<br><strong>'.$langs->trans(
"AddMenus").
':</strong> ';
616 if (isset($objMod->menu) && !empty($objMod->menu)) {
617 $text .=
img_picto(
'',
'tick',
'class="pictofixedwidth"').$langs->trans(
"Yes");
619 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
624 $text .=
'<br><strong>'.$langs->trans(
"AddExportProfiles").
':</strong> ';
625 if (isset($objMod->export_label) && is_array($objMod->export_label) && count($objMod->export_label)) {
627 foreach ($objMod->export_label as $val) {
628 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$langs->trans($val);
632 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
637 $text .=
'<br><strong>'.$langs->trans(
"AddImportProfiles").
':</strong> ';
638 if (isset($objMod->import_label) && is_array($objMod->import_label) && count($objMod->import_label)) {
640 foreach ($objMod->import_label as $val) {
641 $text .= ($i ?
', ' :
img_picto(
'',
'tick',
'class="pictofixedwidth"')).$langs->trans($val);
645 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
650 $text .=
'<br><strong>'.$langs->trans(
"AddWebsiteTemplates").
':</strong> ';
651 if (isset($objMod->module_parts) && isset($objMod->module_parts[
'websitetemplates']) && $objMod->module_parts[
'websitetemplates']) {
652 $text .=
img_picto(
'',
'tick',
'class="pictofixedwidth"').$langs->trans(
"Yes");
654 $text .=
'<span class="opacitymedium">'.$langs->trans(
"No").
'</span>';
659 $text .=
'<br><strong>'.$langs->trans(
"AddOtherPagesOrServices").
':</strong> ';
660 $text .=
'<span class="opacitymedium">'.$langs->trans(
"DetectionNotPossible").
'</span>';
664if ($mode ==
'changelog') {
665 $changelog = $objMod->getChangeLog();
667 $text .=
'<div class="moduledesclong">'.$changelog.
'<div>';
669 $text .=
'<div class="moduledesclong"><span class="opacitymedium">'.$langs->trans(
"NotAvailable").
'</span></div>';
$id
Support class for third parties, contacts, members, users or resources.
modulehelp_prepare_head($object)
Prepare array with list of tabs.
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage triggers.
Class to manage Dolibarr users.
dol_is_file($pathoffile)
Return if path is a file.
dol_dir_list($utf8_path, $types="all", $recursive=0, $filter="", $excludefilter=null, $sortcriteria="name", $sortorder=SORT_ASC, $mode=0, $nohook=0, $relativename="", $donotfollowsymlinks=0, $nbsecondsold=0)
Scan a directory and return a list of files/directories.
dolGetModulesDirs($subdir='')
Return list of directories that contain modules.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2, $allowothertags=array())
Show picto whatever it's its name (generic function)
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1', $morecss='hideonsmartphone', $textfordropdown='', $picto='', $textonpictotooltip='')
Show information in HTML for admin users or standard users.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.