From ab12ee5d50e64a2ef3c6a13899afa24f611af3d5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 9 Apr 2016 14:42:58 +0200 Subject: [PATCH] WEB: Avoid queryin non-existent files on the old website --- documentation.php | 16 ++++++++-------- downloads.php | 12 ++++++------ index.php | 2 +- screenshots.php | 4 ++-- subprojects.php | 4 ++-- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/documentation.php b/documentation.php index f25b78ac8..212f4afef 100644 --- a/documentation.php +++ b/documentation.php @@ -20,7 +20,7 @@ echo html_round_frame_start("ScummVM Documentation",""); echo html_frame_start("","100%",1,1); -$view = $HTTP_GET_VARS['view']; +$view = $_GET['view']; if ($view and file_exists($file_root."/docs/".$view.".xml")) { @@ -52,7 +52,7 @@ // get list of documentation items $docs = get_files($file_root."/docs","xml"); sort($docs); - + // loop and display docs $c = 0; while (list($key,$item) = each($docs)) @@ -75,16 +75,16 @@ "This page is the current TODO list for ScummVM.".html_br(2)."\n" ) ); - + // Hard code link to doxygen for now... echo html_frame_tr( html_frame_td( - html_ahref("Source code documentation",$file_root."/docs/doxygen/html/index.php").html_br(). + html_ahref("Source code documentation",$file_root."/").html_br(). "Cross referenced source code documentation for ScummVM, generated using". html_ahref("Doxygen","http://www.doxygen.org").html_br(2)."\n" ) ); - + // Hard code link to specs for now... echo html_frame_tr( html_frame_td( @@ -93,14 +93,14 @@ for Versions Five and Six (and above)".html_br(2)."\n" ) ); - + // outro echo html_frame_tr( html_frame_td( html_line().html_p("Click the title of the section of the documentation you want to read.") ) - ); - + ); + } echo html_frame_end(); diff --git a/downloads.php b/downloads.php index 85ddc852e..fddc082f6 100644 --- a/downloads.php +++ b/downloads.php @@ -193,16 +193,16 @@ diff --git a/index.php b/index.php index e8afc36cd..1d284ad0b 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ html_header("ScummVM", ''); sidebar_start(); -$shownews = $HTTP_GET_VARS['shownews']; +$shownews = $_GET['shownews']; // display welcome table // don't show this if we are in news mode diff --git a/screenshots.php b/screenshots.php index 32d80739c..b24c8fe55 100644 --- a/screenshots.php +++ b/screenshots.php @@ -24,8 +24,8 @@ You can try compiled engine for Windows:

-Windows Daily Snapshot (build from CVS HEAD, K Win32 .exe file, last update: ) +Windows Daily Snapshot (build from CVS HEAD, 0K Win32 .exe file, last update: None)
@@ -53,7 +53,7 @@

You can try compiled engine for Windows:

-Windows Daily Snapshot (build from CVS HEAD, K Win32 .exe file, last update: ) +Windows Daily Snapshot (build from CVS HEAD, 0K Win32 .exe file, last update: None)