Skip to content

Commit

Permalink
WEB: Avoid queryin non-existent files on the old website
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 9, 2016
1 parent dd27dc6 commit ab12ee5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions documentation.php
Expand Up @@ -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"))
{
Expand Down Expand Up @@ -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))
Expand All @@ -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(
Expand All @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions downloads.php
Expand Up @@ -193,16 +193,16 @@

<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>
Expand Down
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -17,7 +17,7 @@
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
Expand Down
4 changes: 2 additions & 2 deletions screenshots.php
Expand Up @@ -24,8 +24,8 @@

<?php

$view = $HTTP_GET_VARS['view'];
$offset = $HTTP_GET_VARS['offset'];
$view = $_GET['view'];
$offset = $_GET['offset'];

// if in single view
if ($view != "")
Expand Down
4 changes: 2 additions & 2 deletions subprojects.php
Expand Up @@ -35,7 +35,7 @@
<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>

Expand All @@ -53,7 +53,7 @@
<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("&nbsp;");

Expand Down

0 comments on commit ab12ee5

Please sign in to comment.