Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
diff options
context:
space:
mode:
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>