Go to the documentation of this file.
25 require
'../../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
30 $langs->load(
"admin");
32 $action =
GETPOST(
'action',
'aZ09');
34 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
35 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
43 if (empty($page) || $page == -1) {
46 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
47 $offset = $limit * $page;
58 if ($action ==
'deletefile') {
59 if (preg_match(
'/^backup\//',
GETPOST(
'urlfile',
'alpha'))) {
60 $file = $conf->admin->dir_output.
'/backup/'.basename(
GETPOST(
'urlfile',
'alpha'));
68 $file = $conf->admin->dir_output.
'/documents/'.basename(
GETPOST(
'urlfile',
'alpha'));
91 $help_url =
'EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
94 print
'<script type="text/javascript">
95 jQuery(document).ready(function() {';
98 function hideoptions () {
99 jQuery(
"#mysql_options").hide();
100 jQuery(
"#mysql_nobin_options").hide();
101 jQuery(
"#postgresql_options").hide();
105 jQuery(
"#radio_dump_mysql").click(
function() {
107 jQuery(
"#mysql_options").show();
109 jQuery(
"#radio_dump_mysql_nobin").click(
function() {
111 jQuery(
"#mysql_nobin_options").show();
113 jQuery(
"#radio_dump_postgresql").click(
function() {
115 jQuery(
"#postgresql_options").show();
117 jQuery(
"#select_sql_compat").click(
function() {
118 if (jQuery(
"#select_sql_compat").val() ==
'POSTGRESQL')
120 jQuery(
"#checkbox_dump_disable-add-locks").prop(
'checked',
true);
125 if (in_array($type, array(
'mysql',
'mysqli'))) {
126 print
'jQuery("#radio_dump_mysql").click();';
128 if (in_array($type, array(
'pgsql'))) {
129 print
'jQuery("#radio_dump_postgresql").click();';
134 $title = $langs->trans(
"Backup");
139 print
'<div class="center">';
140 print $langs->trans(
"BackupDesc", DOL_DATA_ROOT);
144 print
"<!-- Dump of a server -->\n";
145 print
'<form method="post" action="export.php" name="dump">';
146 print
'<input type="hidden" name="token" value="'.newToken().
'" />';
147 print
'<input type="hidden" name="export_type" value="server" />';
148 print
'<input type="hidden" name="page_y" value="" />';
150 print
'<fieldset id="fieldsetexport"><legend class="legendforfieldsetstep" style="font-size: 3em">1</legend>';
152 print
'<span class="opacitymedium">';
153 print $langs->trans(
"BackupDesc3", $dolibarr_main_db_name).
'<br>';
159 print
'<div id="backupdatabaseleft" class="fichehalfleft" >';
161 $title = $langs->trans(
"BackupDumpWizard");
165 print
'<table class="liste nohover centpercent noborderbottom">';
166 print
'<tr class="liste_titre">';
167 print
'<td class="liste_titre">';
168 print $langs->trans(
"DatabaseName").
' : <b>'.$dolibarr_main_db_name.
'</b><br>';
171 print
'<tr class="oddeven nohover"><td style="padding-left: 8px" class="nohover">';
173 print
'<table class="centpercent noborderbottom">';
175 print
'<td class="tdtop nopaddingleftimp">';
177 print
'<div id="div_container_exportoptions">';
178 print
'<fieldset id="exportoptions"><legend>'.$langs->trans(
"ExportMethod").
'</legend>';
179 if (in_array($type, array(
'mysql',
'mysqli'))) {
180 print
'<div class="formelementrow"><input type="radio" name="what" value="mysql" id="radio_dump_mysql" />';
181 print
'<label for="radio_dump_mysql">MySQL Dump (mysqldump)</label>';
184 print
'<div class="formelementrow"><input type="radio" name="what" value="mysqlnobin" id="radio_dump_mysql_nobin" />';
185 print
'<label for="radio_dump_mysql_nobin">MySQL Dump (php) '.img_warning($langs->trans(
'BackupPHPWarning')).
'</label>';
187 } elseif (in_array($type, array(
'pgsql'))) {
188 print
'<div class="formelementrow"><input type="radio" name="what" value="postgresql" id="radio_dump_postgresql" />';
189 print
'<label for="radio_dump_postgresql">PostgreSQL Dump (pg_dump)</label>';
192 print
'No method available with database '.$label;
198 print
'<td class="tdtop nopaddingrightimp">';
201 print
'<div id="div_container_sub_exportoptions">';
202 if (in_array($type, array(
'mysql',
'mysqli'))) {
203 print
"<!-- Fieldset mysqldump -->\n";
204 print
'<fieldset id="mysql_options"><legend>'.$langs->trans(
"MySqlExportParameters").
'</legend>';
206 print
'<div class="formelementrow">'.$langs->trans(
"FullPathToMysqldumpCommand");
207 if (empty($conf->global->SYSTEMTOOLS_MYSQLDUMP)) {
208 $fullpathofmysqldump = $db->getPathOfDump();
210 $fullpathofmysqldump = $conf->global->SYSTEMTOOLS_MYSQLDUMP;
213 print
'<input type="text" name="mysqldump" style="width: 80%" value="'.$fullpathofmysqldump.
'" /></div>';
216 print
'<fieldset><legend>'.$langs->trans(
"ExportOptions").
'</legend>';
218 if (!empty($conf->global->MYSQL_OLD_OPTION_DISABLE_FK)) {
219 print
'<div class="formelementrow">';
220 print
'<input type="checkbox" name="disable_fk" value="yes" id="checkbox_disable_fk" checked />';
221 print
'<label for="checkbox_disable_fk">'.$langs->trans(
"CommandsToDisableForeignKeysForImport").
' '.
img_info($langs->trans(
'CommandsToDisableForeignKeysForImportWarning')).
'</label>';
225 print
'<label for="select_sql_compat">'.$langs->trans(
"ExportCompatibility").
'</label>';
227 print
'<select name="sql_compat" id="select_sql_compat" class="flat">';
228 print
'<option value="NONE" selected>NONE</option>';
229 print
'<option value="ANSI">ANSI</option>';
230 print
'<option value="DB2">DB2</option>';
231 print
'<option value="MAXDB">MAXDB</option>';
232 print
'<option value="MYSQL323">MYSQL323</option>';
233 print
'<option value="MYSQL40">MYSQL40</option>';
234 print
'<option value="MSSQL">MSSQL</option>';
235 print
'<option value="ORACLE">ORACLE</option>';
236 print
'<option value="POSTGRESQL">POSTGRESQL</option>';
240 print
'<div class="formelementrow">';
241 print
'<input type="checkbox" name="use_transaction" value="yes" id="checkbox_use_transaction" checked="checked" />';
242 print
'<label for="checkbox_use_transaction">'.$langs->trans(
"UseTransactionnalMode").
'</label>';
245 print
'<input type="checkbox" name="use_mysql_quick_param" value="yes" id="checkbox_use_quick" checked="checked" />';
246 print
'<label for="checkbox_use_quick">';
247 print
$form->textwithpicto($langs->trans(
'ExportUseMySQLQuickParameter'), $langs->trans(
'ExportUseMySQLQuickParameterHelp'));
252 if (!empty($conf->global->MAIN_EXEC_USE_POPEN)) {
253 $execmethod = $conf->global->MAIN_EXEC_USE_POPEN;
255 if (empty($execmethod)) {
258 if ($execmethod == 1) {
260 print
'<input type="checkbox" name="lowmemorydump" value="yes" id="lowmemorydump"'.((GETPOSTISSET(
'lowmemorydump') ?
GETPOST(
'lowmemorydump',
'alpha') :
getDolGlobalString(
'MAIN_LOW_MEMORY_DUMP')) ?
' checked="checked"' :
'').
'" />';
261 print
'<label for="lowmemorydump">';
262 print
$form->textwithpicto($langs->trans(
'ExportUseLowMemoryMode'), $langs->trans(
'ExportUseLowMemoryModeHelp'));
267 print
'<!-- <input type="checkbox" name="drop_database" value="yes" id="checkbox_drop_database" />';
268 print
'<label for="checkbox_drop_database">'.$langs->trans(
"AddDropDatabase").
'</label>';
275 print
'<input type="checkbox" name="sql_structure" value="structure" id="checkbox_sql_structure" checked />';
276 print
'<label for="checkbox_sql_structure">'.$langs->trans(
'ExportStructure').
'</label>';
279 print
'<input type="checkbox" name="drop"'.((!
GETPOSTISSET(
"drop") ||
GETPOST(
'drop')) ?
' checked' :
'').
' id="checkbox_dump_drop" />';
280 print
'<label for="checkbox_dump_drop">'.$langs->trans(
"AddDropTable").
'</label>';
287 print
'<input type="checkbox" name="sql_data" value="data" id="checkbox_sql_data" checked />';
288 print
'<label for="checkbox_sql_data">'.$langs->trans(
"Datas").
'</label>';
290 print
'<input type="checkbox" name="showcolumns" value="yes" id="checkbox_dump_showcolumns" checked />';
291 print
'<label for="checkbox_dump_showcolumns">'.$langs->trans(
"NameColumn").
'</label>';
294 print
'<input type="checkbox" name="extended_ins" value="yes" id="checkbox_dump_extended_ins" checked />';
295 print
'<label for="checkbox_dump_extended_ins">'.$langs->trans(
"ExtendedInsert").
'</label>';
298 print
'<input type="checkbox" name="disable-add-locks" value="no" id="checkbox_dump_disable-add-locks" />';
299 print
'<label for="checkbox_dump_disable-add-locks">'.$langs->trans(
"NoLockBeforeInsert").
'</label>';
302 print
'<input type="checkbox" name="delayed" value="yes" id="checkbox_dump_delayed" />';
303 print
'<label for="checkbox_dump_delayed">'.$langs->trans(
"DelayedInsert").
'</label>';
306 print
'<input type="checkbox" name="sql_ignore" value="yes" id="checkbox_dump_ignore" />';
307 print
'<label for="checkbox_dump_ignore">'.$langs->trans(
"IgnoreDuplicateRecords").
'</label>';
310 print
'<input type="checkbox" name="hexforbinary" value="yes" id="checkbox_hexforbinary" checked />';
311 print
'<label for="checkbox_hexforbinary">'.$langs->trans(
"EncodeBinariesInHexa").
'</label>';
314 print
'<input type="checkbox" name="charset_utf8" value="yes" id="checkbox_charset_utf8" checked disabled />';
315 print
'<label for="checkbox_charset_utf8">'.$langs->trans(
"UTF8").
'</label>';
320 print
"<!-- Fieldset mysql_nobin -->\n";
321 print
'<fieldset id="mysql_nobin_options">';
322 print
'<legend>'.$langs->trans(
"MySqlExportParameters").
'</legend>';
324 print
'<legend>'.$langs->trans(
"ExportOptions").
'</legend>';
325 print
'<div class="formelementrow">';
326 print
'<input type="checkbox" name="nobin_use_transaction" value="yes" id="checkbox_use_transaction" />';
327 print
'<label for="checkbox_use_transaction">'.$langs->trans(
"UseTransactionnalMode").
'</label>';
330 if (!empty($conf->global->MYSQL_OLD_OPTION_DISABLE_FK)) {
331 print
'<div class="formelementrow">';
332 print
'<input type="checkbox" name="nobin_disable_fk" value="yes" id="checkbox_disable_fk" checked />';
333 print
'<label for="checkbox_disable_fk">'.$langs->trans(
"CommandsToDisableForeignKeysForImport").
' '.
img_info($langs->trans(
'CommandsToDisableForeignKeysForImportWarning')).
'</label>';
339 print
'<fieldset><legend>'.$langs->trans(
'ExportStructure').
'</legend>';
340 print
'<input type="checkbox" name="nobin_drop"'.((!
GETPOSTISSET(
"nobin_drop") ||
GETPOST(
'nobin_drop')) ?
' checked' :
'').
' id="checkbox_dump_drop" />';
341 print
'<label for="checkbox_dump_drop">'.$langs->trans(
"AddDropTable").
'</label>';
347 print
'<legend>'.$langs->trans(
"Datas").
'</legend>';
349 print
'<input type="checkbox" name="nobin_nolocks" value="no" id="checkbox_dump_disable-add-locks" />';
350 print
'<label for="checkbox_dump_disable-add-locks">'.$langs->trans(
"NoLockBeforeInsert").
'</label>';
353 print
'<input type="checkbox" name="nobin_delayed" value="yes" id="checkbox_dump_delayed" />';
354 print
'<label for="checkbox_dump_delayed">'.$langs->trans(
"DelayedInsert").
'</label>';
357 print
'<input type="checkbox" name="nobin_sql_ignore" value="yes" id="checkbox_dump_ignore" />';
358 print
'<label for="checkbox_dump_ignore">'.$langs->trans(
"IgnoreDuplicateRecords").
'</label>';
361 print
'<input type="checkbox" name="nobin_charset_utf8" value="yes" id="checkbox_charset_utf8" checked disabled />';
362 print
'<label for="checkbox_charset_utf8">'.$langs->trans(
"UTF8").
'</label>';
369 if (in_array($type, array(
'pgsql'))) {
370 print
"<!-- Fieldset pg_dump -->\n";
371 print
'<fieldset id="postgresql_options"><legend>'.$langs->trans(
"PostgreSqlExportParameters").
'</legend>';
373 print
'<div class="formelementrow">'.$langs->trans(
"FullPathToPostgreSQLdumpCommand");
374 if (empty($conf->global->SYSTEMTOOLS_POSTGRESQLDUMP)) {
375 $fullpathofpgdump = $db->getPathOfDump();
377 $fullpathofpgdump = $conf->global->SYSTEMTOOLS_POSTGRESQLDUMP;
380 print
'<input type="text" name="postgresqldump" style="width: 80%" value="'.$fullpathofpgdump.
'" /></div>';
384 print
'<legend>'.$langs->trans(
"ExportOptions").
'</legend>';
385 print
'<label for="select_sql_compat">'.$langs->trans(
"ExportCompatibility").
'</label>';
386 print
'<select name="sql_compat" id="select_sql_compat" class="flat">';
387 print
'<option value="POSTGRESQL" selected>POSTGRESQL</option>';
388 print
'<option value="ANSI">ANSI</option>';
391 print
'<!-- <input type="checkbox" name="drop_database" value="yes" id="checkbox_drop_database" />';
392 print
'<label for="checkbox_drop_database">'.$langs->trans(
"AddDropDatabase").
'</label>';
398 print
'<input type="checkbox" name="sql_structure" value="structure" id="checkbox_sql_structure" checked />';
399 print
'<label for="checkbox_sql_structure">'.$langs->trans(
'ExportStructure').
'</label>';
405 print
'<input type="checkbox" name="sql_data" value="data" id="checkbox_sql_data" checked />';
406 print
'<label for="checkbox_sql_data">'.$langs->trans(
"Datas").
'</label>';
408 print
'<input type="checkbox" name="showcolumns" value="yes" id="checkbox_dump_showcolumns" checked />';
409 print
'<label for="checkbox_dump_showcolumns">'.$langs->trans(
"NameColumn").
'</label>';
423 print
'<!--<fieldset>';
424 print
'<legend>'.$langs->trans(
"Destination").
'</legend> -->';
426 print
'<label for="filename_template" class="line-height-large">'.$langs->trans(
"FileNameToGenerate").
'</label>';
430 if (in_array($type, array(
'mysql',
'mysqli'))) {
431 $prefix =
'mysqldump';
438 if (in_array($type, array(
'pgsql'))) {
443 print
'<input type="text" name="filename_template" style="width: 90%" id="filename_template" value="'.$file.
'" />';
448 $compression = array();
449 if (in_array($type, array(
'mysql',
'mysqli'))) {
450 $compression[
'gz'] = array(
451 'function' =>
'gzopen',
452 'id' =>
'radio_compression_gzip',
453 'label' => $langs->trans(
"Gzip")
461 $compression[
'bz'] = array(
462 'function' =>
'bzopen',
463 'id' =>
'radio_compression_bzip',
464 'label' => $langs->trans(
"Bzip2")
466 $compression[
'zstd'] = array(
467 'function' =>
'zstd_compress',
468 'id' =>
'radio_compression_zstd',
469 'label' => $langs->trans(
"Zstd")
471 $compression[
'none'] = array(
473 'id' =>
'radio_compression_none',
474 'label' => $langs->trans(
"None")
477 $compression[
'none'] = array(
479 'id' =>
'radio_compression_none',
480 'label' => $langs->trans(
"None")
482 $compression[
'gz'] = array(
483 'function' =>
'gzopen',
484 'id' =>
'radio_compression_gzip',
485 'label' => $langs->trans(
"Gzip")
490 print
'<div class="formelementrow">';
493 print $langs->trans(
"Compression").
': ';
496 foreach ($compression as $key => $val) {
497 if (!$val[
'function'] || function_exists($val[
'function'])) {
501 $checked =
' checked';
503 print
'<input type="radio" name="compression" value="'.$key.
'" id="'.$val[
'id'].
'"'.$checked.
'>';
504 print
' <label for="'.$val[
'id'].
'">'.$val[
'label'].
'</label>';
507 print
'<input type="radio" name="compression" value="'.$key.
'" id="'.$val[
'id'].
'" disabled>';
508 print
' <label for="'.$val[
'id'].
'">'.$val[
'label'].
'</label>';
509 print
' <span class="opacitymedium">('.$langs->trans(
"NotAvailable").
')</span>';
511 print
' ';
518 print
"<!--</fieldset>--> <!-- End destination -->\n";
521 print
'<div class="center">';
522 print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"GenerateBackup").
'" id="buttonGo">';
526 if (!empty($_SESSION[
"commandbackuplastdone"])) {
527 print
'<br><b>'.$langs->trans(
"RunCommandSummary").
':</b><br>'.
"\n";
528 print
'<textarea rows="'.ROWS_2.
'" class="centpercent">'.$_SESSION[
"commandbackuplastdone"].
'</textarea><br>'.
"\n";
534 print
'<b>'.$langs->trans(
"BackupResult").
':</b> ';
535 print $_SESSION[
"commandbackupresult"];
537 $_SESSION[
"commandbackuplastdone"] =
'';
538 $_SESSION[
"commandbackuptorun"] =
'';
539 $_SESSION[
"commandbackupresult"] =
'';
541 if (!empty($_SESSION[
"commandbackuptorun"])) {
542 print
'<br><span class="warning">'.$langs->trans(
"YouMustRunCommandFromCommandLineAfterLoginToUser", $dolibarr_main_db_user, $dolibarr_main_db_user).
':</span><br>'.
"\n";
543 print
'<textarea id="commandbackuptoruntext" rows="'.ROWS_2.
'" class="centpercent">'.$_SESSION[
"commandbackuptorun"].
'</textarea><br>'.
"\n";
549 $_SESSION[
"commandbackuplastdone"] =
'';
550 $_SESSION[
"commandbackuptorun"] =
'';
551 $_SESSION[
"commandbackupresult"] =
'';
554 print
"</div> <!-- end div center button -->\n";
559 print
"</div> <!-- end div fichehalfleft -->\n";
562 print
'<div id="backupdatabaseright" class="fichehalfright">';
564 $filearray =
dol_dir_list($conf->admin->dir_output.
'/backup',
'files', 0,
'',
'', $sortfield, (strtolower($sortorder) ==
'asc' ?SORT_ASC:SORT_DESC), 1);
565 $result = $formfile->list_of_documents($filearray,
null,
'systemtools',
'', 1,
'backup/', 1, 0, $langs->trans(
"NoBackupFileAvailable"), 0, $langs->trans(
"PreviousDumpFiles"),
'', 0, -1,
'',
'',
'ASC', 1, 0, -1,
'style="height:480px; overflow: auto;"');
573 $title = $langs->trans(
"BackupZipWizard");
576 print
"<!-- Dump of a server -->\n";
578 print
'<form method="post" action="export_files.php" name="dump">';
579 print
'<input type="hidden" name="token" value="'.newToken().
'" />';
580 print
'<input type="hidden" name="export_type" value="server" />';
581 print
'<input type="hidden" name="page_y" value="" />';
583 print
'<fieldset><legend class="legendforfieldsetstep" style="font-size: 3em">2</legend>';
585 print
'<span class="opacitymedium">';
586 print $langs->trans(
"BackupDesc2", DOL_DATA_ROOT).
'<br>';
587 print $langs->trans(
"BackupDescX").
'<br><br>';
590 print
'<div id="backupfilesleft" class="fichehalfleft">';
594 print
'<label for="zipfilename_template" class="line-height-large paddingbottom">'.$langs->trans(
"FileNameToGenerate").
'</label><br>';
595 $prefix =
'documents';
598 print
'<input type="text" name="zipfilename_template" style="width: 90%" id="zipfilename_template" value="'.$file.
'" /> <br>';
604 print
'<div class="formelementrow">';
607 print $langs->trans(
"Compression").
': ';
608 $filecompression = $compression;
609 unset($filecompression[
'none']);
610 $filecompression[
'zip'] = array(
'function' =>
'dol_compress_dir',
'id' =>
'radio_compression_zip',
'label' => $langs->trans(
"FormatZip"));
613 foreach ($filecompression as $key => $val) {
614 if (!$val[
'function'] || function_exists($val[
'function'])) {
617 $checked =
' checked';
619 print
'<input type="radio" name="compression" value="'.$key.
'" id="'.$val[
'id'].
'"'.$checked.
'>';
620 print
' <label for="'.$val[
'id'].
'">'.$val[
'label'].
'</label>';
623 print
'<input type="radio" name="compression" value="'.$key.
'" id="'.$val[
'id'].
'" disabled>';
624 print
' <label for="'.$val[
'id'].
'">'.$val[
'label'].
'</label>';
625 print
' <span class="opacitymedium">('.$langs->trans(
"NotAvailable").
')</span>';
627 print
' ';
635 print
'<div class="center">';
636 print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"GenerateBackup").
'" id="buttonGo" /><br>';
642 print
'<div id="backupfileright" class="fichehalfright">';
644 $filearray =
dol_dir_list($conf->admin->dir_output.
'/documents',
'files', 0,
'',
'', $sortfield, (strtolower($sortorder) ==
'asc' ?SORT_ASC:SORT_DESC), 1);
645 $result = $formfile->list_of_documents($filearray,
null,
'systemtools',
'', 1,
'documents/', 1, 0, $langs->trans(
"NoBackupFileAvailable"), 0, $langs->trans(
"PreviousArchiveFiles"),
'', 0, -1,
'',
'',
'ASC', 1, 0, -1,
'style="height:250px; overflow: auto;"');
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
img_info($titlealt='default')
Show info logo.
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
dol_dir_list($path, $types="all", $recursive=0, $filter="", $excludefilter=null, $sortcriteria="name", $sortorder=SORT_ASC, $mode=0, $nohook=0, $relativename="", $donotfollowsymlinks=0)
Scan a directory and return a list of files/directories.
if(GETPOST('button_removefilter_x', 'alpha')||GETPOST('button_removefilter.x', 'alpha')||GETPOST('button_removefilter', 'alpha')) if(GETPOST('button_search_x', 'alpha')||GETPOST('button_search.x', 'alpha')||GETPOST('button_search', 'alpha')) if($action=="save" &&empty($cancel)) $help_url
View.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
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.
if(!function_exists('utf8_encode')) if(!function_exists('utf8_decode')) getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
dol_now($mode='auto')
Return date for now.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
ajax_autoselect($htmlname, $addlink='', $textonlink='Link')
Make content of an input box selected when we click into input field.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.