Changeset 1605130
- Timestamp:
- 02/28/2017 10:35:28 AM (9 years ago)
- Location:
- directory-builder
- Files:
-
- 2 edited
- 28 copied
-
tags/1.4.1 (copied) (copied from directory-builder/trunk)
-
tags/1.4.1/README.txt (copied) (copied from directory-builder/trunk/README.txt) (2 diffs)
-
tags/1.4.1/admin/class-db-functionality-admin.php (copied) (copied from directory-builder/trunk/admin/class-db-functionality-admin.php)
-
tags/1.4.1/admin/css/db-functionality-admin.css (copied) (copied from directory-builder/trunk/admin/css/db-functionality-admin.css)
-
tags/1.4.1/admin/js/db-functionality-admin.js (copied) (copied from directory-builder/trunk/admin/js/db-functionality-admin.js)
-
tags/1.4.1/auth_autoload.php (copied) (copied from directory-builder/trunk/auth_autoload.php)
-
tags/1.4.1/auth_cancel.php (copied) (copied from directory-builder/trunk/auth_cancel.php)
-
tags/1.4.1/auth_refund.php (copied) (copied from directory-builder/trunk/auth_refund.php)
-
tags/1.4.1/authorize_relay.php (copied) (copied from directory-builder/trunk/authorize_relay.php)
-
tags/1.4.1/directory-builder.php (copied) (copied from directory-builder/trunk/directory-builder.php) (2 diffs)
-
tags/1.4.1/font/config.json (copied) (copied from directory-builder/trunk/font/config.json)
-
tags/1.4.1/font/dboptions.eot (copied) (copied from directory-builder/trunk/font/dboptions.eot)
-
tags/1.4.1/font/dboptions.svg (copied) (copied from directory-builder/trunk/font/dboptions.svg)
-
tags/1.4.1/font/dboptions.ttf (copied) (copied from directory-builder/trunk/font/dboptions.ttf)
-
tags/1.4.1/font/dboptions.woff (copied) (copied from directory-builder/trunk/font/dboptions.woff)
-
tags/1.4.1/font/dboptions.woff2 (copied) (copied from directory-builder/trunk/font/dboptions.woff2)
-
tags/1.4.1/includes/class-db-functionality-activator.php (copied) (copied from directory-builder/trunk/includes/class-db-functionality-activator.php)
-
tags/1.4.1/languages/directory-builder.pot (copied) (copied from directory-builder/trunk/languages/directory-builder.pot)
-
tags/1.4.1/paypal_ipn.php (copied) (copied from directory-builder/trunk/paypal_ipn.php)
-
tags/1.4.1/public/class-db-functionality-public.php (copied) (copied from directory-builder/trunk/public/class-db-functionality-public.php)
-
tags/1.4.1/public/css/db-functionality-public.css (copied) (copied from directory-builder/trunk/public/css/db-functionality-public.css)
-
tags/1.4.1/public/images/credit-card.png (copied) (copied from directory-builder/trunk/public/images/credit-card.png)
-
tags/1.4.1/public/images/paypal.png (copied) (copied from directory-builder/trunk/public/images/paypal.png)
-
tags/1.4.1/public/images/x.png (copied) (copied from directory-builder/trunk/public/images/x.png)
-
tags/1.4.1/public/js/db-functionality-public.js (copied) (copied from directory-builder/trunk/public/js/db-functionality-public.js)
-
tags/1.4.1/template/search-listing-item.php (copied) (copied from directory-builder/trunk/template/search-listing-item.php)
-
tags/1.4.1/template/single-listing-ratings.php (copied) (copied from directory-builder/trunk/template/single-listing-ratings.php)
-
tags/1.4.1/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.1/README.txt
r1605116 r1605130 4 4 Requires at least: 4.5.3 5 5 Tested up to: 4.7.2 6 Stable tag: 1.4 6 Stable tag: 1.4.1 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.1 = 29 * Renamed function because it was not compatible with other plugin and was causing and error 27 30 28 31 = 1.4 = -
directory-builder/tags/1.4.1/directory-builder.php
r1605116 r1605130 17 17 * Plugin URI: https://cohhe.com/ 18 18 * Description: Directory builder provides listing functionality for your theme. 19 * Version: 1.4 19 * Version: 1.4.1 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 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 } 6162 6163 function db_save_billing_function() { 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 ); 6181 6178 } else { 6182 echo '{"save_response": " '.$listing_id.'"}';6179 echo '{"save_response": "failed", "message": "'.__('Couldn\'t find Authorize.Net', 'functionality-for-directory-theme').'"}'; 6183 6180 } 6184 6181 } else { 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 } 6190 } 6191 add_action( 'wp_ajax_db_save_billing', 'db_save_billing_func' ); 6192 add_action( 'wp_ajax_nopriv_db_save_billing', 'db_save_billing_func' ); 6182 echo '{"save_response": "'.$listing_id.'"}'; 6183 } 6184 } else { 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 } 6190 add_action( 'wp_ajax_db_save_billing', 'db_save_billing_function' ); 6191 add_action( 'wp_ajax_nopriv_db_save_billing', 'db_save_billing_function' ); 6193 6192 6194 6193 function db_update_ipn_notes( $listing_id, $message ) { -
directory-builder/trunk/README.txt
r1605116 r1605130 4 4 Requires at least: 4.5.3 5 5 Tested up to: 4.7.2 6 Stable tag: 1.4 6 Stable tag: 1.4.1 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.1 = 29 * Renamed function because it was not compatible with other plugin and was causing and error 27 30 28 31 = 1.4 = -
directory-builder/trunk/directory-builder.php
r1605116 r1605130 17 17 * Plugin URI: https://cohhe.com/ 18 18 * Description: Directory builder provides listing functionality for your theme. 19 * Version: 1.4 19 * Version: 1.4.1 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 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 } 6162 6163 function db_save_billing_function() { 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 ); 6181 6178 } else { 6182 echo '{"save_response": " '.$listing_id.'"}';6179 echo '{"save_response": "failed", "message": "'.__('Couldn\'t find Authorize.Net', 'functionality-for-directory-theme').'"}'; 6183 6180 } 6184 6181 } else { 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 } 6190 } 6191 add_action( 'wp_ajax_db_save_billing', 'db_save_billing_func' ); 6192 add_action( 'wp_ajax_nopriv_db_save_billing', 'db_save_billing_func' ); 6182 echo '{"save_response": "'.$listing_id.'"}'; 6183 } 6184 } else { 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 } 6190 add_action( 'wp_ajax_db_save_billing', 'db_save_billing_function' ); 6191 add_action( 'wp_ajax_nopriv_db_save_billing', 'db_save_billing_function' ); 6193 6192 6194 6193 function db_update_ipn_notes( $listing_id, $message ) {
Note: See TracChangeset
for help on using the changeset viewer.