Remove $loc references as it is not used by FrogFind.
This commit is contained in:
11
image.php
11
image.php
@@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$url = "";
|
$url = "";
|
||||||
$loc = "US";
|
|
||||||
|
|
||||||
if( isset( $_GET['loc'] ) ) {
|
|
||||||
$loc = strtoupper($_GET["loc"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
//get the image url
|
//get the image url
|
||||||
if (isset( $_GET['i'] ) ) {
|
if (isset( $_GET['i'] ) ) {
|
||||||
@@ -34,13 +29,13 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>68k.news Image Viewer</title>
|
<title>FrogFind Image Viewer</title>
|
||||||
</head>
|
</head>
|
||||||
<body">
|
<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>
|
<p><small><b>Viewing image:</b> <?php echo $url ?></small></p>
|
||||||
<img src="/image_compressed.php?i=<?php echo $url; ?>">
|
<img src="/image_compressed.php?i=<?php echo $url; ?>">
|
||||||
<br><br>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
7
read.php
7
read.php
@@ -4,7 +4,6 @@ require_once('vendor/autoload.php');
|
|||||||
$article_url = "";
|
$article_url = "";
|
||||||
$article_html = "";
|
$article_html = "";
|
||||||
$error_text = "";
|
$error_text = "";
|
||||||
$loc = "US";
|
|
||||||
|
|
||||||
// List of Content-Types that we know we can (try to) parse.
|
// List of Content-Types that we know we can (try to) parse.
|
||||||
// Anything else will get piped through directly, if possible.
|
// Anything else will get piped through directly, if possible.
|
||||||
@@ -18,10 +17,6 @@ $compatible_content_types = [
|
|||||||
// a direct link to the file.
|
// a direct link to the file.
|
||||||
$proxy_download_max_filesize = 8000000; // ~ 8Mb
|
$proxy_download_max_filesize = 8000000; // ~ 8Mb
|
||||||
|
|
||||||
if( isset( $_GET['loc'] ) ) {
|
|
||||||
$loc = strtoupper($_GET["loc"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if( isset( $_GET['a'] ) ) {
|
if( isset( $_GET['a'] ) ) {
|
||||||
$article_url = $_GET["a"];
|
$article_url = $_GET["a"];
|
||||||
} else {
|
} else {
|
||||||
@@ -145,7 +140,7 @@ function clean_str($str) {
|
|||||||
//we can only do png and jpg
|
//we can only do png and jpg
|
||||||
if (strpos($image_url, ".jpg") || strpos($image_url, ".jpeg") || strpos($image_url, ".png") === true) {
|
if (strpos($image_url, ".jpg") || strpos($image_url, ".jpeg") || strpos($image_url, ".png") === true) {
|
||||||
$img_num++;
|
$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;
|
endforeach;
|
||||||
if($img_num>0) {
|
if($img_num>0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user