summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/index.php b/index.php
index bf7ddb6..c9eef41 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,7 @@
<?php
+include "moc-commands.php";
+
$privKey = "f1869e6cb93500215f5e1ef1fe552dbc76d036088b56c45b1bc32c54211f1c88f4429e138684b0c1a270fd71d3808d77771e0dbb90a0318eaf27d3747cd57f04";
$pubKey = "f4429e138684b0c1a270fd71d3808d77771e0dbb90a0318eaf27d3747cd57f04";
@@ -85,7 +87,7 @@ function details($max_line_len = 0) {
$time = substr($line,10);
}
$max_file_len = $max_line_len - 4 - strlen($state) - strlen($time);
- if ($max_lin_len && (strlen($file) > $max_file_len))
+ if ($max_line_len && (strlen($file) > $max_file_len))
$file = "..." . substr($file,3-$max_file_len);
return $state . " " . $file . " (" . $time . ")";
}
@@ -121,7 +123,7 @@ if (!array_key_exists('what',$_GET)) {
print '">' . $key . '</a><br>' . "\n";
}
?>
- <a href="lists.php">lists</a><br>
+ <a href="?what=lists<?php attach_key(); ?>">lists</a><br>
</body>
</html>
<?php
@@ -152,6 +154,10 @@ switch ($_GET["what"]) {
}
print_redirect();
break;
+ case "lists":
+ print_neutral_back_link();
+ print_lists();
+ break;
default:
if (array_key_exists($_GET["what"], $commands)) {
shell_exec($commands[$_GET["what"]]);