[Scummvm-cvs-logs] CVS: web screenshots.php,1.10,1.11

James Brown ender at users.sourceforge.net
Fri Jan 30 18:21:37 CET 2004


Update of /cvsroot/scummvm/web
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9439

Modified Files:
	screenshots.php 
Log Message:
Fix screenshots page. Whoever changed this last should die for not testing it on the SF servers also. (my e-mail is still down, so don't bother e-mailing me grovelling profusely :)


Index: screenshots.php
===================================================================
RCS file: /cvsroot/scummvm/web/screenshots.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- screenshots.php	27 Jan 2004 22:47:25 -0000	1.10
+++ screenshots.php	30 Jan 2004 12:22:56 -0000	1.11
@@ -18,6 +18,19 @@
 //display welcome table
 echo html_round_frame_start("Screenshots","");
 
+//hack around PHP <4.3.0
+if (!function_exists("file_get_contents")) {
+	function file_get_contents($filename) {
+		$text = "";
+		$file = fopen($filename, "rb");
+		if ($file) {
+			while (!feof($file)) 
+				$text .= fread($file, 1024);
+			fclose($file);
+    		}
+    		return $text;
+   	}
+}
 ?>
 	<h1>Screenshots</h1>
 





More information about the Scummvm-git-logs mailing list