Commit Diff


commit - 20283e2d1773ff5fd415483a398c9881d557c918
commit + 09781b071f68dafea5a0e82ae2aff67b0886ff3f
blob - 6257fb74fc7a23bcf4db9b732f3b083ce8247aec
blob + 65e90492c03c2df6cb502b1aae0c6d6d9308c417
--- module/Securitx/src/Controller/SecuritxController.php	
+++ module/Securitx/src/Controller/SecuritxController.php	
@@ -329,6 +329,7 @@ ret:
 				    $item['tmp_name']);
 				$fc = new FileCipher;
 				$download = new Downloads();
+				$download->moddate = time();
 				$download->id_key = basename($new_name, ".pdf");
 				$download->u_key = $member->u_key;
 				$download->e_key = uniqid();
@@ -1171,6 +1172,7 @@ skip:
 				echo $new_name;
 				$fc = new FileCipher;
 				$download = new Downloads();
+				$download->moddate = time();
 				$download->id_key = basename($new_name, ".pdf");
 				$download->u_key = $member->u_key;
 				$download->e_key = uniqid();
blob - 92918a116b45c2139e8828cd33136d294a6886f6
blob + 9167dc71ee9fc0b9ce5c6df5c0aff53fb2d4bf61
--- module/Securitx/view/securitx/home/home.phtml	
+++ module/Securitx/view/securitx/home/home.phtml	
@@ -8,7 +8,10 @@
 
 	<hr class="my-4">
 <?php	if ($member->is_admin == 1) { ?>
-		<p><a class="btn btn-secondary btn-lg" href="/securitx/companies/<?= $member->u_key ?>">Edit companies &raquo;</a></p>
+		<p><a class="btn btn-secondary btn-lg" href="/securitx/companies/<?= $member->u_key ?>?add">Add a company &raquo;</a></p>
+		<p><a class="btn btn-secondary btn-lg" href="/securitx/companies/<?= $member->u_key ?>?edit">Edit a company &raquo;</a></p>
+		<p><a class="btn btn-secondary btn-lg" href="/securitx/companies/<?= $member->u_key ?>?delete">Delete a company &raquo;</a></p>
+	<hr class="my-4" \>
 <?php	} ?>
 <?php if ($member->is_admin == 1 || $member->is_editor == 1) { ?>
 		<p><a class="btn btn-secondary btn-lg" href="/securitx/invite/<?= $member->u_key ?>">Invite a member &raquo;</a></p>
@@ -16,6 +19,8 @@
 	if ($member->is_admin == 1 || $member->is_editor == 1) { ?>
 		<p><a class="btn btn-secondary btn-lg" href="/securitx/send/<?= $member->u_key ?>">Send files to a member &raquo;</a></p>
 <?php
+		if ($c_downloads || $has_downloads)
+			echo "<hr class='my-4' \>";
 		if ($c_downloads) { ?>
 	<p><a class="btn btn-secondary btn-lg" href="/securitx/cdownload/<?= $member->u_key ?>">Download available company files &raquo;</a></p>
 <?php		}