!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/usr/share/roundcube/plugins/markasjunk/   drwxr-xr-x
Free 1.48 GB of 7.22 GB (20.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * Mark as Junk
 *
 * Sample plugin that adds a new button to the mailbox toolbar
 * to mark the selected messages as Junk and move them to the Junk folder
 *
 * @version @package_version@
 * @license GNU GPLv3+
 * @author Thomas Bruederli
 */
class markasjunk extends rcube_plugin
{
  public 
$task 'mail';

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

    
$this->register_action('plugin.markasjunk', array($this'request_action'));
    
$this->add_hook('storage_init', array($this'storage_init'));

    if (
$rcmail->action == '' || $rcmail->action == 'show') {
      
$skin_path $this->local_skin_path();
      
$this->include_script('markasjunk.js');
      if (
is_file($this->home "/$skin_path/markasjunk.css"))
        
$this->include_stylesheet("$skin_path/markasjunk.css");
      
$this->add_texts('localization'true);

      
$this->add_button(array(
        
'type' => 'link',
        
'label' => 'buttontext',
        
'command' => 'plugin.markasjunk',
        
'class' => 'button buttonPas junk disabled',
        
'classact' => 'button junk',
        
'title' => 'buttontitle',
        
'domain' => 'markasjunk'), 'toolbar');
    }
  }

  function 
storage_init($args)
  {
    
$flags = array(
      
'JUNK'    => 'Junk',
      
'NONJUNK' => 'NonJunk',
    );

    
// register message flags
    
$args['message_flags'] = array_merge((array)$args['message_flags'], $flags);

    return 
$args;
  }

  function 
request_action()
  {
    
$this->add_texts('localization');

    
$uids rcube_utils::get_input_value('_uid'rcube_utils::INPUT_POST);
    
$mbox rcube_utils::get_input_value('_mbox'rcube_utils::INPUT_POST);

    
$rcmail  rcmail::get_instance();
    
$storage $rcmail->get_storage();

    
$storage->unset_flag($uids'NONJUNK');
    
$storage->set_flag($uids'JUNK');

    if ((
$junk_mbox $rcmail->config->get('junk_mbox')) && $mbox != $junk_mbox) {
      
$rcmail->output->command('move_messages'$junk_mbox);
    }

    
$rcmail->output->command('display_message'$this->gettext('reportedasjunk'), 'confirmation');
    
$rcmail->output->send();
  }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.027 ]--