Remove $loc references as it is not used by FrogFind.
This commit is contained in:
7
read.php
7
read.php
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user