Update of /cvsroot/phpwiki/phpwiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv690 Modified Files: ImageTile.php Log Message: fix "r" Index: ImageTile.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/ImageTile.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -2 -b -p -d -r1.3 -r1.4 --- ImageTile.php 30 Oct 2005 16:38:13 -0000 1.3 +++ ImageTile.php 31 Oct 2005 17:03:19 -0000 1.4 @@ -30,5 +30,5 @@ if (preg_match('/^(http|ftp|https):\/\// } else { - @$fp = fopen($_REQUEST['url'],r); + @$fp = fopen($_REQUEST['url'],"r"); if (!$fp) { @@ -45,13 +45,10 @@ if (preg_match('/^(http|ftp|https):\/\// list ($a, $b, $type, $attr) = @getimagesize ($file); -if ($type == 0) { - +if (!$type) { $type = basename ($_REQUEST['url']); $type = preg_split ('/\./',$type); $type = array_pop ($type); - } - switch ($type) { case '2': @@ -135,3 +132,18 @@ function show_plain () { } + +/* + $Log$ + Revision 1.4 2005年10月31日 17:03:19 rurban + fix "r" + +*/ + +// Local Variables: +// mode: php +// tab-width: 8 +// c-basic-offset: 4 +// c-hanging-comment-ender-p: nil +// indent-tabs-mode: nil +// End: ?> \ No newline at end of file