diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2011-07-06 17:04:48 +0400 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2011-07-06 17:04:48 +0400 |
commit | 05f5795362af5131f3dfb2381090e66de5e28018 (patch) | |
tree | 1ed66bb51051f143cc168c2b51f6346a1040e263 /info.php |
first commit
Diffstat (limited to 'info.php')
-rw-r--r-- | info.php | 41 |
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'; + |