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 From 946554ff4b03d81f32375832b8b50883a3ffeedf Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 May 2013 03:52:06 -0700 Subject: doc update --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index e83cefc42..13d4f162b 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -254,7 +254,7 @@ Functions -- cgit v1.2.3 From 34526e82531c67995e25cf04abce0d927ce22ffd Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 May 2013 03:59:11 -0700 Subject: doc cleanup --- doc/html/photo__driver_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 13d4f162b..9e2dd444c 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -4,7 +4,7 @@ -The Red Project: include/photo/photo_driver.php File Reference +The Red Matrix: include/photo/photo_driver.php File Reference @@ -30,7 +30,7 @@ Logo -
The Red Project +
The Red Matrix
-- cgit v1.2.3 From 5e4b9d7766ceffd19785f14443cc1b4d4f675d4e Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 14 May 2013 21:25:58 -0700 Subject: disable pcss when installing since modules don't yet work and pcss uses the view module, plus weekly doc update --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 9e2dd444c..98a98ede4 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -28,7 +28,7 @@ - +
The Red Matrix
-- cgit v1.2.3 From ee1ecd8ea29e41f70f8ee233ff6859e2e45e28b7 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 8 Jun 2013 16:29:56 -0700 Subject: remove uploaded import file once we're done with it. --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 98a98ede4..6069d2302 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -226,7 +226,7 @@ Functions
-- cgit v1.2.3 From c02a9301215ac146c26346ebc633d7c808cea5ee Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 9 Aug 2013 01:20:34 -0700 Subject: move sitekey creation to the account creation function instead of during channel creation. Channel import bypassed sitekey creation completely. We should do it during install, but it's possible somebody might have to install manually and the sitekey would never get created. This is the best compromise I can come up with. Looks like the doc tree was also updated in this checkin --- doc/html/photo__driver_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 6069d2302..0f4584479 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -158,7 +158,7 @@ Functions

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().

+

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

@@ -254,7 +254,7 @@ Functions -- cgit v1.2.3 From 96ad49b1b831d0f4e3660330750e9484eb9238bd Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 20 Sep 2013 05:43:30 -0700 Subject: doc updates --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 0f4584479..152219830 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -254,7 +254,7 @@ Functions -- cgit v1.2.3 From c98605df370d8a1b9dcd264cbad35367e57f095e Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 28 Sep 2013 04:30:57 -0700 Subject: doc updates --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 152219830..a35d02b1e 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -226,7 +226,7 @@ Functions -- cgit v1.2.3 From 8cd9a2c3a944e804c72ef461df801116c6b44ac7 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 28 Nov 2013 19:37:39 -0800 Subject: doc updates --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index a35d02b1e..88ced8259 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -28,7 +28,7 @@ - + Functions - - + +
The Red Matrix
-- cgit v1.2.3 From 90fff1de1c81eca9cdca8c41ec8083b72965b4a2 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 6 Dec 2013 00:11:03 -0800 Subject: doc updates --- doc/html/photo__driver_8php.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 88ced8259..b30d3e156 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -120,15 +120,15 @@ Classes
 photo_factory ($data, $type=null)
 
 guess_image_type ($filename, $fromcurl=false)
 
 guess_image_type ($filename, $headers= '')
 
 import_profile_photo ($photo, $xchan)
 
 import_channel_photo ($photo, $type, $aid, $uid)
 

Function Documentation

- +
@@ -142,7 +142,7 @@ Functions - + @@ -198,7 +198,7 @@ Functions
 $fromcurl = false $headers = '' 
-

Referenced by import_post().

+

Referenced by import_post(), and import_xchan().

@@ -254,7 +254,7 @@ Functions -- cgit v1.2.3 From 64b16f1e1ac303b476ffac891c99f6404bc04f53 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 13 Dec 2013 01:13:35 -0800 Subject: add construct_page hook --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index b30d3e156..19e276148 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -226,7 +226,7 @@ Functions -- cgit v1.2.3 From d2d071029f38942496aa52e42048ae53c5d04d48 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 3 Jan 2014 01:41:55 -0800 Subject: doc updates --- doc/html/photo__driver_8php.html | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 19e276148..86bd00f16 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -122,8 +122,8 @@ Functions    guess_image_type ($filename, $headers= '')   - import_profile_photo ($photo, $xchan) -  + import_profile_photo ($photo, $xchan, $thing=false) +   import_channel_photo ($photo, $type, $aid, $uid)   @@ -158,7 +158,7 @@ Functions

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 import_profile_photo(), photo_upload(), profile_photo_post(), and scale_external_images().

+

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

@@ -202,7 +202,7 @@ Functions - +
@@ -216,7 +216,13 @@ Functions - + + + + + + + @@ -226,7 +232,7 @@ Functions
 $xchan $xchan,
 $thing = false 
@@ -254,7 +260,7 @@ Functions -- cgit v1.2.3 From 0501bab7dc5982f94924e19192c1d523a45085aa Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 21 Feb 2014 23:51:43 -0800 Subject: doc update --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index 86bd00f16..c702588fe 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -232,7 +232,7 @@ Functions -- cgit v1.2.3 From 16c2aa042fade698ece5dcb67cde10ff8155bd65 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 7 Mar 2014 14:30:24 -0800 Subject: doc update --- doc/html/photo__driver_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index c702588fe..d87778ad8 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -198,7 +198,7 @@ Functions
-

Referenced by import_post(), and import_xchan().

+

Referenced by import_post(), and import_xchan().

@@ -232,7 +232,7 @@ Functions -- cgit v1.2.3 From 626eab99f8affc59f3578dabf4fd2ad97abd62e4 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 23 May 2014 14:52:55 -0700 Subject: add profile photo app because it is sometimes hard to find. Also doc updates --- doc/html/photo__driver_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/photo__driver_8php.html') diff --git a/doc/html/photo__driver_8php.html b/doc/html/photo__driver_8php.html index d87778ad8..fb26cabbd 100644 --- a/doc/html/photo__driver_8php.html +++ b/doc/html/photo__driver_8php.html @@ -232,7 +232,7 @@ Functions -- cgit v1.2.3