Changeset 3185636
- Timestamp:
- 11/11/2024 11:21:20 AM (17 months ago)
- Location:
- zoho-crm-forms/trunk
- Files:
-
- 4 edited
-
Readme.txt (modified) (2 diffs)
-
includes/crmcontactformgenerator.php (modified) (2 diffs)
-
includes/crmwebformsfieldsmapping.php (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zoho-crm-forms/trunk/Readme.txt
r3185097 r3185636 7 7 Author: Zoho CRM 8 8 Tested up to: 6.7 9 Stable tag:1.7.9. 79 Stable tag:1.7.9.8 10 10 License: GPLv2 or later 11 Version: 1.7.9. 711 Version: 1.7.9.8 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html 13 13 … … 296 296 Wordpress latest version compatibility check 297 297 1.7.9.5 298 Security review ch nages has been updated298 Security review changes has been updated 299 299 1.7.9.6 300 Security review ch nages has been updated300 Security review changes has been updated 301 301 1.7.9.7 302 302 Wordpress latest version compatibility check 303 1.7.9.8 304 Security review changes has been updated 303 305 304 306 == Upgrade notice == -
zoho-crm-forms/trunk/includes/crmcontactformgenerator.php
r3185097 r3185636 53 53 54 54 function zcf_ContactFormFieldsGenerator($attr, $thirdparty) { 55 56 57 55 global $HelperObj; 58 56 global $module_options, $module, $isWidget, $assignedto, $check_duplicate, $update_record, $formattr, $attrname; 59 57 $module_options = 'Leads'; 60 58 $newform = new zcffieldlistDatamanage(); 61 if($attr['name'] ==''){ 62 $attr['name'] = $attr['id']; 59 if (empty($attr['name'])) { 60 $attr['name'] = sanitize_text_field($attr['id']); 61 } else { 62 $attr['name'] = sanitize_text_field($attr['name']); 63 63 } 64 64 $newshortcode = $newform->zcfformfieldsPropsettings($attr['name']); … … 72 72 $check_duplicate = $FormSettings->duplicate_handling; 73 73 if (isset($shortcodes['update_record'])) { 74 $update_record = $shortcodes['update_record']; 75 } 74 $update_record = sanitize_text_field($shortcodes['update_record']); // Sanitize if needed 75 } 76 76 77 return zcf_ContactFormfieldlistsMapping($module, $config_fields, $module_options, "post", $thirdparty); 77 78 } 79 78 80 79 81 function zcf_callcontactform7mapping($formtype) { -
zoho-crm-forms/trunk/includes/crmwebformsfieldsmapping.php
r3178287 r3185636 383 383 function zcfFormPropSettings($shortcodename = "") { 384 384 global $wpdb; 385 $query = ""; 386 $where = ""; 385 $query = "SELECT * FROM zcf_zohoshortcode_manager"; 386 387 // Use a prepared statement to safely handle user input 387 388 if ($shortcodename != "") { 388 $where = " where shortcode_name = '$shortcodename'"; 389 } 390 $query = "select * from zcf_zohoshortcode_manager"; 391 $sql = $query . $where; 389 $sql = $wpdb->prepare("SELECT * FROM zcf_zohoshortcode_manager WHERE shortcode_name = %s", $shortcodename); 390 } else { 391 $sql = $query; 392 } 393 392 394 $results = $wpdb->get_results($sql); 393 if (( $shortcodename != "" ) && ( count($results) > 0 )) {394 $return_results = $results[0];395 return $re turn_results;395 396 if (($shortcodename != "") && (count($results) > 0)) { 397 return $results[0]; 396 398 } else { 397 399 return $results; -
zoho-crm-forms/trunk/index.php
r3185097 r3185636 4 4 * Plugin Name: Zoho CRM Lead Magnet 5 5 * Description: Websites are one of the most important sources of leads for your business. That means your CRM system should be well integrated with your website to contextually capture each and every visitor to turn them into a lead.Introducing the Zoho CRM Lead Capture plugin for Wordpress. This lets you create webforms, embed them in your website, and automatically capture leads directly into your CRM with zero attenuation.Not only is the integration easy to set-up but it's also easy on your wallet. 6 * Version: 1.7.9. 76 * Version: 1.7.9.8 7 7 * ***************************************************************************************** */ 8 8 if (!defined('ABSPATH')) 9 9 exit; 10 10 11 define( 'ZCF_VERSION', '1.7.9. 7' );11 define( 'ZCF_VERSION', '1.7.9.8' ); 12 12 define( 'ZCF_LBPLUGINFILE', __FILE__ ); 13 13 define( 'ZCF_LBPLUGIN_URL', untrailingslashit( plugins_url( '', ZCF_LBPLUGINFILE ) ) );
Note: See TracChangeset
for help on using the changeset viewer.