Remove $loc references as it is not used by FrogFind.

This commit is contained in:
Dave Jansen
2023-08-14 01:44:41 +00:00
parent 486b8eecf8
commit 902504fbfa
2 changed files with 4 additions and 14 deletions

View File

@@ -1,11 +1,6 @@
<?php
$url = "";
$loc = "US";
if( isset( $_GET['loc'] ) ) {
$loc = strtoupper($_GET["loc"]);
}
//get the image url
if (isset( $_GET['i'] ) ) {
@@ -34,13 +29,13 @@
<html>
<head>
<title>68k.news Image Viewer</title>
<title>FrogFind Image Viewer</title>
</head>
<body">
<small><a href="<?php echo $_SERVER['HTTP_REFERER'] . '?loc=' . strtoupper($loc) ?>">< Back to article</a></small>
<small><a href="<?php echo $_SERVER['HTTP_REFERER'] ?>">< Back to previous page</a></small>
<p><small><b>Viewing image:</b> <?php echo $url ?></small></p>
<img src="/image_compressed.php?i=<?php echo $url; ?>">
<br><br>
<small><a href="<?php echo $_SERVER['HTTP_REFERER'] . '?loc=' . strtoupper($loc) ?>">< Back to article</a></small>
<small><a href="<?php echo $_SERVER['HTTP_REFERER'] ?>">< Back to previous page</a></small>
</body>
</html>

View File

@@ -4,7 +4,6 @@ require_once('vendor/autoload.php');
$article_url = "";
$article_html = "";
$error_text = "";
$loc = "US";
// List of Content-Types that we know we can (try to) parse.
// Anything else will get piped through directly, if possible.
@@ -18,10 +17,6 @@ $compatible_content_types = [
// a direct link to the file.
$proxy_download_max_filesize = 8000000; // ~ 8Mb
if( isset( $_GET['loc'] ) ) {
$loc = strtoupper($_GET["loc"]);
}
if( isset( $_GET['a'] ) ) {
$article_url = $_GET["a"];
} else {
@@ -145,7 +140,7 @@ function clean_str($str) {
//we can only do png and jpg
if (strpos($image_url, ".jpg") || strpos($image_url, ".jpeg") || strpos($image_url, ".png") === true) {
$img_num++;
$imgline_html .= " <a href='image.php?loc=" . $loc . "&i=" . $image_url . "'>[$img_num]</a> ";
$imgline_html .= " <a href='image.php?i=" . $image_url . "'>[$img_num]</a> ";
}
endforeach;
if($img_num>0) {