本文整理汇总了PHP中phpFlickr::urls_getUserProfile方法的典型用法代码示例。如果您正苦于以下问题:PHP phpFlickr::urls_getUserProfile方法的具体用法?PHP phpFlickr::urls_getUserProfile怎么用?PHP phpFlickr::urls_getUserProfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类phpFlickr
的用法示例。
在下文中一共展示了phpFlickr::urls_getUserProfile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fjgwpp_settings
function fjgwpp_settings()
{
global $fjgwpp_imagesHeight_default;
global $fjgwpp_maxPhotosPP_default;
global $fjgwpp_lastRow_default;
global $fjgwpp_fixedHeight_default;
global $fjgwpp_pagination_default;
global $fjgwpp_lightbox_default;
global $fjgwpp_provideColorbox_default;
global $fjgwpp_provideSwipebox_default;
global $fjgwpp_captions_default;
global $fjgwpp_showDescriptions_default;
global $fjgwpp_randomize_default;
global $fjgwpp_margins_default;
global $fjgwpp_openOriginals_default;
global $fjgwpp_bcontextmenu_default;
global $fjgwpp_flickrAPIWrapperVersion_default;
//Get Values
$fjgwpp_userID_saved = fjgwpp_getOption('userID', '');
$fjgwpp_APIKey_saved = fjgwpp_getOption('APIKey', '');
$fjgwpp_imagesHeight_saved = (int) fjgwpp_getOption('imagesHeight', $fjgwpp_imagesHeight_default);
$fjgwpp_maxPhotosPP_saved = (int) fjgwpp_getOption('maxPhotosPP', $fjgwpp_maxPhotosPP_default);
$fjgwpp_lastRow_saved = (int) fjgwpp_getOption('lastRow', $fjgwpp_lastRow_default);
$fjgwpp_fixedHeight_saved = (int) fjgwpp_getOption('fixedHeight', $fjgwpp_fixedHeight_default);
$fjgwpp_pagination_saved = fjgwpp_getOption('pagination', $fjgwpp_pagination_default);
$fjgwpp_lightbox_saved = fjgwpp_getOption('lightbox', $fjgwpp_lightbox_default);
$fjgwpp_provideColorbox_saved = (int) fjgwpp_getOption('provideColorbox', $fjgwpp_provideColorbox_default);
$fjgwpp_provideSwipebox_saved = (int) fjgwpp_getOption('provideSwipebox', $fjgwpp_provideSwipebox_default);
$fjgwpp_captions_saved = (int) fjgwpp_getOption('captions', $fjgwpp_captions_default);
$fjgwpp_showDescriptions_saved = (int) fjgwpp_getOption('showDescriptions', $fjgwpp_showDescriptions_default);
$fjgwpp_randomize_saved = (int) fjgwpp_getOption('randomize', $fjgwpp_randomize_default);
$fjgwpp_margins_saved = (int) fjgwpp_getOption('margins', $fjgwpp_margins_default);
$fjgwpp_openOriginals_saved = (int) fjgwpp_getOption('openOriginals', $fjgwpp_openOriginals_default);
$fjgwpp_bcontextmenu_saved = (int) fjgwpp_getOption('bcontextmenu', $fjgwpp_bcontextmenu_default);
$fjgwpp_flickrAPIWrapperVersion_saved = (int) fjgwpp_getOption('flickrAPIWrapperVersion', $fjgwpp_flickrAPIWrapperVersion_default);
//Save Values
if (isset($_POST['Submit'])) {
$error = false;
$error_msg = "";
$fjgwpp_flickrAPIWrapperVersion_saved = (int) $_POST["fjgwpp_flickrAPIWrapperVersion"];
if ($fjgwpp_flickrAPIWrapperVersion_saved == 0) {
require_once "phpFlickr/phpFlickr.php";
} else {
require_once "phpFlickr_a" . $fjgwpp_flickrAPIWrapperVersion_saved . "/phpFlickr.php";
}
//Check the API Key
$fjgwpp_APIKey_saved = trim($_POST["fjgwpp_APIKey"]);
$f = new phpFlickr($fjgwpp_APIKey_saved);
if ($f->test_echo() == false) {
$error = true;
$error_msg .= '<li>' . __('API Key is not valid', 'fjgwpp') . '</li>';
}
$fjgwpp_userID_saved = trim($_POST["fjgwpp_userID"]);
if (!$error) {
if ($f->urls_getUserProfile($fjgwpp_userID_saved) == false) {
$error = true;
$error_msg .= '<li>' . __('Invalid UserID', 'fjgwpp') . '</li>';
}
}
$fjgwpp_imagesHeight_saved = (int) $_POST["fjgwpp_imagesHeight"];
if ($fjgwpp_imagesHeight_saved < 30) {
$error = true;
$error_msg .= '<li>' . __('The \'Images Height\' field must have a value greater than or equal to 30', 'fjgwpp') . '</li>';
}
$fjgwpp_maxPhotosPP_saved = (int) $_POST["fjgwpp_maxPhotosPP"];
if ($fjgwpp_maxPhotosPP_saved <= 0) {
$error = true;
$error_msg .= '<li>' . __('The \'Photos per page\' field must have a value greater than 0', 'fjgwpp') . '</li>';
}
$fjgwpp_lastRow_saved = $_POST["fjgwpp_lastRow"];
if (isset($_POST["fjgwpp_fixedHeight"])) {
$fjgwpp_fixedHeight_saved = (int) $_POST["fjgwpp_fixedHeight"] != 0 ? 1 : 0;
} else {
$fjgwpp_fixedHeight_saved = 0;
}
$fjgwpp_pagination_saved = $_POST["fjgwpp_pagination"];
$fjgwpp_lightbox_saved = $_POST["fjgwpp_lightbox"];
if (isset($_POST["fjgwpp_provideColorbox"])) {
$fjgwpp_provideColorbox_saved = (int) $_POST["fjgwpp_provideColorbox"] != 0 ? 1 : 0;
} else {
$fjgwpp_provideColorbox_saved = 0;
}
if (isset($_POST["fjgwpp_provideSwipebox"])) {
$fjgwpp_provideSwipebox_saved = (int) $_POST["fjgwpp_provideSwipebox"] != 0 ? 1 : 0;
} else {
$fjgwpp_provideSwipebox_saved = 0;
}
if (isset($_POST["fjgwpp_captions"])) {
$fjgwpp_captions_saved = (int) $_POST["fjgwpp_captions"] != 0 ? 1 : 0;
} else {
$fjgwpp_captions_saved = 0;
}
if (isset($_POST["fjgwpp_showDescriptions"])) {
$fjgwpp_showDescriptions_saved = (int) $_POST["fjgwpp_showDescriptions"] != 0 ? 1 : 0;
} else {
$fjgwpp_showDescriptions_saved = 0;
}
if (isset($_POST["fjgwpp_randomize"])) {
$fjgwpp_randomize_saved = (int) $_POST["fjgwpp_randomize"] != 0 ? 1 : 0;
} else {
//.........这里部分代码省略.........