[Scummvm-cvs-logs] SF.net SVN: scummvm: [29702] web/trunk
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun Dec 2 13:59:30 CET 2007
Revision: 29702
http://scummvm.svn.sourceforge.net/scummvm/?rev=29702&view=rev
Author: sev
Date: 2007-12-02 04:59:29 -0800 (Sun, 02 Dec 2007)
Log Message:
-----------
Shut PHP warnings on our site
Modified Paths:
--------------
web/trunk/include/news.php
web/trunk/include/scr-categories.php
web/trunk/index.php
web/trunk/news/20020214.png
web/trunk/news/20020308.xml
Added Paths:
-----------
web/trunk/news/20020308.png
Modified: web/trunk/include/news.php
===================================================================
--- web/trunk/include/news.php 2007-12-02 12:11:59 UTC (rev 29701)
+++ web/trunk/include/news.php 2007-12-02 12:59:29 UTC (rev 29702)
@@ -46,6 +46,8 @@
if (ereg("<IMG>(.*)</IMG>", $data, $out)) {
$newsitem["img"] = $out[1];
+ } else {
+ $newsitem["img"] = "";
}
if (ereg("<BODY>(.*)</BODY>", $data, $out)) {
Modified: web/trunk/include/scr-categories.php
===================================================================
--- web/trunk/include/scr-categories.php 2007-12-02 12:11:59 UTC (rev 29701)
+++ web/trunk/include/scr-categories.php 2007-12-02 12:59:29 UTC (rev 29702)
@@ -40,7 +40,7 @@
$this->_name = $name;
$this->_catnum = $catnum;
- array_push($categories, & $this);
+ $categories[] = &$this;
}
function add($scrnum, $filename, $description) {
@@ -64,7 +64,7 @@
}
// 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");
Modified: web/trunk/index.php
===================================================================
--- web/trunk/index.php 2007-12-02 12:11:59 UTC (rev 29701)
+++ web/trunk/index.php 2007-12-02 12:59:29 UTC (rev 29702)
@@ -8,7 +8,12 @@
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
Modified: web/trunk/news/20020214.png
===================================================================
(Binary files differ)
Added: web/trunk/news/20020308.png
===================================================================
(Binary files differ)
Property changes on: web/trunk/news/20020308.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Modified: web/trunk/news/20020308.xml
===================================================================
--- web/trunk/news/20020308.xml 2007-12-02 12:11:59 UTC (rev 29701)
+++ web/trunk/news/20020308.xml 2007-12-02 12:59:29 UTC (rev 29702)
@@ -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>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list