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 /
webedi.bdcloud.fr /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
dolistore
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
menus
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
system
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
tools
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
accountant.php
9
KB
-rw-r--r--
2020-05-12 15:31
agenda.php
7.11
KB
-rw-r--r--
2020-05-28 20:13
agenda_extrafields.php
4.07
KB
-rw-r--r--
2020-05-12 15:31
agenda_extsites.php
8.36
KB
-rw-r--r--
2020-05-28 20:13
agenda_other.php
14.35
KB
-rw-r--r--
2020-05-28 20:13
agenda_reminder.php
7.75
KB
-rw-r--r--
2020-05-28 20:13
agenda_xcal.php
8.62
KB
-rw-r--r--
2020-05-28 20:13
bank.php
18.42
KB
-rw-r--r--
2020-05-28 20:13
bank_extrafields.php
3.28
KB
-rw-r--r--
2020-05-12 15:31
barcode.php
13.36
KB
-rw-r--r--
2020-05-28 20:13
bom.php
17.08
KB
-rw-r--r--
2020-05-28 20:13
bom_extrafields.php
3.15
KB
-rw-r--r--
2020-07-04 14:54
boxes.php
17.11
KB
-rw-r--r--
2020-08-16 23:14
chequereceipts.php
9.17
KB
-rw-r--r--
2020-05-28 20:13
clicktodial.php
5.32
KB
-rw-r--r--
2020-07-27 02:29
commande.php
26.71
KB
-rw-r--r--
2020-05-28 20:13
commande_fournisseur_dispatch_extrafields.php
4.19
KB
-rw-r--r--
2020-05-12 15:31
company.php
41.23
KB
-rw-r--r--
2020-08-06 17:38
compta.php
6.71
KB
-rw-r--r--
2020-05-28 20:13
confexped.php
4.43
KB
-rw-r--r--
2020-07-26 19:20
const.php
10.37
KB
-rw-r--r--
2020-05-28 20:13
contract.php
17.07
KB
-rw-r--r--
2020-05-28 20:13
dav.php
6.21
KB
-rw-r--r--
2020-05-28 20:13
debugbar.php
3.63
KB
-rw-r--r--
2020-05-28 20:13
defaultvalues.php
15.81
KB
-rw-r--r--
2020-06-07 13:50
delais.php
15.48
KB
-rw-r--r--
2020-05-28 20:13
dict.php
103.09
KB
-rw-r--r--
2020-05-28 20:13
ecm.php
2.89
KB
-rw-r--r--
2020-05-28 20:13
emailcollector_card.php
27.68
KB
-rw-r--r--
2020-05-28 20:13
emailcollector_list.php
22.46
KB
-rw-r--r--
2020-05-28 20:13
events.php
4.55
KB
-rw-r--r--
2020-05-12 15:31
expedition.php
17.47
KB
-rw-r--r--
2020-07-26 19:21
expedition_extrafields.php
4.11
KB
-rw-r--r--
2020-07-26 19:21
expeditiondet_extrafields.php
4.2
KB
-rw-r--r--
2020-07-26 19:21
expensereport.php
16.49
KB
-rw-r--r--
2020-05-28 20:13
expensereport_extrafields.php
3.99
KB
-rw-r--r--
2020-05-12 15:31
expensereport_ik.php
6.15
KB
-rw-r--r--
2020-05-28 20:13
expensereport_rules.php
11.11
KB
-rw-r--r--
2020-05-28 20:13
export.php
3.52
KB
-rw-r--r--
2020-05-12 15:31
external_rss.php
10.95
KB
-rw-r--r--
2020-05-28 20:13
facture.php
32.26
KB
-rw-r--r--
2020-05-28 20:13
facture_situation.php
7.96
KB
-rw-r--r--
2020-05-28 20:13
fckeditor.php
8.09
KB
-rw-r--r--
2020-05-28 20:13
fichinter.php
21.22
KB
-rw-r--r--
2020-05-28 20:13
geoipmaxmind.php
5.6
KB
-rw-r--r--
2020-05-28 20:13
holiday.php
17.49
KB
-rw-r--r--
2020-05-28 20:13
holiday_extrafields.php
3.96
KB
-rw-r--r--
2020-05-12 15:31
ihm.php
20.57
KB
-rw-r--r--
2020-05-28 23:57
import.php
3.37
KB
-rw-r--r--
2020-05-12 15:31
index.php
4.83
KB
-rw-r--r--
2020-05-12 15:31
ldap.php
12.79
KB
-rw-r--r--
2020-05-28 20:13
ldap_contacts.php
15.03
KB
-rw-r--r--
2020-05-28 20:13
ldap_groups.php
9.72
KB
-rw-r--r--
2020-05-28 20:13
ldap_members.php
19.98
KB
-rw-r--r--
2020-05-28 20:13
ldap_members_types.php
8.8
KB
-rw-r--r--
2020-05-28 20:13
ldap_users.php
21.81
KB
-rw-r--r--
2020-05-28 20:13
limits.php
14.38
KB
-rw-r--r--
2020-07-24 00:06
livraison.php
16.06
KB
-rw-r--r--
2020-07-26 19:21
livraison_extrafields.php
4.11
KB
-rw-r--r--
2020-07-26 19:21
livraisondet_extrafields.php
4.2
KB
-rw-r--r--
2020-07-26 19:21
loan.php
3.21
KB
-rw-r--r--
2020-05-28 20:13
mailing.php
5.39
KB
-rw-r--r--
2020-05-28 20:13
mailman.php
7.98
KB
-rw-r--r--
2020-05-28 20:13
mails.php
38.72
KB
-rw-r--r--
2020-05-28 20:13
mails_emailing.php
25.54
KB
-rw-r--r--
2020-05-28 20:13
mails_senderprofile_list.php
26.84
KB
-rw-r--r--
2020-05-28 20:13
mails_templates.php
47.01
KB
-rw-r--r--
2020-08-07 14:39
menus.php
8.02
KB
-rw-r--r--
2020-07-26 19:38
modulehelp.php
19.21
KB
-rw-r--r--
2020-08-03 14:25
modules.php
47.39
KB
-rw-r--r--
2020-08-08 02:33
mrp.php
17.18
KB
-rw-r--r--
2020-05-28 20:13
mrp_extrafields.php
3.15
KB
-rw-r--r--
2020-07-04 14:54
multicurrency.php
12.77
KB
-rw-r--r--
2020-05-28 20:13
notification.php
14.83
KB
-rw-r--r--
2020-05-28 20:13
oauth.php
4.79
KB
-rw-r--r--
2020-05-28 20:13
oauthlogintokens.php
14.72
KB
-rw-r--r--
2020-05-28 20:13
openinghours.php
6.44
KB
-rw-r--r--
2020-05-12 15:31
order_extrafields.php
3.99
KB
-rw-r--r--
2020-05-12 15:31
orderdet_extrafields.php
4.07
KB
-rw-r--r--
2020-05-12 15:31
payment.php
10.11
KB
-rw-r--r--
2020-05-28 20:13
paymentbybanktransfer.php
17.89
KB
-rw-r--r--
2020-05-30 02:10
pdf.php
14.64
KB
-rw-r--r--
2020-05-28 20:13
perms.php
7.88
KB
-rw-r--r--
2020-05-28 20:13
prelevement.php
17.86
KB
-rw-r--r--
2020-05-30 02:15
propal.php
25.87
KB
-rw-r--r--
2020-05-28 20:13
proxy.php
6.7
KB
-rw-r--r--
2020-05-12 15:31
receiptprinter.php
18.14
KB
-rw-r--r--
2020-08-02 22:40
reception_extrafields.php
4.1
KB
-rw-r--r--
2020-05-12 15:31
reception_setup.php
17.21
KB
-rw-r--r--
2020-05-28 20:13
resource.php
4.31
KB
-rw-r--r--
2020-07-23 23:51
resource_extrafields.php
3.98
KB
-rw-r--r--
2020-05-12 15:31
security.php
16.45
KB
-rw-r--r--
2020-05-28 20:13
security_file.php
7.04
KB
-rw-r--r--
2020-05-19 04:07
security_other.php
6.34
KB
-rw-r--r--
2020-05-28 20:13
sms.php
11.46
KB
-rw-r--r--
2020-05-28 20:13
socialnetworks.php
3.22
KB
-rw-r--r--
2020-05-28 20:13
spip.php
5.09
KB
-rw-r--r--
2020-05-28 20:13
stock.php
19
KB
-rw-r--r--
2020-08-18 15:34
supplier_invoice.php
18.75
KB
-rw-r--r--
2020-05-28 20:13
supplier_order.php
21.49
KB
-rw-r--r--
2020-05-28 20:13
supplier_payment.php
16.64
KB
-rw-r--r--
2020-05-28 20:13
supplier_proposal.php
20.6
KB
-rw-r--r--
2020-05-28 20:13
supplierinvoice_extrafields.php
4.14
KB
-rw-r--r--
2020-05-12 15:31
supplierinvoicedet_extrafields.php
4.19
KB
-rw-r--r--
2020-05-12 15:31
supplierorder_extrafields.php
4.04
KB
-rw-r--r--
2020-05-12 15:31
supplierorderdet_extrafields.php
4.14
KB
-rw-r--r--
2020-05-12 15:31
syslog.php
10.16
KB
-rw-r--r--
2020-05-28 20:13
taxes.php
8.77
KB
-rw-r--r--
2020-05-28 20:13
ticket.php
14.26
KB
-rw-r--r--
2020-08-17 20:57
ticket_extrafields.php
3.74
KB
-rw-r--r--
2020-05-12 15:31
ticket_public.php
15.61
KB
-rw-r--r--
2020-05-28 20:13
translation.php
23.06
KB
-rw-r--r--
2020-07-24 01:47
triggers.php
2.74
KB
-rw-r--r--
2020-04-18 15:05
user.php
11.86
KB
-rw-r--r--
2020-05-28 20:13
usergroup.php
9.94
KB
-rw-r--r--
2020-05-28 20:13
website.php
23.57
KB
-rw-r--r--
2020-05-28 20:13
website_options.php
4.72
KB
-rw-r--r--
2020-05-28 20:13
workflow.php
7.43
KB
-rw-r--r--
2020-05-28 20:13
Save
Rename
<?php /* Copyright (C) 2012 Mikael Carlavan <contact@mika-carl.fr> * Copyright (C) 2017 ATM Consulting <contact@atm-consulting.fr> * Copyright (C) 2017 Pierre-Henry Favre <phf@atm-consulting.fr> * Copyright (C) 2018-2019 Frédéric France <frederic.france@netlogic.fr> * * 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 2 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/expensereport_ik.php * \ingroup expensereport * \brief Page to display expense tax ik */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport_rule.class.php'; // Load translation files required by the page $langs->loadLangs(array("admin", "other", "trips", "errors", "dict")); if (!$user->admin) accessforbidden(); //Init error $error = false; $message = false; $action = GETPOST('action', 'alpha'); $id = GETPOST('id', 'int'); $apply_to = GETPOST('apply_to'); $fk_user = GETPOST('fk_user', 'int'); $fk_usergroup = GETPOST('fk_usergroup', 'int'); $fk_c_type_fees = GETPOST('fk_c_type_fees'); $code_expense_rules_type = GETPOST('code_expense_rules_type'); $dates = dol_mktime(12, 0, 0, GETPOST('startmonth'), GETPOST('startday'), GETPOST('startyear')); $datee = dol_mktime(12, 0, 0, GETPOST('endmonth'), GETPOST('endday'), GETPOST('endyear')); $amount = GETPOST('amount'); $restrictive = GETPOST('restrictive'); $object = new ExpenseReportRule($db); if (!empty($id)) { $result = $object->fetch($id); if ($result < 0) dol_print_error('', $object->error, $object->errors); } // TODO do action if ($action == 'save') { $error = 0; // check parameters if (empty($apply_to)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ExpenseReportApplyTo")), null, 'errors'); } if (empty($fk_c_type_fees)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ExpenseReportDomain")), null, 'errors'); } if (empty($code_expense_rules_type)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ExpenseReportLimitOn")), null, 'errors'); } if (empty($dates)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ExpenseReportDateStart")), null, 'errors'); } if (empty($datee)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ExpenseReportDateEnd")), null, 'errors'); } if (empty($amount)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ExpenseReportLimitAmount")), null, 'errors'); } if (empty($error)) { $object->setValues($_POST); if ($apply_to == 'U') { $object->fk_user = (int) $fk_user; $object->fk_usergroup = 0; $object->is_for_all = 0; }elseif ($apply_to == 'G') { $object->fk_usergroup = (int) $fk_usergroup; $object->fk_user = 0; $object->is_for_all = 0; }elseif ($apply_to == 'A') { $object->is_for_all = 1; $object->fk_user = 0; $object->fk_usergroup = 0; } $object->dates = $dates; $object->datee = $datee; $object->entity = $conf->entity; $res = $object->create($user); if ($res > 0) setEventMessages($langs->trans('ExpenseReportRuleSave'), null); else dol_print_error($object->db); header('Location: '.$_SERVER['PHP_SELF']); exit; } } elseif ($action == 'delete') { // TODO add confirm $res = $object->delete($user); if ($res < 0) dol_print_error($object->db); header('Location: '.$_SERVER['PHP_SELF']); exit; } $rules = ExpenseReportRule::getAllRule(); $tab_apply = array('A' => $langs->trans('All'), 'G' => $langs->trans('Group'), 'U' => $langs->trans('User')); $tab_rules_type = array('EX_DAY' => $langs->trans('Day'), 'EX_MON' => $langs->trans('Month'), 'EX_YEA' => $langs->trans('Year'), 'EX_EXP' => $langs->trans('OnExpense')); /* * View */ llxHeader('', $langs->trans("ExpenseReportsSetup")); $form = new Form($db); $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>'; print load_fiche_titre($langs->trans("ExpenseReportsRulesSetup"), $linkback, 'title_setup'); $head = expensereport_admin_prepare_head(); dol_fiche_head($head, 'expenserules', $langs->trans("ExpenseReportsRules"), -1, 'trip'); echo $langs->trans('ExpenseReportRulesDesc'); if ($action != 'edit') { echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">'; echo '<input type="hidden" name="token" value="'.newToken().'" />'; echo '<input type="hidden" name="action" value="save" />'; echo '<table class="noborder centpercent">'; echo '<tr class="liste_titre">'; echo '<th>'.$langs->trans('ExpenseReportApplyTo').'</th>'; echo '<th>'.$langs->trans('ExpenseReportDomain').'</th>'; echo '<th>'.$langs->trans('ExpenseReportLimitOn').'</th>'; echo '<th>'.$langs->trans('ExpenseReportDateStart').'</th>'; echo '<th>'.$langs->trans('ExpenseReportDateEnd').'</th>'; echo '<th>'.$langs->trans('ExpenseReportLimitAmount').'</th>'; echo '<th>'.$langs->trans('ExpenseReportRestrictive').'</th>'; echo '<th> </th>'; echo '</tr>'; echo '<tr class="oddeven">'; echo '<td>'; echo '<div class="float">'.$form->selectarray('apply_to', $tab_apply, '', 0).'</div>'; echo '<div id="user" class="float">'.$form->select_dolusers('', 'fk_user').'</div>'; echo '<div id="group" class="float">'.$form->select_dolgroups('', 'fk_usergroup').'</div>'; echo '</td>'; echo '<td>'.$form->selectExpense('', 'fk_c_type_fees', 0, 1, 1).'</td>'; echo '<td>'.$form->selectarray('code_expense_rules_type', $tab_rules_type, '', 0).'</td>'; echo '<td>'.$form->selectDate(strtotime(date('Y-m-01', dol_now())), 'start', '', '', 0, '', 1, 0).'</td>'; echo '<td>'.$form->selectDate(strtotime(date('Y-m-t', dol_now())), 'end', '', '', 0, '', 1, 0).'</td>'; echo '<td><input type="text" value="" name="amount" class="amount" />'.$conf->currency.'</td>'; echo '<td>'.$form->selectyesno('restrictive', 0, 1).'</td>'; echo '<td class="right"><input type="submit" class="button" value="'.$langs->trans('Add').'" /></td>'; echo '</tr>'; echo '</table>'; echo '</form>'; } echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">'; echo '<input type="hidden" name="token" value="'.newToken().'" />'; if ($action == 'edit') { echo '<input type="hidden" name="id" value="'.$object->id.'" />'; echo '<input type="hidden" name="action" value="save" />'; } echo '<table class="noborder centpercent">'; echo '<tr class="liste_titre">'; echo '<th>'.$langs->trans('ExpenseReportApplyTo').'</th>'; echo '<th>'.$langs->trans('ExpenseReportDomain').'</th>'; echo '<th>'.$langs->trans('ExpenseReportLimitOn').'</th>'; echo '<th>'.$langs->trans('ExpenseReportDateStart').'</th>'; echo '<th>'.$langs->trans('ExpenseReportDateEnd').'</th>'; echo '<th>'.$langs->trans('ExpenseReportLimitAmount').'</th>'; echo '<th>'.$langs->trans('ExpenseReportRestrictive').'</th>'; echo '<th> </th>'; echo '</tr>'; foreach ($rules as $rule) { echo '<tr class="oddeven">'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { $selected = ($object->is_for_all > 0) ? 'A' : ($object->fk_usergroup > 0 ? 'G' : 'U'); echo '<div class="float">'.$form->selectarray('apply_to', $tab_apply, $selected, 0).'</div>'; echo '<div id="user" class="float">'.$form->select_dolusers($object->fk_user, 'fk_user').'</div>'; echo '<div id="group" class="float">'.$form->select_dolgroups($object->fk_usergroup, 'fk_usergroup').'</div>'; } else { if ($rule->is_for_all > 0) echo $tab_apply['A']; elseif ($rule->fk_usergroup > 0) echo $tab_apply['G'].' ('.$rule->getGroupLabel().')'; elseif ($rule->fk_user > 0) echo $tab_apply['U'].' ('.$rule->getUserName().')'; } echo '</td>'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { echo $form->selectExpense($object->fk_c_type_fees, 'fk_c_type_fees', 0, 1, 1); } else { if ($rule->fk_c_type_fees == -1) echo $langs->trans('AllExpenseReport'); else { $key = getDictvalue(MAIN_DB_PREFIX.'c_type_fees', 'code', $rule->fk_c_type_fees, false, 'id'); if ($key != $langs->trans($key)) echo $langs->trans($key); else echo $langs->trans(getDictvalue(MAIN_DB_PREFIX.'c_type_fees', 'label', $rule->fk_c_type_fees, false, 'id')); // TODO check to return trans of 'code' } } echo '</td>'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { echo $form->selectarray('code_expense_rules_type', $tab_rules_type, $object->code_expense_rules_type, 0); } else { echo $tab_rules_type[$rule->code_expense_rules_type]; } echo '</td>'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { print $form->selectDate(strtotime(date('Y-m-d', $object->dates)), 'start', '', '', 0, '', 1, 0); } else { echo dol_print_date($rule->dates, 'day'); } echo '</td>'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { print $form->selectDate(strtotime(date('Y-m-d', $object->datee)), 'end', '', '', 0, '', 1, 0); } else { echo dol_print_date($rule->datee, 'day'); } echo '</td>'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { echo '<input type="text" value="'.price2num($object->amount).'" name="amount" class="amount" />'.$conf->currency; } else { echo price($rule->amount, 0, $langs, 1, -1, -1, $conf->currency); } echo '</td>'; echo '<td>'; if ($action == 'edit' && $object->id == $rule->id) { echo $form->selectyesno('restrictive', $object->restrictive, 1); } else { echo yn($rule->restrictive, 1, 1); } echo '</td>'; echo '<td>'; if ($object->id != $rule->id) { echo '<a href="'.$_SERVER['PHP_SELF'].'?action=edit&id='.$rule->id.'">'.img_edit().'</a> '; echo '<a href="'.$_SERVER['PHP_SELF'].'?action=delete&id='.$rule->id.'">'.img_delete().'</a>'; } else { echo '<input type="submit" class="button" value="'.$langs->trans('Update').'" /> '; echo '<a href="'.$_SERVER['PHP_SELF'].'" class="button">'.$langs->trans('Cancel').'</a>'; } echo '</td>'; echo '</tr>'; } echo '</table>'; echo '</form>'; echo '<script type="text/javascript"> $(function() { $("#apply_to").change(function() { var value = $(this).val(); if (value == "A") { $("#group").hide(); $("#user").hide(); } else if (value == "U") { $("#user").show(); $("#group").hide(); } else if (value == "G") { $("#group").show(); $("#user").hide(); } }); $("#apply_to").change(); }); </script>'; dol_fiche_end(); // End of page llxFooter(); $db->close();