[Scummvm-cvs-logs] scummvm-web old-design -> ab12ee5d50e64a2ef3c6a13899afa24f611af3d5

sev- sev at scummvm.org
Sat Apr 9 14:43:24 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
ab12ee5d50 WEB: Avoid queryin non-existent files on the old website


Commit: ab12ee5d50e64a2ef3c6a13899afa24f611af3d5
    https://github.com/scummvm/scummvm-web/commit/ab12ee5d50e64a2ef3c6a13899afa24f611af3d5
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-04-09T14:42:58+02:00

Commit Message:
WEB: Avoid queryin non-existent files on the old website

Changed paths:
    documentation.php
    downloads.php
    index.php
    screenshots.php
    subprojects.php



diff --git a/documentation.php b/documentation.php
index f25b78a..212f4af 100644
--- a/documentation.php
+++ b/documentation.php
@@ -20,7 +20,7 @@ sidebar_start();
 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 @@ else
     // 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 @@ else
 							  "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 @@ else
 							   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 85ddc85..fddc082 100644
--- a/downloads.php
+++ b/downloads.php
@@ -193,16 +193,16 @@ hosted by <a href="http://www.mthN.de">Snoke Media and Tech Hosting Network</a>!
 
 	<ul>
 <!--
-	  <li><a href="/downloads/scummvm-daily.tar.bz2">Source Code Daily Snapshot Bzipped</a> <small> (<?php echo intval(filesize("downloads/scummvm-daily.tar.bz2")/1024) ?>K file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/scummvm-daily.tar.bz2")); ?>)</small></li>
-	  <li><a href="/downloads/scummvm-daily.tar.gz">Source Code Daily Snapshot Gzipped</a> <small> (<?php echo intval(filesize("downloads/scummvm-daily.tar.gz")/1024) ?>K file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/scummvm-daily.tar.gz")); ?>)</small></li>
-	  <li><a href="/downloads/scummvm-daily.zip">Source Code Daily Snapshot Zipped</a> <small> (<?php echo intval(filesize("downloads/scummvm-daily.zip")/1024) ?>K file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/scummvm-daily.zip")); ?>)</small></li>
+	  <li><a href="/downloads/scummvm-daily.tar.bz2">Source Code Daily Snapshot Bzipped</a> <small> (0K file, last update: None)</small></li>
+	  <li><a href="/downloads/scummvm-daily.tar.gz">Source Code Daily Snapshot Gzipped</a> <small> (0K file, last update: None)</small></li>
+	  <li><a href="/downloads/scummvm-daily.zip">Source Code Daily Snapshot Zipped</a> <small> (0K file, last update: None)</small></li>
 -->
-	  <li><a href="/downloads/scummvmwin32.exe">Win32 Daily Snapshot</a> <small> (<?php echo intval(filesize("downloads/scummvmwin32.exe")/1024) ?>K exe file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/scummvmwin32.exe")); ?>)</small></li>
+	  <li><a href="/downloads/scummvmwin32.exe">Win32 Daily Snapshot</a> <small> (0K exe file, last update: None)</small></li>
 <!--
-	  <li><a href="/downloads/ScummVM-snapshot.dmg">Mac OS X Snapshot</a> <small> (<?php echo intval(filesize("downloads/ScummVM-snapshot.dmg")/1024) ?>K dmg file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/ScummVM-snapshot.dmg")); ?>)</small></li>
+	  <li><a href="/downloads/ScummVM-snapshot.dmg">Mac OS X Snapshot</a> <small> (0K dmg file, last update: None)</small></li>
 -->
 	  <li><a href="http://arisme.free.fr/PocketScumm/daily/">PocketPC Builds</a> <small> (infrequent snapshots of the PocketPC binaries)</small></li>
-	  <li><a href="/downloads/PocketPC2003.zip">Alternative PocketPC 2003 build</a> <small> (infrequently from CVS HEAD, <?php echo intval(filesize("downloads/PocketPC2003.zip")/1024) ?>K zip file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/PocketPC2003.zip")); ?>)</small></li>
+	  <li><a href="/downloads/PocketPC2003.zip">Alternative PocketPC 2003 build</a> <small> (infrequently from CVS HEAD, 0K zip file, last update: None)</small></li>
 <!--  <li><a href="http://paras.rasmatazz.bei.t-online.de/">Dreamcast Daily Builds</a></li> -->
 	  <li><a href="http://sourceforge.net/cvs/?group_id=37116">CVS Instructions</a> <small> (for if you wish to retrieve the latest code to compile yourself)</small></li>
 	</ul>
diff --git a/index.php b/index.php
index e8afc36..1d284ad 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,7 @@ require($file_root."/include/"."screenshots.php");
 html_header("ScummVM", '<script src="'.$file_root.'/screenshots.js" type="text/javascript"></script>');
 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 32d8073..b24c8fe 100644
--- a/screenshots.php
+++ b/screenshots.php
@@ -24,8 +24,8 @@ echo html_round_frame_start("Screenshots","");
 
 <?php
 
-$view = $HTTP_GET_VARS['view'];
-$offset = $HTTP_GET_VARS['offset'];
+$view = $_GET['view'];
+$offset = $_GET['offset'];
 
 // if in single view
 if ($view != "")
diff --git a/subprojects.php b/subprojects.php
index c576539..5ac61c6 100644
--- a/subprojects.php
+++ b/subprojects.php
@@ -35,7 +35,7 @@ a very welcome...
 <P>
 You can try compiled engine for Windows:
 </P>
-<a href="downloads/scummexwin32.exe">Windows Daily Snapshot</a> <small> (build from CVS HEAD, <?php echo intval(filesize("downloads/residualwin32.exe")/1024) ?>K Win32 .exe file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/scummexwin32.exe")); ?>)</small></li>
+<a href="downloads/scummexwin32.exe">Windows Daily Snapshot</a> <small> (build from CVS HEAD, 0K Win32 .exe file, last update: None)</small></li>
 
 <BR>
 
@@ -53,7 +53,7 @@ as such is progressing slowly.
 <P>
 You can try compiled engine for Windows:
 </P>
-<a href="downloads/residualwin32.exe">Windows Daily Snapshot</a> <small> (build from CVS HEAD, <?php echo intval(filesize("downloads/residualwin32.exe")/1024) ?>K Win32 .exe file, last update: <?php echo date("F j, Y, g:i a",filemtime("downloads/residualwin32.exe")); ?>)</small></li>
+<a href="downloads/residualwin32.exe">Windows Daily Snapshot</a> <small> (build from CVS HEAD, 0K Win32 .exe file, last update: None)</small></li>
 <?php
 echo html_round_frame_end(" ");
 






More information about the Scummvm-git-logs mailing list