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:30.73 GB of 70.42 GB (43.64%)
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/ guitar.1/ cli/ - drwxr-xr-x

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

// Make sure we're being called from the command line, not a web interface
if (array_key_exists('REQUEST_METHOD'$_SERVER)) die();

/**
 * Finder CLI Bootstrap
 *
 * Run the framework bootstrap with a couple of mods based on the script's needs
 */

// We are a valid entry point.
define('_JEXEC'1);
define('DS'DIRECTORY_SEPARATOR);

// Load system defines
if (file_exists(dirname(dirname(__FILE__)) . '/defines.php'))
{
    require_once 
dirname(dirname(__FILE__)) . '/defines.php';
}

if (!
defined('_JDEFINES'))
{
    
define('JPATH_BASE'dirname(dirname(__FILE__)));
    require_once 
JPATH_BASE '/includes/defines.php';
}

// Get the framework.
require_once JPATH_LIBRARIES '/import.php';

// Bootstrap the CMS libraries.
require_once JPATH_LIBRARIES '/cms.php';

// Force library to be in JError legacy mode
JError::$legacy true;

// Import necessary classes not handled by the autoloaders
jimport('joomla.application.menu');
jimport('joomla.environment.uri');
jimport('joomla.event.dispatcher');
jimport('joomla.utilities.utility');
jimport('joomla.utilities.arrayhelper');

// Import the configuration.
require_once JPATH_CONFIGURATION '/configuration.php';

// System configuration.
$config = new JConfig;

// Configure error reporting to maximum for CLI output.
error_reporting(E_ALL);
ini_set('display_errors'1);

// Load Library language
$lang JFactory::getLanguage();

// Try the finder_cli file in the current language (without allowing the loading of the file in the default language)
$lang->load('finder_cli'JPATH_SITEnullfalsefalse)
// Fallback to the finder_cli file in the default language
|| $lang->load('finder_cli'JPATH_SITEnulltrue);

/**
 * A command line cron job to run the Finder indexer.
 *
 * @package     Joomla.CLI
 * @subpackage  com_finder
 * @since       2.5
 */
class FinderCli extends JApplicationCli
{
    
/**
     * Start time for the index process
     *
     * @var    string
     * @since  2.5
     */
    
private $_time null;

    
/**
     * Start time for each batch
     *
     * @var    string
     * @since  2.5
     */
    
private $_qtime null;

    
/**
     * Entry point for Finder CLI script
     *
     * @return  void
     *
     * @since   2.5
     */
    
public function execute()
    {
        
// Print a blank line.
        
$this->out(JText::_('FINDER_CLI'));
        
$this->out('============================');
        
$this->out();

        
$this->_index();

        
// Print a blank line at the end.
        
$this->out();
    }

    
/**
     * Run the indexer
     *
     * @return  void
     *
     * @since   2.5
     */
    
private function _index()
    {
        
// initialize the time value
        
$this->_time microtime(true);

        
// import library dependencies
        
require_once JPATH_ADMINISTRATOR '/components/com_finder/helpers/indexer/indexer.php';
        
jimport('joomla.application.component.helper');

        
// fool the system into thinking we are running as JSite with Finder as the active component
        
JFactory::getApplication('site');
        
$_SERVER['HTTP_HOST'] = 'domain.com';
        
define('JPATH_COMPONENT_ADMINISTRATOR'JPATH_ADMINISTRATOR '/components/com_finder');

        
// Disable caching.
        
$config JFactory::getConfig();
        
$config->set('caching'0);
        
$config->set('cache_handler''file');

        
// Reset the indexer state.
        
FinderIndexer::resetState();

        
// Import the finder plugins.
        
JPluginHelper::importPlugin('finder');

        
// Starting Indexer.
        
$this->out(JText::_('FINDER_CLI_STARTING_INDEXER'), true);

        
// Trigger the onStartIndex event.
        
JDispatcher::getInstance()->trigger('onStartIndex');

        
// Remove the script time limit.
        
@set_time_limit(0);

        
// Get the indexer state.
        
$state FinderIndexer::getState();

        
// Setting up plugins.
        
$this->out(JText::_('FINDER_CLI_SETTING_UP_PLUGINS'), true);

        
// Trigger the onBeforeIndex event.
        
JDispatcher::getInstance()->trigger('onBeforeIndex');

        
// Startup reporting.
        
$this->out(JText::sprintf('FINDER_CLI_SETUP_ITEMS'$state->totalItemsround(microtime(true) - $this->_time3)), true);

        
// Get the number of batches.
        
$t = (int) $state->totalItems;
        
$c = (int) ceil($t $state->batchSize);
        
$c $c === $c;

        
// Process the batches.
        
for ($i 0$i $c$i++)
        {
            
// Set the batch start time.
            
$this->_qtime microtime(true);

            
// Reset the batch offset.
            
$state->batchOffset 0;

            
// Trigger the onBuildIndex event.
            
JDispatcher::getInstance()->trigger('onBuildIndex');

            
// Batch reporting.
            
$this->out(JText::sprintf('FINDER_CLI_BATCH_COMPLETE', ($i 1), round(microtime(true) - $this->_qtime3)), true);
        }

        
// Total reporting.
        
$this->out(JText::sprintf('FINDER_CLI_PROCESS_COMPLETE'round(microtime(true) - $this->_time3)), true);

        
// Reset the indexer state.
        
FinderIndexer::resetState();
    }
}

// Instantiate the application object, passing the class name to JCli::getInstance
// and use chaining to execute the application.
JApplicationCli::getInstance('FinderCli')->execute();
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.2373 seconds