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.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
btm2000.apps-dev.fr /
core /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
accounting.lib.php
10.84
KB
-rw-r--r--
2023-12-15 13:44
admin.lib.php
71.6
KB
-rw-r--r--
2023-12-15 13:44
agenda.lib.php
18.62
KB
-rw-r--r--
2023-12-15 13:44
ajax.lib.php
37.36
KB
-rw-r--r--
2023-12-15 13:44
asset.lib.php
7.47
KB
-rw-r--r--
2023-12-15 13:44
bank.lib.php
14.15
KB
-rw-r--r--
2023-12-15 13:44
barcode.lib.php
15.4
KB
-rw-r--r--
2023-12-15 13:44
categories.lib.php
3.71
KB
-rw-r--r--
2023-12-15 13:44
company.lib.php
94.02
KB
-rw-r--r--
2023-12-15 13:44
contact.lib.php
10.3
KB
-rw-r--r--
2023-12-15 13:44
contract.lib.php
6.38
KB
-rw-r--r--
2023-12-15 13:44
cron.lib.php
5.05
KB
-rw-r--r--
2023-12-15 13:44
date.lib.php
39.46
KB
-rw-r--r--
2023-12-15 13:44
doc.lib.php
6.72
KB
-rw-r--r--
2023-12-15 13:44
doleditor.lib.php
3.85
KB
-rw-r--r--
2023-12-15 13:44
donation.lib.php
3.99
KB
-rw-r--r--
2023-12-15 13:44
ecm.lib.php
6.22
KB
-rw-r--r--
2023-12-15 13:44
emailing.lib.php
2.25
KB
-rw-r--r--
2023-12-15 13:44
eventorganization.lib.php
2.87
KB
-rw-r--r--
2023-12-15 13:44
expedition.lib.php
4.67
KB
-rw-r--r--
2023-12-15 13:44
expensereport.lib.php
6.09
KB
-rw-r--r--
2023-12-15 13:44
fichinter.lib.php
8.17
KB
-rw-r--r--
2023-12-15 13:44
files.lib.php
140.52
KB
-rw-r--r--
2023-12-15 13:44
fiscalyear.lib.php
1.86
KB
-rw-r--r--
2023-12-15 13:44
format_cards.lib.php
2.8
KB
-rw-r--r--
2023-12-15 13:44
fourn.lib.php
11.64
KB
-rw-r--r--
2023-12-15 13:44
ftp.lib.php
8.94
KB
-rw-r--r--
2023-12-15 13:44
functions.lib.php
524.5
KB
-rw-r--r--
2023-12-15 13:44
functions2.lib.php
96.43
KB
-rw-r--r--
2023-12-15 13:44
functions_ch.lib.php
3.66
KB
-rw-r--r--
2023-12-15 13:44
functionsnumtoword.lib.php
9.98
KB
-rw-r--r--
2023-12-15 13:44
geturl.lib.php
15.62
KB
-rw-r--r--
2023-12-15 13:44
holiday.lib.php
3.87
KB
-rw-r--r--
2023-12-15 13:44
hrm.lib.php
2.87
KB
-rw-r--r--
2023-12-15 13:44
images.lib.php
25.7
KB
-rw-r--r--
2023-12-15 13:44
import.lib.php
1.89
KB
-rw-r--r--
2023-12-15 13:44
intracommreport.lib.php
2.59
KB
-rw-r--r--
2023-12-15 13:44
invoice.lib.php
47.22
KB
-rw-r--r--
2023-12-15 13:44
invoice2.lib.php
9.08
KB
-rw-r--r--
2023-12-15 13:44
json.lib.php
11.13
KB
-rw-r--r--
2023-12-15 13:44
ldap.lib.php
5.35
KB
-rw-r--r--
2023-12-15 13:44
loan.lib.php
5.35
KB
-rw-r--r--
2023-12-15 13:44
mailmanspip.lib.php
1.24
KB
-rw-r--r--
2023-12-15 13:44
member.lib.php
12.08
KB
-rw-r--r--
2023-12-15 13:44
memory.lib.php
9.92
KB
-rw-r--r--
2023-12-15 13:44
modulebuilder.lib.php
33.89
KB
-rw-r--r--
2023-12-15 13:44
multicurrency.lib.php
2.07
KB
-rw-r--r--
2023-12-15 13:44
oauth.lib.php
7.75
KB
-rw-r--r--
2023-12-15 13:44
order.lib.php
11.62
KB
-rw-r--r--
2023-12-15 13:44
parsemd.lib.php
3.2
KB
-rw-r--r--
2023-12-15 13:44
payments.lib.php
15.15
KB
-rw-r--r--
2023-12-15 13:44
pdf.lib.php
111.38
KB
-rw-r--r--
2023-12-15 13:44
phpsessionindb.lib.php
8.29
KB
-rw-r--r--
2023-12-15 13:44
prelevement.lib.php
3.23
KB
-rw-r--r--
2023-12-15 13:44
price.lib.php
21.69
KB
-rw-r--r--
2023-12-15 13:44
product.lib.php
33.02
KB
-rw-r--r--
2023-12-15 13:44
project.lib.php
117.24
KB
-rw-r--r--
2023-12-15 13:44
propal.lib.php
11.21
KB
-rw-r--r--
2023-12-15 13:44
receiptprinter.lib.php
2.19
KB
-rw-r--r--
2023-12-15 13:44
reception.lib.php
5.68
KB
-rw-r--r--
2023-12-15 13:44
report.lib.php
3.83
KB
-rw-r--r--
2023-12-15 13:44
resource.lib.php
5.19
KB
-rw-r--r--
2023-12-15 13:44
salaries.lib.php
4
KB
-rw-r--r--
2023-12-15 13:44
security.lib.php
49.03
KB
-rw-r--r--
2023-12-15 13:44
security2.lib.php
21.19
KB
-rw-r--r--
2023-12-15 13:44
sendings.lib.php
16.89
KB
-rw-r--r--
2023-12-15 13:44
signature.lib.php
6
KB
-rw-r--r--
2023-12-15 13:44
stock.lib.php
4.81
KB
-rw-r--r--
2023-12-15 13:44
supplier_proposal.lib.php
5.57
KB
-rw-r--r--
2023-12-15 13:44
takepos.lib.php
2.31
KB
-rw-r--r--
2023-12-15 13:44
tax.lib.php
58.44
KB
-rw-r--r--
2023-12-15 13:44
ticket.lib.php
9.6
KB
-rw-r--r--
2023-12-15 13:44
treeview.lib.php
9.25
KB
-rw-r--r--
2023-12-15 13:44
trip.lib.php
1.98
KB
-rw-r--r--
2023-12-15 13:44
usergroups.lib.php
50.89
KB
-rw-r--r--
2023-12-15 13:44
vat.lib.php
2.6
KB
-rw-r--r--
2023-12-15 13:44
website.lib.php
57.39
KB
-rw-r--r--
2023-12-15 13:44
website2.lib.php
28.7
KB
-rw-r--r--
2023-12-15 13:44
ws.lib.php
3.4
KB
-rw-r--r--
2023-12-15 13:44
xcal.lib.php
17.87
KB
-rw-r--r--
2023-12-15 13:44
Save
Rename
<?php /** * Copyright (C) 2013 Marcos García <marcosgdf@gmail.com> * Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr> * Copyright (C) 2020 Abbes Bahfir <bafbes@gmail.com> * Copyright (C) 2021 Waël Almoman <info@almoman.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/>. * or see https://www.gnu.org/ */ /** * Returns an array with the tabs for the "Payment" section * It loads tabs from modules looking for the entity payment * * @param Paiement $object Current payment object * @return array Tabs for the payment section */ function payment_prepare_head(Paiement $object) { global $langs, $conf; $h = 0; $head = array(); $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/card.php?id='.$object->id; $head[$h][1] = $langs->trans("Payment"); $head[$h][2] = 'payment'; $h++; // Show more tabs from modules // Entries must be declared in modules descriptor with line // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab // $this->tabs = array('entity:-tabname); to remove a tab complete_head_from_modules($conf, $langs, $object, $head, $h, 'payment'); $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/info.php?id='.$object->id; $head[$h][1] = $langs->trans("Info"); $head[$h][2] = 'info'; $h++; complete_head_from_modules($conf, $langs, $object, $head, $h, 'payment', 'remove'); return $head; } /** * Returns an array with the tabs for the "Bannkline" section * It loads tabs from modules looking for the entity payment * * @param int $id ID of bank line * @return array Tabs for the Bankline section */ function bankline_prepare_head($id) { global $langs, $conf; $h = 0; $head = array(); $head[$h][0] = DOL_URL_ROOT.'/compta/bank/line.php?rowid='.$id; $head[$h][1] = $langs->trans('BankTransaction'); $head[$h][2] = 'bankline'; $h++; // Show more tabs from modules // Entries must be declared in modules descriptor with line // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab // $this->tabs = array('entity:-tabname); to remove a tab complete_head_from_modules($conf, $langs, null, $head, $h, 'bankline'); $head[$h][0] = DOL_URL_ROOT.'/compta/bank/info.php?rowid='.$id; $head[$h][1] = $langs->trans("Info"); $head[$h][2] = 'info'; $h++; complete_head_from_modules($conf, $langs, null, $head, $h, 'bankline', 'remove'); return $head; } /** * Returns an array with the tabs for the "Supplier payment" section * It loads tabs from modules looking for the entity payment_supplier * * @param Paiement $object Current payment object * @return array Tabs for the payment section */ function payment_supplier_prepare_head(Paiement $object) { global $db, $langs, $conf; $h = 0; $head = array(); $head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/card.php?id='.$object->id; $head[$h][1] = $langs->trans("Payment"); $head[$h][2] = 'payment'; $h++; // Show more tabs from modules // Entries must be declared in modules descriptor with line // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab // $this->tabs = array('entity:-tabname); to remove a tab complete_head_from_modules($conf, $langs, $object, $head, $h, 'payment_supplier'); $head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/info.php?id='.$object->id; $head[$h][1] = $langs->trans('Info'); $head[$h][2] = 'info'; $h++; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/link.class.php'; $upload_dir = $conf->fournisseur->payment->dir_output.'/'.$object->ref; $nbFiles = count(dol_dir_list($upload_dir, 'files', 0, '', '(\.meta|_preview.*\.png)$')); $nbLinks = Link::count($db, $object->element, $object->id); $head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/document.php?id='.$object->id; $head[$h][1] = $langs->trans('Documents'); if (($nbFiles + $nbLinks) > 0) { $head[$h][1] .= '<span class="badge marginleftonlyshort">'.($nbFiles + $nbLinks).'</span>'; } $head[$h][2] = 'documents'; $h++; complete_head_from_modules($conf, $langs, $object, $head, $h, 'payment_supplier', 'remove'); return $head; } /** * Return array of valid payment mode * * @param string $paymentmethod Filter on this payment method (''=none, 'paypal', ...) * @return array Array of valid payment method */ function getValidOnlinePaymentMethods($paymentmethod = '') { global $langs, $hookmanager, $action; $validpaymentmethod = array(); if ((empty($paymentmethod) || $paymentmethod == 'paypal') && isModEnabled('paypal')) { $langs->load("paypal"); $validpaymentmethod['paypal'] = 'valid'; } if ((empty($paymentmethod) || $paymentmethod == 'paybox') && isModEnabled('paybox')) { $langs->load("paybox"); $validpaymentmethod['paybox'] = 'valid'; } if ((empty($paymentmethod) || $paymentmethod == 'stripe') && isModEnabled('stripe')) { $langs->load("stripe"); $validpaymentmethod['stripe'] = 'valid'; } // This hook is used to complete the $validpaymentmethod array so an external payment modules // can add its own key (ie 'payzen' for Payzen, ...) $parameters = [ 'paymentmethod' => $paymentmethod, 'validpaymentmethod' => &$validpaymentmethod ]; $tmpobject = new stdClass(); $reshook = $hookmanager->executeHooks('getValidPayment', $parameters, $tmpobject, $action); if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); } elseif (!empty($hookmanager->resArray['validpaymentmethod'])) { if ($reshook == 0) { $validpaymentmethod = array_merge($validpaymentmethod, $hookmanager->resArray['validpaymentmethod']); } else { $validpaymentmethod = $hookmanager->resArray['validpaymentmethod']; } } return $validpaymentmethod; } /** * Return string with full online payment Url * * @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member' ...) * @param string $ref Ref of object * @param int|float $amount Amount of money to request for * @return string Url string */ function showOnlinePaymentUrl($type, $ref, $amount = 0) { global $langs; // Load translation files required by the page $langs->loadLangs(array('payment', 'stripe')); $servicename = ''; // Link is a generic link for all payments services (paypal, stripe, ...) $out = img_picto('', 'globe').' <span class="opacitymedium">'.$langs->trans("ToOfferALinkForOnlinePayment", $servicename).'</span><br>'; $url = getOnlinePaymentUrl(0, $type, $ref, $amount); $out .= '<div class="urllink"><input type="text" id="onlinepaymenturl" class="quatrevingtpercentminusx" value="'.$url.'">'; $out .= '<a class="" href="'.$url.'" target="_blank" rel="noopener noreferrer">'.img_picto('', 'globe', 'class="paddingleft"').'</a>'; $out .= '</div>'; $out .= ajax_autoselect("onlinepaymenturl", 0); return $out; } /** * Return string with HTML link for online payment * * @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member' ...) * @param string $ref Ref of object * @param string $label Text or HTML tag to display, if empty it display the URL * @param int|float $amount Amount of money to request for * @return string Url string */ function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount = 0) { $url = getOnlinePaymentUrl(0, $type, $ref, $amount); $label = $label ? $label : $url; return '<a href="'.$url.'" target="_blank" rel="noopener noreferrer">'.$label.'</a>'; } /** * Return string with full Url * * @param int $mode 0=True url, 1=Url formated with colors * @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member', 'boothlocation', ...) * @param string $ref Ref of object * @param int|float $amount Amount of money to request for * @param string $freetag Free tag (required and used for $type='free' only) * @param string $localorexternal 0=Url for browser, 1=Url for external access * @return string Url string */ function getOnlinePaymentUrl($mode, $type, $ref = '', $amount = 0, $freetag = 'your_tag', $localorexternal = 1) { global $conf, $dolibarr_main_url_root; $ref = str_replace(' ', '', $ref); $out = ''; // Define $urlwithroot $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root)); $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file //$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current $urltouse = DOL_MAIN_URL_ROOT; // Should be "https://www.mydomain.com/mydolibarr" for example //dol_syslog("getOnlinePaymentUrl DOL_MAIN_URL_ROOT=".DOL_MAIN_URL_ROOT); if ($localorexternal) { $urltouse = $urlwithroot; } if ($type == 'free') { $out = $urltouse.'/public/payment/newpayment.php?amount='.($mode ? '<span style="color: #666666">' : '').$amount.($mode ? '</span>' : '').'&tag='.($mode ? '<span style="color: #666666">' : '').$freetag.($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.urlencode(dol_hash($conf->global->PAYMENT_SECURITY_TOKEN, 2)); } } //if ($mode) $out.='&noidempotency=1'; } elseif ($type == 'order') { $out = $urltouse.'/public/payment/newpayment.php?source='.$type.'&ref='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= 'order_ref'; } if ($mode == 0) { $out .= urlencode($ref); } $out .= ($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + order_ref)"; } if ($mode == 0) { $out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2); } $out .= ($mode ? '</span>' : ''); } } } elseif ($type == 'invoice') { $out = $urltouse.'/public/payment/newpayment.php?source='.$type.'&ref='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= 'invoice_ref'; } if ($mode == 0) { $out .= urlencode($ref); } $out .= ($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + invoice_ref)"; } if ($mode == 0) { $out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2); } $out .= ($mode ? '</span>' : ''); } } } elseif ($type == 'contractline') { $out = $urltouse.'/public/payment/newpayment.php?source='.$type.'&ref='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= 'contractline_ref'; } if ($mode == 0) { $out .= urlencode($ref); } $out .= ($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + contractline_ref)"; } if ($mode == 0) { $out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2); } $out .= ($mode ? '</span>' : ''); } } } elseif ($type == 'member' || $type == 'membersubscription') { $newtype = 'member'; $out = $urltouse.'/public/payment/newpayment.php?source=member'; $out .= '&amount='.$amount; $out .= '&ref='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= 'member_ref'; } if ($mode == 0) { $out .= urlencode($ref); } $out .= ($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$newtype."' + member_ref)"; } if ($mode == 0) { $out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$newtype.$ref, 2); } $out .= ($mode ? '</span>' : ''); } } } elseif ($type == 'donation') { $out = $urltouse.'/public/payment/newpayment.php?source='.$type.'&ref='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= 'donation_ref'; } if ($mode == 0) { $out .= urlencode($ref); } $out .= ($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + donation_ref)"; } if ($mode == 0) { $out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2); } $out .= ($mode ? '</span>' : ''); } } } elseif ($type == 'boothlocation') { $out = $urltouse.'/public/payment/newpayment.php?source='.$type.'&ref='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= 'invoice_ref'; } if ($mode == 0) { $out .= urlencode($ref); } $out .= ($mode ? '</span>' : ''); if (!empty($conf->global->PAYMENT_SECURITY_TOKEN)) { if (empty($conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE)) { $out .= '&securekey='.urlencode($conf->global->PAYMENT_SECURITY_TOKEN); } else { $out .= '&securekey='.($mode ? '<span style="color: #666666">' : ''); if ($mode == 1) { $out .= "hash('".$conf->global->PAYMENT_SECURITY_TOKEN."' + '".$type."' + invoice_ref)"; } if ($mode == 0) { $out .= dol_hash($conf->global->PAYMENT_SECURITY_TOKEN.$type.$ref, 2); } $out .= ($mode ? '</span>' : ''); } } } // For multicompany if (!empty($out) && isModEnabled('multicompany')) { $out .= "&entity=".$conf->entity; // Check the entity because we may have the same reference in several entities } return $out; }