!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/browser-sync/dist/server/   drwxrwxr-x
Free 13.15 GB of 57.97 GB (22.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     static-server.js (2.3 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
var serverUtils = require("./utils.js");
var resolve = require("path").resolve;
var utils = require("../utils.js");
var serveStatic = require("./serve-static-wrapper").default();
var serveIndex = require("serve-index");
/**
 * @param {BrowserSync} bs
 * @returns {*}
 */
module.exports = function createServer(bs) {
    var options = bs.options;
    var server = options.get("server");
    var basedirs = utils.arrayify(server.get("baseDir"));
    var serveStaticOptions = server.get("serveStaticOptions").toJS(); // passed to 3rd party
    var _serveStatic = 0;
    var _routes = 0;
    bs.options = bs.options
        /**
         * Add directory Middleware if given in server.directory
         */
        .update("middleware", function (mw) {
        if (!server.get("directory")) {
            return mw;
        }
        return mw.concat({
            route: "",
            handle: serveIndex(resolve(basedirs[0]), {
                icons: true,
                view: "details"
            }),
            id: "Browsersync Server Directory Middleware"
        });
    })
        /**
         * Add middleware for server.baseDir Option
         */
        .update("middleware", function (mw) {
        return mw.concat(basedirs.map(function (root) {
            return {
                route: "",
                id: "Browsersync Server ServeStatic Middleware - " +
                    _serveStatic++,
                handle: serveStatic(resolve(root), serveStaticOptions)
            };
        }));
    })
        /**
         * Add middleware for server.routes
         */
        .update("middleware", function (mw) {
        if (!server.get("routes")) {
            return mw;
        }
        return mw.concat(server.get("routes").map(function (root, urlPath) {
            // strip trailing slash
            if (urlPath[urlPath.length - 1] === "/") {
                urlPath = urlPath.slice(0, -1);
            }
            return {
                route: urlPath,
                id: "Browsersync Server Routes Middleware - " +
                    _routes++,
                handle: serveStatic(resolve(root))
            };
        }));
    });
    var app = serverUtils.getBaseApp(bs);
    /**
     * Finally, return the server + App
     */
    return serverUtils.getServer(app, bs.options);
};
//# sourceMappingURL=static-server.js.map

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