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 /
loan /
Delete
Unzip
Name
Size
Permission
Date
Action
class
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
payment
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
calcmens.php
2.41
KB
-rwxr-xr-x
2021-01-30 17:58
card.php
28.04
KB
-rwxr-xr-x
2021-01-30 17:58
document.php
6.2
KB
-rwxr-xr-x
2021-01-30 17:58
index.html
0
B
-rwxr-xr-x
2021-01-30 17:58
info.php
4.41
KB
-rwxr-xr-x
2021-01-30 17:58
list.php
10.2
KB
-rwxr-xr-x
2021-01-30 17:58
note.php
5.09
KB
-rwxr-xr-x
2021-01-30 17:58
schedule.php
12.39
KB
-rwxr-xr-x
2021-01-30 17:58
Save
Rename
<?php /* TVI * Copyright (C) 2015 Florian HENRY <florian.henry@open-concept.pro> * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * \file htdocs/loan/calcmens.php * \ingroup loan * \brief File to calculate loan monthly payments */ if (!defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', '1'); // Disables token renewal if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1'); if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1'); require '../main.inc.php'; require DOL_DOCUMENT_ROOT.'/loan/class/loanschedule.class.php'; $mens = GETPOST('mens'); $capital = GETPOST('capital'); $rate = GETPOST('rate'); $echance = GETPOST('echeance'); $nbterm = GETPOST('nbterm'); top_httphead(); $output = array(); $object = new LoanSchedule($db); $int = ($capital * ($rate / 12)); $int = round($int, 2, PHP_ROUND_HALF_UP); $cap_rest = round($capital - ($mens - $int), 2, PHP_ROUND_HALF_UP); $output[$echance] = array('cap_rest'=>$cap_rest, 'cap_rest_str'=>price($cap_rest, 0, '', 1, -1, -1, $conf->currency), 'interet'=>$int, 'interet_str'=>price($int, 0, '', 1, -1, -1, $conf->currency), 'mens'=>$mens); $echance++; $capital = $cap_rest; while ($echance <= $nbterm) { $mens = round($object->calcMonthlyPayments($capital, $rate, $nbterm - $echance + 1), 2, PHP_ROUND_HALF_UP); $int = ($capital * ($rate / 12)); $int = round($int, 2, PHP_ROUND_HALF_UP); $cap_rest = round($capital - ($mens - $int), 2, PHP_ROUND_HALF_UP); $output[$echance] = array('cap_rest'=>$cap_rest, 'cap_rest_str'=>price($cap_rest, 0, '', 1, -1, -1, $conf->currency), 'interet'=>$int, 'interet_str'=>price($int, 0, '', 1, -1, -1, $conf->currency), 'mens'=>$mens); $capital = $cap_rest; $echance++; } echo json_encode($output);