aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms/setupFlickr.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/tidypics/forms/setupFlickr.php')
-rw-r--r--views/default/tidypics/forms/setupFlickr.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/views/default/tidypics/forms/setupFlickr.php b/views/default/tidypics/forms/setupFlickr.php
deleted file mode 100644
index 6c461176d..000000000
--- a/views/default/tidypics/forms/setupFlickr.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-require_once( dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . "/lib/flickr.php";
-
-$user = get_loggedin_user();
-$flickr_username = get_metadata_byname( $user->guid, "flickr_username" );
-$flickr_album_id = get_metadata_byname( $user->guid, "flickr_album_id" );
-
-$action = $vars['url'] . 'admin/action/tidypics/flickrSetup';
-
-$form_body = "<p>". elgg_echo( 'flickr:intro' ) . "</p><p>";
-$form_body .= elgg_echo( 'flickr:usernamesetup') . " <input style='width: 20%;' type='text' name='flickr_username' value='$flickr_username->value' ' class='input-text' /> <br />";
-$form_body .= "<input type='hidden' name='return_url' value='$_SERVER[REQUEST_URI]' />";
-
-$albums = elgg_get_entities(array(
- "type=" => "object",
- "subtype" => "album",
- "owner_guid" => $user->guid,
-));
-$options = array( 0 => elgg_echo( 'flickr:selectalbum' ));
-foreach( $albums as $album ) {
- $title = $album->title;
- switch( $album->access_id ) {
- case ACCESS_PRIVATE:
- $title .= " (" . elgg_echo( 'private' ) . ")";
- break;
- case ACCESS_PUBLIC:
- $title .= " (" . elgg_echo( 'public' ) . ")";
- break;
- default:
- $title .= " (no known permission set)";
- break;
- }
- $options[$album->guid] = $title;
-}
-
-$form_body .= "<br />" . elgg_echo( 'flickr:albumdesc' );
-$form_body .= elgg_view('input/pulldown', array('internalname' => 'album_id',
- 'options_values' => $options,
- 'value' => $flickr_album_id->value ));
-$form_body .= "<br />";
-$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
-
-flickr_menu();
-
-echo elgg_view('input/form', array('action' => $action, 'body' => $form_body));