Changeset 2034239
- Timestamp:
- 02/19/2019 02:50:05 PM (7 years ago)
- Location:
- insta-gallery/trunk
- Files:
-
- 4 edited
-
app/views/edit.php (modified) (2 diffs)
-
app/wp-panel.php (modified) (1 diff)
-
insta-gallery.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
insta-gallery/trunk/app/views/edit.php
r2032907 r2034239 67 67 <td> 68 68 <?php if(empty($insgalleryIAC['access_token'])): ?> 69 <p class="ig-thm-color">69 <p class="ig-thm-color"> 70 70 <strong><?php _e('No Instagram account connected. please connect an account with the website to access Instagram media.','insta-gallery'); ?></strong></strong> 71 71 </p> 72 <?php73 74 else :75 $profileInfo = igf_getUserProfileInfo();76 $username = empty($profileInfo['username']) ? 'nousername' : $profileInfo['username'];77 ?>78 <input name="insta_user" type="text" placeholder="myusername" value="<?php echo $username; ?>" readonly /> <span class="description"></span>79 <p class="ig-generate-msgs"><?php _e('Please enter Instagram Username.','insta-gallery'); ?></p>80 <?php endif; ?>72 <input name="insta_user" type="hidden" value="nousername" readonly /> 73 <?php 74 else : 75 $profileInfo = igf_getUserProfileInfo(); 76 $username = empty($profileInfo['username']) ? 'nousername' : $profileInfo['username']; 77 ?> 78 <input name="insta_user" type="text" placeholder="myusername" value="<?php echo $username; ?>" readonly /> <span class="description"></span> 79 <p class="ig-generate-msgs"><?php _e('Please enter Instagram Username.','insta-gallery'); ?></p> 80 <?php endif; ?> 81 81 </td> 82 82 </tr> … … 298 298 </div> 299 299 <input type="hidden" name="ig-form-update" value="true" /> 300 <input type="hidden" name="ig_nonce" value="<?php echo wp_create_nonce( 'igfreq_nonce_key' ); ?>" /> 300 301 <?php if(!empty($InstaGalleryItem['ig_item_id'])) {?> 301 302 <input type="hidden" name="igitem_id" value="<?php echo $InstaGalleryItem['ig_item_id']; ?>" /> -
insta-gallery/trunk/app/wp-panel.php
r2032907 r2034239 16 16 $ig_page_msgs = array(); 17 17 // add/update gallery item 18 if (isset($_POST['ig-form-update']) ) {18 if (isset($_POST['ig-form-update']) && isset($_POST['ig_nonce']) && wp_verify_nonce($_POST['ig_nonce'], 'igfreq_nonce_key')) { 19 19 // filtering data 20 20 $POSTDATA = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING); -
insta-gallery/trunk/insta-gallery.php
r2032907 r2034239 10 10 * Text Domain: insta-gallery 11 11 * Domain Path: /languages/ 12 * Version: 2.1. 112 * Version: 2.1.2 13 13 */ 14 14 … … 25 25 26 26 // global constants 27 define('INSGALLERY_VER', '2.1. 1');27 define('INSGALLERY_VER', '2.1.2'); 28 28 define('INSGALLERY_PRODUCTION', true); 29 29 … … 196 196 function admin_init() 197 197 { 198 if ( isset($_REQUEST['igigresponse'])) {198 if (current_user_can('administrator') && isset($_REQUEST['igigresponse'])) { 199 199 if (! empty($_REQUEST['code'])) { 200 200 $code = filter_var($_REQUEST['code'], FILTER_SANITIZE_STRING); … … 241 241 function loadPanel() 242 242 { 243 if(!current_user_can('administrator')){ 244 return; 245 } 243 246 require_once (INSGALLERY_PATH . 'app/wp-panel.php'); 244 247 } -
insta-gallery/trunk/readme.txt
r2032907 r2034239 5 5 Requires PHP: 5.3 6 6 Tested up to: 5.0 7 Stable tag: 2.1. 17 Stable tag: 2.1.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 75 75 76 76 == Changelog == 77 = 2.1.2 = 78 * security fixes 79 80 77 81 = 2.1.1 = 78 82 * major update with lots-of changes … … 222 226 223 227 == Upgrade Notice == 228 = 2.1.2 = 229 added security fixes 230 224 231 = 2.1.1 = 225 232 major update, please backup plugin files before update
Note: See TracChangeset
for help on using the changeset viewer.