From eb3b2b98446c3bdbddf8d32c5d9c2e09ed94b425 Mon Sep 17 00:00:00 2001 From: Nicolas Dunand Date: Tue, 13 Apr 2021 14:48:18 +0200 Subject: [PATCH] Fix for installs not made at root of web server --- about.php | 4 ++-- choose_edition.php | 56 +++++++++++++++++++++++----------------------- image.php | 2 +- index.php | 8 +++---- read.php | 6 ++--- 5 files changed, 38 insertions(+), 38 deletions(-) diff --git a/about.php b/about.php index 921e062..d27bbfa 100644 --- a/about.php +++ b/about.php @@ -10,8 +10,8 @@ -
- FrogFind! Leap again: + + FrogFind! Leap again:

diff --git a/choose_edition.php b/choose_edition.php index fee5fa7..58f4f99 100644 --- a/choose_edition.php +++ b/choose_edition.php @@ -20,36 +20,36 @@
Basic HTML Google News for vintage computers. Built by Action Retro on YouTube. Tested on Netscape 1.1 through 4 on a Mac SE/30.

CHOOSE YOUR EDITION:

-

United States

-

Japan

-

United Kingdom

+

United States

+

Japan

+

United Kingdom

Spain (RIP)

-

Canada

-

Deutschland

-

Italia

-

France

-

Australia

-

Taiwan

-

Nederland

-

Brasil

-

Turkey

-

Belgium

-

Greece

-

India

-

Mexico

-

Denmark

-

Argentina

-

Switzerland

-

Chile

-

Austria

-

Korea

-

Ireland

-

Colombia

-

Poland

-

Portugal

-

Pakistan

+

Canada

+

Deutschland

+

Italia

+

France

+

Australia

+

Taiwan

+

Nederland

+

Brasil

+

Turkey

+

Belgium

+

Greece

+

India

+

Mexico

+

Denmark

+

Argentina

+

Switzerland

+

Chile

+

Austria

+

Korea

+

Ireland

+

Colombia

+

Poland

+

Portugal

+

Pakistan

- < Back to 68k.news front page + < Back to 68k.news front page

Powered by Mozilla Readability (Andres Rey PHP Port) and SimplePie

\ No newline at end of file diff --git a/image.php b/image.php index c033ea8..f0208c9 100644 --- a/image.php +++ b/image.php @@ -39,7 +39,7 @@ < Back to article

Viewing image:

- +

< Back to article diff --git a/index.php b/index.php index c5aa35e..279ddde 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ // result link, redirected through our proxy $result_link = explode('class="result__a" href="', $result_blocks[$x])[1]; $result_topline = explode('">', $result_link); - $result_link = str_replace( '//duckduckgo.com/l/?uddg=', '/read.php?a=', $result_topline[0]); + $result_link = str_replace( '//duckduckgo.com/l/?uddg=', './read.php?a=', $result_topline[0]); // result title $result_title = str_replace("","",explode("\n", $result_topline[1])); // result display url @@ -66,8 +66,8 @@ function clean_str($str) { -
- FrogFind! Leap again: + + FrogFind! Leap again:

@@ -81,7 +81,7 @@ function clean_str($str) {

The Search Engine for Vintage Computers



-
+ Leap to:
diff --git a/read.php b/read.php index 922177c..0c8c923 100644 --- a/read.php +++ b/read.php @@ -47,7 +47,7 @@ $readable_article = str_replace( 'em>', 'i>', $readable_article ); //change to $readable_article = clean_str($readable_article); - $readable_article = str_replace( 'href="http', 'href="/read.php?a=http', $readable_article ); //route links through proxy + $readable_article = str_replace( 'href="http', 'href="./read.php?a=http', $readable_article ); //route links through proxy } catch (ParseException $e) { $error_text .= 'Sorry! ' . $e->getMessage() . '
'; @@ -73,8 +73,8 @@ function clean_str($str) {

- - Back to FrogFind! | Browsing URL: + + Back to FrogFind! | Browsing URL: