33require
'../main.inc.php';
42require_once DOL_DOCUMENT_ROOT.
'/core/lib/usergroups.lib.php';
43require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
44require_once DOL_DOCUMENT_ROOT.
'/core/lib/images.lib.php';
45require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
46require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
47require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
48require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
51$langs->loadLangs(array(
'admin',
'languages',
'other',
'companies',
'products',
'members',
'projects',
'hrm',
'agenda'));
57$action =
GETPOST(
'action',
'aZ09');
58$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'adminihm';
59$mode =
GETPOST(
'mode',
'aZ09') ?
GETPOST(
'mode',
'aZ09') :
'other';
61if (!defined(
"MAIN_MOTD")) {
62 define(
"MAIN_MOTD",
"");
73$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
75 setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
78if (
GETPOST(
'cancel',
'alpha')) {
84if (preg_match(
'/^(set|del)_([A-Z_]+)$/', $action, $regs)) {
85 if ($regs[1] ==
'set') {
92if ($action ==
'removebackgroundlogin' &&
getDolGlobalString(
'MAIN_LOGIN_BACKGROUND')) {
94 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
112if ($action ==
'update') {
115 if ($mode ==
'template') {
126 $val =
GETPOST(
'THEME_DARKMODEENABLED');
136 $val =
GETPOST(
'THEME_TOPMENU_DISABLE_IMAGE');
145 $val =
GETPOST(
'THEME_ELDY_BORDER_RADIUS');
259 setEventMessages($langs->trans(
"SetupSaved"),
null);
262 if ($mode ==
'dashboard') {
265 setEventMessages($langs->trans(
"SetupSaved"),
null);
268 if ($mode ==
'other') {
296 setEventMessages($langs->trans(
"SetupSaved"),
null);
299 if ($mode ==
'login') {
303 $varforimage =
'imagebackground';
304 $dirforimage =
$conf->mycompany->dir_output .
'/logos/';
305 if (!empty($_FILES[$varforimage][
"tmp_name"])) {
307 if (preg_match(
'/([^\\/:]+)$/i', (
string) $_FILES[$varforimage][
"name"], $reg)) {
308 $original_file = $reg[1];
312 dol_syslog(
"Move file " . $_FILES[$varforimage][
"tmp_name"] .
" to " . $dirforimage . $original_file);
313 if (!is_dir($dirforimage)) {
316 $result =
dol_move_uploaded_file($_FILES[$varforimage][
"tmp_name"], $dirforimage . $original_file, 1, 0, $_FILES[$varforimage][
'error']);
318 if (is_numeric($result) && $result > 0) {
320 } elseif (!is_numeric($result)) {
322 $langs->load(
"errors");
323 setEventMessages($langs->trans($result),
null,
'errors');
326 setEventMessages($langs->trans(
"ErrorFailedToSaveFile"),
null,
'errors');
330 $langs->load(
"errors");
331 setEventMessages($langs->trans(
"ErrorBadImageFormat"),
null,
'errors');
337 setEventMessages($langs->trans(
"SetupSaved"),
null);
341 if ($mode ==
'css') {
342 $csscontent =
GETPOST(
'MAIN_IHM_CUSTOM_CSS',
'restricthtml');
347 setEventMessages($langs->trans(
"SetupSaved"),
null);
350 $_SESSION[
"mainmenu"] =
"";
352 if (
GETPOST(
'dol_resetcache')) {
356 header(
"Location: ".$_SERVER[
"PHP_SELF"].
"?mainmenu=home&leftmenu=setup&mode=".$mode.(GETPOSTISSET(
'page_y') ?
'&page_y='.GETPOSTINT(
'page_y') :
''));
365$wikihelp =
'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
369 $langs->trans(
"Setup"),
375 '/includes/ace/src/ace.js',
376 '/includes/ace/src/ext-statusbar.js',
377 '/includes/ace/src/ext-language_tools.js',
384$form =
new Form($db);
388print
load_fiche_titre($form->textwithpicto($langs->trans(
"GUISetup"), $langs->trans(
"DisplayDesc")),
'',
'title_setup');
392require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
394print
'<form enctype="multipart/form-data" method="POST" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'" spellcheck="false">';
395print
'<input type="hidden" name="token" value="'.newToken().
'">';
396print
'<input type="hidden" name="action" value="update">';
397print
'<input type="hidden" name="page_y" value="">';
398print
'<input type="hidden" id="mode" name="mode" value="'.dol_escape_htmltag($mode).
'">';
399print
'<input type="hidden" name="dol_resetcache" value="1">';
409if ($mode ==
'other') {
410 print
'<div class="div-table-responsive-no-min">';
411 print
'<table summary="edit" class="noborder centpercent editmode tableforfield">';
413 print
'<tr class="liste_titre"><td class="titlefieldmiddle">';
414 print $langs->trans(
"Language");
419 print
'<tr class="oddeven"><td>'.$langs->trans(
"DefaultLanguage").
'</td><td>';
420 print img_picto(
'',
'language',
'class="pictofixedwidth"');
421 print $formadmin->select_language(
getDolGlobalString(
'MAIN_LANG_DEFAULT'),
'MAIN_LANG_DEFAULT', 1, array(),
'', 0, 0,
'minwidth300', 2);
427 print
'<tr class="oddeven"><td>' . $langs->trans(
"EnableMultilangInterface") .
'</td><td>';
428 print ajax_constantonoff(
"MAIN_MULTILANGS", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'language');
432 print
'</table>' .
"\n";
435 print
'<div class="center">';
436 print
'<input class="button button-save reposition" type="submit" name="submit" value="' . $langs->trans(
"Save") .
'">';
437 print
'<input class="button button-cancel reposition" type="submit" name="cancel" value="' . $langs->trans(
"Cancel") .
'">';
444 print
'<div class="div-table-responsive-no-min">';
445 print
'<table summary="otherparameters" class="noborder centpercent editmode tableforfield">';
447 print
'<tr class="liste_titre"><td class="titlefieldmiddle">';
448 print $langs->trans(
"Miscellaneous");
453 if (!empty(
$conf->use_javascript_ajax)) {
455 print
'<tr class="oddeven"><td>' . $langs->trans(
"ShowQuickAddLink") .
'</td><td>';
456 print ajax_constantonoff(
"MAIN_USE_TOP_MENU_QUICKADD_DROPDOWN", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'other');
462 $pictohelp =
'<span class="fa fa-question-circle"></span>';
463 print
'<tr class="oddeven"><td>' . str_replace(
'{picto}', $pictohelp, $langs->trans(
"DisableLinkToHelp",
'{picto}')) .
'</td><td>';
464 print ajax_constantonoff(
"MAIN_HELP_DISABLELINK", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'other');
469 print
'<tr class="oddeven"><td>' . $langs->trans(
"DefaultMaxSizeList") .
'</td><td><input class="flat width50" name="MAIN_SIZE_LISTE_LIMIT" value="';
475 print
' <span class="opacitymedium">('.$langs->trans(
"Automatic").
')</span>';
481 print
'<tr class="oddeven"><td>' . $langs->trans(
"DefaultMaxSizeShortList") .
'</td><td><input class="flat width50" name="MAIN_SIZE_SHORTLIST_LIMIT" value="' .
getDolGlobalString(
'MAIN_SIZE_SHORTLIST_LIMIT') .
'"></td>';
485 print
'<tr class="oddeven"><td>' . $langs->trans(
"MAIN_CHECKBOX_LEFT_COLUMN") .
'</td><td>';
486 print ajax_constantonoff(
"MAIN_CHECKBOX_LEFT_COLUMN", array(),
$conf->entity, 0, 0, 1, 0, 0, 1,
'',
'other');
491 print
'<tr class="oddeven"><td>' . $form->textwithpicto($langs->trans(
"RowSingleClickToSelect"), $langs->trans(
"RowSingleClickToSelectDesc")) .
'</td><td>';
492 print ajax_constantonoff(
"MAIN_ROW_SINGLECLICK_TOSELECT", array(),
$conf->entity, 0, 0, 1, 0, 0, 1,
'',
'other');
497 print
'<tr class="oddeven"><td>' . $langs->trans(
"WeekStartOnDay") .
'</td><td>';
498 print $formother->select_dayofweek(
getDolGlobalString(
'MAIN_START_WEEK',
'1'),
'MAIN_START_WEEK', 0);
503 print
'<tr class="oddeven"><td>' . $langs->trans(
"DefaultWorkingDays") .
'</td><td>';
504 print
'<input type="text" name="MAIN_DEFAULT_WORKING_DAYS" size="5" value="' .
getDolGlobalString(
'MAIN_DEFAULT_WORKING_DAYS',
'1-5') .
'">';
509 print
'<tr class="oddeven"><td>' . $langs->trans(
"DefaultWorkingHours") .
'</td><td>';
510 print
'<input type="text" name="MAIN_DEFAULT_WORKING_HOURS" size="5" value="' .
getDolGlobalString(
'MAIN_DEFAULT_WORKING_HOURS',
'9-18') .
'">';
515 print
'<tr class="oddeven"><td>' . $langs->trans(
"FirstnameNamePosition") .
'</td><td>';
516 $array = array(0 => $langs->trans(
"Firstname") .
' ' . $langs->trans(
"Lastname"), 1 => $langs->trans(
"Lastname") .
' ' . $langs->trans(
"Firstname"));
517 print $form->selectarray(
'MAIN_FIRSTNAME_NAME_POSITION', $array,
getDolGlobalInt(
'MAIN_FIRSTNAME_NAME_POSITION', 0));
522 print
'<tr class="oddeven"><td>' . $form->textwithpicto($langs->trans(
"HideUnauthorizedMenu"), $langs->trans(
"JustGrayedOtherwise")) .
'</td><td>';
523 print ajax_constantonoff(
"MAIN_MENU_HIDE_UNAUTHORIZED", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'other');
528 print
'<tr class="oddeven"><td>' . $form->textwithpicto($langs->trans(
"ButtonHideUnauthorized"), $langs->trans(
"JustGrayedOtherwise")) .
'</td><td>';
529 print ajax_constantonoff(
"MAIN_BUTTON_HIDE_UNAUTHORIZED", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'other');
544 print
'<tr class="oddeven"><td>' . img_picto(
'',
'search',
'class="pictofixedwidth"').
' '.$langs->trans(
"ShowSearchAreaInTopMenu") .
'</td><td>';
545 print ajax_constantonoff(
"MAIN_USE_TOP_MENU_SEARCH_DROPDOWN", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'other');
550 print
'<tr class="oddeven"><td>';
551 print $form->textwithpicto($langs->trans(
"ShowBugTrackLink", $langs->transnoentitiesnoconv(
"FindBug")), $langs->trans(
"ShowBugTrackLinkDesc"));
553 print
'<input type="text" name="MAIN_BUGTRACK_ENABLELINK" value="' .
getDolGlobalString(
'MAIN_BUGTRACK_ENABLELINK') .
'">';
558 print
'<tr class="oddeven"><td>' . $form->textwithpicto($langs->trans(
"DisableJavascript"), $langs->trans(
"DisableJavascriptNote")) .
'</td><td>';
559 print ajax_constantonoff(
"MAIN_DISABLE_JAVASCRIPT", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'',
'other');
563 print
'</table>' .
"\n";
568if ($mode ==
'template') {
574if ($mode ==
'dashboard') {
575 print
'<div class="div-table-responsive-no-min">';
576 print
'<table summary="blockdashboard" class="noborder centpercent editmode tableforfield">';
579 $substitutionarray = getCommonSubstitutionArray($langs, 0, array(
'object',
'objectamount'));
582 print
'<tr class="oddeven width25p"><td>';
583 $texthelp = $langs->trans(
"FollowingConstantsWillBeSubstituted") .
'<br>';
584 foreach ($substitutionarray as $key => $val) {
585 $texthelp .= $key .
'<br>';
587 print $form->textwithpicto($langs->trans(
"MessageOfDay"), $texthelp, 1,
'help',
'', 0, 2,
'tooltipmessageofday');
591 $doleditor =
new DolEditor(
'main_motd',
getDolGlobalString(
'MAIN_MOTD'),
'', 142,
'dolibarr_notes',
'In',
false,
true,
true, ROWS_4,
'90%');
592 $doleditor->Create();
594 print
'</td></tr>'.
"\n";
601 print
'<div class="div-table-responsive-no-min">';
602 print
'<table summary="blockdashboard" class="noborder centpercent editmode tableforfield">';
604 print
'<tr class="liste_titre"><td class="titlefieldmiddle">';
605 print $langs->trans(
"DashboardDisableBlocks");
606 print
'</td><td class="titlefieldmiddle">';
609 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableGlobal') .
'</td><td>';
610 print ajax_constantonoff(
"MAIN_DISABLE_GLOBAL_WORKBOARD", array(),
$conf->entity, 0, 0, 1, 0, 0, 0,
'_red',
'dashboard');
616 print
'<tr class="oddeven"><td>' . $langs->trans(
'MAIN_DISABLE_METEO') .
'</td><td>';
617 print ajax_constantonoff(
"MAIN_DISABLE_METEO", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
622 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockAgenda') .
'</td><td>';
623 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_AGENDA", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
628 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockProject') .
'</td><td>';
629 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_PROJECT", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
634 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockCustomer') .
'</td><td>';
635 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_CUSTOMER", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
640 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockSupplier') .
'</td><td>';
641 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_SUPPLIER", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
646 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockContract') .
'</td><td>';
647 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_CONTRACT", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
652 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockTicket') .
'</td><td>';
653 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_TICKET", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
658 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockBank') .
'</td><td>';
659 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_BANK", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
664 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockAdherent') .
'</td><td>';
665 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_ADHERENT", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
670 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockExpenseReport') .
'</td><td>';
671 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_EXPENSEREPORT", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
676 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockHoliday') .
'</td><td>';
677 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_HOLIDAY", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
682 print
'<tr class="oddeven"><td>' . $langs->trans(
'DashboardDisableBlockMrp') .
'</td><td>';
683 print ajax_constantonoff(
"MAIN_DISABLE_BLOCK_MRP", array(),
$conf->entity, 0, 0, 0, 0, 0, 0,
'_red',
'dashboard');
688 print
'</table>' .
"\n";
693if ($mode ==
'login') {
695 print
'<div class="div-table-responsive-no-min">';
696 print
'<table summary="edit" class="noborder centpercent editmode tableforfield">';
698 print
'<tr class="liste_titre"><td class="titlefieldmax45">';
699 print $langs->trans(
"Parameter");
704 $substitutionarray = getCommonSubstitutionArray($langs, 0, array(
'object',
'objectamount',
'user'));
706 print
'<tr class="oddeven"><td>';
707 $texthelp = $langs->trans(
"FollowingConstantsWillBeSubstituted") .
'<br>';
708 foreach ($substitutionarray as $key => $val) {
709 $texthelp .= $key .
'<br>';
711 print $form->textwithpicto($langs->trans(
"MessageLogin"), $texthelp, 1,
'help',
'', 0, 2,
'tooltipmessagelogin');
713 $doleditor =
new DolEditor(
'main_home',
getDolGlobalString(
'MAIN_HOME'),
'', 142,
'dolibarr_notes',
'In',
false,
true,
true, ROWS_4,
'90%');
714 $doleditor->Create();
715 print
'</td></tr>' .
"\n";
718 print
'<tr class="oddeven"><td><label for="imagebackground">' . $langs->trans(
"BackgroundImageLogin") .
' (png,jpg)</label></td><td>';
719 print
'<div class="centpercent inline-block">';
722 $disabled =
' disabled="disabled"';
725 $maxmin = $maxfilesizearray[
'maxmin'];
727 print
'<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).
'">';
729 print
'<input type="file" class="flat maxwidthinputfileonsmartphone" name="imagebackground" id="imagebackground"' . $disabled .
'>';
731 print
'(' . $langs->trans(
"DisabledByOptionADD_UNSPLASH_LOGIN_BACKGROUND") .
') ';
734 print
'<a class="reposition" href="' . $_SERVER[
"PHP_SELF"] .
'?action=removebackgroundlogin&token='.newToken().
'&mode=login">' . img_delete($langs->trans(
"Delete")) .
'</a>';
737 print
'<img class="marginleftonly boxshadow valignmiddle" width="100" src="' . DOL_URL_ROOT .
'/viewimage.php?modulepart=mycompany&file=' . urlencode(
'logos/' .
getDolGlobalString(
'MAIN_LOGIN_BACKGROUND')) .
'">';
740 print
'<img class="marginleftonly valignmiddle" width="100" src="' . DOL_URL_ROOT .
'/public/theme/common/nophoto.png">';
745 print
'</table>' .
"\n";
750 print
'<div class="div-table-responsive-no-min">';
751 print
'<table summary="edit" class="noborder centpercent editmode tableforfield">';
753 print
'<tr class="liste_titre">';
754 print
'<td colspan="2">';
759 $doleditor =
new DolEditor(
'MAIN_IHM_CUSTOM_CSS', $customcssValue,
'80%', 400,
'Basic',
'In',
true,
false,
'ace', 10,
'90%');
760 $doleditor->Create(0,
'',
true,
'css',
'css');
761 print
'</td></tr>'.
"\n";
763 print
'</table>'.
"\n";
768print
'<div class="center">';
769print
'<input class="button button-save reposition buttonforacesave" type="submit" name="submit" value="' . $langs->trans(
"Save") .
'">';
770print
'<input class="button button-cancel reposition" type="submit" name="cancel" value="' . $langs->trans(
"Cancel") .
'">';
if(! $sortfield) if(! $sortorder) $object
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
ihm_prepare_head()
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.
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
Class to manage a WYSIWYG editor.
dol_delete_file($file, $disableglob=0, $nophperrors=0, $nohook=0, $object=null, $allowdotdot=false, $indexdatabase=1, $nolog=0)
Remove a file or several files with a mask.
dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disablevirusscan=0, $uploaderrorcode=0, $nohook=0, $keyforsourcefile='addedfile', $upload_dir='', $mode=0)
Check validity of a file upload from an GUI page, and move it to its final destination.
colorStringToArray($stringcolor, $colorifnotfound=array(88, 88, 88))
Convert a string RGB value ('FFFFFF', '255,255,255') into an array RGB array(255,255,...
dol_string_nohtmltag($stringtoclean, $removelinefeed=1, $pagecodeto='UTF-8', $strip_tags=0, $removedoublespaces=1)
Clean a string from all HTML tags and entities.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
dol_htmlcleanlastbr($stringtodecode)
This function remove all ending and br at end.
complete_substitutions_array(&$substitutionarray, $outputlangs, $object=null, $parameters=null, $callfunc="completesubstitutionarray")
Complete the $substitutionarray with more entries coming from external module that had set the "subst...
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
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_mkdir($dir, $dataroot='', $newmask='')
Creation of a directory (this can create recursive subdir)
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.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
image_format_supported($file, $acceptsvg=0)
Return if a filename is file name of a supported image format.
getMaxFileSizeArray()
Return the max allowed for file upload.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
showSkins($fuser, $edit=0, $foruserprofile=false)
Show list of themes.