本文整理汇总了PHP中phpFlickr::setToken方法的典型用法代码示例。如果您正苦于以下问题:PHP phpFlickr::setToken方法的具体用法?PHP phpFlickr::setToken怎么用?PHP phpFlickr::setToken使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类phpFlickr
的用法示例。
在下文中一共展示了phpFlickr::setToken方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: phpFlickr
function __construct($params, $cacheDir = null, $ext = null)
{
if (is_null($cacheDir))
{
$cacheDir = JPATH_ROOT . DS . 'cache';
if (!is_null($ext))
{
$extCacheDir = $cacheDir . DS . $ext;
if (file_exists($extCacheDir) && is_dir($extCacheDir))
$cacheDir = $extCacheDir;
}
}
$this->_cacheDir = $cacheDir;
$apiKey = $params['apikey'];
$secretKey = !empty($params['secret']) ? $params['secret'] : null;
$cachePeriod = @intval($params['cachePeriod'], 10);
$flickr = new phpFlickr($apiKey, $secretKey);
if (!empty($params['token']))
$flickr->setToken($params['token']);
if ($cachePeriod > 0 && $this->_cacheDir)
$flickr->enableCache('fs', $this->_cacheDir, $cachePeriod);
$this->_flickr =& $flickr;
}
示例2: onNextendFlickr
function onNextendFlickr(&$flickr)
{
$config = new NextendData();
$config->loadJson(NextendSmartSliderStorage::get(self::$_group));
require_once dirname(__FILE__) . "/api/phpFlickr.php";
$flickr = new phpFlickr($config->get('apikey', ''), $config->get('apisecret', ''));
$flickr->setToken($config->get('token', ''));
}
示例3: uploadPhoto
function uploadPhoto($path, $title)
{
$apiKey = "3b7d4ab3e54988c4e6fd59d9e40ca28c";
$apiSecret = "84d2e480c8e3c926";
$permissions = "write";
$token = "72157626228984291-4635fa88a6fed8f5";
$f = new phpFlickr($apiKey, $apiSecret, true);
$f->setToken($token);
return $f->async_upload($path, $title);
}
示例4: upload_photo
function upload_photo($path, $title)
{
$apiKey = "your-flickr-key";
$apiSecret = "your-flickr-secret";
$token = "flickr-token";
$permissions = "write";
$f = new phpFlickr($apiKey, $apiSecret, true);
$f->setToken($token);
$f->async_upload($path, $title);
@unlink("temp.jpg");
}
示例5: uploadPhoto
function uploadPhoto($path, $title)
{
$apiKey = "e0fb27a9db978169247afe3169afba43";
$apiSecret = "d9a3f7d933ae7ccf";
$permissions = "write";
$token = "72157662014557483-df831fa3afbc5468";
$f = new phpFlickr($apiKey, $apiSecret, true);
$f->setToken($token);
$result = $f->sync_upload($path, $title);
$photo = $f->photos_getInfo($result);
print_r($photo);
$src = 'http://farm' . $photo['photo']['farm'] . '.staticflickr.com/' . $photo['photo']['server'] . '/' . $photo['photo']['id'] . '_' . $photo['photo']['secret'] . '.' . $photo['photo']['originalformat'];
$src = 'https://c1.staticflickr.com/' . $photo['photo']['farm'] . '/' . $photo['photo']['server'] . '/' . $photo['photo']['id'] . '_' . $photo['photo']['secret'] . '_n.jpg';
echo '<br><img src="' . $src . '">';
}
示例6: init
/**
* Initializes the phpFlickr object. Called on WP's init hook.
*
*/
function init()
{
load_plugin_textdomain('flickr-gallery', 'wp-content/plugins/' . basename(dirname(__FILE__)) . '/i18n');
if (get_option('fg-API-key')) {
global $phpFlickr;
include_once dirname(__FILE__) . '/phpFlickr.php';
$phpFlickr = new phpFlickr(get_option('fg-API-key'), get_option('fg-secret') ? get_option('fg-secret') : null);
if (get_option('fg-token')) {
$phpFlickr->setToken(get_option('fg-token'));
}
if (function_exists('curl_init')) {
$phpFlickr->custom_post = array('DC_FlickrGallery', 'curl_post');
} elseif (class_exists('WP_Http')) {
$phpFlickr->custom_post = array('DC_FlickrGallery', 'wp_http_post');
}
if (get_option('fg-db-cache') == 1) {
$phpFlickr->enableCache('custom', array(array('DC_FlickrGallery', 'cache_get'), array('DC_FlickrGallery', 'cache_set')));
}
wp_enqueue_script('jquery-ui-tabs');
// wp_enqueue_script('jquery-flightbox', DC_FlickrGallery::getURL() . 'flightbox/jquery.flightbox.js', array(), CM_FLICKR_GALLERY_VERSION);
// wp_enqueue_style('flickr-gallery', DC_FlickrGallery::getURL() . 'flickr-gallery.css', array(), CM_FLICKR_GALLERY_VERSION, 'all');
if (DC_FlickrGallery::get_major_version() >= 2.8) {
wp_enqueue_style('fg-jquery-ui', DC_FlickrGallery::getURL() . 'tab-theme/jquery-ui-1.7.3.css', array(), '1.7.3', 'all');
} else {
wp_enqueue_style('fg-jquery-ui', DC_FlickrGallery::getURL() . 'tab-theme/jquery-ui-1.5.2.css', array(), '1.5.2', 'all');
}
// wp_enqueue_style('jquery-flightbox', DC_FlickrGallery::getURL() . 'flightbox/jquery.flightbox.css', array(), CM_FLICKR_GALLERY_VERSION, 'all');
}
if ($_GET['action'] == 'flickr-gallery-photoset') {
DC_FlickrGallery::ajax_photoset($_GET['id'], $_GET['page']);
} elseif ($_POST['action'] == 'flickr-gallery-page') {
DC_FlickrGallery::ajax_pagination();
} elseif ($_POST['action'] == 'flickr-gallery-sizes') {
DC_FlickrGallery::ajax_sizes();
}
if (is_admin() && $_GET['page'] == 'flickr-gallery/flickr-gallery.php') {
wp_enqueue_script('jquery-form');
}
if (!is_admin() && (get_option('fg-flightbox') === false || get_option('fg-flightbox'))) {
wp_enqueue_script('jquery-flightbox', DC_FlickrGallery::getURL() . 'flightbox/jquery.flightbox.js', array(), CM_FLICKR_GALLERY_VERSION);
wp_enqueue_style('flickr-gallery', DC_FlickrGallery::getURL() . 'flickr-gallery.css', array(), CM_FLICKR_GALLERY_VERSION, 'all');
wp_enqueue_style('jquery-flightbox', DC_FlickrGallery::getURL() . 'flightbox/jquery.flightbox.css', array(), CM_FLICKR_GALLERY_VERSION, 'all');
add_action('wp_head', array('DC_FlickrGallery', 'header'));
add_action('wp_footer', array('DC_FlickrGallery', 'footer'));
}
}
示例7: uploadPhoto
function uploadPhoto($fileID, $title = "", $description = "", $tag = "")
{
$flickr = new phpFlickr($this->getAPIKey(), $this->getAPISecret());
$flickr->setToken($this->getAPIToken());
if ($file = DataObject::get_by_id("File", $fileID)) {
$flickr->async_upload($file->getFullPath(), $title, $description, $tag);
return true;
} else {
return false;
}
}
示例8: die
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])) {
die('Please do not load this screen directly. Thanks!');
}
define('scflickr_version', '1.0');
$scflickrIncludePath = get_include_path() . PATH_SEPARATOR . $omnigallery->plugin_path . '/includes/flickr/';
if (!set_include_path($scflickrIncludePath)) {
ini_set('include_path', $scflickrIncludePath);
}
//require_once 'flickr/phpFlickr.php';
global $SCFlickr;
unset($_SESSION['phpFlickr_auth_token']);
$SCFlickr = new phpFlickr(get_option('sc_api_flickr'), get_option('sc_secret_flickr') ? get_option('sc_secret_flickr') : NULL);
$SCFlickr->setToken(get_option('sc_flickr_token'));
error_reporting(1);
class SCFlickr
{
var $dbOptionKey = 'SCFlickr_Options';
var $cachePath = '';
var $token;
/**
* Constructor
*/
function SCFlickr()
{
$this->token = 'scflickr-settings';
add_action('admin_menu', array(&$this, 'register_flickr_menu'), 20);
}
function register_flickr_menu()
{
示例9: phpFlickr
<div class="rg-thumbs">
<div class="es-carousel-wrapper">
<div class="es-nav">
<span class="es-nav-prev">Previous</span>
<span class="es-nav-next">Next</span>
</div>
<div class="es-carousel">
<style>.es-carousel ul li a img{
margin-top: -30px !important;
}
</style>
<?php
require_once "flickr/phpFlickr.php";
if ($flickrPrivate == "privatephotosetYes") {
$f = new phpFlickr("{$flickrAPI}", "{$flickrSecret}");
$f->setToken("{$flickrToken}");
}
if ($flickrPrivate == "privatephotosetNo") {
$f = new phpFlickr("{$flickrAPI}");
}
$ph_sets = $f->photosets_getList();
if ($flickrCache == "1") {
$cacheFolderPath = JPATH_SITE . DS . 'cache' . DS . 'ResponsivePhotoGallery-' . $moduleTitle . '';
if (file_exists($cacheFolderPath) && is_dir($cacheFolderPath)) {
// all OK
} else {
mkdir($cacheFolderPath);
}
$lifetime = 860 * 860;
// 60 * 60=One hour
$f->enableCache("fs", "{$cacheFolderPath}", "{$lifetime}");
示例10: fjgwpp_createGallery
function fjgwpp_createGallery($action, $atts)
{
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_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;
static $shortcode_unique_id = 0;
$ris = "";
$page_num = get_query_var('page') ? get_query_var('page') : 1;
$flickrGalID = 'flickrGal' . $shortcode_unique_id;
//Options-----------------------
extract(shortcode_atts(array('user_id' => fjgwpp_getOption('userID'), 'id' => NULL, 'tags' => NULL, 'tags_mode' => 'any', 'images_height' => fjgwpp_getOption('imagesHeight', $fjgwpp_imagesHeight_default), 'max_num_photos' => fjgwpp_getOption('maxPhotosPP', $fjgwpp_maxPhotosPP_default), 'last_row' => fjgwpp_getOption('lastRow', $fjgwpp_lastRow_default), 'fixed_height' => fjgwpp_getOption('fixedHeight', $fjgwpp_fixedHeight_default) == 1, 'lightbox' => fjgwpp_getOption('lightbox', $fjgwpp_lightbox_default), 'captions' => fjgwpp_getOption('captions', $fjgwpp_captions_default) == 1, 'show_descriptions' => fjgwpp_getOption('showDescriptions', $fjgwpp_showDescriptions_default) == 1, 'randomize' => fjgwpp_getOption('randomize', $fjgwpp_randomize_default) == 1, 'pagination' => fjgwpp_getOption('pagination', $fjgwpp_pagination_default), 'margins' => fjgwpp_getOption('margins', $fjgwpp_margins_default), 'open_originals' => fjgwpp_getOption('openOriginals', $fjgwpp_openOriginals_default) == 1, 'block_contextmenu' => fjgwpp_getOption('bcontextmenu', $fjgwpp_bcontextmenu_default) == 1, 'flickrAPIWrapperVersion' => fjgwpp_getOption('flickrAPIWrapperVersion', $fjgwpp_flickrAPIWrapperVersion_default) == 0), $atts));
//Trim string options
$user_id = trim($user_id);
$id = trim($id);
$lightbox = trim($lightbox);
$last_row = trim($last_row);
if ($flickrAPIWrapperVersion == 0) {
require_once "phpFlickr/phpFlickr.php";
} else {
require_once "phpFlickr_a" . $flickrAPIWrapperVersion . "/phpFlickr.php";
}
//LEGACY for the old options
if ($pagination === '1') {
$pagination = 'prevnext';
} else {
if ($pagination !== 'none' && $pagination !== 'prevnext' && $pagination !== 'numbers') {
$pagination = 'none';
}
}
if ($lightbox === '1') {
$lightbox = 'colorbox';
}
if ($lightbox === '0') {
$lightbox = 'none';
}
$images_height = (int) $images_height;
if ($images_height < 30) {
$images_height = 30;
}
$max_num_photos = (int) $max_num_photos;
if ($max_num_photos < 1) {
$max_num_photos = 1;
}
$margins = (int) $margins;
if ($margins < 0) {
$margins = 1;
}
if ($margins > 30) {
$margins = 30;
}
if ($pagination === 'none') {
$page_num = 1;
}
//-----------------------------
//Inizialization---------------
$flickrAPIKey = trim(fjgwpp_getOption('APIKey'));
//Flickr API Key
$flickrAPISecret = trim(fjgwpp_getOption('APISecret'));
//Flickr API Secret
$flickrAPIToken = trim(fjgwpp_getOption('APIToken'));
//Flickr API Token
if ($flickrAPISecret && $flickrAPIToken) {
// fully authenticated call
$f = new phpFlickr($flickrAPIKey, $flickrAPISecret);
$f->setToken($flickrAPIToken);
$f->auth("read");
} else {
// standard call
$f = new phpFlickr($flickrAPIKey);
}
$upload_dir = wp_upload_dir();
$f->enableCache("fs", $upload_dir['basedir'] . "/phpFlickrCache");
$photos_url = array();
$photos = array();
$photos_main_index = '';
$maximum_pages_nums = 10;
//TODO configurable?
//Errors-----------------------
if ($action === 'phs' || $action === 'gal' || $action === 'tag') {
if (!isset($user_id) || strlen($user_id) == 0) {
return fjgwpp_formatError(__('You must specify the user_id for this action, using the "user_id" attribute', 'fjgwpp'));
}
}
if ($action === 'gal') {
if (!isset($id) || strlen($id) == 0) {
return fjgwpp_formatError(__('You must specify the id of the gallery, using the "id" attribute', 'fjgwpp'));
}
}
if ($action === 'set') {
if (!isset($id) || strlen($id) == 0) {
//.........这里部分代码省略.........
示例11: phpFlickr
<div class="rg-thumbs">
<div class="es-carousel-wrapper">
<div class="es-nav">
<span class="es-nav-prev">Previous</span>
<span class="es-nav-next">Next</span>
</div>
<div class="es-carousel">
<style>.es-carousel ul li a img{
margin-top: -30px !important;
}
</style>
<?php
require_once("flickr/phpFlickr.php");
if($flickrPrivate =="privatephotosetYes") {
$f = new phpFlickr("$flickrAPI", "$flickrSecret");
$f->setToken("$flickrToken");
}
if($flickrPrivate =="privatephotosetNo") {
$f = new phpFlickr("$flickrAPI");
}
$ph_sets = $f->photosets_getList();
if($flickrCache =="1") {
$cacheFolderPath = JPATH_SITE.DS.'cache'.DS.'ResponsivePhotoGallery-'.$moduleTitle.'';
if (file_exists($cacheFolderPath) && is_dir($cacheFolderPath))
{
// all OK
}
else
{
mkdir($cacheFolderPath);
}
示例12: phpFlickr
// You can generate the neccessary values by using phpFlickr's Auth Tool:
// http://www.phpflickr.com/tools/auth/
define('API_KEY', '');
define('API_SECRET', '');
define('API_TOKEN', '');
// === S T E P 2 ===
// Fill in your Flickr user ID. You can find it here: http://idgettr.com
define('UID', '');
// === S T E P 3 ===
// Download and include the phpFlickr project from http://code.google.com/p/phpflickr/
require 'phpFlickr/phpFlickr.php';
// === S T E P 4 ===
// Run the script via the command line using: "php download-all.php"
// Connect to Flickr
$f = new phpFlickr(API_KEY, API_SECRET, true);
$f->setToken(API_TOKEN);
// Get all of our photosets
$sets = $f->photosets_getList(UID);
foreach ($sets['photoset'] as $set) {
echo "### " . $set['title'] . "\n";
@mkdir("photos/{$set['title']}", 0777, true);
// Get all the photos in this set
$photos = $f->photosets_getPhotos($set['id']);
// And download each one...
foreach ($photos['photoset']['photo'] as $photo) {
$url = null;
$sizes = $f->photos_getSizes($photo['id']);
foreach ($sizes as $size) {
if ($size['label'] == 'Original') {
$url = $size['source'];
}
示例13: flickrsync_log_mesmo
flickrsync_vardump($_GET);
}
function flickrsync_log_mesmo($msg)
{
error_log($msg . "\n", 3, "/tmp/flickrsync.err");
}
function flickrsync_vardump($var)
{
ob_start();
var_dump($var);
flickrsync_log_mesmo(ob_get_clean());
}
flickrsync_log('iniciando');
$f = new phpFlickr(FLICKR_API_KEY, FLICKR_API_SECRET);
flickrsync_log('instanciado');
$f->setToken(FLICKR_API_AUTH_TOKEN);
flickrsync_log('setado token');
$f->auth();
flickrsync_log('autenticado');
//change this to the permissions you will need
// $f->auth("read");
//echo "Copy this token into your code: " . $_SESSION['phpFlickr_auth_token'];
echo 'listanddo flickr';
//Parameterless searches have been disabled. Please use flickr.photos.getRecent instead.
$photos = $f->photos_search(array('user_id' => FLICKR_USER_ID));
//$photos = $this->phpFlickr->photos_getRecent();
if (false === $photos) {
print_r($f->getErrorCode());
echo "\n";
print_r($f->getErrorMsg());
echo "\n";
示例14: phpFlickr
<?php
require_once 'base_dato.php';
require_once "phpFlickr.php";
$f = new phpFlickr("<api key>");
// CAMBIOS A DIST
//$bd = new MysqliDb('localhost', 'josuelopez27_par', '23503360', 'josuelopez27_par');
//$connect = mysqli_connect("localhost","josuelopez27_par","23503360");
// CAMBIOS A PRUEBA
$bd = new MysqliDb('localhost', 'root', '', 'CATALOGO_PRUEBA');
$connect = mysqli_connect("localhost", "root", "");
if (!empty($_FILES)) {
$tempPath = $_FILES['file']['tmp_name'];
$uploadPath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . $_FILES['file']['name'];
move_uploaded_file($tempPath, $uploadPath);
$apiKey = "5f1ba3cb88d4ed7b109be31f9fb928a4";
$apiSecret = "13ce4def3dfd80d5";
$permissions = "write";
$token = "__your__generated__token__";
$f = new phpFlickr($apiKey, $apiSecret, true);
$f->setToken($token);
return $f->async_upload($path, $title);
$answer = array('answer' => 'File transfer completed');
$json = json_encode($answer);
echo $json;
} else {
echo 'No files';
}
示例15: 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_APISecret_saved = fjgwpp_getOption('APISecret', '');
$fjgwpp_APIToken_saved = fjgwpp_getOption('APIToken', '');
$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(htmlentities($_POST["fjgwpp_APIKey"], ENT_QUOTES));
//Check the API Secret
$fjgwpp_APISecret_saved = trim(htmlentities($_POST["fjgwpp_APISecret"], ENT_QUOTES));
//Check the API Token
$fjgwpp_APIToken_saved = trim(htmlentities($_POST["fjgwpp_APIToken"], ENT_QUOTES));
if ($fjgwpp_APISecret_saved && $fjgwpp_APIToken_saved) {
// test fully authenticated call
$f = new phpFlickr($fjgwpp_APIKey_saved, $fjgwpp_APISecret_saved);
$f->setToken($fjgwpp_APIToken_saved);
$f->auth("read");
if ($f->test_echo() == false) {
$error = true;
$error_msg .= '<li>' . __('API Secret or Token are not valid', 'fjgwpp') . '</li>';
}
} else {
// test standard call
$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(htmlentities($_POST["fjgwpp_userID"], ENT_QUOTES));
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 = htmlentities($_POST["fjgwpp_lastRow"], ENT_QUOTES);
if (isset($_POST["fjgwpp_fixedHeight"])) {
$fjgwpp_fixedHeight_saved = (int) $_POST["fjgwpp_fixedHeight"] != 0 ? 1 : 0;
} else {
$fjgwpp_fixedHeight_saved = 0;
}
$fjgwpp_pagination_saved = htmlentities($_POST["fjgwpp_pagination"], ENT_QUOTES);
$fjgwpp_lightbox_saved = htmlentities($_POST["fjgwpp_lightbox"], ENT_QUOTES);
if (isset($_POST["fjgwpp_provideColorbox"])) {
$fjgwpp_provideColorbox_saved = (int) $_POST["fjgwpp_provideColorbox"] != 0 ? 1 : 0;
} else {
$fjgwpp_provideColorbox_saved = 0;
}
//.........这里部分代码省略.........