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:25.27 GB of 70.42 GB (35.89%)
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/ libraries/ joomla/ utilities/ - drwxr-xr-x

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

defined('JPATH_PLATFORM') or die;

/**
 * Generic Buffer stream handler
 *
 * This class provides a generic buffer stream.  It can be used to store/retrieve/manipulate
 * string buffers with the standard PHP filesystem I/O methods.
 *
 * @package     Joomla.Platform
 * @subpackage  Utilities
 * @since       11.1
 */
class JBuffer
{
    
/**
     * Stream position
     *
     * @var    integer
     * @since  11.1
     */
    
public $position 0;

    
/**
     * Buffer name
     *
     * @var    string
     * @since  11.1
     */
    
public $name null;

    
/**
     * Buffer hash
     *
     * @var    array
     * @since  11.1
     */
    
public $_buffers = array();

    
/**
     * Function to open file or url
     *
     * @param   string   $path          The URL that was passed
     * @param   string   $mode          Mode used to open the file @see fopen
     * @param   integer  $options       Flags used by the API, may be STREAM_USE_PATH and
     *                                  STREAM_REPORT_ERRORS
     * @param   string   &$opened_path  Full path of the resource. Used with STREAN_USE_PATH option
     *
     * @return  boolean
     *
     * @since   11.1
     * @see     streamWrapper::stream_open
     */
    
public function stream_open($path$mode$options, &$opened_path)
    {
        
$url parse_url($path);
        
$this->name $url["host"];
        
$this->_buffers[$this->name] = null;
        
$this->position 0;

        return 
true;
    }

    
/**
     * Read stream
     *
     * @param   integer  $count  How many bytes of data from the current position should be returned.
     *
     * @return  mixed    The data from the stream up to the specified number of bytes (all data if
     *                   the total number of bytes in the stream is less than $count. Null if
     *                   the stream is empty.
     *
     * @see     streamWrapper::stream_read
     * @since   11.1
     */
    
public function stream_read($count)
    {
        
$ret substr($this->_buffers[$this->name], $this->position$count);
        
$this->position += strlen($ret);

        return 
$ret;
    }

    
/**
     * Write stream
     *
     * @param   string  $data  The data to write to the stream.
     *
     * @return  integer
     *
     * @see     streamWrapper::stream_write
     * @since   11.1
     */
    
public function stream_write($data)
    {
        
$left substr($this->_buffers[$this->name], 0$this->position);
        
$right substr($this->_buffers[$this->name], $this->position strlen($data));
        
$this->_buffers[$this->name] = $left $data $right;
        
$this->position += strlen($data);

        return 
strlen($data);
    }

    
/**
     * Function to get the current position of the stream
     *
     * @return  integer
     *
     * @see     streamWrapper::stream_tell
     * @since   11.1
     */
    
public function stream_tell()
    {
        return 
$this->position;
    }

    
/**
     * Function to test for end of file pointer
     *
     * @return  boolean  True if the pointer is at the end of the stream
     *
     * @see     streamWrapper::stream_eof
     * @since   11.1
     */
    
public function stream_eof()
    {
        return 
$this->position >= strlen($this->_buffers[$this->name]);
    }

    
/**
     * The read write position updates in response to $offset and $whence
     *
     * @param   integer  $offset  The offset in bytes
     * @param   integer  $whence  Position the offset is added to
     *                            Options are SEEK_SET, SEEK_CUR, and SEEK_END
     *
     * @return  boolean  True if updated
     *
     * @see     streamWrapper::stream_seek
     * @since   11.1
     */
    
public function stream_seek($offset$whence)
    {
        switch (
$whence)
        {
            case 
SEEK_SET:
                if (
$offset strlen($this->_buffers[$this->name]) && $offset >= 0)
                {
                    
$this->position $offset;
                    return 
true;
                }
                else
                {
                    return 
false;
                }
                break;

            case 
SEEK_CUR:
                if (
$offset >= 0)
                {
                    
$this->position += $offset;
                    return 
true;
                }
                else
                {
                    return 
false;
                }
                break;

            case 
SEEK_END:
                if (
strlen($this->_buffers[$this->name]) + $offset >= 0)
                {
                    
$this->position strlen($this->_buffers[$this->name]) + $offset;
                    return 
true;
                }
                else
                {
                    return 
false;
                }
                break;

            default:
                return 
false;
        }
    }
}
// Register the stream
stream_wrapper_register("buffer""JBuffer");
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.3696 seconds