diff options
author | Erich Eckner <git@eckner.net> | 2023-05-16 13:48:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-05-16 14:35:19 +0200 |
commit | fe874043dcbb26e1e69b929b33cdaa34c875d8b1 (patch) | |
tree | 70c238bb2993c2ae5f16e92844cf95092d8b2f8a /index.php | |
parent | 906e3c854f8d0a51a1892d571ce0d5606174eaed (diff) | |
download | mocp-web-fe874043dcbb26e1e69b929b33cdaa34c875d8b1.tar.xz |
include lists in index
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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"]]); |