function confirm_collection_type($type) { global $cbcollection; if (empty($type)) { $type = 'photos'; } if ($type != $cbcollection->types) { if (VERSION < '3.0') { // Get Deprecated Types; $dep_types = $cbcollection->deprecated_types; $message = 'Collections feature now only support photos'; if (array_key_exists($type, $dep_types)) { $message .= '. ' . $cbcollection->deprecated_types[$type] . ' support has been dropped since 2.6'; $dep_type = $cbcollection->deprecated_types[$type] . ' '; } if (userid() && has_access('admin_access', true)) { $message .= '. Please upgrade your Clipbucket to <a href="http://clip-bucket.com" target="_blank">latest version</a>'; } else { $message .= '. Please contact Site Administrator about this.'; } e(lang($message)); cb_show_page(); } return $cbcollection->types; } return $cbcollection->types; }
$info = $cbphoto->collection->get_collection_item_fields($cid, $photo['photo_id'], 'ci_id'); if ($info) { $photo = array_merge($photo, $info[0]); if (is_photo_viewable($photo)) { increment_views($photo['photo_id'], 'photo'); assign('object', $photo); assign('user', $userquery->get_user_details($photo['userid'])); assign('c', $collect); subtitle($photo['photo_title'] . ' « ' . $collect['collection_name']); register_photo_private_message_field($photo); $_next = $cbphoto->collection->get_next_prev_item($photo['ci_id'], $photo['collection_id'], 'next'); assign('next', $_next[0]); $_prev = $cbphoto->collection->get_next_prev_item($photo['ci_id'], $photo['collection_id'], 'prev'); assign('prev', $_prev[0]); } else { cb_show_page(false); } } else { e(lang("item_not_exist")); $Cbucket->show_page = false; } } else { e(lang("item_not_exist")); $Cbucket->show_page = false; } break; } } } } else { $Cbucket->show_page = false;
****************************************************************** | Copyright (c) 2007-2012 Clip-Bucket.com. All rights reserved. | @ Author : ArslanHassan, Fawaz Tahir | @ Software : ClipBucket , © PHPBucket.com ******************************************************************* */ require 'includes/config.inc.php'; @($id = $_GET['id']); if (empty($id)) { e(lang('Photo does not exists')); cb_show_page(); } else { $photo = $cbphoto->get_photo($id, true); if (empty($photo)) { e(lang('Photo does not exists')); cb_show_page(); } else { $exif = get_photo_meta_value($photo['photo_id'], 'exif_data'); if (!$exif) { e(lang(sprintf('<strong>%s</strong> does not have EXIF Data', $photo['photo_title']))); } else { if ($photo['userid'] != userid() && $photo['view_exif'] == 'no') { e(lang('Owner has decided to keep Exif Information hidden for this photo.')); } else { $exif = json_decode($exif, true); $template_ready_data = ready_exif_data($exif, $photo); assign('photo', $photo); assign('exif', $template_ready_data); if ($photo['userid'] == userid()) { assign('is_owner', true); }