diff --git a/.devilbox/www/config.php b/.devilbox/www/config.php index 3898e29f..1094053f 100644 --- a/.devilbox/www/config.php +++ b/.devilbox/www/config.php @@ -103,4 +103,3 @@ function loadClass($class) { // Temporarily disable due to: // https://github.com/cytopia/devilbox/issues/8 $ENABLE_VHOST_DNS_CHECK = false; - diff --git a/.devilbox/www/htdocs/db_redis.php b/.devilbox/www/htdocs/db_redis.php new file mode 100644 index 00000000..43b2039b --- /dev/null +++ b/.devilbox/www/htdocs/db_redis.php @@ -0,0 +1,49 @@ + +getEnv('COMPOSE_OPTIONAL') != 1) { + header('Location: /index.php'); + exit(0); +} ?> + + + + + + + + + +
+ +

Redis Keys

+
+
+ +
+
+ + + + + + + + + + getKeys() as $key => $value): ?> + + + + + + +
KeyValue
+ +
+
+ +
+ + + + + diff --git a/.devilbox/www/htdocs/index.php b/.devilbox/www/htdocs/index.php index 319b5812..83c2fca2 100644 --- a/.devilbox/www/htdocs/index.php +++ b/.devilbox/www/htdocs/index.php @@ -530,6 +530,8 @@ + + diff --git a/.devilbox/www/htdocs/redisinfo.php b/.devilbox/www/htdocs/redisinfo.php index 44129a7e..fb160443 100644 --- a/.devilbox/www/htdocs/redisinfo.php +++ b/.devilbox/www/htdocs/redisinfo.php @@ -1,7 +1,7 @@ getEnv('COMPOSE_OPTIONAL') != 1 ) { - header(); + header('Location: /index.php'); exit(0); } ?> diff --git a/.devilbox/www/include/lib/Redis.php b/.devilbox/www/include/lib/Redis.php index a65266dc..f78cfd8b 100644 --- a/.devilbox/www/include/lib/Redis.php +++ b/.devilbox/www/include/lib/Redis.php @@ -162,6 +162,11 @@ class Redis return $this->_redis->info('all'); } + public function getKeys() + { + return $this->_redis->keys('*'); + } + /********************************************************************************* * diff --git a/.devilbox/www/include/navbar.php b/.devilbox/www/include/navbar.php index 95357ad0..352833f4 100644 --- a/.devilbox/www/include/navbar.php +++ b/.devilbox/www/include/navbar.php @@ -28,6 +28,14 @@ (current)' : '';?> + getEnv('COMPOSE_OPTIONAL') == 1): ?> + + + + +