Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
ctm.bdcloud.fr /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxrwxrwx
2021-01-23 04:17
dolistore
[ DIR ]
drwxrwxrwx
2020-09-03 11:41
menus
[ DIR ]
drwxrwxrwx
2020-09-03 11:41
system
[ DIR ]
drwxrwxrwx
2022-07-01 18:32
temp
[ DIR ]
drwxrwxrwx
2023-01-17 16:17
tools
[ DIR ]
drwxrwxrwx
2020-09-03 11:41
.htaccess
510
B
-rw-r--r--
2023-01-18 07:38
accountant.php
8.62
KB
-rwxrwxrwx
2020-09-03 11:37
agenda.php
7.11
KB
-rwxrwxrwx
2020-09-03 11:37
agenda_extrafields.php
4.05
KB
-rwxrwxrwx
2020-09-03 11:37
agenda_extsites.php
8.27
KB
-rwxrwxrwx
2020-09-03 11:37
agenda_other.php
13.97
KB
-rwxrwxrwx
2020-09-03 11:37
agenda_reminder.php
7.72
KB
-rwxrwxrwx
2020-09-03 11:37
agenda_xcal.php
8.54
KB
-rwxrwxrwx
2020-09-03 11:37
bank.php
18.42
KB
-rwxrwxrwx
2020-09-03 11:37
bank_extrafields.php
3.28
KB
-rwxrwxrwx
2020-09-03 11:37
barcode.php
13.35
KB
-rwxrwxrwx
2020-09-03 11:37
bom.php
16.96
KB
-rwxrwxrwx
2020-09-03 11:37
boxes.php
16.64
KB
-rwxrwxrwx
2020-09-03 11:37
chequereceipts.php
9.17
KB
-rwxrwxrwx
2020-09-03 11:37
clicktodial.php
5.06
KB
-rwxrwxrwx
2020-09-03 11:37
commande.php
26.53
KB
-rwxrwxrwx
2020-09-03 11:37
commande_fournisseur_dispatch_extrafields.php
4.2
KB
-rwxrwxrwx
2020-09-03 11:37
company.php
35.21
KB
-rwxrwxrwx
2020-09-03 11:37
compta.php
5.05
KB
-rwxrwxrwx
2020-09-03 11:37
confexped.php
4.44
KB
-rwxrwxrwx
2020-09-03 11:37
const.php
10.04
KB
-rwxrwxrwx
2020-09-03 11:37
contract.php
16.89
KB
-rwxrwxrwx
2020-09-03 11:37
dav.php
6.04
KB
-rwxrwxrwx
2020-09-03 11:37
debugbar.php
3.62
KB
-rwxrwxrwx
2020-09-03 11:37
defaultvalues.php
15.73
KB
-rwxrwxrwx
2020-09-03 11:37
delais.php
15.38
KB
-rwxrwxrwx
2020-09-03 11:37
dict.php
102.49
KB
-rwxrwxrwx
2020-09-03 11:37
ecm.php
2.96
KB
-rwxrwxrwx
2020-09-03 11:37
emailcollector_card.php
27.14
KB
-rwxrwxrwx
2020-09-03 11:37
emailcollector_list.php
22.37
KB
-rwxrwxrwx
2020-09-03 11:37
events.php
3.36
KB
-rwxrwxrwx
2020-09-03 11:37
expedition.php
17.35
KB
-rwxrwxrwx
2020-09-03 11:37
expedition_extrafields.php
4.12
KB
-rwxrwxrwx
2020-09-03 11:37
expeditiondet_extrafields.php
4.18
KB
-rwxrwxrwx
2020-09-03 11:37
expensereport.php
16.39
KB
-rwxrwxrwx
2020-09-03 11:37
expensereport_extrafields.php
4
KB
-rwxrwxrwx
2020-09-03 11:37
expensereport_ik.php
6.14
KB
-rwxrwxrwx
2020-09-03 11:37
expensereport_rules.php
11.11
KB
-rwxrwxrwx
2020-09-03 11:37
export.php
3.08
KB
-rwxrwxrwx
2020-09-03 11:37
external_rss.php
9.84
KB
-rwxrwxrwx
2020-09-03 11:37
facture.php
31.94
KB
-rwxrwxrwx
2020-09-03 11:37
facture_situation.php
6.92
KB
-rwxrwxrwx
2020-09-03 11:37
fckeditor.php
8.09
KB
-rwxrwxrwx
2020-09-03 11:37
fichinter.php
21.09
KB
-rwxrwxrwx
2020-09-03 11:37
geoipmaxmind.php
5.57
KB
-rwxrwxrwx
2020-09-03 11:37
holiday.php
17.33
KB
-rwxrwxrwx
2020-09-03 11:37
holiday_extrafields.php
3.95
KB
-rwxrwxrwx
2020-09-03 11:37
ihm.php
20.07
KB
-rwxrwxrwx
2020-09-03 11:37
index.php
32.98
KB
-rwxrwxrwx
2023-01-18 07:38
ldap.php
12.75
KB
-rwxrwxrwx
2020-09-03 11:37
ldap_contacts.php
14.98
KB
-rwxrwxrwx
2020-09-03 11:37
ldap_groups.php
9.62
KB
-rwxrwxrwx
2020-09-03 11:37
ldap_members.php
19.95
KB
-rwxrwxrwx
2020-09-03 11:37
ldap_members_types.php
8.8
KB
-rwxrwxrwx
2020-09-03 11:37
ldap_users.php
21.72
KB
-rwxrwxrwx
2020-09-03 11:37
limits.php
11.72
KB
-rwxrwxrwx
2020-09-03 11:37
livraison.php
16.06
KB
-rwxrwxrwx
2020-09-03 11:37
livraison_extrafields.php
4.12
KB
-rwxrwxrwx
2020-09-03 11:37
livraisondet_extrafields.php
4.19
KB
-rwxrwxrwx
2020-09-03 11:37
loan.php
3.21
KB
-rwxrwxrwx
2020-09-03 11:37
mailing.php
5.42
KB
-rwxrwxrwx
2020-09-03 11:37
mailman.php
7.94
KB
-rwxrwxrwx
2020-09-03 11:37
mails.php
38.7
KB
-rwxrwxrwx
2020-09-03 11:37
mails_emailing.php
25.4
KB
-rwxrwxrwx
2020-09-03 11:37
mails_senderprofile_list.php
26.76
KB
-rwxrwxrwx
2020-09-03 11:37
mails_templates.php
46.38
KB
-rwxrwxrwx
2020-09-03 11:37
menus.php
7.99
KB
-rwxrwxrwx
2020-09-03 11:37
modulehelp.php
18.53
KB
-rwxrwxrwx
2020-09-03 11:37
modules.php
48.74
KB
-rwxrwxrwx
2020-09-03 11:37
mrp.php
16.97
KB
-rwxrwxrwx
2020-09-03 11:37
multicurrency.php
12.63
KB
-rwxrwxrwx
2020-09-03 11:37
notification.php
10.87
KB
-rwxrwxrwx
2020-09-03 11:37
oauth.php
4.79
KB
-rwxrwxrwx
2020-09-03 11:37
oauthlogintokens.php
14.05
KB
-rwxrwxrwx
2020-09-03 11:37
openinghours.php
6.43
KB
-rwxrwxrwx
2020-09-03 11:37
order_extrafields.php
3.98
KB
-rwxrwxrwx
2020-09-03 11:37
orderdet_extrafields.php
4.06
KB
-rwxrwxrwx
2020-09-03 11:37
payment.php
10.09
KB
-rwxrwxrwx
2020-09-03 11:37
pdf.php
13.98
KB
-rwxrwxrwx
2020-09-03 11:37
perms.php
6.65
KB
-rwxrwxrwx
2020-09-03 11:37
prelevement.php
19.33
KB
-rwxrwxrwx
2020-09-03 11:37
propal.php
25.7
KB
-rwxrwxrwx
2020-09-03 11:37
proxy.php
6.8
KB
-rwxrwxrwx
2020-09-03 11:37
receiptprinter.php
17.69
KB
-rwxrwxrwx
2020-09-03 11:37
reception_extrafields.php
4.11
KB
-rwxrwxrwx
2020-09-03 11:37
reception_setup.php
17.05
KB
-rwxrwxrwx
2020-09-03 11:37
resource.php
4.35
KB
-rwxrwxrwx
2020-09-03 11:37
resource_extrafields.php
3.96
KB
-rwxrwxrwx
2020-09-03 11:37
security.php
16.36
KB
-rwxrwxrwx
2020-09-03 11:37
security_file.php
6.96
KB
-rwxrwxrwx
2020-09-03 11:37
security_other.php
6.13
KB
-rwxrwxrwx
2020-09-03 11:37
sms.php
11.3
KB
-rwxrwxrwx
2020-09-03 11:37
socialnetworks.php
3.21
KB
-rwxrwxrwx
2020-09-03 11:37
spip.php
4.87
KB
-rwxrwxrwx
2020-09-03 11:37
stock.php
17.24
KB
-rwxrwxrwx
2020-09-03 11:37
supplier_invoice.php
18.58
KB
-rwxrwxrwx
2020-09-03 11:37
supplier_order.php
21.33
KB
-rwxrwxrwx
2020-09-03 11:37
supplier_payment.php
16.5
KB
-rwxrwxrwx
2020-09-03 11:37
supplier_proposal.php
20.42
KB
-rwxrwxrwx
2020-09-03 11:37
supplierinvoice_extrafields.php
4.13
KB
-rwxrwxrwx
2020-09-03 11:37
supplierinvoicedet_extrafields.php
4.2
KB
-rwxrwxrwx
2020-09-03 11:37
supplierorder_extrafields.php
4.05
KB
-rwxrwxrwx
2020-09-03 11:37
supplierorderdet_extrafields.php
4.12
KB
-rwxrwxrwx
2020-09-03 11:37
syslog.php
10.1
KB
-rwxrwxrwx
2020-09-03 11:37
taxes.php
8.78
KB
-rwxrwxrwx
2020-09-03 11:37
ticket.php
18.19
KB
-rwxrwxrwx
2020-09-03 11:37
ticket_extrafields.php
3.8
KB
-rwxrwxrwx
2020-09-03 11:37
ticket_public.php
15.61
KB
-rwxrwxrwx
2020-09-03 11:37
translation.php
22.79
KB
-rwxrwxrwx
2020-09-03 11:37
triggers.php
2.74
KB
-rwxrwxrwx
2020-09-03 11:37
user.php
11.13
KB
-rwxrwxrwx
2020-09-03 11:37
usergroup.php
9.87
KB
-rwxrwxrwx
2020-09-03 11:37
website.php
23.29
KB
-rwxrwxrwx
2020-09-03 11:37
website_options.php
4.66
KB
-rwxrwxrwx
2020-09-03 11:37
workflow.php
7.03
KB
-rwxrwxrwx
2020-09-03 11:37
Save
Rename
<?php /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2017 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2016 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es> * * 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 <https://www.gnu.org/licenses/>. */ /** * \file htdocs/admin/ihm.php * \brief Page to setup GUI display options */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; // Load translation files required by the page $langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'projects', 'hrm', 'agenda')); if (! $user->admin) accessforbidden(); $action = GETPOST('action', 'aZ09'); $contextpage=GETPOST('contextpage', 'aZ')?GETPOST('contextpage', 'aZ'):'adminihm'; // To manage different context of search if (! defined("MAIN_MOTD")) define("MAIN_MOTD", ""); /* * Action */ $parameters=array(); $reshook=$hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (GETPOST('cancel', 'alpha')) { $action=''; } // Convert action set_XXX and del_XXX to set var (this is used when no javascript on for ajax_constantonoff) $regs = array(); if (preg_match('/^(set|del)_([A-Z_]+)$/', $action, $regs)) { if ($regs[1] == 'set') dolibarr_set_const($db, $regs[2], 1, 'chaine', 0, '', $conf->entity); else dolibarr_del_const($db, $regs[2], $conf->entity); } if ($action == 'removebackgroundlogin' && ! empty($conf->global->MAIN_LOGIN_BACKGROUND)) { dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", (int) $conf->global->MAIN_IHM_PARAMS_REV+1, 'chaine', 0, '', $conf->entity); require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; $logofile=$conf->mycompany->dir_output.'/logos/'.$conf->global->MAIN_LOGIN_BACKGROUND; dol_delete_file($logofile); dolibarr_del_const($db, "MAIN_LOGIN_BACKGROUND", $conf->entity); $mysoc->logo=''; /*$logosmallfile=$conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_small; dol_delete_file($logosmallfile); dolibarr_del_const($db, "MAIN_INFO_SOCIETE_LOGO_SMALL",$conf->entity); $mysoc->logo_small=''; $logominifile=$conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_mini; dol_delete_file($logominifile); dolibarr_del_const($db, "MAIN_INFO_SOCIETE_LOGO_MINI",$conf->entity); $mysoc->logo_mini='';*/ } if ($action == 'update') { dolibarr_set_const($db, "MAIN_LANG_DEFAULT", GETPOST("MAIN_LANG_DEFAULT", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", (int) $conf->global->MAIN_IHM_PARAMS_REV+1, 'chaine', 0, '', $conf->entity); //dolibarr_set_const($db, "MAIN_MULTILANGS", $_POST["MAIN_MULTILANGS"], 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_THEME", GETPOST("main_theme", 'aZ09'), 'chaine', 0, '', $conf->entity); /*$val=GETPOST('THEME_TOPMENU_DISABLE_IMAGE'); if (! $val) dolibarr_del_const($db, 'THEME_TOPMENU_DISABLE_IMAGE', $conf->entity); else dolibarr_set_const($db, 'THEME_TOPMENU_DISABLE_IMAGE', GETPOST('THEME_TOPMENU_DISABLE_IMAGE'), 'chaine', 0, '', $conf->entity);*/ $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_BACKBODY'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_BACKBODY', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_BACKBODY', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_TOPMENU_BACK1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_TOPMENU_BACK1', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_TOPMENU_BACK1', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_VERMENU_BACK1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_VERMENU_BACK1', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_VERMENU_BACK1', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_TEXTTITLENOTAB'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_TEXTTITLENOTAB', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_TEXTTITLENOTAB', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_BACKTITLE1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_BACKTITLE1', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_BACKTITLE1', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_TEXTTITLE'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_TEXTTITLE', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_TEXTTITLE', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_LINEIMPAIR1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_LINEIMPAIR1', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_LINEIMPAIR1', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_LINEIMPAIR1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_LINEIMPAIR2', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_LINEIMPAIR2', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_LINEPAIR1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_LINEPAIR1', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_LINEPAIR1', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_LINEPAIR1'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_LINEPAIR2', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_LINEPAIR2', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_TEXTLINK'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_TEXTLINK', $conf->entity); else dolibarr_set_const($db, 'THEME_ELDY_TEXTLINK', $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_USE_HOVER'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_USE_HOVER', $conf->entity); else dolibarr_set_const($db, "THEME_ELDY_USE_HOVER", $val, 'chaine', 0, '', $conf->entity); $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_USE_CHECKED'), array())))); if ($val == '') dolibarr_del_const($db, 'THEME_ELDY_USE_CHECKED', $conf->entity); else dolibarr_set_const($db, "THEME_ELDY_USE_CHECKED", $val, 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_SIZE_LISTE_LIMIT", GETPOST("main_size_liste_limit", 'int'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_SIZE_SHORTLIST_LIMIT", GETPOST("main_size_shortliste_limit", 'int'), 'chaine', 0, '', $conf->entity); //dolibarr_set_const($db, "MAIN_DISABLE_JAVASCRIPT", GETPOST("MAIN_DISABLE_JAVASCRIPT", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_BUTTON_HIDE_UNAUTHORIZED", GETPOST("MAIN_BUTTON_HIDE_UNAUTHORIZED", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_START_WEEK", GETPOST("MAIN_START_WEEK", 'int'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_DEFAULT_WORKING_DAYS", GETPOST("MAIN_DEFAULT_WORKING_DAYS", 'alpha'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_DEFAULT_WORKING_HOURS", GETPOST("MAIN_DEFAULT_WORKING_HOURS", 'alpha'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_SHOW_LOGO", GETPOST("MAIN_SHOW_LOGO", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_FIRSTNAME_NAME_POSITION", GETPOST("MAIN_FIRSTNAME_NAME_POSITION", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_HELPCENTER_DISABLELINK", GETPOST('MAIN_HELPCENTER_DISABLELINK', 'aZ09'), 'chaine', 0, '', 0); // Param for all entities dolibarr_set_const($db, "MAIN_MOTD", dol_htmlcleanlastbr(GETPOST("main_motd", 'none')), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_HOME", dol_htmlcleanlastbr(GETPOST("main_home", 'none')), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_HELP_DISABLELINK", GETPOST("MAIN_HELP_DISABLELINK", 'aZ09'), 'chaine', 0, '', 0); // Param for all entities dolibarr_set_const($db, "MAIN_BUGTRACK_ENABLELINK", GETPOST('MAIN_BUGTRACK_ENABLELINK', 'aZ09'), 'chaine', 0, '', $conf->entity); $varforimage='imagebackground'; $dirforimage=$conf->mycompany->dir_output.'/logos/'; if ($_FILES[$varforimage]["tmp_name"]) { $reg = array(); if (preg_match('/([^\\/:]+)$/i', $_FILES[$varforimage]["name"], $reg)) { $original_file=$reg[1]; $isimage=image_format_supported($original_file); if ($isimage >= 0) { dol_syslog("Move file ".$_FILES[$varforimage]["tmp_name"]." to ".$dirforimage.$original_file); if (! is_dir($dirforimage)) { dol_mkdir($dirforimage); } $result=dol_move_uploaded_file($_FILES[$varforimage]["tmp_name"], $dirforimage.$original_file, 1, 0, $_FILES[$varforimage]['error']); if ($result > 0) { dolibarr_set_const($db, "MAIN_LOGIN_BACKGROUND", $original_file, 'chaine', 0, '', $conf->entity); } elseif (preg_match('/^ErrorFileIsInfectedWithAVirus/', $result)) { $error++; $langs->load("errors"); $tmparray=explode(':', $result); setEventMessages($langs->trans('ErrorFileIsInfectedWithAVirus', $tmparray[1]), null, 'errors'); } else { $error++; setEventMessages($langs->trans("ErrorFailedToSaveFile"), null, 'errors'); } } else { $error++; $langs->load("errors"); setEventMessages($langs->trans("ErrorBadImageFormat"), null, 'errors'); } } } $_SESSION["mainmenu"]=""; // Le gestionnaire de menu a pu changer header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup"); exit; } /* * View */ $wikihelp='EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones'; llxHeader('', $langs->trans("Setup"), $wikihelp); $form=new Form($db); $formother=new FormOther($db); $formadmin=new FormAdmin($db); print load_fiche_titre($langs->trans("GUISetup"), '', 'title_setup'); print '<span class="opacitymedium">'.$langs->trans("DisplayDesc")."</span><br>\n"; //WYSIWYG Editor require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; print '<form enctype="multipart/form-data" method="POST" action="'.$_SERVER["PHP_SELF"].'">'; print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="action" value="update">'; clearstatcache(); print '<br>'; print '<table summary="edit" class="noborder centpercent">'; print '<tr class="liste_titre"><td>'.$langs->trans("Language").'</td><td></td>'; print '<td width="20"> </td>'; print '</tr>'; // Default language print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultLanguage").'</td><td>'; print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'MAIN_LANG_DEFAULT', 1, 0, 0, 0, 0, 'minwidth300', 2); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Multilingual GUI print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("EnableMultilangInterface").'</td><td>'; print ajax_constantonoff("MAIN_MULTILANGS"); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; print '</table><br>'."\n"; // Themes and themes options showSkins(null, 1); print '<br>'; // Other print '<table summary="otherparameters" class="noborder centpercent">'; print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("Miscellaneous").'</td><td></td>'; print '<td width="20"> </td>'; print '</tr>'; // Disable javascript and ajax print '<tr class="oddeven"><td>'.$langs->trans("DisableJavascript").'</td><td>'; print ajax_constantonoff("MAIN_DISABLE_JAVASCRIPT"); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Max size of lists print '<tr class="oddeven"><td>'.$langs->trans("DefaultMaxSizeList").'</td><td><input class="flat" name="main_size_liste_limit" size="4" value="' . $conf->global->MAIN_SIZE_LISTE_LIMIT . '"></td>'; print '<td width="20"> </td>'; print '</tr>'; // Max size of short lists on customer card print '<tr class="oddeven"><td>'.$langs->trans("DefaultMaxSizeShortList").'</td><td><input class="flat" name="main_size_shortliste_limit" size="4" value="' . $conf->global->MAIN_SIZE_SHORTLIST_LIMIT . '"></td>'; print '<td width="20"> </td>'; print '</tr>'; // show input border /* print '<tr><td>'.$langs->trans("showInputBorder").'</td><td>'; print $form->selectyesno('main_showInputBorder',isset($conf->global->THEME_ELDY_SHOW_BORDER_INPUT)?$conf->global->THEME_ELDY_SHOW_BORDER_INPUT:0,1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; */ // First day for weeks print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("WeekStartOnDay").'</td><td>'; print $formother->select_dayofweek((isset($conf->global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1'), 'MAIN_START_WEEK', 0); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // DefaultWorkingDays print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultWorkingDays").'</td><td>'; print '<input type="text" name="MAIN_DEFAULT_WORKING_DAYS" size="5" value="'.(isset($conf->global->MAIN_DEFAULT_WORKING_DAYS)?$conf->global->MAIN_DEFAULT_WORKING_DAYS:'1-5').'">'; print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // DefaultWorkingHours print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DefaultWorkingHours").'</td><td>'; print '<input type="text" name="MAIN_DEFAULT_WORKING_HOURS" size="5" value="'.(isset($conf->global->MAIN_DEFAULT_WORKING_HOURS)?$conf->global->MAIN_DEFAULT_WORKING_HOURS:'9-18').'">'; print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Firstname/Name print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("FirstnameNamePosition").'</td><td>'; $array=array(0=>$langs->trans("Firstname").' '.$langs->trans("Lastname"), 1=>$langs->trans("Lastname").' '.$langs->trans("Firstname")); print $form->selectarray('MAIN_FIRSTNAME_NAME_POSITION', $array, (isset($conf->global->MAIN_FIRSTNAME_NAME_POSITION)?$conf->global->MAIN_FIRSTNAME_NAME_POSITION:0)); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Hide unauthorized button print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("ButtonHideUnauthorized").'</td><td>'; print $form->selectyesno('MAIN_BUTTON_HIDE_UNAUTHORIZED', isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)?$conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED:0, 1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Hide version link /* print '<tr><td class="titlefield">'.$langs->trans("HideVersionLink").'</td><td>'; print $form->selectyesno('MAIN_HIDE_VERSION',$conf->global->MAIN_HIDE_VERSION,1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; */ // Show bugtrack link print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).'</td><td>'; print $form->selectyesno('MAIN_BUGTRACK_ENABLELINK', $conf->global->MAIN_BUGTRACK_ENABLELINK, 1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Hide wiki link on login page $pictohelp='<span class="fa fa-question-circle"></span>'; print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DisableLinkToHelp", $pictohelp).'</td><td>'; print $form->selectyesno('MAIN_HELP_DISABLELINK', isset($conf->global->MAIN_HELP_DISABLELINK)?$conf->global->MAIN_HELP_DISABLELINK:0, 1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Message of the day on home page $substitutionarray=getCommonSubstitutionArray($langs, 0, array('object','objectamount')); complete_substitutions_array($substitutionarray, $langs); print '<tr class="oddeven"><td class="titlefield">'; $texthelp=$langs->trans("FollowingConstantsWillBeSubstituted").'<br>'; foreach($substitutionarray as $key => $val) { $texthelp.=$key.'<br>'; } print $form->textwithpicto($langs->trans("MessageOfDay"), $texthelp, 1, 'help', '', 0, 2, 'tooltipmessageofday'); print '</td><td colspan="2">'; $doleditor = new DolEditor('main_motd', (isset($conf->global->MAIN_MOTD)?$conf->global->MAIN_MOTD:''), '', 142, 'dolibarr_notes', 'In', false, true, true, ROWS_4, '90%'); $doleditor->Create(); print '</td></tr>'."\n"; print '</table>'."\n"; print '<br>'; // Other print '<div class="div-table-responsive-no-min">'; print '<table summary="edit" class="noborder centpercent">'; print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans("LoginPage").'</td><td></td>'; print '<td width="20"> </td>'; print '</tr>'; // Message on login page $substitutionarray=getCommonSubstitutionArray($langs, 0, array('object','objectamount','user')); complete_substitutions_array($substitutionarray, $langs); print '<tr class="oddeven"><td>'; $texthelp=$langs->trans("FollowingConstantsWillBeSubstituted").'<br>'; foreach($substitutionarray as $key => $val) { $texthelp.=$key.'<br>'; } print $form->textwithpicto($langs->trans("MessageLogin"), $texthelp, 1, 'help', '', 0, 2, 'tooltipmessagelogin'); print '</td><td colspan="2">'; $doleditor = new DolEditor('main_home', (isset($conf->global->MAIN_HOME)?$conf->global->MAIN_HOME:''), '', 142, 'dolibarr_notes', 'In', false, true, true, ROWS_4, '90%'); $doleditor->Create(); print '</td></tr>'."\n"; // Hide helpcenter link on login page print '<tr class="oddeven"><td class="titlefield">'.$langs->trans("DisableLinkToHelpCenter").'</td><td>'; print $form->selectyesno('MAIN_HELPCENTER_DISABLELINK', isset($conf->global->MAIN_HELPCENTER_DISABLELINK)?$conf->global->MAIN_HELPCENTER_DISABLELINK:0, 1); print '</td>'; print '<td width="20"> </td>'; print '</tr>'; // Background print '<tr class="oddeven"><td><label for="imagebackground">'.$langs->trans("BackgroundImageLogin").' (png,jpg)</label></td><td colspan="2">'; print '<div class="centpercent inline-block">'; $disabled = ''; if (! empty($conf->global->ADD_UNSPLASH_LOGIN_BACKGROUND)) $disabled = ' disabled="disabled"'; print '<input type="file" class="flat class=minwidth200" name="imagebackground" id="imagebackground"'.$disabled.'>'; if ($disabled) { print '('.$langs->trans("DisabledByOptionADD_UNSPLASH_LOGIN_BACKGROUND").') '; } if (! empty($conf->global->MAIN_LOGIN_BACKGROUND)) { print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=removebackgroundlogin">'.img_delete($langs->trans("Delete")).'</a>'; if (file_exists($conf->mycompany->dir_output.'/logos/'.$conf->global->MAIN_LOGIN_BACKGROUND)) { print ' '; print '<img class="paddingleft valignmiddle" width="100px" src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&file='.urlencode('logos/'.$conf->global->MAIN_LOGIN_BACKGROUND).'">'; } } else { print '<img class="paddingleft valignmiddle" width="100" src="'.DOL_URL_ROOT.'/public/theme/common/nophoto.png">'; } print '</div>'; print '</td></tr>'; print '</table>'."\n"; print '</div>'; print '<br>'; print '<div class="center">'; print '<input class="button" type="submit" name="submit" value="'.$langs->trans("Save").'">'; print '</div>'; print '</form>'; // End of page llxFooter(); $db->close();