Changeset 466320
- Timestamp:
- 11/23/2011 08:36:02 AM (14 years ago)
- Location:
- picgrab/trunk
- Files:
-
- 3 edited
-
picgrab.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
resizer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
picgrab/trunk/picgrab.php
r98061 r466320 3 3 4 4 Plugin Name: Picture grabber, resizer and cropper 5 Plugin URI: http://fabrizio.zellini.org/picgrab-a-wordpress-plugin 5 Plugin URI: http://fabrizio.zellini.org/picgrab-a-wordpress-plugin-to-grab-resize-crop-and-cache-images 6 6 Description: Plugin 7 7 Author: Fabrizio Zellini … … 46 46 $resizeparms=Array(); 47 47 48 if (preg_match_all ('/<img.*?src=["\'](.*?)["\'].*?resize=["\'](.*?)["\'].*?>/i', $content, &$matches)){49 if (!strpos ($matches[1] ,$resizerbase)){48 if (preg_match_all ('/<img.*?src=["\'](.*?)["\'].*?resize=["\'](.*?)["\'].*?>/i', $content, $matches)){ 49 if (!strpos ($matches[1][0],$resizerbase)){ 50 50 $imgtags = array_merge ($imgtags,$matches[0]); 51 51 $imgurls = array_merge ($imgurls,$matches[1]); … … 53 53 } 54 54 } 55 if (preg_match_all ('/<img.*?resize=["\'](.*?)["\'].*?src=["\'](.*?)["\'].*?>/i', $content, &$matches)){56 if (!strpos ($matches[2] ,$resizerbase)){55 if (preg_match_all ('/<img.*?resize=["\'](.*?)["\'].*?src=["\'](.*?)["\'].*?>/i', $content, $matches)){ 56 if (!strpos ($matches[2][0],$resizerbase)){ 57 57 $imgtags = array_merge ($imgtags,$matches[0]); 58 58 $imgurls = array_merge ($imgurls,$matches[2]); -
picgrab/trunk/readme.txt
r98070 r466320 3 3 Tags: pictures, resize, crop, cache 4 4 Requires at least: 2.5 5 Tested up to: 2.75 Tested up to: 3.2.1 6 6 Stable tag: trunk 7 7 -
picgrab/trunk/resizer.php
r98061 r466320 140 140 } 141 141 142 function resizeAndOuput($resizeExpr, $imageurl ) {142 function resizeAndOuput($resizeExpr, $imageurl,$expire=CACHETIME) { 143 143 144 144 //echo $fullname;die();
Note: See TracChangeset
for help on using the changeset viewer.