!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/usr/share/doc/collectd-core/examples/php-collection/   drwxr-xr-x
Free 13.78 GB of 61.93 GB (22.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     definitions.local.php (2.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // vim:fenc=utf-8:filetype=php:ts=4
/*
 * Copyright (C) 2009  Bruno PrĂ©mont <bonbons AT linux-vserver.org>
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; only version 2 of the License is applicable.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

function load_graph_definitions_local($logarithmic false$tinylegend false) {
    global 
$GraphDefs$MetaGraphDefs;

    
// Define 1-rrd Graph definitions here
    
$GraphDefs['local_type'] = array(
        
'-v''Commits',
        
'DEF:avg={file}:value:AVERAGE',
        
'DEF:min={file}:value:MIN',
        
'DEF:max={file}:value:MAX',
        
"AREA:max#B7B7F7",
        
"AREA:min#FFFFFF",
        
"LINE1:avg#0000FF:Commits",
        
'GPRINT:min:MIN:%6.1lf Min,',
        
'GPRINT:avg:AVERAGE:%6.1lf Avg,',
        
'GPRINT:max:MAX:%6.1lf Max,',
        
'GPRINT:avg:LAST:%6.1lf Last\l');

    
// Define MetaGraph definition type -> function mappings here
    
$MetaGraphDefs['local_meta'] = 'meta_graph_local';
}

function 
meta_graph_local($host$plugin$plugin_instance$type$type_instances$opts = array()) {
    global 
$config;
    
$sources = array();

    
$title "$host/$plugin".(!is_null($plugin_instance) ? "-$plugin_instance'')."/$type";
    if (!isset(
$opts['title']))
        
$opts['title'] = $title;
    
$opts['rrd_opts'] = array('-v''Events');

    
$files = array();
/*    $opts['colors'] = array(
        'ham'     => '00e000',
        'spam'    => '0000ff',
        'malware' => '990000',

        'sent'     => '00e000',
        'deferred' => 'a0e000',
        'reject'   => 'ff0000',
        'bounced'  => 'a00050'
    );

    $type_instances = array('ham', 'spam', 'malware',  'sent', 'deferred', 'reject', 'bounced'); */
    
foreach ($type_instances as $inst) {
        
$file  '';
        foreach (
$config['datadirs'] as $datadir)
            if (
is_file($datadir.'/'.$title.'-'.$inst.'.rrd')) {
                
$file $datadir.'/'.$title.'-'.$inst.'.rrd';
                break;
            }
        if (
$file == '')
            continue;

        
$sources[] = array('name'=>$inst'file'=>$file);
    }

//    return collectd_draw_meta_stack($opts, $sources);
    
return collectd_draw_meta_line($opts$sources);
}

?>

:: 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 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4863 ]--