Plugin Directory

Changeset 2179662


Ignore:
Timestamp:
10/24/2019 10:40:24 PM (6 years ago)
Author:
lonercoder
Message:

Ver 1.4 - Connection Bug Fixed.

Location:
onecrm/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • onecrm/trunk/admin/setting_view.php

    r2127254 r2179662  
    1212            این اطلاعات به صورت رمز شده در سرور ذخیره می شود و فقط توسط حساب کاربری شما قابل بازگشایی و خواندن خواهد بود و تضمین می شود که توسط هیچ فردی غیر از شما قابل مشاهده نباشد.
    1313        </p>
    14         <?php wp_nonce_field('oc-send-token') ?>
     14        <?php wp_nonce_field('oc-secure-token' , 'secure_token'); ?>
    1515        <input type="text" name='tokenTxt' style="width: 400px;" />
    1616        <input type="submit" value="ارسال کد" class='button-primary' /><br />
     
    1818    <?php
    1919    if (!defined('ABSPATH')) exit; // Exit if accessed directly
     20
    2021
    2122    include_once plugin_dir_path(__FILE__) . '../sync.php';
     
    3233    if (array_key_exists('tokenTxt', $_POST) && current_user_can('administrator')) {
    3334
    34         if (!isset($POST['_wpnonce']) || !wp_verify_nonce($POST['_wpnonce'], 'oc-send-token')) {
    35             die();
     35        $nonce = $_POST['secure_token'];
     36
     37        if (!isset($nonce) || !wp_verify_nonce($nonce, 'oc-secure-token')) {
     38            die('اشکال امنیتی');
    3639        }
    3740
    3841        $tokenVal = sanitize_text_field($_POST['tokenTxt']);
     42        print $tokenVal;
    3943        $url = "http://api.onecrm.org/Token/Connection";
    4044        $args = array(
     
    4549            )
    4650        );
     51
    4752        $res = wp_remote_post($url, $args);
    4853        print "<br/>";
  • onecrm/trunk/onecrm.php

    r2070942 r2179662  
    44Plugin URI: https://app.onecrm.org/Main/WPSetting
    55Description: این افزونه برای ارتباط OneCrm با وب سایت شماست.
    6 Author: LonerCoder
    7 Version: 1.3
    8 Author URI: http://onecrm.org/
     6Author: میلاد حلمی
     7Version: 1.4
     8Author URI: https://miladhelmi.ir/
    99 */
    1010if (!defined('ABSPATH')) exit; // Exit if accessed directly
  • onecrm/trunk/readme.txt

    r2071498 r2179662  
    11=== OneCrm Plugin ===
    2 Contributors: LonerCoder
     2Contributors: MiladHelmi
    33Donate link: http://onecrm.org
    44Tags: onecrm,worpress,plugin,connectonecrm
    55Requires at least: 4.0.0
    6 Tested up to: 5.1.1
    7 Stable tag: 1.3
     6Tested up to: 5.3
     7Stable tag: 1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252= 1.3 =
    5353This version fixes Api Connect And Order Status.
     54= 1.4 =
     55Connection Bug Fixed.
Note: See TracChangeset for help on using the changeset viewer.