403Webshell
Server IP : 104.21.17.213  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/gotofindhomes.com3/components/Advertise/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/gotofindhomes.com3/components/Advertise/Controllers/PlaceController.php
<?php
class Advertise_PlaceController extends System_Controller_Db_Table
{
    public function editAction()
    {
        parent::editAction();
    }

    public function showAction()
    {
        $paramName = $this->getRequest()->getParam('Name');
        $paramSiteID = $this->getRequest()->getParam('Site_ID');
        if (!$paramName){
            throw new Zend_Exception('Parametr Name should be defined for Advertise_PlaceController->getAction()');
        }
        $this->_select->where('Name = ?', $paramName);
        $objectPlace = $this->_model->fetchRow($this->_select);
        if (!is_object($objectPlace)){
            throw new Zend_Exception('Object Advertise_Place not found in DB');
        }
        if ($objectPlace->Site_ID){
            $paramSiteID = $objectPlace->Site_ID;
        }
        $this->view->object = $objectPlace->toArray();
        $tableAdvertise = new Advertise_Table();
        $selectAdvertise = $tableAdvertise->select();
        if ($objectPlace->Width){
            $selectAdvertise->where('Width = ?', $objectPlace->Width);
        }
        if ($objectPlace->Height){
            $selectAdvertise->where('Height = ?', $objectPlace->Height);
        }

        if ($paramSiteID){
            $selectAdvertise->where('Site_ID = ?', $paramSiteID);
        }
        $listAdvertise = $tableAdvertise->fetchAll($selectAdvertise);
        if ($listAdvertise->count()){
            $this->view->advertise = $listAdvertise->current()->toArray();
        }
    }

    public function getlistAction()
    {
        $this->_select->setIntegrityCheck(false);
        $this->_select->from($this->_model);
        $this->_select->joinLeft('advertise_site', 'advertise_site.ID = advertise_place.Site_ID', array('Site_Name' => 'Name'));
        parent::getlistAction();
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit