Commit 3d24d4ab authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Fix GPG decryption (path error)

- Keymgmt additions for menu and loading libraries
parent a5b2e182
......@@ -101,9 +101,8 @@
// Generate absolute path to gpg file
$scantime = localtime($result['start_time'], TRUE);
$gpgfile = $skynet_data_dir . '/' . ($scantime['tm_year'] + 1900) . '/' .
($scantime['tm_mon'] + 1) . '/' . $scantime['tm_mday'] . '/' .
$result['filename'];
$gpgfile = $skynet_data_dir . '/' . date('Y/m/d', $result['start_time']) .
'/' . $result['filename'];
// Generate full gpg command and execute it
$cmd = $skynet_gpg_cmd . ' --batch --no-tty --decrypt ' .
......@@ -242,4 +241,4 @@
$app->render('resultsum.tpl', $smarty_data);
});
?>
\ No newline at end of file
?>
......@@ -46,6 +46,7 @@
<li><a href="/targets">Targets</a></li>
<li><a href="/scantypes">Scan Types</a></li>
<li><a href="/schedule">Schedule</a></li>
<li><a href="/keymgmt">Key Management</a></li>
</ul>
</li>
{if $page == 'report'}
......
......@@ -107,6 +107,9 @@
// Load the editor routes
include('../app/editor.php');
// Load the key management routes
include('../app/keymgmt.php');
// Home Page Route
$app->get('/', $isauthenticated(), function () use ($app) {
global $smarty_data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment