Shut PHP warnings on our site

svn path=/web/trunk/; revision=29702
This commit is contained in:
Eugene Sandulenko committed 2007-12-02 12:59:29 +00:00
1 parent 1948e19fb6
commit 3ee063c6a3
6 files changed
+11 -4

No files matched your search

+2
View File
@@ -46,6 +46,8 @@ function list_latest_news ($num = -1) {
if (ereg("<IMG>(.*)</IMG>", $data, $out)) {
$newsitem["img"] = $out[1];
} else {
$newsitem["img"] = "";
}
if (ereg("<BODY>(.*)</BODY>", $data, $out)) {
+2 -2
View File
@@ -40,7 +40,7 @@ class category {
$this->_name = $name;
$this->_catnum = $catnum;
array_push($categories, & $this);
$categories[] = &$this;
}
function add($scrnum, $filename, $description) {
@@ -64,7 +64,7 @@ class category {
}
// LEC games
$cat = & new category(0, "LucasArts games");
$cat = new category(0, "LucasArts games");
$cat->add(0, "cat-maniac.png", "Maniac Mansion");
$cat->add(1, "cat-zak.png", "Zak McKracken and the Alien Mindbenders");
+6 -1
View File
@@ -8,7 +8,12 @@ require($file_root."/include/"."news.php");
html_page_header('ScummVM :: Home', array("index.css"));
$shownews = $HTTP_GET_VARS['shownews'];
if (array_key_exists('shownews', $HTTP_GET_VARS)) {
$shownews = $HTTP_GET_VARS['shownews'];
} else {
$shownews = 0;
}
// display welcome table
// don't show this if we are in news mode
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

+1 -1
View File
@@ -1,7 +1,7 @@
<NAME>Some Fairly Major Updates</NAME>
<DATE>March 8, 2002</DATE>
<IMG><a href="http://www.scummvm.org/screenshots.php?cat1=0&amp;cat2=9&amp;view=-1"><img
src="screenshots/scummvm_0_9_0.jpg" width="256" height="192" border="0"
src="news/20020308.png" width="256" height="192" border="0"
alt="Full Throttle" align=right></a></IMG>
<AUTHOR>laxdragon</AUTHOR>
<BODY>