!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/fortune/   drwxr-xr-x
Free 129.76 GB of 142.11 GB (91.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     fortune_functions.php (1.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * plugins/fortune/fortune_functions.php
 *
 * Original code contributed by paulm@spider.org
 *
 * Simple SquirrelMail WebMail Plugin that displays the output of
 * fortune above the message listing.
 *
 * @copyright (c) 1999-2010 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id$
 * @package plugins
 * @subpackage fortune
 *
 */


/**
 * Function to show fortune
 * @access private
 */
function fortune_show() {

    global 
$color;
    
    
$fortune_location '/usr/games/fortune';
    
$exist is_executable($fortune_location);
    
    if (!
$exist) {
        
$sMsg sprintf(_("%s is not found."),$fortune_location);
    } else {
        
$sMsg htmlspecialchars(shell_exec($fortune_location ' -s'));
    }
    
    
    echo 
"<center><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$color[10]\">\n".
        
"<tr><td><table width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" bgcolor=\"$color[5]\">\n".
        
"<tr><td align=\"center\">\n";
    echo 
'<table><tr><td>';
    echo 
'<center><em>' _("Today's Fortune") . '</em></center><br /><pre>' .
        
$sMsg .
        
'</pre>';

    echo 
'</td></tr></table></td></tr></table></td></tr></table></center>';
}


/**
 * Add fortune options
 * @access private
 */
function fortune_show_options() {

    global 
$optpage_data$username$data_dir$fortune_visible;
    
$fortune_visible getPref($data_dir$username'fortune_visible');
    
    
$optgrp _("Fortunes");
    
$optvals = array();
    
    
$optvals[] = array(
                
'name' => 'fortune_visible',
                
'caption' => _("Show fortunes at top of mailbox"),
                
'type' => SMOPT_TYPE_BOOLEAN,
                
'refresh' => SMOPT_REFRESH_NONE                
            
);

     
$optpage_data['grps']['fortune'] = $optgrp;
     
$optpage_data['vals']['fortune'] = $optvals;
}


:: 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.0133 ]--