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:27.49 GB of 70.42 GB (39.04%)
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/ mail.1/ plugins/ owncloud/ - drwxrwxr-x

Directory:
Viewing file:     owncloud.php (2.5 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * OwnCloud Plugin
 *
 * @author Aleksander 'A.L.E.C' Machniak <machniak@kolabsys.com>
 * @licence GNU AGPL
 *
 * Configuration (see config.inc.php.dist)
 * 
 */

class owncloud extends rcube_plugin
{
    
// all task excluding 'login' and 'logout'
    
public $task '?(?!login|logout).*';
    
// we've got no ajax handlers
    
public $noajax true;
    
// skip frames
    
public $noframe true;

    function 
init()
    {
        
$rcmail rcmail::get_instance();

        
// requires kolab_auth plugin
        
if (empty($_SESSION['kolab_uid'])) {
            return;
        }

        
$this->add_texts('localization/'false);

        
// register task
        
$this->register_task('owncloud');

        
// register actions
        
$this->register_action('index', array($this'action'));
        
$this->register_action('redirect', array($this'redirect'));

        
// add taskbar button
        
$this->add_button(array(
            
'name'     => 'owncloud',
            
'class'    => 'button-owncloud',
            
'label'    => 'owncloud.owncloud',
            
'href'    => './?_task=owncloud',
            
'onclick' => sprintf("return %s.command('owncloud')"JS_OBJECT_NAME)
            ), 
'taskbar');

        
$rcmail->output->add_script(
            
JS_OBJECT_NAME ".enable_command('owncloud', true);\n" .
            
JS_OBJECT_NAME ".owncloud = function () { location.href = './?_task=owncloud'; }",
            
'head');

        
$skin $rcmail->config->get('skin');
        if (!
file_exists($this->home."/skins/$skin/owncloud.css")) {
            
$skin 'default';
        }

        
// add style for taskbar button (must be here) and Help UI    
        
$this->include_stylesheet("skins/$skin/owncloud.css");
    }

    function 
action()
    {
        
$rcmail rcmail::get_instance();

        
$rcmail->output->add_handlers(array('owncloudframe' => array($this'frame')));
        
$rcmail->output->set_pagetitle($this->gettext('owncloud'));
        
$rcmail->output->send('owncloud.owncloud');
    }

    function 
frame()
    {
        
$rcmail rcmail::get_instance();

        
$this->load_config();

        
$src  $rcmail->config->get('owncloud_url');
        
$user $_SESSION['kolab_uid']; // requires kolab_auth plugin
        
$pass $rcmail->decrypt($_SESSION['password']);

        
$src preg_replace('/^(https?:\/\/)/',
            
'\\1' urlencode($user) . ':' urlencode($pass) . '@'$src);

        return 
'<iframe id="owncloudframe" width="100%" height="100%" frameborder="0"'
            
.' src="' $src'"></iframe>';
    }

}
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.2006 seconds