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 /
bdc.bdcloud.fr /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxr-x---
2025-11-08 11:17
dolistore
[ DIR ]
drwxr-x---
2025-11-08 11:17
menus
[ DIR ]
drwxr-x---
2025-11-08 11:17
system
[ DIR ]
drwxr-x---
2025-11-08 11:17
tools
[ DIR ]
drwxr-x---
2025-11-08 11:17
accountant.php
10.55
KB
-rwxr-x---
2023-04-04 15:50
accounting.php
2.14
KB
-rwxr-x---
2023-04-04 15:50
agenda.php
7.51
KB
-rwxr-x---
2023-04-04 15:50
agenda_extrafields.php
3.17
KB
-rwxr-x---
2023-04-04 15:50
agenda_extsites.php
10.2
KB
-rwxr-x---
2023-04-04 15:50
agenda_other.php
15.41
KB
-rwxr-x---
2023-04-04 15:50
agenda_reminder.php
8.92
KB
-rwxr-x---
2023-04-04 15:50
agenda_xcal.php
11.18
KB
-rwxr-x---
2023-04-04 15:50
bank.php
15.7
KB
-rwxr-x---
2023-04-04 15:50
bank_extrafields.php
3.11
KB
-rwxr-x---
2023-04-04 15:50
bankline_extrafields.php
3.24
KB
-rwxr-x---
2023-04-04 15:50
barcode.php
16.51
KB
-rwxr-x---
2023-04-04 15:50
bom.php
15.84
KB
-rwxr-x---
2023-04-04 15:50
bom_extrafields.php
2.95
KB
-rwxr-x---
2023-04-04 15:50
bomline_extrafields.php
3.22
KB
-rwxr-x---
2023-04-04 15:50
boxes.php
16.45
KB
-rwxr-x---
2023-04-04 15:50
chequereceipts.php
9.5
KB
-rwxr-x---
2023-04-04 15:50
clicktodial.php
7.32
KB
-rwxr-x---
2023-04-04 15:50
commande.php
25.36
KB
-rwxr-x---
2023-04-04 15:50
commande_fournisseur_dispatch_extrafields.php
3.32
KB
-rwxr-x---
2023-04-04 15:50
company.php
43.83
KB
-rwxr-x---
2023-04-04 15:50
company_socialnetworks.php
5.93
KB
-rwxr-x---
2023-04-04 15:50
compta.php
6.61
KB
-rwxr-x---
2023-04-04 15:50
const.php
11.2
KB
-rwxr-x---
2023-04-04 15:50
contract.php
18.53
KB
-rwxr-x---
2023-04-04 15:50
dav.php
7.55
KB
-rwxr-x---
2023-04-04 15:50
debugbar.php
3.72
KB
-rwxr-x---
2023-04-04 15:50
defaultvalues.php
15.3
KB
-rwxr-x---
2023-04-04 15:50
delais.php
15.59
KB
-rwxr-x---
2023-04-04 15:50
delivery.php
16.82
KB
-rwxr-x---
2023-04-04 15:50
delivery_extrafields.php
3.23
KB
-rwxr-x---
2023-04-04 15:50
deliverydet_extrafields.php
3.3
KB
-rwxr-x---
2023-04-04 15:50
dict.php
107.67
KB
-rwxr-x---
2023-04-04 15:50
ecm.php
3.11
KB
-rwxr-x---
2023-04-04 15:50
ecm_directories_extrafields.php
3.3
KB
-rwxr-x---
2023-04-04 15:50
ecm_files_extrafields.php
3.28
KB
-rwxr-x---
2023-04-04 15:50
emailcollector_card.php
32.52
KB
-rwxr-x---
2023-04-04 15:50
eventorganization.php
25.42
KB
-rwxr-x---
2023-04-04 15:50
eventorganization_confbooth_extrafields.php
2.75
KB
-rwxr-x---
2023-04-04 15:50
eventorganization_confboothattendee_extrafields.php
3.22
KB
-rwxr-x---
2023-04-04 15:50
events.php
4.66
KB
-rwxr-x---
2023-04-04 15:50
expedition.php
15.91
KB
-rwxr-x---
2023-04-04 15:50
expedition_extrafields.php
3.23
KB
-rwxr-x---
2023-04-04 15:50
expeditiondet_extrafields.php
3.3
KB
-rwxr-x---
2023-04-04 15:50
expensereport.php
17.88
KB
-rwxr-x---
2023-04-04 15:50
expensereport_extrafields.php
3.11
KB
-rwxr-x---
2023-04-04 15:50
expensereport_ik.php
6.78
KB
-rwxr-x---
2023-04-04 15:50
expensereport_rules.php
13.31
KB
-rwxr-x---
2023-04-04 15:50
export.php
3.63
KB
-rwxr-x---
2023-04-04 15:50
external_rss.php
10.7
KB
-rwxr-x---
2023-04-04 15:50
facture.php
30.1
KB
-rwxr-x---
2023-04-04 15:50
facture_situation.php
6.04
KB
-rwxr-x---
2023-04-04 15:50
fckeditor.php
8.16
KB
-rwxr-x---
2023-04-04 15:50
fichinter.php
23.45
KB
-rwxr-x---
2023-04-04 15:50
geoipmaxmind.php
6.41
KB
-rwxr-x---
2023-04-04 15:50
holiday.php
19.95
KB
-rwxr-x---
2023-04-04 15:50
holiday_extrafields.php
3.07
KB
-rwxr-x---
2023-04-04 15:50
hrm.php
24.26
KB
-rwxr-x---
2023-04-04 15:50
ihm.php
28.7
KB
-rwxr-x---
2023-04-04 15:50
import.php
3.58
KB
-rwxr-x---
2023-04-04 15:50
index.php
5.25
KB
-rwxr-x---
2023-04-04 15:50
knowledgemanagement.php
22.52
KB
-rwxr-x---
2023-04-04 15:50
knowledgerecord_extrafields.php
3.19
KB
-rwxr-x---
2023-04-04 15:50
ldap.php
12.95
KB
-rwxr-x---
2023-04-04 15:50
ldap_contacts.php
15.2
KB
-rwxr-x---
2023-04-04 15:50
ldap_groups.php
12.54
KB
-rwxr-x---
2023-04-04 15:50
ldap_members.php
20.28
KB
-rwxr-x---
2023-04-04 15:50
ldap_members_types.php
8.93
KB
-rwxr-x---
2023-04-04 15:50
ldap_users.php
22.25
KB
-rwxr-x---
2023-04-04 15:50
limits.php
15.02
KB
-rwxr-x---
2023-04-04 15:50
loan.php
3.19
KB
-rwxr-x---
2023-04-04 15:50
mailing.php
7.49
KB
-rwxr-x---
2023-04-04 15:50
mailman.php
7.79
KB
-rwxr-x---
2023-04-04 15:50
mails.php
51.59
KB
-rwxr-x---
2023-04-04 15:50
mails_emailing.php
35.57
KB
-rwxr-x---
2023-04-04 15:50
mails_ingoing.php
4.04
KB
-rwxr-x---
2023-04-04 15:50
mails_senderprofile_list.php
29.59
KB
-rwxr-x---
2023-04-04 15:50
mails_ticket.php
31.97
KB
-rwxr-x---
2023-04-04 15:50
menus.php
7.94
KB
-rwxr-x---
2023-04-04 15:50
modulehelp.php
20.11
KB
-rwxr-x---
2023-04-04 15:50
modules.php
53.39
KB
-rwxr-x---
2023-04-04 15:50
mrp.php
15.72
KB
-rwxr-x---
2023-04-04 15:50
mrp_extrafields.php
2.94
KB
-rwxr-x---
2023-04-04 15:50
multicurrency.php
13.35
KB
-rwxr-x---
2023-04-04 15:50
notification.php
17.59
KB
-rwxr-x---
2023-04-04 15:50
oauth.php
15.49
KB
-rwxr-x---
2023-04-04 15:50
oauthlogintokens.php
16.74
KB
-rwxr-x---
2023-04-04 15:50
openinghours.php
6.41
KB
-rwxr-x---
2023-04-04 15:50
order_extrafields.php
3.09
KB
-rwxr-x---
2023-04-04 15:50
orderdet_extrafields.php
3.18
KB
-rwxr-x---
2023-04-04 15:50
payment.php
9.22
KB
-rwxr-x---
2023-04-04 15:50
paymentbybanktransfer.php
15.79
KB
-rwxr-x---
2023-04-04 15:50
pdf.php
25.17
KB
-rwxr-x---
2023-04-04 15:50
pdf_other.php
8.5
KB
-rwxr-x---
2023-04-04 15:50
perms.php
9.31
KB
-rwxr-x---
2023-04-04 15:50
prelevement.php
15.72
KB
-rwxr-x---
2023-04-04 15:50
propal.php
26.23
KB
-rwxr-x---
2023-04-04 15:50
proxy.php
6.87
KB
-rwxr-x---
2023-04-04 15:50
receiptprinter.php
16.15
KB
-rwxr-x---
2023-04-04 15:50
reception_extrafields.php
3.24
KB
-rwxr-x---
2023-04-04 15:50
reception_setup.php
15.92
KB
-rwxr-x---
2023-04-04 15:50
resource.php
4.47
KB
-rwxr-x---
2023-04-04 15:50
resource_extrafields.php
3.07
KB
-rwxr-x---
2023-04-04 15:50
security.php
16.75
KB
-rwxr-x---
2023-04-04 15:50
security_file.php
7.63
KB
-rwxr-x---
2023-04-04 15:50
security_other.php
8.5
KB
-rwxr-x---
2023-04-04 15:50
sms.php
10.73
KB
-rwxr-x---
2023-04-04 15:50
spip.php
5.01
KB
-rwxr-x---
2023-04-04 15:50
stock.php
27.54
KB
-rwxr-x---
2023-04-04 15:50
stocktransfer.php
16.1
KB
-rwxr-x---
2023-04-04 15:50
supplier_invoice.php
17.38
KB
-rwxr-x---
2023-04-04 15:50
supplier_order.php
20.02
KB
-rwxr-x---
2023-04-04 15:50
supplier_payment.php
16.06
KB
-rwxr-x---
2023-04-04 15:50
supplier_proposal.php
19.56
KB
-rwxr-x---
2023-04-04 15:50
supplierinvoice_extrafields.php
3.25
KB
-rwxr-x---
2023-04-04 15:50
supplierinvoicedet_extrafields.php
3.32
KB
-rwxr-x---
2023-04-04 15:50
supplierorder_extrafields.php
3.17
KB
-rwxr-x---
2023-04-04 15:50
supplierorderdet_extrafields.php
3.24
KB
-rwxr-x---
2023-04-04 15:50
syslog.php
10.32
KB
-rwxr-x---
2023-04-04 15:50
taxes.php
10.04
KB
-rwxr-x---
2023-04-04 15:50
ticket.php
25.67
KB
-rwxr-x---
2023-04-04 15:50
ticket_extrafields.php
2.79
KB
-rwxr-x---
2023-04-04 15:50
ticket_public.php
20.79
KB
-rwxr-x---
2023-04-04 15:50
translation.php
24.9
KB
-rwxr-x---
2023-04-04 15:50
triggers.php
2.73
KB
-rwxr-x---
2023-04-04 15:50
user.php
11.39
KB
-rwxr-x---
2023-04-04 15:50
usergroup.php
8.56
KB
-rwxr-x---
2023-04-04 15:50
webhook.php
24.03
KB
-rwxr-x---
2023-04-04 15:50
website.php
21.58
KB
-rwxr-x---
2023-04-04 15:50
website_options.php
4.82
KB
-rwxr-x---
2023-04-04 15:50
workflow.php
10.02
KB
-rwxr-x---
2023-04-04 15:50
workstation.php
16.37
KB
-rwxr-x---
2023-04-04 15:50
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> * Copyright (C) 2021 Alexandre Spangaro <aspangaro@open-dsi.fr> * Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com> * * 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 */ // Load Dolibarr environment 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 $mode = GETPOST('mode', 'aZ09') ? GETPOST('mode', 'aZ09') : 'other'; // 'template', 'dashboard', 'login', 'other' 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", getDolGlobalInt('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') { $error = 0; if ($mode == 'template') { //dolibarr_del_const($db, "MAIN_THEME", 0); // To be sure we don't have this constant set for all entities dolibarr_set_const($db, "MAIN_THEME", GETPOST("main_theme", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", getDolGlobalInt('MAIN_IHM_PARAMS_REV') + 1, 'chaine', 0, '', $conf->entity); if (GETPOSTISSET('THEME_DARKMODEENABLED')) { $val = GETPOST('THEME_DARKMODEENABLED'); if (!$val) { dolibarr_del_const($db, "THEME_DARKMODEENABLED", $conf->entity); } if ($val) { dolibarr_set_const($db, "THEME_DARKMODEENABLED", $val, 'chaine', 0, '', $conf->entity); } } if (GETPOSTISSET('THEME_TOPMENU_DISABLE_IMAGE')) { $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_TEXTTITLELINK'), array())))); if ($val == '') { dolibarr_del_const($db, 'THEME_ELDY_TEXTTITLELINK', $conf->entity); } else { dolibarr_set_const($db, 'THEME_ELDY_TEXTTITLELINK', $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); } $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_BTNACTION'), array())))); if ($val == '') { dolibarr_del_const($db, 'THEME_ELDY_BTNACTION', $conf->entity); } else { dolibarr_set_const($db, 'THEME_ELDY_BTNACTION', $val, 'chaine', 0, '', $conf->entity); } $val=(implode(',', (colorStringToArray(GETPOST('THEME_ELDY_TEXTBTNACTION'), array())))); if ($val == '') { dolibarr_del_const($db, 'THEME_ELDY_TEXTBTNACTION', $conf->entity); } else { dolibarr_set_const($db, 'THEME_ELDY_TEXTBTNACTION', $val, 'chaine', 0, '', $conf->entity); } } if ($mode == 'dashboard') { dolibarr_set_const($db, "MAIN_MOTD", dol_htmlcleanlastbr(GETPOST("main_motd", 'restricthtml')), 'chaine', 0, '', $conf->entity); } if ($mode == 'other') { dolibarr_set_const($db, "MAIN_LANG_DEFAULT", GETPOST("MAIN_LANG_DEFAULT", 'aZ09'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", getDolGlobalInt('MAIN_IHM_PARAMS_REV') + 1, '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_MENU_HIDE_UNAUTHORIZED", GETPOST("MAIN_MENU_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", 'alphanohtml'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_DEFAULT_WORKING_HOURS", GETPOST("MAIN_DEFAULT_WORKING_HOURS", 'alphanohtml'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_BUGTRACK_ENABLELINK", GETPOST("MAIN_BUGTRACK_ENABLELINK", 'alpha'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "MAIN_FIRSTNAME_NAME_POSITION", GETPOST("MAIN_FIRSTNAME_NAME_POSITION", 'aZ09'), 'chaine', 0, '', $conf->entity); } if ($mode == 'login') { dolibarr_set_const($db, "MAIN_HOME", dol_htmlcleanlastbr(GETPOST("main_home", 'restricthtml')), 'chaine', 0, '', $conf->entity); //dolibarr_set_const($db, "MAIN_HELP_DISABLELINK", GETPOST("MAIN_HELP_DISABLELINK", 'aZ09'), 'chaine', 0, '', 0); // Param for all entities $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"] = ""; // The menu manager may have changed if (GETPOST('dol_resetcache')) { dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", ((int) $conf->global->MAIN_IHM_PARAMS_REV) + 1, 'chaine', 0, '', $conf->entity); } header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup".'&mode='.$mode.(GETPOSTISSET('page_y') ? '&page_y='.GETPOST('page_y', 'int') : '')); 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"; print "<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">'; print '<input type="hidden" name="page_y" value="">'; print '<input type="hidden" id="mode" name="mode" value="'.dol_escape_htmltag($mode).'">'; print '<input type="hidden" name="dol_resetcache" value="1">'; $head = ihm_prepare_head(); print dol_get_fiche_head($head, $mode, '', -1, ''); print '<br>'; clearstatcache(); if ($mode == 'other') { print '<div class="div-table-responsive-no-min">'; print '<table summary="edit" class="noborder centpercent editmode tableforfield">'; print '<tr class="liste_titre"><td class="titlefieldmiddle">'; print $langs->trans("Language"); print '</td><td class="titlefieldmiddle">'; print '</td></tr>'; // Default language print '<tr class="oddeven"><td>'.$langs->trans("DefaultLanguage").'</td><td>'; print img_picto('', 'language', 'class="pictofixedwidth"'); print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'MAIN_LANG_DEFAULT', 1, null, '', 0, 0, 'minwidth300', 2); //print '<input class="button button-save smallpaddingimp" type="submit" name="submit" value="'.$langs->trans("Save").'">'; print '</td>'; print '</tr>'; // Multilingual GUI print '<tr class="oddeven"><td>' . $langs->trans("EnableMultilangInterface") . '</td><td>'; print ajax_constantonoff("MAIN_MULTILANGS", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'language'); print '</td>'; print '</tr>'; print '</table>' . "\n"; print '</div>'; print '<div class="center">'; print '<input class="button button-save reposition" type="submit" name="submit" value="' . $langs->trans("Save") . '">'; print '<input class="button button-cancel reposition" type="submit" name="cancel" value="' . $langs->trans("Cancel") . '">'; print '</div>'; print '<br>'; print '<br>'; // Other print '<div class="div-table-responsive-no-min">'; print '<table summary="otherparameters" class="noborder centpercent editmode tableforfield">'; print '<tr class="liste_titre"><td class="titlefieldmiddle">'; print $langs->trans("Miscellaneous"); print '</td>'; print '<td class="titlefieldmiddle"></td>'; print '</tr>'; // Show Quick Add link print '<tr class="oddeven"><td>' . $langs->trans("ShowQuickAddLink") . '</td><td>'; print ajax_constantonoff("MAIN_USE_TOP_MENU_QUICKADD_DROPDOWN", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other'); print '</td>'; print '</tr>'; // Hide wiki link on login page $pictohelp = '<span class="fa fa-question-circle"></span>'; print '<tr class="oddeven"><td>' . str_replace('{picto}', $pictohelp, $langs->trans("DisableLinkToHelp", '{picto}')) . '</td><td>'; print ajax_constantonoff("MAIN_HELP_DISABLELINK", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other'); //print $form->selectyesno('MAIN_HELP_DISABLELINK', isset($conf->global->MAIN_HELP_DISABLELINK) ? $conf->global->MAIN_HELP_DISABLELINK : 0, 1); print '</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 '</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 '</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 '</tr>'; */ // First day for weeks print '<tr class="oddeven"><td>' . $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 '</tr>'; // DefaultWorkingDays print '<tr class="oddeven"><td>' . $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 '</tr>'; // DefaultWorkingHours print '<tr class="oddeven"><td>' . $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 '</tr>'; // Firstname/Name print '<tr class="oddeven"><td>' . $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 '</tr>'; // Hide unauthorized menus print '<tr class="oddeven"><td>' . $langs->trans("HideUnauthorizedMenu") . '</td><td>'; //print $form->selectyesno('MAIN_MENU_HIDE_UNAUTHORIZED', isset($conf->global->MAIN_MENU_HIDE_UNAUTHORIZED) ? $conf->global->MAIN_MENU_HIDE_UNAUTHORIZED : 0, 1); print ajax_constantonoff("MAIN_MENU_HIDE_UNAUTHORIZED", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other'); print '</td>'; print '</tr>'; // Hide unauthorized button print '<tr class="oddeven"><td>' . $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 ajax_constantonoff("MAIN_BUTTON_HIDE_UNAUTHORIZED", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other'); print '</td>'; print '</tr>'; // Hide version link /* print '<tr><td>'.$langs->trans("HideVersionLink").'</td><td>'; print $form->selectyesno('MAIN_HIDE_VERSION',$conf->global->MAIN_HIDE_VERSION,1); print '</td>'; print '</tr>'; */ // Show bugtrack link print '<tr class="oddeven"><td>'; print $form->textwithpicto($langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")), $langs->trans("ShowBugTrackLinkDesc")); print '</td><td>'; print '<input type="text" name="MAIN_BUGTRACK_ENABLELINK" value="' . (empty($conf->global->MAIN_BUGTRACK_ENABLELINK) ? '' : $conf->global->MAIN_BUGTRACK_ENABLELINK) . '">'; print '</td>'; print '</tr>'; // Disable javascript and ajax print '<tr class="oddeven"><td>' . $form->textwithpicto($langs->trans("DisableJavascript"), $langs->trans("DisableJavascriptNote")) . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_JAVASCRIPT", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other'); print '</td>'; print '</tr>'; print '</table>' . "\n"; print '</div>'; } if ($mode == 'template') { // Themes and themes options showSkins(null, 1); } if ($mode == 'dashboard') { print '<div class="div-table-responsive-no-min">'; print '<table summary="blockdashboard" class="noborder centpercent editmode tableforfield">'; // Message of the day on home page $substitutionarray = getCommonSubstitutionArray($langs, 0, array('object', 'objectamount')); complete_substitutions_array($substitutionarray, $langs); print '<tr class="oddeven width25p"><td>'; $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>'; $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"; /* no more need for this option. It is now a widget already controlled by end user print '<tr class="oddeven"><td>' . $langs->trans('BoxstatsDisableGlobal') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_GLOBAL_BOXSTATS", array(), $conf->entity, 0, 0, 1, 0); print '</td>'; print '</tr>'; */ print '</table>'; print '</div>'; print '<br>'; print '<div class="div-table-responsive-no-min">'; print '<table summary="blockdashboard" class="noborder centpercent editmode tableforfield">'; print '<tr class="liste_titre"><td class="titlefieldmiddle">'; print $langs->trans("DashboardDisableBlocks"); print '</td><td class="titlefieldmiddle">'; print '</td></tr>'; print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableGlobal') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_GLOBAL_WORKBOARD", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) { // Block meteo print '<tr class="oddeven"><td>' . $langs->trans('MAIN_DISABLE_METEO') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_METEO", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block agenda print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockAgenda') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_AGENDA", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block agenda print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockProject') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_PROJECT", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block customer print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockCustomer') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_CUSTOMER", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block supplier print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockSupplier') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_SUPPLIER", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block contract print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockContract') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_CONTRACT", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block ticket print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockTicket') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_TICKET", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block bank print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockBank') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_BANK", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block adherent print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockAdherent') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_ADHERENT", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block expense report print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockExpenseReport') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_EXPENSEREPORT", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; // Block holiday print '<tr class="oddeven"><td>' . $langs->trans('DashboardDisableBlockHoliday') . '</td><td>'; print ajax_constantonoff("MAIN_DISABLE_BLOCK_HOLIDAY", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '_red', 'dashboard'); print '</td>'; print '</tr>'; } print '</table>' . "\n"; print '</div>'; } if ($mode == 'login') { // Other print '<div class="div-table-responsive-no-min">'; print '<table summary="edit" class="noborder centpercent editmode tableforfield">'; print '<tr class="liste_titre"><td class="titlefieldmax45">'; print $langs->trans("Parameter"); print '</td><td>'; print $langs->trans("Value"); print '</td></tr>'; // Hide helpcenter link on login page print '<tr class="oddeven"><td>' . $langs->trans("DisableLinkToHelpCenter") . '</td><td>'; print ajax_constantonoff("MAIN_HELPCENTER_DISABLELINK", array(), $conf->entity, 0, 0, 0, 0, 0, 0, '', 'login'); print '</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>'; $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"; // Background print '<tr class="oddeven"><td><label for="imagebackground">' . $langs->trans("BackgroundImageLogin") . ' (png,jpg)</label></td><td>'; print '<div class="centpercent inline-block">'; $disabled = ''; if (!empty($conf->global->ADD_UNSPLASH_LOGIN_BACKGROUND)) { $disabled = ' disabled="disabled"'; } $maxfilesizearray = getMaxFileSizeArray(); $maxmin = $maxfilesizearray['maxmin']; if ($maxmin > 0) { print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file } print '<input type="file" class="flat maxwidthinputfileonsmartphone" 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&token='.newToken().'&mode=login">' . 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="100" 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 '<div class="center">'; print '<input class="button button-save reposition" type="submit" name="submit" value="' . $langs->trans("Save") . '">'; print '<input class="button button-cancel reposition" type="submit" name="cancel" value="' . $langs->trans("Cancel") . '">'; print '</div>'; print '</form>'; // End of page llxFooter(); $db->close();