!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/wincloud_gateway/node_modules/redis-connection/test/   drwxr-xr-x
Free 13.24 GB of 57.97 GB (22.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     local_redis.test.js (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// require('env2')('config.env');
// var REDISCLOUD_URL = process.env.REDISCLOUD_URL;
// delete process.env.REDISCLOUD_URL; // delete to ensure we use LOCAL Redis!

var test    = require('tape');
var decache = require('decache');          // http://goo.gl/JIjK9Y

var dir     = __dirname.split('/')[__dirname.split('/').length-1];
var file    = dir + __filename.replace(__dirname, '') + " -> ";

test(file +" Connect to LOCAL Redis instance as Subscriber", function(t) {
  var redisSub = require('../index.js')('subscriber');
  t.equal(redisSub.address, '127.0.0.1:6379',
  "✓ Redis Client connected to: " + redisSub.address)
  redisSub.set('redis', 'SUBSCRIBER', function(err, reply){
    redisSub.get('redis', function (err, reply) {
      t.equal(reply.toString(), 'SUBSCRIBER', '✓ LOCAL Redis is ' +reply.toString());
      t.end();
    });
  });
});

test(file +" Connect to LOCAL Redis instance and GET/SET", function(t) {
  var redisClient = require('../index.js')();
  t.equal(redisClient.address, '127.0.0.1:6379',
  "✓ Redis Client connected to: " + redisClient.address)
  redisClient.set('redis', 'LOCAL', function(err, reply){
    redisClient.get('redis', function (err, reply) {
      t.equal(reply.toString(), 'LOCAL', '✓ LOCAL Redis is ' +reply.toString());
      t.end();
    });
  });
});

test('Require an existing Redis connection', function(t){
  var r2 = require('../index.js')();
  r2.get('redis', function(err, reply){
    t.equal(reply.toString(), 'LOCAL', '✓ LOCAL Redis is ' +reply.toString());
    t.end();
  });
});

test('Require an existing Redis SUBSCRIBER connectiong', function(t){
  var rs2 = require('../index.js')('subscriber');
  rs2.get('redis', function(err, reply){
    t.equal(reply.toString(), 'LOCAL', '✓ LOCAL Redis is ' +reply.toString());
    t.end();
  });
});

test('Close Conection & Reset for Heroku Compatibility tests', function(t){
  require('../index.js').killall(); // close all connections
  decache('../index.js');
  t.equal(redisClient.connected, false,  "✓ Connection to LOCAL Closed");
  t.end();
});

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