!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)

/var/www/html/queuepro/node_modules/glightbox/development/   drwxrwxr-x
Free 13.2 GB of 57.97 GB (22.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     jscompiler.js (2.81 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
const { rollup } = require('rollup');
const babel = require('rollup-plugin-babel');
const resolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const path = require('path');

global.rollupCache = global.rollupCache || {};


function camelCase(str) {
    return str.replace(/(?:^\w|[A-Z]|\b\w|[-_])/g, (letter, index) => {
        return index == 0 ? letter.toLowerCase() : letter.toUpperCase();
    }).replace(/\s+/g, '').replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, '');
}

function jscompiler(config) {
    const {
        file,
        dest
    } = config;

    const fileName = path.basename(file);
    const extension = path.extname(fileName);
    const singleFileName = fileName.replace(extension, '');
    const cache = global.rollupCache[fileName] ? global.rollupCache[fileName] : null;
    const format = (config.hasOwnProperty('format') ? config.format : 'iife');
    const strict = (config.hasOwnProperty('strict') ? config.strict : true);
    const sourcemap = (config.hasOwnProperty('sourcemap') ? config.sourcemap : false);
    const moduleID = (config.hasOwnProperty('moduleID') ? config.moduleID : false);

    let name = (config.hasOwnProperty('name') ? config.name : camelCase(singleFileName));
    let outPutFile = path.join(__dirname, '../', dest, fileName);
    let customFileName = (config.hasOwnProperty('fileName') ? config.fileName : false);

    if (customFileName) {
        customFileName = customFileName.replace('{name}', singleFileName);
        outPutFile = outPutFile.replace(fileName, customFileName);
    }

    return new Promise((res, rej) => {
        rollup({
            input: file,
            cache: cache,
            plugins: [
                resolve({
                    mainFields: ['module', 'main'],
                    browser: true,
                }),
                commonjs(),
                babel({
                    comments: false,
                    exclude: 'node_modules/**',
                    presets: [
                        ['@babel/preset-env', {
                            modules: false
                        }]
                    ]
                }),
            ]
        }).then((bundle) => {
            global.rollupCache[fileName] = bundle.cache;
            bundle.write({
                file: outPutFile,
                format: format, // amd, cjs, esm, iife, umd
                strict: strict,
                sourcemap: sourcemap,
                name: (moduleID ? moduleID : name)
            }).then(() => {
                res(true);
            }).catch(error => {
                console.error(error)
                rej(error);
            });

            return outPutFile;

        }).catch(error => {
            console.log(error)
            throw new Error(error);
        })
    })
}

module.exports = jscompiler;

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