Changeset 1605116
- Timestamp:
- 02/28/2017 10:06:36 AM (9 years ago)
- Location:
- directory-builder
- Files:
-
- 2 edited
- 28 copied
-
tags/1.4 (copied) (copied from directory-builder/trunk)
-
tags/1.4/README.txt (copied) (copied from directory-builder/trunk/README.txt) (2 diffs)
-
tags/1.4/admin/class-db-functionality-admin.php (copied) (copied from directory-builder/trunk/admin/class-db-functionality-admin.php)
-
tags/1.4/admin/css/db-functionality-admin.css (copied) (copied from directory-builder/trunk/admin/css/db-functionality-admin.css)
-
tags/1.4/admin/js/db-functionality-admin.js (copied) (copied from directory-builder/trunk/admin/js/db-functionality-admin.js)
-
tags/1.4/auth_autoload.php (copied) (copied from directory-builder/trunk/auth_autoload.php)
-
tags/1.4/auth_cancel.php (copied) (copied from directory-builder/trunk/auth_cancel.php)
-
tags/1.4/auth_refund.php (copied) (copied from directory-builder/trunk/auth_refund.php)
-
tags/1.4/authorize_relay.php (copied) (copied from directory-builder/trunk/authorize_relay.php)
-
tags/1.4/directory-builder.php (copied) (copied from directory-builder/trunk/directory-builder.php) (2 diffs)
-
tags/1.4/font/config.json (copied) (copied from directory-builder/trunk/font/config.json)
-
tags/1.4/font/dboptions.eot (copied) (copied from directory-builder/trunk/font/dboptions.eot)
-
tags/1.4/font/dboptions.svg (copied) (copied from directory-builder/trunk/font/dboptions.svg)
-
tags/1.4/font/dboptions.ttf (copied) (copied from directory-builder/trunk/font/dboptions.ttf)
-
tags/1.4/font/dboptions.woff (copied) (copied from directory-builder/trunk/font/dboptions.woff)
-
tags/1.4/font/dboptions.woff2 (copied) (copied from directory-builder/trunk/font/dboptions.woff2)
-
tags/1.4/includes/class-db-functionality-activator.php (copied) (copied from directory-builder/trunk/includes/class-db-functionality-activator.php)
-
tags/1.4/languages/directory-builder.pot (copied) (copied from directory-builder/trunk/languages/directory-builder.pot)
-
tags/1.4/paypal_ipn.php (copied) (copied from directory-builder/trunk/paypal_ipn.php)
-
tags/1.4/public/class-db-functionality-public.php (copied) (copied from directory-builder/trunk/public/class-db-functionality-public.php)
-
tags/1.4/public/css/db-functionality-public.css (copied) (copied from directory-builder/trunk/public/css/db-functionality-public.css)
-
tags/1.4/public/images/credit-card.png (copied) (copied from directory-builder/trunk/public/images/credit-card.png)
-
tags/1.4/public/images/paypal.png (copied) (copied from directory-builder/trunk/public/images/paypal.png)
-
tags/1.4/public/images/x.png (copied) (copied from directory-builder/trunk/public/images/x.png)
-
tags/1.4/public/js/db-functionality-public.js (copied) (copied from directory-builder/trunk/public/js/db-functionality-public.js)
-
tags/1.4/template/search-listing-item.php (copied) (copied from directory-builder/trunk/template/search-listing-item.php)
-
tags/1.4/template/single-listing-ratings.php (copied) (copied from directory-builder/trunk/template/single-listing-ratings.php)
-
tags/1.4/template/single-listings.php (copied) (copied from directory-builder/trunk/template/single-listings.php)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/directory-builder.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
directory-builder/tags/1.4/README.txt
r1604602 r1605116 4 4 Requires at least: 4.5.3 5 5 Tested up to: 4.7.2 6 Stable tag: 1. 3.96 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 25 25 26 26 == Changelog == 27 28 = 1.4 = 29 * Fixed an issue while updating plugin to the newest version 27 30 28 31 = 1.3.9 = -
directory-builder/tags/1.4/directory-builder.php
r1604602 r1605116 17 17 * Plugin URI: https://cohhe.com/ 18 18 * Description: Directory builder provides listing functionality for your theme. 19 * Version: 1. 3.919 * Version: 1.4 20 20 * Author: Cohhe 21 21 * Author URI: https://cohhe.com/ … … 6160 6160 add_action( 'wp_ajax_nopriv_db_get_current_package', 'db_get_current_package_func' ); 6161 6161 6162 function db_save_billing_func() { 6163 $field_data = ( isset($_POST['field_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['field_data'])), true) : '' ); 6164 $listing_id = ( isset($_POST['listing_id']) ? intval($_POST['listing_id']) : '' ); 6165 $card_data = ( isset($_POST['card_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['card_data'])), true) : '' ); 6166 $gateway = ( isset($_POST['gateway']) ? $_POST['gateway'] : '' ); 6167 $billing_info = get_post_meta( $listing_id, 'db_billing_info', true ); 6168 6169 if ( $billing_info == '' ) { 6170 update_post_meta( $listing_id, 'db_billing_info', $field_data ); 6171 } 6172 6173 if ( $listing_id ) { 6174 if ( $gateway == 'authorizenet' ) { 6175 if ( function_exists('db_check_authorize_card') ) { 6176 db_check_authorize_card( $card_data ); 6162 if ( !function_exists('db_save_billing_func') ) { 6163 function db_save_billing_func() { 6164 $field_data = ( isset($_POST['field_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['field_data'])), true) : '' ); 6165 $listing_id = ( isset($_POST['listing_id']) ? intval($_POST['listing_id']) : '' ); 6166 $card_data = ( isset($_POST['card_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['card_data'])), true) : '' ); 6167 $gateway = ( isset($_POST['gateway']) ? $_POST['gateway'] : '' ); 6168 $billing_info = get_post_meta( $listing_id, 'db_billing_info', true ); 6169 6170 if ( $billing_info == '' ) { 6171 update_post_meta( $listing_id, 'db_billing_info', $field_data ); 6172 } 6173 6174 if ( $listing_id ) { 6175 if ( $gateway == 'authorizenet' ) { 6176 if ( function_exists('db_check_authorize_card') ) { 6177 db_check_authorize_card( $card_data ); 6178 } else { 6179 echo '{"save_response": "failed", "message": "'.__('Couldn\'t find Authorize.Net', 'functionality-for-directory-theme').'"}'; 6180 } 6177 6181 } else { 6178 echo '{"save_response": " failed", "message": "'.__('Couldn\'t find Authorize.Net', 'functionality-for-directory-theme').'"}';6182 echo '{"save_response": "'.$listing_id.'"}'; 6179 6183 } 6180 6184 } else { 6181 echo '{"save_response": "'.$listing_id.'"}'; 6182 } 6183 } else { 6184 echo '{"save_response": "failed", "message": "'.__('There was an issue while saving your billing information!', 'functionality-for-directory-theme').'"}'; 6185 } 6186 6187 die(0); 6185 echo '{"save_response": "failed", "message": "'.__('There was an issue while saving your billing information!', 'functionality-for-directory-theme').'"}'; 6186 } 6187 6188 die(0); 6189 } 6188 6190 } 6189 6191 add_action( 'wp_ajax_db_save_billing', 'db_save_billing_func' ); -
directory-builder/trunk/README.txt
r1604602 r1605116 4 4 Requires at least: 4.5.3 5 5 Tested up to: 4.7.2 6 Stable tag: 1. 3.96 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 25 25 26 26 == Changelog == 27 28 = 1.4 = 29 * Fixed an issue while updating plugin to the newest version 27 30 28 31 = 1.3.9 = -
directory-builder/trunk/directory-builder.php
r1604602 r1605116 17 17 * Plugin URI: https://cohhe.com/ 18 18 * Description: Directory builder provides listing functionality for your theme. 19 * Version: 1. 3.919 * Version: 1.4 20 20 * Author: Cohhe 21 21 * Author URI: https://cohhe.com/ … … 6160 6160 add_action( 'wp_ajax_nopriv_db_get_current_package', 'db_get_current_package_func' ); 6161 6161 6162 function db_save_billing_func() { 6163 $field_data = ( isset($_POST['field_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['field_data'])), true) : '' ); 6164 $listing_id = ( isset($_POST['listing_id']) ? intval($_POST['listing_id']) : '' ); 6165 $card_data = ( isset($_POST['card_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['card_data'])), true) : '' ); 6166 $gateway = ( isset($_POST['gateway']) ? $_POST['gateway'] : '' ); 6167 $billing_info = get_post_meta( $listing_id, 'db_billing_info', true ); 6168 6169 if ( $billing_info == '' ) { 6170 update_post_meta( $listing_id, 'db_billing_info', $field_data ); 6171 } 6172 6173 if ( $listing_id ) { 6174 if ( $gateway == 'authorizenet' ) { 6175 if ( function_exists('db_check_authorize_card') ) { 6176 db_check_authorize_card( $card_data ); 6162 if ( !function_exists('db_save_billing_func') ) { 6163 function db_save_billing_func() { 6164 $field_data = ( isset($_POST['field_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['field_data'])), true) : '' ); 6165 $listing_id = ( isset($_POST['listing_id']) ? intval($_POST['listing_id']) : '' ); 6166 $card_data = ( isset($_POST['card_data']) ? json_decode(htmlspecialchars_decode(stripslashes($_POST['card_data'])), true) : '' ); 6167 $gateway = ( isset($_POST['gateway']) ? $_POST['gateway'] : '' ); 6168 $billing_info = get_post_meta( $listing_id, 'db_billing_info', true ); 6169 6170 if ( $billing_info == '' ) { 6171 update_post_meta( $listing_id, 'db_billing_info', $field_data ); 6172 } 6173 6174 if ( $listing_id ) { 6175 if ( $gateway == 'authorizenet' ) { 6176 if ( function_exists('db_check_authorize_card') ) { 6177 db_check_authorize_card( $card_data ); 6178 } else { 6179 echo '{"save_response": "failed", "message": "'.__('Couldn\'t find Authorize.Net', 'functionality-for-directory-theme').'"}'; 6180 } 6177 6181 } else { 6178 echo '{"save_response": " failed", "message": "'.__('Couldn\'t find Authorize.Net', 'functionality-for-directory-theme').'"}';6182 echo '{"save_response": "'.$listing_id.'"}'; 6179 6183 } 6180 6184 } else { 6181 echo '{"save_response": "'.$listing_id.'"}'; 6182 } 6183 } else { 6184 echo '{"save_response": "failed", "message": "'.__('There was an issue while saving your billing information!', 'functionality-for-directory-theme').'"}'; 6185 } 6186 6187 die(0); 6185 echo '{"save_response": "failed", "message": "'.__('There was an issue while saving your billing information!', 'functionality-for-directory-theme').'"}'; 6186 } 6187 6188 die(0); 6189 } 6188 6190 } 6189 6191 add_action( 'wp_ajax_db_save_billing', 'db_save_billing_func' );
Note: See TracChangeset
for help on using the changeset viewer.