SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Reini U. <ru...@us...> - 2005年10月31日 17:03:33
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /