From ac64c93bf8714550d47a546faec59cfea0b4daeb Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 26 Apr 2013 15:09:35 -0700 Subject: doc update --- doc/html/photo__driver_8php.html | 263 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 doc/html/photo__driver_8php.html (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html new file mode 100644 index 000000000..e83cefc42 --- /dev/null +++ b/doc/html/photo__driver_8php.html @@ -0,0 +1,263 @@ + + + + + + +The Red Project: include/photo/photo_driver.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
photo_driver.php File Reference
+
+
+ + + + +

+Classes

class  photo_driver
 
+ + + + + + + + + +

+Functions

 photo_factory ($data, $type=null)
 
 guess_image_type ($filename, $fromcurl=false)
 
 import_profile_photo ($photo, $xchan)
 
 import_channel_photo ($photo, $type, $aid, $uid)
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
guess_image_type ( $filename,
 $fromcurl = false 
)
+
+

Guess image mimetype from filename or from Content-Type header

+
    +
  • $filename string Image filename
  • +
  • $fromcurl boolean Check Content-Type header from curl request
  • +
+

Well, this not much better, but at least it comes from the data inside the image, we won't be tricked by a manipulated extension

+ +

Referenced by consume_feed(), import_profile_photo(), local_delivery(), photo_upload(), profile_photo_post(), and scale_external_images().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
import_channel_photo ( $photo,
 $type,
 $aid,
 $uid 
)
+
+ +

Referenced by import_post().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
import_profile_photo ( $photo,
 $xchan 
)
+
+ +

Referenced by crepair_post(), import_post(), and import_xchan().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
photo_factory ( $data,
 $type = null 
)
+
+
+
+
+ -- cgit v1.2.3