Changeset 1198757
- Timestamp:
- 07/14/2015 01:30:30 PM (11 years ago)
- Location:
- coceca
- Files:
-
- 18 added
- 4 edited
-
tags/1.6 (added)
-
tags/1.6/coceca.php (added)
-
tags/1.6/includes (added)
-
tags/1.6/includes/coceca_plugin-class.php (added)
-
tags/1.6/includes/functions.php (added)
-
tags/1.6/includes/plugin-dependencies.php (added)
-
tags/1.6/includes/templates (added)
-
tags/1.6/includes/templates/email_popup.php (added)
-
tags/1.6/includes/templates/get_started.php (added)
-
tags/1.6/includes/templates/list_extensions.php (added)
-
tags/1.6/readme.txt (added)
-
tags/1.6/screenshot-1.jpg (added)
-
tags/1.6/screenshot-2.jpg (added)
-
tags/1.6/screenshot-3.jpg (added)
-
tags/1.6/screenshot-4.jpg (added)
-
tags/1.6/screenshot-5.jpg (added)
-
tags/1.6/screenshot-6.jpg (added)
-
tags/1.6/screenshot-7.jpg (added)
-
trunk/coceca.php (modified) (2 diffs)
-
trunk/includes/coceca_plugin-class.php (modified) (2 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
coceca/trunk/coceca.php
r1191630 r1198757 4 4 Description: CTA plugin is an innovative solution designed to help you grow your WordPress blog. It creates an opportunity for you to promote your WordPress Websites & Blogs and engage your site visitors, in more ways than one. 5 5 Author: CoCeCa 6 Version: 1. 56 Version: 1.6 7 7 Plugin URI: http://coceca.com/ 8 8 Author URI: http://coceca.com/help/ … … 13 13 14 14 defined( 'ABSPATH' ) or die( 'Plugin file cannot be accessed directly.' ); 15 define( 'COCECA_PLUGIN_VERSION', '1. 5' );15 define( 'COCECA_PLUGIN_VERSION', '1.6' ); 16 16 define( 'PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 17 17 define( 'COCECA_PLUGIN_NAME', trim( dirname( PLUGIN_BASENAME ), '/' ) ); -
coceca/trunk/includes/coceca_plugin-class.php
r1191630 r1198757 228 228 $coupon_code = $_POST['coupon_code']; 229 229 if(isset($coupon_code) && $coupon_code!=''){ 230 $coupon_sepcial_chr = preg_replace('/[^a-zA-Z0-9 \[\]\.\-]/s', '', $coupon_code); 230 231 $coupon_data = checkValidCoupon($coupon_code); 232 231 233 if($coupon_data!='' && count($coupon_data) > 0){ 232 234 $response['flag'] = 'success'; 233 235 $response['msg'] = 'Valid coupon code.'; 234 $coupon_data_sr = serialize($coupon_data);236 $coupon_data_sr = toPublicId($coupon_data['id']); 235 237 } 236 238 else{ … … 249 251 250 252 $encrpted_string = syonencryptor('encrypt',getHost().':'.absint($_GET['plugin_id'])); 251 $redirect_url = EXT_SITE_URL.'wpapi/purchase_plugins/?check_host='.getHost().'&plugin_id='.absint( $_GET['plugin_id']).'&pass_code='.$encrpted_string.'&coupon_data='.$coupon_data_sr.'&paypal_payment='.$paypal_payment.'&redirect_url='.$admin_redirect_uri;253 $redirect_url = EXT_SITE_URL.'wpapi/purchase_plugins/?check_host='.getHost().'&plugin_id='.absint(toPublicId($_GET['plugin_id'])).'&pass_code='.$encrpted_string.'&coupon_data='.$coupon_data_sr.'&paypal_payment='.$paypal_payment.'&redirect_url='.$admin_redirect_uri; 252 254 253 255 if(!empty($coupon_data)){ -
coceca/trunk/includes/functions.php
r1191630 r1198757 290 290 return json_decode($result,true); 291 291 } 292 293 if(!function_exists('toPublicId')){ 294 function toPublicId($id) 295 { 296 return $id * 14981488888 + 8259204988888; 297 } 298 } 299 300 if (!function_exists('toInternalId')) { 301 function toInternalId($publicId) 302 { 303 return ($publicId - 8259204988888) / 14981488888; 304 } 305 } -
coceca/trunk/readme.txt
r1191630 r1198757 90 90 == Changelog == 91 91 92 = 1.6 = 93 * Modified coupan code 94 92 95 = 1.5 = 93 96 * Resolved issue of duplicate functions
Note: See TracChangeset
for help on using the changeset viewer.