[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: route.php
<?php namespace ShopEngine\Widgets\Init; use ShopEngine\Base\Api; defined('ABSPATH') || exit; class Route extends Api { public function config() { $this->prefix = 'widgets_partials'; $this->param = ""; } public function get_filter_cat_products() { $data = $this->request->get_params(); $products = $data['products']; $order = isset($data['order']) ? $data['order'] : 'DESC'; $order_by = isset($data['order_by']) ? $data['order_by'] : 'date'; $settings = isset($data['settings']) ? $data['settings'] : null; if(empty($products)) { echo "<p class='error'>" . esc_html__('No products were found.', 'shopengine') . "</p>"; exit(); } $args = array( 'post_type' => 'product', 'order' => $order, 'orderby' => $order_by, 'post__in' => $products, 'posts_per_page' => 50 ); $query = new \WP_Query($args); if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); $default_content = [ 'image' => 0, 'category' => 0, 'title' => 0, 'rating' => 0, 'price' => 0, 'description' => 0, 'buttons' => 0, ]; $content = (!empty($view) ? $view : $default_content); asort($content, SORT_NUMERIC); if( $settings['shopengine_is_cats'] != 'yes' ) unset($content['category']); if( $settings['shopengine_is_details'] != 'yes' ) { unset($content['description']); } if( $settings['shopengine_is_product_rating'] != 'yes' ) unset($content['rating']); ?> <div class='shopengine-single-product-item'> <?php foreach($content as $key => $value) { $function = '_product_' . $key; \ShopEngine\Utils\Helper::$function($settings); } ?> </div> <?php endwhile; endif; wp_reset_postdata(); exit(); } public function post_checkout_login() { $data = $this->request->get_params(); if(isset($data['rememberme'])) { $data['rememberme'] = $data['rememberme'] == 'true' ? true : false; } $user = wp_signon($data); if(is_wp_error($user)) { return new \WP_Error('failed_login', $user->get_error_message(), ['status' => 404]); } return true; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium171.web-hosting.com
Server IP: 162.0.209.115
PHP Version: 8.0.30
Server Software: LiteSpeed
System: Linux premium171.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 71.14 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: aircyknj
User ID (UID): 2056
Group ID (GID): 2052
Script Owner UID: 2056
Current Dir Owner: 2056