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 /
core /
Delete
Unzip
Name
Size
Permission
Date
Action
ajax
[ DIR ]
drwxr-x---
2025-11-08 11:17
boxes
[ DIR ]
drwxr-x---
2025-11-08 11:17
class
[ DIR ]
drwxr-x---
2025-11-08 11:17
data
[ DIR ]
drwxr-x---
2025-11-08 11:17
db
[ DIR ]
drwxr-x---
2025-11-08 11:17
filemanagerdol
[ DIR ]
drwxr-x---
2025-11-08 11:17
js
[ DIR ]
drwxr-x---
2025-11-08 11:17
lib
[ DIR ]
drwxr-x---
2025-11-08 11:17
login
[ DIR ]
drwxr-x---
2025-11-08 11:17
menus
[ DIR ]
drwxr-x---
2025-11-08 11:17
modules
[ DIR ]
drwxr-x---
2025-11-08 11:17
tpl
[ DIR ]
drwxr-x---
2025-11-08 11:17
triggers
[ DIR ]
drwxr-x---
2025-11-08 11:17
actions_addupdatedelete.inc.php
19.57
KB
-rwxr-x---
2023-04-04 15:51
actions_builddoc.inc.php
5.57
KB
-rwxr-x---
2023-04-04 15:51
actions_changeselectedfields.inc.php
1.57
KB
-rwxr-x---
2023-04-04 15:51
actions_comments.inc.php
2.55
KB
-rwxr-x---
2023-04-04 15:51
actions_dellink.inc.php
2.58
KB
-rwxr-x---
2023-04-04 15:51
actions_extrafields.inc.php
12.82
KB
-rwxr-x---
2023-04-04 15:51
actions_fetchobject.inc.php
1.89
KB
-rwxr-x---
2023-04-04 15:51
actions_lineupdown.inc.php
2.57
KB
-rwxr-x---
2023-04-04 15:51
actions_linkedfiles.inc.php
12.3
KB
-rwxr-x---
2023-04-04 15:51
actions_massactions.inc.php
60.59
KB
-rwxr-x---
2023-04-04 15:51
actions_printing.inc.php
3.29
KB
-rwxr-x---
2023-04-04 15:51
actions_sendmails.inc.php
19.03
KB
-rwxr-x---
2023-04-04 15:51
actions_setmoduleoptions.inc.php
5.35
KB
-rwxr-x---
2023-04-04 15:51
actions_setnotes.inc.php
3.63
KB
-rwxr-x---
2023-04-04 15:51
antispamimage.php
1.9
KB
-rwxr-x---
2023-04-04 15:51
bookmarks_page.php
6.11
KB
-rwxr-x---
2023-04-04 15:51
commonfieldsinexport.inc.php
2.01
KB
-rwxr-x---
2023-04-04 15:51
commonfieldsinimport.inc.php
2.01
KB
-rwxr-x---
2023-04-04 15:51
datepicker.php
9.51
KB
-rwxr-x---
2023-04-04 15:51
doxygen.php
1.71
KB
-rwxr-x---
2023-04-04 15:51
extrafieldsinexport.inc.php
2.88
KB
-rwxr-x---
2023-04-04 15:51
extrafieldsinimport.inc.php
2.89
KB
-rwxr-x---
2023-04-04 15:51
get_info.php
8.05
KB
-rwxr-x---
2023-04-04 15:51
get_menudiv.php
8.22
KB
-rwxr-x---
2023-04-04 15:51
multicompany_page.php
5.21
KB
-rwxr-x---
2023-04-04 15:50
photos_resize.php
23.19
KB
-rwxr-x---
2023-04-04 15:50
search.php
4.95
KB
-rwxr-x---
2023-04-04 15:50
search_page.php
4.96
KB
-rwxr-x---
2023-04-04 15:50
tools.php
1.59
KB
-rwxr-x---
2023-04-04 15:50
website.inc.php
11.85
KB
-rwxr-x---
2023-04-04 15:50
Save
Rename
<?php /* Copyright (C) 2011-2020 Laurent Destailleur <eldy@users.sourceforge.net> * * 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/>. * or see https://www.gnu.org/ * * $elementype must be defined. */ /** * \file htdocs/core/actions_extrafields.inc.php * \brief Code for actions on extrafields admin pages */ $maxsizestring = 255; $maxsizeint = 10; $mesg = array(); $extrasize = GETPOST('size', 'intcomma'); $type = GETPOST('type', 'alphanohtml'); $param = GETPOST('param', 'alphanohtml'); $css = GETPOST('css', 'alphanohtml'); $cssview = GETPOST('cssview', 'alphanohtml'); $csslist = GETPOST('csslist', 'alphanohtml'); if ($type == 'double' && strpos($extrasize, ',') === false) { $extrasize = '24,8'; } if ($type == 'date') { $extrasize = ''; } if ($type == 'datetime') { $extrasize = ''; } if ($type == 'select') { $extrasize = ''; } // Add attribute if ($action == 'add') { if (GETPOST("button") != $langs->trans("Cancel")) { // Check values if (!$type) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Type")); $action = 'create'; } if ($type == 'varchar' && $extrasize <= 0) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Size")); $action = 'edit'; } if ($type == 'varchar' && $extrasize > $maxsizestring) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorSizeTooLongForVarcharType", $maxsizestring); $action = 'create'; } if ($type == 'int' && $extrasize > $maxsizeint) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorSizeTooLongForIntType", $maxsizeint); $action = 'create'; } if ($type == 'select' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForSelectType"); $action = 'create'; } if ($type == 'sellist' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForSelectListType"); $action = 'create'; } if ($type == 'checkbox' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForCheckBoxType"); $action = 'create'; } if ($type == 'link' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForLinkType"); $action = 'create'; } if ($type == 'radio' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForRadioType"); $action = 'create'; } if ((($type == 'radio') || ($type == 'checkbox')) && $param) { // Construct array for parameter (value of select list) $parameters = $param; $parameters_array = explode("\r\n", $parameters); foreach ($parameters_array as $param_ligne) { if (!empty($param_ligne)) { if (preg_match_all('/,/', $param_ligne, $matches)) { if (count($matches[0]) > 1) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorBadFormatValueList", $param_ligne); $action = 'create'; } } else { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorBadFormatValueList", $param_ligne); $action = 'create'; } } } } if (!$error) { if (strlen(GETPOST('attrname', 'aZ09')) < 3) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorValueLength", $langs->transnoentitiesnoconv("AttributeCode"), 3); $action = 'create'; } } // Check reserved keyword with more than 3 characters if (!$error) { if (in_array(GETPOST('attrname', 'aZ09'), array('and', 'keyword', 'table', 'index', 'int', 'integer', 'float', 'double', 'real', 'position'))) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorReservedKeyword", GETPOST('attrname', 'aZ09')); $action = 'create'; } } if (!$error) { // attrname must be alphabetical and lower case only if (GETPOSTISSET("attrname") && preg_match("/^[a-z0-9_]+$/", GETPOST('attrname', 'aZ09')) && !is_numeric(GETPOST('attrname', 'aZ09'))) { // Construct array for parameter (value of select list) $default_value = GETPOST('default_value', 'alpha'); $parameters = $param; $parameters_array = explode("\r\n", $parameters); $params = array(); //In sellist we have only one line and it can have come to do SQL expression if ($type == 'sellist' || $type == 'chkbxlst') { foreach ($parameters_array as $param_ligne) { $params['options'] = array($parameters=>null); } } else { // Else it's separated key/value and coma list foreach ($parameters_array as $param_ligne) { list($key, $value) = explode(',', $param_ligne); if (!array_key_exists('options', $params)) { $params['options'] = array(); } $params['options'][$key] = $value; } } // Visibility: -1=not visible by default in list, 1=visible, 0=hidden $visibility = GETPOST('list', 'alpha'); if ($type == 'separate') { $visibility = 3; } $result = $extrafields->addExtraField( GETPOST('attrname', 'aZ09'), GETPOST('label', 'alpha'), $type, GETPOST('pos', 'int'), $extrasize, $elementtype, (GETPOST('unique', 'alpha') ? 1 : 0), (GETPOST('required', 'alpha') ? 1 : 0), $default_value, $params, (GETPOST('alwayseditable', 'alpha') ? 1 : 0), (GETPOST('perms', 'alpha') ? GETPOST('perms', 'alpha') : ''), $visibility, GETPOST('help', 'alpha'), GETPOST('computed_value', 'alpha'), (GETPOST('entitycurrentorall', 'alpha') ? 0 : ''), GETPOST('langfile', 'alpha'), 1, (GETPOST('totalizable', 'alpha') ? 1 : 0), GETPOST('printable', 'alpha'), array('css' => $css, 'cssview' => $cssview, 'csslist' => $csslist) ); if ($result > 0) { setEventMessages($langs->trans('SetupSaved'), null, 'mesgs'); header("Location: ".$_SERVER["PHP_SELF"]); exit; } else { $error++; $mesg = $extrafields->error; setEventMessages($mesg, null, 'errors'); } } else { $error++; $langs->load("errors"); $mesg = $langs->trans("ErrorFieldCanNotContainSpecialNorUpperCharacters", $langs->transnoentities("AttributeCode")); setEventMessages($mesg, null, 'errors'); $action = 'create'; } } else { setEventMessages($mesg, null, 'errors'); } } } // Rename field if ($action == 'update') { if (GETPOST("button") != $langs->trans("Cancel")) { // Check values if (!$type) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Type")); $action = 'edit'; } if ($type == 'varchar' && $extrasize <= 0) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Size")); $action = 'edit'; } if ($type == 'varchar' && $extrasize > $maxsizestring) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorSizeTooLongForVarcharType", $maxsizestring); $action = 'edit'; } if ($type == 'int' && $extrasize > $maxsizeint) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorSizeTooLongForIntType", $maxsizeint); $action = 'edit'; } if ($type == 'select' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForSelectType"); $action = 'edit'; } if ($type == 'sellist' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForSelectListType"); $action = 'edit'; } if ($type == 'checkbox' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForCheckBoxType"); $action = 'edit'; } if ($type == 'radio' && !$param) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorNoValueForRadioType"); $action = 'edit'; } if ((($type == 'radio') || ($type == 'checkbox')) && $param) { // Construct array for parameter (value of select list) $parameters = $param; $parameters_array = explode("\r\n", $parameters); foreach ($parameters_array as $param_ligne) { if (!empty($param_ligne)) { if (preg_match_all('/,/', $param_ligne, $matches)) { if (count($matches[0]) > 1) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorBadFormatValueList", $param_ligne); $action = 'edit'; } } else { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorBadFormatValueList", $param_ligne); $action = 'edit'; } } } } if (!$error) { if (strlen(GETPOST('attrname', 'aZ09')) < 3 && empty($conf->global->MAIN_DISABLE_EXTRAFIELDS_CHECK_FOR_UPDATE)) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorValueLength", $langs->transnoentitiesnoconv("AttributeCode"), 3); $action = 'edit'; } } // Check reserved keyword with more than 3 characters if (!$error) { if (in_array(GETPOST('attrname', 'aZ09'), array('and', 'keyword', 'table', 'index', 'integer', 'float', 'double', 'position')) && empty($conf->global->MAIN_DISABLE_EXTRAFIELDS_CHECK_FOR_UPDATE)) { $error++; $langs->load("errors"); $mesg[] = $langs->trans("ErrorReservedKeyword", GETPOST('attrname', 'aZ09')); $action = 'edit'; } } if (!$error) { if (GETPOSTISSET("attrname") && preg_match("/^\w[a-zA-Z0-9-_]*$/", GETPOST('attrname', 'aZ09')) && !is_numeric(GETPOST('attrname', 'aZ09'))) { $pos = GETPOST('pos', 'int'); // Construct array for parameter (value of select list) $parameters = $param; $parameters_array = explode("\r\n", $parameters); $params = array(); //In sellist we have only one line and it can have come to do SQL expression if ($type == 'sellist' || $type == 'chkbxlst') { foreach ($parameters_array as $param_ligne) { $params['options'] = array($parameters=>null); } } else { //Esle it's separated key/value and coma list foreach ($parameters_array as $param_ligne) { list($key, $value) = explode(',', $param_ligne); if (!array_key_exists('options', $params)) { $params['options'] = array(); } $params['options'][$key] = $value; } } // Visibility: -1=not visible by default in list, 1=visible, 0=hidden $visibility = GETPOST('list', 'alpha'); if ($type == 'separate') { $visibility = 3; } // Example: is_object($object) ? ($object->id < 10 ? round($object->id / 2, 2) : (2 * $user->id) * (int) substr($mysoc->zip, 1, 2)) : 'objnotdefined' $computedvalue = GETPOST('computed_value', 'nohtml'); $result = $extrafields->update( GETPOST('attrname', 'aZ09'), GETPOST('label', 'alpha'), $type, $extrasize, $elementtype, (GETPOST('unique', 'alpha') ? 1 : 0), (GETPOST('required', 'alpha') ? 1 : 0), $pos, $params, (GETPOST('alwayseditable', 'alpha') ? 1 : 0), (GETPOST('perms', 'alpha') ?GETPOST('perms', 'alpha') : ''), $visibility, GETPOST('help', 'alpha'), GETPOST('default_value', 'alpha'), $computedvalue, (GETPOST('entitycurrentorall', 'alpha') ? 0 : ''), GETPOST('langfile'), GETPOST('enabled', 'alpha'), (GETPOST('totalizable', 'alpha') ? 1 : 0), GETPOST('printable', 'alpha'), array('css' => $css, 'cssview' => $cssview, 'csslist' => $csslist) ); if ($result > 0) { setEventMessages($langs->trans('SetupSaved'), null, 'mesgs'); header("Location: ".$_SERVER["PHP_SELF"]); exit; } else { $error++; $mesg = $extrafields->error; setEventMessages($mesg, null, 'errors'); } } else { $error++; $langs->load("errors"); $mesg = $langs->trans("ErrorFieldCanNotContainSpecialCharacters", $langs->transnoentities("AttributeCode")); setEventMessages($mesg, null, 'errors'); } } else { setEventMessages($mesg, null, 'errors'); } } } // Delete attribute if ($action == 'delete') { if (GETPOSTISSET("attrname") && preg_match("/^\w[a-zA-Z0-9-_]*$/", GETPOST("attrname", 'aZ09'))) { $result = $extrafields->delete(GETPOST("attrname", 'aZ09'), $elementtype); if ($result >= 0) { header("Location: ".$_SERVER["PHP_SELF"]); exit; } else { $mesg = $extrafields->error; } } else { $error++; $langs->load("errors"); $mesg = $langs->trans("ErrorFieldCanNotContainSpecialCharacters", $langs->transnoentities("AttributeCode")); } }