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 /
asiafood.bdcloud.fr /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
backup
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
dolistore
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
menus
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
system
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
temp
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
tools
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
accountant.php
8.62
KB
-rwxr-xr-x
2022-11-20 12:01
agenda.php
7.11
KB
-rwxr-xr-x
2022-11-20 12:01
agenda_extrafields.php
4.05
KB
-rwxr-xr-x
2022-11-20 12:01
agenda_extsites.php
8.27
KB
-rwxr-xr-x
2022-11-20 12:01
agenda_other.php
13.97
KB
-rwxr-xr-x
2022-11-20 12:01
agenda_reminder.php
7.72
KB
-rwxr-xr-x
2022-11-20 12:01
agenda_xcal.php
8.54
KB
-rwxr-xr-x
2022-11-20 12:01
bank.php
18.42
KB
-rwxr-xr-x
2022-11-20 12:01
bank_extrafields.php
3.28
KB
-rwxr-xr-x
2022-11-20 12:01
barcode.php
13.35
KB
-rwxr-xr-x
2022-11-20 12:01
bom.php
16.96
KB
-rwxr-xr-x
2022-11-20 12:01
boxes.php
16.64
KB
-rwxr-xr-x
2022-11-20 12:01
chequereceipts.php
9.17
KB
-rwxr-xr-x
2022-11-20 12:01
clicktodial.php
5.06
KB
-rwxr-xr-x
2022-11-20 12:01
commande.php
26.53
KB
-rwxr-xr-x
2022-11-20 12:01
commande_fournisseur_dispatch_extrafields.php
4.2
KB
-rwxr-xr-x
2022-11-20 12:01
company.php
35.21
KB
-rwxr-xr-x
2022-11-20 12:01
compta.php
5.05
KB
-rwxr-xr-x
2022-11-20 12:01
confexped.php
4.44
KB
-rwxr-xr-x
2022-11-20 12:01
const.php
10.04
KB
-rwxr-xr-x
2022-11-20 12:01
contract.php
16.89
KB
-rwxr-xr-x
2022-11-20 12:01
dav.php
6.04
KB
-rwxr-xr-x
2022-11-20 12:01
debugbar.php
3.62
KB
-rwxr-xr-x
2022-11-20 12:01
defaultvalues.php
15.73
KB
-rwxr-xr-x
2022-11-20 12:01
delais.php
15.38
KB
-rwxr-xr-x
2022-11-20 12:01
dict.php
102.49
KB
-rwxr-xr-x
2022-11-20 12:01
ecm.php
2.96
KB
-rwxr-xr-x
2022-11-20 12:01
emailcollector_card.php
27.14
KB
-rwxr-xr-x
2022-11-20 12:01
emailcollector_list.php
22.37
KB
-rwxr-xr-x
2022-11-20 12:01
events.php
3.36
KB
-rwxr-xr-x
2022-11-20 12:01
expedition.php
17.35
KB
-rwxr-xr-x
2022-11-20 12:01
expedition_extrafields.php
4.12
KB
-rwxr-xr-x
2022-11-20 12:01
expeditiondet_extrafields.php
4.18
KB
-rwxr-xr-x
2022-11-20 12:01
expensereport.php
16.39
KB
-rwxr-xr-x
2022-11-20 12:01
expensereport_extrafields.php
4
KB
-rwxr-xr-x
2022-11-20 12:01
expensereport_ik.php
6.14
KB
-rwxr-xr-x
2022-11-20 12:01
expensereport_rules.php
11.11
KB
-rwxr-xr-x
2022-11-20 12:01
export.php
3.08
KB
-rwxr-xr-x
2022-11-20 12:01
external_rss.php
9.84
KB
-rwxr-xr-x
2022-11-20 12:01
facture.php
31.94
KB
-rwxr-xr-x
2022-11-20 12:01
facture_situation.php
6.92
KB
-rwxr-xr-x
2022-11-20 12:01
fckeditor.php
8.09
KB
-rwxr-xr-x
2022-11-20 12:01
fichinter.php
21.09
KB
-rwxr-xr-x
2022-11-20 12:01
geoipmaxmind.php
5.57
KB
-rwxr-xr-x
2022-11-20 12:01
holiday.php
17.33
KB
-rwxr-xr-x
2022-11-20 12:01
holiday_extrafields.php
3.95
KB
-rwxr-xr-x
2022-11-20 12:01
ihm.php
20.07
KB
-rwxr-xr-x
2022-11-20 12:01
index.php
5.08
KB
-rwxr-xr-x
2022-11-20 12:01
ldap.php
12.75
KB
-rwxr-xr-x
2022-11-20 12:01
ldap_contacts.php
14.98
KB
-rwxr-xr-x
2022-11-20 12:01
ldap_groups.php
9.62
KB
-rwxr-xr-x
2022-11-20 12:01
ldap_members.php
19.95
KB
-rwxr-xr-x
2022-11-20 12:01
ldap_members_types.php
8.8
KB
-rwxr-xr-x
2022-11-20 12:01
ldap_users.php
21.72
KB
-rwxr-xr-x
2022-11-20 12:01
limits.php
11.72
KB
-rwxr-xr-x
2022-11-20 12:01
livraison.php
16.06
KB
-rwxr-xr-x
2022-11-20 12:01
livraison_extrafields.php
4.12
KB
-rwxr-xr-x
2022-11-20 12:01
livraisondet_extrafields.php
4.19
KB
-rwxr-xr-x
2022-11-20 12:01
loan.php
3.21
KB
-rwxr-xr-x
2022-11-20 12:01
mailing.php
5.42
KB
-rwxr-xr-x
2022-11-20 12:01
mailman.php
7.94
KB
-rwxr-xr-x
2022-11-20 12:01
mails.php
38.7
KB
-rwxr-xr-x
2022-11-20 12:01
mails_emailing.php
25.4
KB
-rwxr-xr-x
2022-11-20 12:01
mails_senderprofile_list.php
26.76
KB
-rwxr-xr-x
2022-11-20 12:01
mails_templates.php
46.38
KB
-rwxr-xr-x
2023-04-13 09:15
menus.php
7.99
KB
-rwxr-xr-x
2022-11-20 12:01
modulehelp.php
18.53
KB
-rwxr-xr-x
2022-11-20 12:01
modules.php
48.74
KB
-rwxr-xr-x
2022-11-20 12:01
mrp.php
16.97
KB
-rwxr-xr-x
2022-11-20 12:01
multicurrency.php
12.63
KB
-rwxr-xr-x
2022-11-20 12:01
notification.php
10.87
KB
-rwxr-xr-x
2022-11-20 12:01
oauth.php
4.79
KB
-rwxr-xr-x
2022-11-20 12:01
oauthlogintokens.php
14.05
KB
-rwxr-xr-x
2022-11-20 12:01
openinghours.php
6.43
KB
-rwxr-xr-x
2022-11-20 12:01
order_extrafields.php
3.98
KB
-rwxr-xr-x
2022-11-20 12:01
orderdet_extrafields.php
4.06
KB
-rwxr-xr-x
2022-11-20 12:01
payment.php
10.09
KB
-rwxr-xr-x
2022-11-20 12:01
pdf.php
13.98
KB
-rwxr-xr-x
2022-11-20 12:01
perms.php
6.65
KB
-rwxr-xr-x
2022-11-20 12:01
prelevement.php
19.33
KB
-rwxr-xr-x
2022-11-20 12:01
propal.php
25.7
KB
-rwxr-xr-x
2022-11-20 12:01
proxy.php
6.8
KB
-rwxr-xr-x
2022-11-20 12:01
receiptprinter.php
17.69
KB
-rwxr-xr-x
2022-11-20 12:01
reception_extrafields.php
4.11
KB
-rwxr-xr-x
2022-11-20 12:01
reception_setup.php
17.05
KB
-rwxr-xr-x
2022-11-20 12:01
resource.php
4.35
KB
-rwxr-xr-x
2022-11-20 12:01
resource_extrafields.php
3.96
KB
-rwxr-xr-x
2022-11-20 12:01
security.php
16.36
KB
-rwxr-xr-x
2022-11-20 12:01
security_file.php
6.96
KB
-rwxr-xr-x
2022-11-20 12:01
security_other.php
6.13
KB
-rwxr-xr-x
2022-11-20 12:01
sms.php
11.3
KB
-rwxr-xr-x
2022-11-20 12:01
socialnetworks.php
3.21
KB
-rwxr-xr-x
2022-11-20 12:01
spip.php
4.87
KB
-rwxr-xr-x
2022-11-20 12:01
stock.php
17.24
KB
-rwxr-xr-x
2022-11-20 12:01
supplier_invoice.php
18.58
KB
-rwxr-xr-x
2022-11-20 12:01
supplier_order.php
21.33
KB
-rwxr-xr-x
2022-11-20 12:01
supplier_payment.php
16.5
KB
-rwxr-xr-x
2022-11-20 12:01
supplier_proposal.php
20.42
KB
-rwxr-xr-x
2022-11-20 12:01
supplierinvoice_extrafields.php
4.13
KB
-rwxr-xr-x
2022-11-20 12:01
supplierinvoicedet_extrafields.php
4.2
KB
-rwxr-xr-x
2022-11-20 12:01
supplierorder_extrafields.php
4.05
KB
-rwxr-xr-x
2022-11-20 12:01
supplierorderdet_extrafields.php
4.12
KB
-rwxr-xr-x
2022-11-20 12:01
syslog.php
10.1
KB
-rwxr-xr-x
2022-11-20 12:01
taxes.php
8.78
KB
-rwxr-xr-x
2022-11-20 12:01
ticket.php
18.19
KB
-rwxr-xr-x
2022-11-20 12:01
ticket_extrafields.php
3.8
KB
-rwxr-xr-x
2022-11-20 12:01
ticket_public.php
15.61
KB
-rwxr-xr-x
2022-11-20 12:01
translation.php
22.79
KB
-rwxr-xr-x
2022-11-20 12:01
triggers.php
2.74
KB
-rwxr-xr-x
2022-11-20 12:01
user.php
11.13
KB
-rwxr-xr-x
2022-11-20 12:01
usergroup.php
9.87
KB
-rwxr-xr-x
2022-11-20 12:01
website.php
23.29
KB
-rwxr-xr-x
2022-11-20 12:01
website_options.php
4.66
KB
-rwxr-xr-x
2022-11-20 12:01
workflow.php
7.03
KB
-rwxr-xr-x
2022-11-20 12:01
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();