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

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/squirrelmail/plugins/view_as_html/   drwxr-xr-x
Free 129.8 GB of 142.11 GB (91.33%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     view_as_html.php (3.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
/*
     * $Id: view_as_html.php,v 1.7 2009/01/24 19:57:46 indiri69 Exp $
     */
    
function view_as_html_set() {
        global 
$message$show_html_default;
        
sqgetGlobalVar('view_as_html',       $view_as_html);
        
sqgetGlobalVar('view_unsafe_images'$view_unsafe_images);

        
/*
         * We only worry if view_unsafe_images is passed from
         * a link.  Other plugins and options should handle it
         * the rest of the time.
         */
        
if($view_unsafe_images == 1) {
            
$view_as_html 1;
        }
        if(isset(
$view_as_html)) {
            if (
$view_as_html == 1) {
                
$show_html_default 1;
            } else if(
$view_as_html == 0) {
                
$show_html_default 0;
            }
        }

        
/* Handle broken emails the have Content-Type w/o Mime-Version */
        
if ($message->rfc822_header->content_type->type0 == 'text' &&
            
$message->rfc822_header->content_type->type1 == 'html') {
            
$message->header->type0 'text';
            
$message->header->type1 'html';
            
$message->type0 'text';
            
$message->type1 'html';
            if (
count($message->rfc822_header->content_type->properties) > 0) {
                
$message->header->parameters $message->rfc822_header->content_type->properties;
            }
        }
    }

    function 
view_as_html_link() {
        global 
$message$show_html_default$sort;
        
$vars = array('passed_ent_id''show_more''override_type0''override_type1''where''what');

        
sqgetGlobalVar('mailbox',      $mailbox);
        
sqgetGlobalVar('passed_id',    $passed_id);
        
sqgetGlobalVar('startMessage'$startMessage);
        
sqgetGlobalVar('view_as_html'$view_as_html);

        
$startMessage = (int)$startMessage;
        
$passed_id    = (int)$passed_id;
        
$view_as_html = (int)$view_as_html;

        
$new_link "read_body.php?passed_id=$passed_id&amp;startMessage=$startMessage.
                    
"&amp;mailbox=" .  urlencode($mailbox);

        foreach(
$vars as $var) {
            if(
sqgetGlobalVar($var, $$var)) {
                
$new_link .= '&amp;' $var '=' urlencode($$var);
            }
        }
        
$has_html 0;

        if (
$message->header->type0 == 'message' && $message->header->type1 == 'rfc822') {
            
$type0 $message->rfc822_header->content_type->type0;
            
$type1 $message->rfc822_header->content_type->type1;
        } else {
            
$type0 $message->header->type0;
            
$type1 $message->header->type1;
        }
        if(
$type0 == 'multipart' &&
           (
$type1 == 'alternative' || $type1 == 'mixed' || $type1 == 'related')) {
            if (
$message->findDisplayEntity(array(), array('text/html'), true)) {
                
$has_html 1;
            }
        }
        
/*
         * Normal single part message so check its type.
         */
        
else {
            if(
$type0 == 'text' && $type1 == 'html') {
                
$has_html 1;
            }
        }
        if (
$has_html == 1) {
            
sq_change_text_domain('view_as_html');
            
$link ' | ';
            if(
$show_html_default == 1) {
                
$link .= '<a href="' $new_link '&amp;view_as_html=0">';
                
$link .= _("View as plain text");
            } else {
                
$link .= '<a href="' $new_link '&amp;view_as_html=1">';
                
$link .= _("View as HTML");
            }
            echo 
$link "</a>\n";
            
sq_change_text_domain('squirrelmail');
        }
    }

:: 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 KaizenLouie | C99Shell Github | Generation time: 0.0142 ]--