Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
diff options
context:
space:
mode:
Commite409c1c7123dce3838d6dd1a72b4b0c2f00fba10 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-02-02 12:50:39 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-02-02 12:50:39 +0200
Files08e01d990782d91233296346592c04e52da35d7f /views/archive/index.php
nowayforward_human-e409c1c7123dce3838d6dd1a72b4b0c2f00fba10.tar
nowayforward_human-e409c1c7123dce3838d6dd1a72b4b0c2f00fba10.tar.gz
nowayforward_human-e409c1c7123dce3838d6dd1a72b4b0c2f00fba10.zip
Parentc83d7e03b607447cb203c0a17edaca9baf1d087f (diff)
feat(views): Separate archive creation to it's own view
1 files changed, 6 insertions, 6 deletions
-rw-r--r--views/archive/index.php12
diff --git a/views/archive/index.php b/views/archive/index.php
index f7c427f..73e1017 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -3,8 +3,8 @@
$page = null;
try {
- list($exists, $url) = Controller\doesWebsiteExist($url);
- Controller\normalizeUrl($url);
+ list($exists, $url) = doesWebsiteExist($url);
+ normalizeUrl($url);
$page = Database\Webpage::fromDB($url);
$page->incrementVisits();
@@ -16,8 +16,8 @@
<?php if ($page !== null): ?>
<iframe src="<?= "/archives/{$page->WID}/index.php" ?>" scrolling="no"></iframe>
- <form action="#" method="POST">
- <input type="hidden" name="page_url" value="<?= $url ?>">
+ <form action="/archive/create" method="POST">
+ <input type="hidden" name="url" value="<?= $url ?>">
<input type="submit" value="Archive Now!">
</form>
<!-- Button to add to list -->
@@ -39,8 +39,8 @@
<?php else: ?>
<h2>"<?= $url ?>" hasn't been archived yet!</h2>
- <form action="#" method="POST">
- <input type="hidden" name="page_url" value="<?= $url ?>">
+ <form action="/archive/create" method="POST">
+ <input type="hidden" name="url" value="<?= $url ?>">
<input type="submit" value="Archive Now!">
</form>