403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/public_html/wp-content/plugins/erp/modules/accounting/includes/API/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/public_html/wp-content/plugins/erp/modules/accounting/includes/API/REST_API.php
<?php

namespace WeDevs\ERP\Accounting\API;

/**
 * class REST_API Handler
 */
class REST_API {
    public function __construct() {
        add_filter( 'erp_rest_api_controllers', [ $this, 'register_accounting_new_controllers' ] );
    }

    public function register_accounting_new_controllers( $controllers ) {
        $this->include_controllers();

        $controllers = array_merge(
            $controllers,
            [
                '\WeDevs\ERP\Accounting\API\CustomersController',
                '\WeDevs\ERP\Accounting\API\VendorsController',
                '\WeDevs\ERP\Accounting\API\EmployeesController',
                '\WeDevs\ERP\Accounting\API\InventoryProductsController',
                '\WeDevs\ERP\Accounting\API\InventoryProductCatsController',
                '\WeDevs\ERP\Accounting\API\LedgersAccountsController',
                '\WeDevs\ERP\Accounting\API\OpeningBalancesController',
                '\WeDevs\ERP\Accounting\API\ClosingBalanceController',
                '\WeDevs\ERP\Accounting\API\InvoicesController',
                '\WeDevs\ERP\Accounting\API\PaymentsController',
                '\WeDevs\ERP\Accounting\API\BillsController',
                '\WeDevs\ERP\Accounting\API\PayBillsController',
                '\WeDevs\ERP\Accounting\API\PurchasesController',
                '\WeDevs\ERP\Accounting\API\PayPurchasesController',
                '\WeDevs\ERP\Accounting\API\TransactionsController',
                '\WeDevs\ERP\Accounting\API\TaxRatesController',
                '\WeDevs\ERP\Accounting\API\BankAccountsController',
                '\WeDevs\ERP\Accounting\API\CompanyController',
                '\WeDevs\ERP\Accounting\API\CurrenciesController',
                '\WeDevs\ERP\Accounting\API\JournalsController',
                '\WeDevs\ERP\Accounting\API\ExpensesController',
                '\WeDevs\ERP\Accounting\API\TaxAgenciesController',
                '\WeDevs\ERP\Accounting\API\TaxCatsController',
                '\WeDevs\ERP\Accounting\API\TaxRateNamesController',
                '\WeDevs\ERP\Accounting\API\PeopleController',
                '\WeDevs\ERP\Accounting\API\ReportsController',
            ]
        );

        return $controllers;
    }

    public function include_controllers() {
        foreach ( glob( ERP_ACCOUNTING_API . '/*.php' ) as $filename ) {
            include_once $filename;
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit