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 /
ctm.bdcloud.fr /
fourn /
facture /
Delete
Unzip
Name
Size
Permission
Date
Action
tpl
[ DIR ]
drwxrwxrwx
2020-09-03 11:42
card.php
133.14
KB
-rwxrwxrwx
2020-09-03 11:41
contact.php
9.94
KB
-rwxrwxrwx
2020-09-03 11:41
document.php
10.1
KB
-rwxrwxrwx
2020-09-03 11:41
impayees.php
10.93
KB
-rwxrwxrwx
2020-09-03 11:41
index.html
0
B
-rwxrwxrwx
2020-09-03 11:41
info.php
5.45
KB
-rwxrwxrwx
2020-09-03 11:41
list.php
51.73
KB
-rwxrwxrwx
2020-09-03 11:41
note.php
8.53
KB
-rwxrwxrwx
2020-09-03 11:41
paiement.php
46.33
KB
-rwxrwxrwx
2020-09-03 11:41
rapport.php
5.06
KB
-rwxrwxrwx
2020-09-03 11:41
Save
Rename
<?php /* Copyright (C) 2017 ATM-Consulting <support@atm-consulting.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 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/>. */ /** * \file htdocs/fourn/facture/rapport.php * \ingroup fourn * \brief Payment reports page */ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/rapport/pdf_paiement_fourn.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; $langs->loadLangs(array('bills')); // Security check $socid=''; if (! empty($user->socid)) $socid=$user->socid; $result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture'); $action=GETPOST('action', 'aZ09'); $socid=0; if ($user->socid > 0) { $action = ''; $socid = $user->socid; } $dir = $conf->fournisseur->facture->dir_output.'/payments'; if (! $user->rights->societe->client->voir || $socid) $dir.='/private/'.$user->id; // If user has no permission to see all, output dir is specific to user $year = $_GET["year"]; if (! $year) { $year=date("Y"); } /* * Actions */ if ($action == 'builddoc') { $rap = new pdf_paiement_fourn($db); $outputlangs = $langs; if (GETPOST('lang_id', 'aZ09')) { $outputlangs = new Translate("", $conf); $outputlangs->setDefaultLang(GETPOST('lang_id', 'aZ09')); } // We save charset_output to restore it because write_file can change it if needed for // output format that does not support UTF8. $sav_charset_output=$outputlangs->charset_output; if ($rap->write_file($dir, $_POST["remonth"], $_POST["reyear"], $outputlangs) > 0) { $outputlangs->charset_output=$sav_charset_output; } else { $outputlangs->charset_output=$sav_charset_output; dol_print_error($db, $obj->error); } $year = $_POST["reyear"]; } /* * View */ $formother=new FormOther($db); $titre=($year?$langs->trans("PaymentsReportsForYear", $year):$langs->trans("PaymentsReports")); llxHeader('', $titre); print load_fiche_titre($titre, '', 'invoicing'); // Formulaire de generation print '<form method="post" action="rapport.php?year='.$year.'">'; print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="action" value="builddoc">'; $cmonth = GETPOST("remonth")?GETPOST("remonth"):date("n", time()); $syear = GETPOST("reyear")?GETPOST("reyear"):date("Y", time()); print $formother->select_month($cmonth, 'remonth'); print $formother->select_year($syear, 'reyear'); print '<input type="submit" class="button" value="'.$langs->trans("Create").'">'; print '</form>'; print '<br>'; clearstatcache(); // Show link on other years $linkforyear=array(); $found=0; if (is_dir($dir)) { $handle=opendir($dir); if (is_resource($handle)) { while (($file = readdir($handle))!==false) { if (is_dir($dir.'/'.$file) && ! preg_match('/^\./', $file) && is_numeric($file)) { $found=1; $linkforyear[]=$file; } } } } asort($linkforyear); foreach($linkforyear as $cursoryear) { print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$cursoryear.'">'.$cursoryear.'</a> '; } if ($year) { if (is_dir($dir.'/'.$year)) { $handle=opendir($dir.'/'.$year); if ($found) print '<br>'; print '<br>'; print '<table width="100%" class="noborder">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("Reporting").'</td>'; print '<td class="right">'.$langs->trans("Size").'</td>'; print '<td class="right">'.$langs->trans("Date").'</td>'; print '</tr>'; if (is_resource($handle)) { while (($file = readdir($handle))!==false) { if (preg_match('/^supplier_payment/i', $file)) { $tfile = $dir . '/'.$year.'/'.$file; $relativepath = $year.'/'.$file; print '<tr class="oddeven">'.'<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=facture_fournisseur&file=payments/'.urlencode($relativepath).'">'.img_pdf().' '.$file.'</a></td>'; print '<td class="right">'.dol_print_size(dol_filesize($tfile)).'</td>'; print '<td class="right">'.dol_print_date(dol_filemtime($tfile), "dayhour").'</td></tr>'; } } closedir($handle); } print '</table>'; } } // End of page llxFooter(); $db->close();