Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/erikdubbelboer/phpRedisAdmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Dubbelboer <erik@dubbelboer.com>2011-07-06 17:04:48 +0400
committerErik Dubbelboer <erik@dubbelboer.com>2011-07-06 17:04:48 +0400
commit05f5795362af5131f3dfb2381090e66de5e28018 (patch)
tree1ed66bb51051f143cc168c2b51f6346a1040e263 /info.php
first commit
Diffstat (limited to 'info.php')
-rw-r--r--info.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/info.php b/info.php
new file mode 100644
index 0000000..090415f
--- /dev/null
+++ b/info.php
@@ -0,0 +1,41 @@
+<?
+
+require 'common.inc.php';
+
+
+
+
+$info = $redis->info();
+$alt = false;
+
+
+$page['css'][] = 'frame';
+$page['js'][] = 'frame';
+
+require 'header.inc.php';
+
+?>
+<h2>Info</h2>
+
+<table>
+<tr><th><div>Key</div></th><th><div>Value</div></th></tr>
+<?
+
+foreach ($info as $key => $value) {
+ if ($key == 'allocation_stats') {
+ $value = str_replace(',', ",\n", $value);
+ }
+
+ ?>
+ <tr <?=$alt ? 'class="alt"' : ''?>><td><div><?=format_html($key)?></div></td><td><div><?=nl2br(format_html($value))?></div></td></tr>
+ <?
+
+ $alt = !$alt;
+}
+
+?>
+</table>
+<?
+
+require 'footer.inc.php';
+