From: friendica Date: Mon, 16 Jan 2012 01:48:42 +0000 (-0800) Subject: add photo upload link to album widget and "upload to this album" ability X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3a415d409c49945bbd84a60ab8ec6cf492c34b3;p=friendica.git add photo upload link to album widget and "upload to this album" ability --- diff --git a/mod/photos.php b/mod/photos.php index 7ec6c8794e..77b44ce0d0 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -53,6 +53,10 @@ function photos_init(&$a) { } $o .= ''; + if(local_user() && $a->data['user']['uid'] == local_user()) { + $o .= ''; + } + $o .= ''; } @@ -94,7 +98,7 @@ EOT; function photos_post(&$a) { - logger('mod-photos: photos_post(): begin' , 'LOGGER_DEBUG'); + logger('mod-photos: photos_post: begin' , 'LOGGER_DEBUG'); logger('mod_photos: REQUEST ' . print_r($_REQUEST,true), LOGGER_DATA); @@ -744,6 +748,7 @@ function photos_content(&$a) { // URLs: // photos/name // photos/name/upload + // photos/name/upload/xxxxx (xxxxx is album name) // photos/name/album/xxxxx // photos/name/album/xxxxx/edit // photos/name/image/xxxxx @@ -860,14 +865,21 @@ function photos_content(&$a) { notice( t('Permission denied.')); return; } + + + $selname = (($datum) ? hex2bin($datum) : ''); + + $albumselect = '