mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-11-18 21:35:12 +00:00
Shut PHP warnings on our site
svn path=/web/trunk/; revision=29702
This commit is contained in:
1 parent
1948e19fb6
commit
3ee063c6a3
6 files changed
+11
-4
No files matched your search
@@ -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)) {
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
+1
-1
@@ -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&cat2=9&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>
|
||||
|
||||
Reference in new issue
Block a user