Changeset 3179636
- Timestamp:
- 10/31/2024 06:48:06 PM (17 months ago)
- Location:
- express-pay/trunk
- Files:
-
- 3 edited
-
expresspay.payment.php (modified) (1 diff)
-
src/class.expresspay.payment.php (modified) (3 diffs)
-
src/class.payment.settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
express-pay/trunk/expresspay.payment.php
r2872957 r3179636 4 4 Plugin URI: https://express-pay.by/cms-extensions/wordpress 5 5 Description: Place the plugin shortcode at any of your pages and start to accept payments in WordPress instantly 6 Version: 1.1. 86 Version: 1.1.9 7 7 Author: LLC «TriIncom» 8 8 Author URI: https://express-pay.by -
express-pay/trunk/src/class.expresspay.payment.php
r2872957 r3179636 39 39 global $wpdb; 40 40 41 $response = $wpdb->get_row("SELECT id, name, type, options, isactive FROM " . EXPRESSPAY_TABLE_PAYMENT_METHOD_NAME . " WHERE id = $type_id"); 41 $query = $wpdb->prepare("SELECT id, name, type, options, isactive FROM " . EXPRESSPAY_TABLE_PAYMENT_METHOD_NAME . " WHERE id = %d", $type_id); 42 $response = $wpdb->get_row($query); 42 43 43 44 if ($response->isactive == 1) { … … 129 130 global $wpdb; 130 131 131 $response = $wpdb->get_row("SELECT options FROM " . EXPRESSPAY_TABLE_PAYMENT_METHOD_NAME . " WHERE id = $type_id"); 132 $query = $wpdb->prepare("SELECT options FROM " . EXPRESSPAY_TABLE_PAYMENT_METHOD_NAME . " WHERE id = %d", $type_id); 133 $response = $wpdb->get_row($query); 132 134 133 135 $options = json_decode($response->options); … … 266 268 global $wpdb; 267 269 268 $payment_options = $wpdb->get_row('SELECT id, name, type, options, isactive FROM ' . EXPRESSPAY_TABLE_PAYMENT_METHOD_NAME . ' WHERE id = ' . $type_id); 269 270 $query = $wpdb->prepare("SELECT id, name, type, options, isactive FROM " . EXPRESSPAY_TABLE_PAYMENT_METHOD_NAME . " WHERE id = %d", $type_id); 271 $payment_options = $wpdb->get_row($query); 272 270 273 $options = json_decode($payment_options->options); 271 274 -
express-pay/trunk/src/class.payment.settings.php
r2591340 r3179636 27 27 28 28 $table_name = $wpdb->prefix . "expresspay_options"; 29 $response = $wpdb->get_row("SELECT * FROM $table_name WHERE id = $id");30 29 30 $query = $wpdb->prepare("SELECT * FROM $table_name WHERE id = %d", $type_id); 31 $response = $wpdb->get_row($query); 32 31 33 $param = json_decode($response->options, true); 32 34 }
Note: See TracChangeset
for help on using the changeset viewer.