Plugin Directory

Changeset 2803349


Ignore:
Timestamp:
10/24/2022 10:09:14 AM (3 years ago)
Author:
w3scloud
Message:

Update

Location:
w3sc-elementor-to-zoho/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • w3sc-elementor-to-zoho/trunk/README.txt

    r2800534 r2803349  
    55Requires at least: 5.0
    66Tested up to: 6.0.1
    7 Stable tag: 1.4.0
     7Stable tag: 1.5.0
    88Requires PHP: 7.2
    99License: GPLv2 or later
  • w3sc-elementor-to-zoho/trunk/elementor-to-zoho.php

    r2800534 r2803349  
    44 * Description: Data Insert in Zoho CRM by Elementor.
    55 * Plugin URI:  https://wordpress.org/plugins/w3sc-elementor-to-zoho/
    6  * Version:     1.4.0
     6 * Version:     1.5.0
    77 * Author:      W3SCloud Technology
    88 * Author URI:  https://w3scloud.com/
  • w3sc-elementor-to-zoho/trunk/includes/Admin/Authdata.php

    r2709751 r2803349  
    33{
    44    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" => "",
    99        "zoho_redirect_url" => "",
    1010        "zoho_api_base_url" => "",
     
    3737        if (isset($data["store_zoho_info"])) {
    3838            $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"])
    4141            );
    4242            $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"])
    4545            );
    4646            $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"])
    4949            );
    5050            $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"])
    5353            );
    54             $store = update_option("_zoho_auth_infos", $this->infos);
     54            $store = update_option("w3scelementor_zoho_auth_infos", $this->infos);
    5555            $this->message($store);
    5656        } else {
    5757            $this->setAll();
    58             update_option("_zoho_auth_infos", $this->infos);
     58            update_option("w3scelementor_zoho_auth_infos", $this->infos);
    5959        }
    6060    }
     
    6262    private function setAll()
    6363    {
    64         $infos = get_option("_zoho_auth_infos");
     64        $infos = get_option("w3scelementor_zoho_auth_infos");
    6565
    6666        $infos = is_array($infos)?$infos:[];
  • w3sc-elementor-to-zoho/trunk/includes/Admin/Setting.php

    r2800534 r2803349  
    2424            $dataSet = new InfosAuth();
    2525            $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"); ?>
    2828
    2929
     
    4141            * Remove Authenticate Notification by page reload
    4242            */
    43             var removeParams = ['w3sbiginsuccess'];
     43            var removeParams = ['w3scelementorsuccess'];
    4444            const deleteRegex = new RegExp(removeParams.join('=|'));
    4545            const params = location.search.slice(1).split(/[?&]+/);
     
    5656            <?php
    5757            // Get Authenticate Success/Failure notification
    58             $w3ssucc_noti = isset($_GET["w3sbiginsuccess"])? sanitize_text_field($_GET["w3sbiginsuccess"]): "";
     58            $w3ssucc_noti = isset($_GET["w3scelementorsuccess"])? sanitize_text_field($_GET["w3scelementorsuccess"]): "";
    5959            //$w3ssucc_noti = sanitize_text_field( $w3ssucc_noti );
    6060           
     
    116116                  $selected = $dataCenter == $v ? "checked='checked'" : ""; ?>
    117117
    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>
    119119
    120120            <?php   } ?>
     
    124124        <td valign="top"><h4 class="zci">Zoho Client ID</h4></td>
    125125        <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")
    128128          ); ?>">
    129129          <p class="guid">
     
    135135        <td valign="top"><h4 class="zcs">Zoho Client Secret</h4></td>
    136136        <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")
    139139          ); ?>
    140140">
     
    147147        <td><h4>Zoho User EmailD</h4></td>
    148148        <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")
    151151          ); ?>
    152152">
     
    154154      </tr>
    155155      <?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")
    158158      ): ?>
    159159      <tr>
  • w3sc-elementor-to-zoho/trunk/includes/Admin/Tokens.php

    r2709751 r2803349  
    1111        $dataSet = new InfosAuth();
    1212        $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");
    1616
    1717        if ($code && $zcid && $zcse && $dataCenter) {
     
    5656            $refresh_token_data = update_option("w3scelementor_refresh_token_data",$refresh_token);
    5757
    58             echo "<script>window.location.href='" . get_site_url() . "/wp-admin/edit.php?page=w3sc-elementor&w3sbiginsuccess=$success';</script>";
     58            echo "<script>window.location.href='" . get_site_url() . "/wp-admin/edit.php?page=w3sc-elementor&w3scelementorsuccess=$success';</script>";
    5959        }
    6060    }
     
    9999        $dataSet = new InfosAuth();
    100100        $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");
    104104
    105105        if ($getRefreshToken && $zcid && $zcse && $dataCenter) {
  • w3sc-elementor-to-zoho/trunk/includes/widgets/W3sc-insertinzoho.php

    r2709751 r2803349  
    1919
    2020            $dataSet = new InfosAuth();
    21             $dataCenter = $dataSet->getInfo("data_center");
     21            $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center");
    2222
    2323            $args = array(
  • w3sc-elementor-to-zoho/trunk/includes/widgets/W3sc-widget.php

    r2800534 r2803349  
    214214        {
    215215            $dataSet = new InfosAuth();
    216             $dataCenter = $dataSet->getInfo("data_center");
     216            $dataCenter = $dataSet->getInfo("w3scelementor_zoho_data_center");
    217217           
    218218            $args = [
Note: See TracChangeset for help on using the changeset viewer.