[Scummvm-cvs-logs] CVS: web screenshots.php,1.11,1.12
Max Horn
fingolfin at users.sourceforge.net
Sat Jan 31 07:02:00 CET 2004
Update of /cvsroot/scummvm/web
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2563
Modified Files:
screenshots.php
Log Message:
sorry, I should indeed have tested it (I was incorrectly believing file_get_contents was always there - I mixed it up with file() :-/). This should work properly, though
Index: screenshots.php
===================================================================
RCS file: /cvsroot/scummvm/web/screenshots.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- screenshots.php 30 Jan 2004 12:22:56 -0000 1.11
+++ screenshots.php 31 Jan 2004 15:00:13 -0000 1.12
@@ -18,19 +18,6 @@
//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>
@@ -60,7 +47,7 @@
),
html_frame_tr(
html_frame_td(
- file_get_contents($file_root.'/screenshots/scummvm_'.$view.'.txt'),
+ implode('', file($file_root.'/screenshots/scummvm_'.$view.'.txt')),
'align=center class="color0" style="padding-bottom: 10px; font-style: italic;"'
)
),
@@ -108,7 +95,7 @@
'<img src="'.$file_root.'/screenshots/scummvm_'.$c.'.png" '.
'width=256 height=160 alt="Screenshot '.$c.'"></a>'.
'</td></tr><tr><td align="center">'.
- file_get_contents($file_root.'/screenshots/scummvm_'.$c.'.txt').
+ implode('', file($file_root.'/screenshots/scummvm_'.$c.'.txt')).
'</td></tr></table>',
'align=center class="color0" style="padding-top: 10px; font-style: italic;"'
);
More information about the Scummvm-git-logs
mailing list