Plugin Directory

Changeset 2996362


Ignore:
Timestamp:
11/15/2023 12:17:57 PM (2 years ago)
Author:
viaads
Message:

Performance Update

Location:
viaads
Files:
13 added
6 edited

Legend:

Unmodified
Added
Removed
  • viaads/trunk/endpoints.php

    r2975155 r2996362  
    8585
    8686                //Delete api key
    87                 //if (isset($_GET['deleteApiKey'])){
    8887                $deleteApiKey = $request->get_param('deleteApiKey');
    8988                if (isset($deleteApiKey)){
     
    142141
    143142                    print_r(json_encode($api_key_object));
     143                    echo "\r\n\r\n\r\n\r\n";
     144                    print_r(get_userdata( $user_id ));
     145                    echo "\r\n\r\n\r\n\r\n";
     146                    print_r($admin_role);
     147                    echo "\r\n\r\n\r\n\r\n";
     148                    print_r(get_role($groupName));
     149                    echo "\r\n\r\n\r\n\r\n";
    144150
    145151                    return new WP_REST_Response('Created user', 200);
  • viaads/trunk/hooks/addCart.php

    r2975155 r2996362  
    7070        $customer->Session_id = $cookieValues->Session;
    7171        $customer->ViaAds = $cookieValues->ViaAds;
     72
     73        //Thrid party cookies
     74        if (isset($_COOKIE['via_ads2'])) {
     75            $cookieValues2 = json_decode(base64_decode($_COOKIE['via_ads2']));
     76            $customer->ViaAds2 = $cookieValues2->ViaAds ?? "";
     77            $customer->Email2 = $cookieValues2->Email ?? "";
     78        }
     79
    7280        $data->customer = $customer;
    7381
  • viaads/trunk/hooks/pageLook.php

    r2956644 r2996362  
    2424        }
    2525        $product = wc_get_product($product_id);
    26        
     26
    2727        //Checking for cookie consent
     28        if (!isset($_COOKIE['via_ads'])){
     29            return;
     30        }
    2831        $cookieValues = json_decode(base64_decode($_COOKIE['via_ads']));
    2932        if (!$cookieValues->Consent) {
     
    6871        $customer->Session_id = $cookieValues->Session ?? "";
    6972        $customer->ViaAds = $cookieValues->ViaAds ?? "";
     73
     74        //Thrid party cookies
     75        if (isset($_COOKIE['via_ads2'])) {
     76            $cookieValues2 = json_decode(base64_decode($_COOKIE['via_ads2']));
     77            $customer->ViaAds2 = $cookieValues2->ViaAds ?? "";
     78            $customer->Email2 = $cookieValues2->Email ?? "";
     79        }
     80
    7081        $data->Customer = $customer;
    7182
  • viaads/trunk/hooks/removeCart.php

    r2975155 r2996362  
    2828
    2929        //Checking for cookie consent
     30        if (!isset($_COOKIE['via_ads'])){
     31            return;
     32        }
    3033        $cookieValues = json_decode(base64_decode($_COOKIE['via_ads']));
    3134        if (!$cookieValues->Consent) {
     
    7073        $customer->Session_id = $cookieValues->Session ?? "";
    7174        $customer->ViaAds = $cookieValues->ViaAds ?? "";
     75
     76        //Thrid party cookies
     77        if (isset($_COOKIE['via_ads2'])) {
     78            $cookieValues2 = json_decode(base64_decode($_COOKIE['via_ads2']));
     79            $customer->ViaAds2 = $cookieValues2->ViaAds ?? "";
     80            $customer->Email2 = $cookieValues2->Email ?? "";
     81        }
     82
    7283        $data->customer = $customer;
    7384
  • viaads/trunk/readme.txt

    r2975155 r2996362  
    44Requires at least: 5.4
    55Tested up to: 6.2
    6 Stable tag: 2.0.0
     6Stable tag: 2.0.1
    77Requires PHP: 7.0
    88License: GPLv3
  • viaads/trunk/viaads.php

    r2975155 r2996362  
    33 * Plugin Name: ViaAds
    44 * Description: Plugin der muliggør forbindelsen til ViaAds / Plug-in enabling the connection to ViaAds.
    5  * Version: 2.0.0
     5 * Version: 2.0.1
    66 * Author: ViaAds
    77 * Author URI: https://www.viaads.dk/
Note: See TracChangeset for help on using the changeset viewer.