mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
149 lines
4.2 KiB
PHP
149 lines
4.2 KiB
PHP
<?
|
|
|
|
/*
|
|
* Index Page for ScummVM
|
|
* by Jeremy Newman <jnewman@dracowulf.com>
|
|
*
|
|
*/
|
|
|
|
// set this for position of this file relative
|
|
$file_root = ".";
|
|
|
|
// load libraries
|
|
require($file_root."/include/"."incl.php");
|
|
|
|
// start of html
|
|
html_header("ScummVM");
|
|
sidebar_start();
|
|
|
|
// display welcome table
|
|
// don't show this if we are in news mode
|
|
if (!$shownews)
|
|
{
|
|
|
|
// Grab list of images from screenshot dir
|
|
// and loop through them and add to $shots array
|
|
$shots = array();
|
|
$images = get_files($file_root."/screenshots","png");
|
|
while (list($key,$image) = each($images))
|
|
{
|
|
if (ereg("big",$image))
|
|
continue;
|
|
array_push($shots,$image);
|
|
}
|
|
|
|
// counter vars
|
|
$total = (count($shots) - 1);
|
|
srand((double) microtime() * 1000000);
|
|
$randImg = rand(0,$total);
|
|
|
|
echo html_round_frame_start("About ScummVM","98%","",20);
|
|
?>
|
|
<table width="100%" border=0 cellpadding=10 cellspacing=0>
|
|
<tr valign="top">
|
|
<td>
|
|
<h1>What is <span style="color: green">Scumm</span>VM?</h1>
|
|
|
|
<p>
|
|
ScummVM is a 'virtual machine' for several classic graphical point-and-click adventure
|
|
games. It is designed to run <a href="http://www.adventuresoft.com">Adventure Soft</a>'s
|
|
<i>Simon the Sorcerer</i> 1 and 2, <a href="http://www.revolution.co.uk">Revolution</a>'s
|
|
<i>Beneath A Steel Sky</i>, and games based on <a href="http://www.lucasarts.com">LucasArts</a>'
|
|
<span style="color: green">SCUMM</span> <span style="color: #666666">(<i>Script Creation Utility for Maniac
|
|
Mansion</i>)</span> system. <span style="color: green">SCUMM</span> is used for many games,
|
|
including <i>Monkey Island</i>, <i>Day of the Tentacle</i>, <i>Sam and Max</i> and more.
|
|
Compatibility with supported games is continually improving, so check back often.
|
|
</p>
|
|
<p>
|
|
Our forum and IRC channel, <a href="irc://irc.freenode.net/scummvm">#scummvm on
|
|
irc.freenode.net</a>, are open for comments and suggestions. Please read our FAQ
|
|
before posting, particularly regarding support for other adventure games.
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<table border=0 cellpadding=0 cellspacing=0>
|
|
<tr><td>
|
|
<script type="text/javascript">i_jn=<?=$randImg?>;</script>
|
|
<a href="javascript:openWin('./screenshots/big_scummvm_'+i_jn+'.png','scummvm',640,400);"
|
|
onMouseOver="window.status='Click to View Full Size Image';return true;"
|
|
onMouseOut="window.status='';return true;"><img
|
|
src="./screenshots/scummvm_<?=$randImg?>.png" width=256 height=160
|
|
style="margin: 5px"
|
|
name="img_jn" alt="Click to view Full Size"></a>
|
|
</td></tr>
|
|
<tr><td>
|
|
<table width="100%" border=0 cellpadding=0 cellspacing=0>
|
|
<tr>
|
|
<td align=left>
|
|
<a href="javascript:scrshot_jn(<?=$total?>,0);"><img
|
|
src="./images/back.gif" width=43 height=23 alt="back"></a>
|
|
</td>
|
|
<td align=right>
|
|
<a href="javascript:scrshot_jn(<?=$total?>,1);"><img
|
|
src="./images/next.gif" width=38 height=23 alt="next"></a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?
|
|
echo html_round_frame_end(" "),html_br();
|
|
}
|
|
// end of welcome table
|
|
|
|
//display News
|
|
echo html_round_frame_start("Latest Developments","98%","",20);
|
|
echo html_frame_start("","100%",1,1);
|
|
|
|
// get list of news items
|
|
$news = get_files($file_root."/news","xml");
|
|
$news = array_reverse ($news);
|
|
|
|
// loop and display news
|
|
$c = 0;
|
|
while (list($key,$item) = each($news))
|
|
{
|
|
$c++;
|
|
|
|
// display news item
|
|
$arr = split("\.",$person);
|
|
|
|
echo html_frame_tr(
|
|
html_frame_td(
|
|
'<div class="news-item">'.
|
|
'<div class="news-header">'.
|
|
'<span class="date">'.display_xml($file_root."/news/".$item,'DATE')."</span>: ".
|
|
display_xml($file_root."/news/".$item,'NAME').
|
|
'</div>'.
|
|
display_xml($file_root."/news/".$item,'IMG').
|
|
'<div class="news-body">'.display_xml($file_root."/news/".$item,'BODY').'</div>'.
|
|
'</div>'
|
|
)
|
|
);
|
|
|
|
|
|
// only show 5 records
|
|
if ($c == 4 && !$shownews)
|
|
{
|
|
echo html_frame_tr(
|
|
html_frame_td(
|
|
'<p>[<a href="?shownews=archive">More News...</a>]</p>'."\n"
|
|
)
|
|
);
|
|
break;
|
|
}
|
|
} // end of news loop
|
|
|
|
echo html_frame_end();
|
|
echo html_round_frame_end(" ");
|
|
//end of news display
|
|
|
|
// end of html
|
|
sidebar_end();
|
|
html_footer();
|
|
|
|
?>
|