Changeset 2803349
- Timestamp:
- 10/24/2022 10:09:14 AM (3 years ago)
- Location:
- w3sc-elementor-to-zoho/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (1 diff)
-
elementor-to-zoho.php (modified) (1 diff)
-
includes/Admin/Authdata.php (modified) (3 diffs)
-
includes/Admin/Setting.php (modified) (8 diffs)
-
includes/Admin/Tokens.php (modified) (3 diffs)
-
includes/widgets/W3sc-insertinzoho.php (modified) (1 diff)
-
includes/widgets/W3sc-widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
w3sc-elementor-to-zoho/trunk/README.txt
r2800534 r2803349 5 5 Requires at least: 5.0 6 6 Tested up to: 6.0.1 7 Stable tag: 1. 4.07 Stable tag: 1.5.0 8 8 Requires PHP: 7.2 9 9 License: GPLv2 or later -
w3sc-elementor-to-zoho/trunk/elementor-to-zoho.php
r2800534 r2803349 4 4 * Description: Data Insert in Zoho CRM by Elementor. 5 5 * Plugin URI: https://wordpress.org/plugins/w3sc-elementor-to-zoho/ 6 * Version: 1. 4.06 * Version: 1.5.0 7 7 * Author: W3SCloud Technology 8 8 * Author URI: https://w3scloud.com/ -
w3sc-elementor-to-zoho/trunk/includes/Admin/Authdata.php
r2709751 r2803349 3 3 { 4 4 private $infos = [ 5 " data_center" => "",6 " zoho_client_id" => "",7 " zoho_client_secret" => "",8 " zoho_user_email" => "",5 "w3scelementor_zoho_data_center" => "", 6 "w3scelementor_zoho_client_id" => "", 7 "w3scelementor_zoho_client_secret" => "", 8 "w3scelementor_zoho_user_email" => "", 9 9 "zoho_redirect_url" => "", 10 10 "zoho_api_base_url" => "", … … 37 37 if (isset($data["store_zoho_info"])) { 38 38 $this->setInfo( 39 " data_center",40 sanitize_text_field($data[" data_center"])39 "w3scelementor_zoho_data_center", 40 sanitize_text_field($data["w3scelementor_zoho_data_center"]) 41 41 ); 42 42 $this->setInfo( 43 " zoho_client_id",44 sanitize_text_field($data[" zoho_client_id"])43 "w3scelementor_zoho_client_id", 44 sanitize_text_field($data["w3scelementor_zoho_client_id"]) 45 45 ); 46 46 $this->setInfo( 47 " zoho_client_secret",48 sanitize_text_field($data[" zoho_client_secret"])47 "w3scelementor_zoho_client_secret", 48 sanitize_text_field($data["w3scelementor_zoho_client_secret"]) 49 49 ); 50 50 $this->setInfo( 51 " zoho_user_email",52 sanitize_text_field($data[" zoho_user_email"])51 "w3scelementor_zoho_user_email", 52 sanitize_text_field($data["w3scelementor_zoho_user_email"]) 53 53 ); 54 $store = update_option(" _zoho_auth_infos", $this->infos);54 $store = update_option("w3scelementor_zoho_auth_infos", $this->infos); 55 55 $this->message($store); 56 56 } else { 57 57 $this->setAll(); 58 update_option(" _zoho_auth_infos", $this->infos);58 update_option("w3scelementor_zoho_auth_infos", $this->infos); 59 59 } 60 60 } … … 62 62 private function setAll() 63 63 { 64 $infos = get_option(" _zoho_auth_infos");64 $infos = get_option("w3scelementor_zoho_auth_infos"); 65 65 66 66 $infos = is_array($infos)?$infos:[]; -
w3sc-elementor-to-zoho/trunk/includes/Admin/Setting.php
r2800534 r2803349 24 24 $dataSet = new InfosAuth(); 25 25 $dataSet->storeInfo($_POST); 26 $zcid = $dataSet->getInfo(" zoho_client_id");27 $dataCenter = $dataSet->getInfo(" data_center"); ?>26 $zcid = $dataSet->getInfo("w3scelementor_zoho_client_id"); 27 $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center"); ?> 28 28 29 29 … … 41 41 * Remove Authenticate Notification by page reload 42 42 */ 43 var removeParams = ['w3s biginsuccess'];43 var removeParams = ['w3scelementorsuccess']; 44 44 const deleteRegex = new RegExp(removeParams.join('=|')); 45 45 const params = location.search.slice(1).split(/[?&]+/); … … 56 56 <?php 57 57 // Get Authenticate Success/Failure notification 58 $w3ssucc_noti = isset($_GET["w3s biginsuccess"])? sanitize_text_field($_GET["w3sbiginsuccess"]): "";58 $w3ssucc_noti = isset($_GET["w3scelementorsuccess"])? sanitize_text_field($_GET["w3scelementorsuccess"]): ""; 59 59 //$w3ssucc_noti = sanitize_text_field( $w3ssucc_noti ); 60 60 … … 116 116 $selected = $dataCenter == $v ? "checked='checked'" : ""; ?> 117 117 118 <span style='margin-right:15px'><input type='radio' name=' data_center' value='<?php echo esc_html($v) ?>' <?php echo esc_html($selected) ?>><span><?php echo esc_html($k) ?></span></span>118 <span style='margin-right:15px'><input type='radio' name='w3scelementor_zoho_data_center' value='<?php echo esc_html($v) ?>' <?php echo esc_html($selected) ?>><span><?php echo esc_html($k) ?></span></span> 119 119 120 120 <?php } ?> … … 124 124 <td valign="top"><h4 class="zci">Zoho Client ID</h4></td> 125 125 <td> 126 <input type="text" name=" zoho_client_id" id="zoho_client_id" value="<?php echo esc_html($dataSet->getInfo(127 " zoho_client_id")126 <input type="text" name="w3scelementor_zoho_client_id" id="w3scelementor_zoho_client_id" value="<?php echo esc_html($dataSet->getInfo( 127 "w3scelementor_zoho_client_id") 128 128 ); ?>"> 129 129 <p class="guid"> … … 135 135 <td valign="top"><h4 class="zcs">Zoho Client Secret</h4></td> 136 136 <td> 137 <input type="password" name=" zoho_client_secret" id="zoho_client_secret" value="<?php echo esc_html($dataSet->getInfo(138 " zoho_client_secret")137 <input type="password" name="w3scelementor_zoho_client_secret" id="w3scelementor_zoho_client_secret" value="<?php echo esc_html($dataSet->getInfo( 138 "w3scelementor_zoho_client_secret") 139 139 ); ?> 140 140 "> … … 147 147 <td><h4>Zoho User EmailD</h4></td> 148 148 <td> 149 <input type="text" name=" zoho_user_email" id="zoho_user_email" value="<?php echo esc_html($dataSet->getInfo(150 " zoho_user_email")149 <input type="text" name="w3scelementor_zoho_user_email" id="w3scelementor_zoho_user_email" value="<?php echo esc_html($dataSet->getInfo( 150 "w3scelementor_zoho_user_email") 151 151 ); ?> 152 152 "> … … 154 154 </tr> 155 155 <?php if ( 156 $dataSet->getInfo(" zoho_client_id") &&157 $dataSet->getInfo(" data_center")156 $dataSet->getInfo("w3scelementor_zoho_client_id") && 157 $dataSet->getInfo("w3scelementor_zoho_data_center") 158 158 ): ?> 159 159 <tr> -
w3sc-elementor-to-zoho/trunk/includes/Admin/Tokens.php
r2709751 r2803349 11 11 $dataSet = new InfosAuth(); 12 12 $dataSet->storeInfo($_POST); 13 $zcid = $dataSet->getInfo(" zoho_client_id");14 $zcse = $dataSet->getInfo(" zoho_client_secret");15 $dataCenter = $dataSet->getInfo(" data_center");13 $zcid = $dataSet->getInfo("w3scelementor_zoho_client_id"); 14 $zcse = $dataSet->getInfo("w3scelementor_zoho_client_secret"); 15 $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center"); 16 16 17 17 if ($code && $zcid && $zcse && $dataCenter) { … … 56 56 $refresh_token_data = update_option("w3scelementor_refresh_token_data",$refresh_token); 57 57 58 echo "<script>window.location.href='" . get_site_url() . "/wp-admin/edit.php?page=w3sc-elementor&w3s biginsuccess=$success';</script>";58 echo "<script>window.location.href='" . get_site_url() . "/wp-admin/edit.php?page=w3sc-elementor&w3scelementorsuccess=$success';</script>"; 59 59 } 60 60 } … … 99 99 $dataSet = new InfosAuth(); 100 100 $dataSet->storeInfo($_POST); 101 $zcid = $dataSet->getInfo(" zoho_client_id");102 $zcse = $dataSet->getInfo(" zoho_client_secret");103 $dataCenter = $dataSet->getInfo(" data_center");101 $zcid = $dataSet->getInfo("w3scelementor_zoho_client_id"); 102 $zcse = $dataSet->getInfo("w3scelementor_zoho_client_secret"); 103 $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center"); 104 104 105 105 if ($getRefreshToken && $zcid && $zcse && $dataCenter) { -
w3sc-elementor-to-zoho/trunk/includes/widgets/W3sc-insertinzoho.php
r2709751 r2803349 19 19 20 20 $dataSet = new InfosAuth(); 21 $dataCenter = $dataSet->getInfo(" data_center");21 $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center"); 22 22 23 23 $args = array( -
w3sc-elementor-to-zoho/trunk/includes/widgets/W3sc-widget.php
r2800534 r2803349 214 214 { 215 215 $dataSet = new InfosAuth(); 216 $dataCenter = $dataSet->getInfo(" data_center");216 $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center"); 217 217 218 218 $args = [
Note: See TracChangeset
for help on using the changeset viewer.