ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:24.35 GB of 70.42 GB (34.59%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ yalagina/ administrator/ components/ com_modules/ controllers/ - drwxr-xr-x

Directory:
Viewing file:     module.php (3.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

jimport('joomla.application.component.controllerform');

/**
 * Module controller class.
 *
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 * @since       1.6
 */
class ModulesControllerModule extends JControllerForm
{
    
/**
     * Override parent add method.
     *
     * @return  mixed  True if the record can be added, a JError object if not.
     *
     * @since   1.6
     */
    
public function add()
    {
        
// Initialise variables.
        
$app JFactory::getApplication();

        
// Get the result of the parent method. If an error, just return it.
        
$result parent::add();
        if (
$result instanceof Exception)
        {
            return 
$result;
        }

        
// Look for the Extension ID.
        
$extensionId $app->input->get('eid'0'int');
        if (empty(
$extensionId))
        {
            
$this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_item.'&layout=edit'false));
            return 
JError::raiseWarning(500JText::_('COM_MODULES_ERROR_INVALID_EXTENSION'));
        }

        
$app->setUserState('com_modules.add.module.extension_id'$extensionId);
        
$app->setUserState('com_modules.add.module.params'null);

        
// Parameters could be coming in for a new item, so let's set them.
        
$params $app->input->get('params', array(), 'array');
        
$app->setUserState('com_modules.add.module.params'$params);
    }

    
/**
     * Override parent cancel method to reset the add module state.
     *
     * @param   string  $key  The name of the primary key of the URL variable.
     *
     * @return  boolean  True if access level checks pass, false otherwise.
     *
     * @since   1.6
     */
    
public function cancel($key null)
    {
        
// Initialise variables.
        
$app JFactory::getApplication();

        
$result parent::cancel();

        
$app->setUserState('com_modules.add.module.extension_id'null);
        
$app->setUserState('com_modules.add.module.params'null);

        return 
$result;
    }

    
/**
     * Override parent allowSave method.
     *
     * @param   array   $data  An array of input data.
     * @param   string  $key   The name of the key for the primary key.
     *
     * @return  boolean
     *
     * @since   1.6
     */
    
protected function allowSave($data$key 'id')
    {
        
// use custom position if selected
        
if (empty($data['position']))
        {
            
$data['position'] = $data['custom_position'];
        }

        unset(
$data['custom_position']);

        return 
parent::allowSave($data$key);
    }

    
/**
     * Method to run batch operations.
     *
     * @param   string  $model  The model
     *
     * @return    boolean  True on success.
     *
     * @since    1.7
     */
    
public function batch($model null)
    {
        
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));

        
// Set the model
        
$model    $this->getModel('Module''', array());

        
// Preset the redirect
        
$this->setRedirect(JRoute::_('index.php?option=com_modules&view=modules'.$this->getRedirectToListAppend(), false));

        return 
parent::batch($model);
    }

    
/**
     * Function that allows child controller access to model data after the data has been saved.
     *
     * @param   JModel  &$model     The data model object.
     * @param   array   $validData  The validated data.
     *
     * @return  void
     *
     * @since   1.6
     */
    
protected function postSaveHook(JModel &$model$validData = array())
    {
        
// Initialise variables.
        
$app JFactory::getApplication();
        
$task $this->getTask();

        switch (
$task)
        {
            case 
'save2new':
                
$app->setUserState('com_modules.add.module.extension_id'$model->getState('module.extension_id'));
                break;

            default:
                
$app->setUserState('com_modules.add.module.extension_id'null);
                break;
        }

        
$app->setUserState('com_modules.add.module.params'null);
    }
}
Command:
Quick Commands:
Upload:
[OK] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [OK]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2821 seconds