Changeset 2996362
- Timestamp:
- 11/15/2023 12:17:57 PM (2 years ago)
- Location:
- viaads
- Files:
-
- 13 added
- 6 edited
-
tags/2.0.1 (added)
-
tags/2.0.1/apikey.php (added)
-
tags/2.0.1/endpoints.php (added)
-
tags/2.0.1/externalJS.php (added)
-
tags/2.0.1/hooks (added)
-
tags/2.0.1/hooks/addCart.php (added)
-
tags/2.0.1/hooks/orderHooks.php (added)
-
tags/2.0.1/hooks/pageLook.php (added)
-
tags/2.0.1/hooks/removeCart.php (added)
-
tags/2.0.1/http.php (added)
-
tags/2.0.1/readme.txt (added)
-
tags/2.0.1/userAgent.php (added)
-
tags/2.0.1/viaads.php (added)
-
trunk/endpoints.php (modified) (2 diffs)
-
trunk/hooks/addCart.php (modified) (1 diff)
-
trunk/hooks/pageLook.php (modified) (2 diffs)
-
trunk/hooks/removeCart.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/viaads.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
viaads/trunk/endpoints.php
r2975155 r2996362 85 85 86 86 //Delete api key 87 //if (isset($_GET['deleteApiKey'])){88 87 $deleteApiKey = $request->get_param('deleteApiKey'); 89 88 if (isset($deleteApiKey)){ … … 142 141 143 142 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"; 144 150 145 151 return new WP_REST_Response('Created user', 200); -
viaads/trunk/hooks/addCart.php
r2975155 r2996362 70 70 $customer->Session_id = $cookieValues->Session; 71 71 $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 72 80 $data->customer = $customer; 73 81 -
viaads/trunk/hooks/pageLook.php
r2956644 r2996362 24 24 } 25 25 $product = wc_get_product($product_id); 26 26 27 27 //Checking for cookie consent 28 if (!isset($_COOKIE['via_ads'])){ 29 return; 30 } 28 31 $cookieValues = json_decode(base64_decode($_COOKIE['via_ads'])); 29 32 if (!$cookieValues->Consent) { … … 68 71 $customer->Session_id = $cookieValues->Session ?? ""; 69 72 $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 70 81 $data->Customer = $customer; 71 82 -
viaads/trunk/hooks/removeCart.php
r2975155 r2996362 28 28 29 29 //Checking for cookie consent 30 if (!isset($_COOKIE['via_ads'])){ 31 return; 32 } 30 33 $cookieValues = json_decode(base64_decode($_COOKIE['via_ads'])); 31 34 if (!$cookieValues->Consent) { … … 70 73 $customer->Session_id = $cookieValues->Session ?? ""; 71 74 $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 72 83 $data->customer = $customer; 73 84 -
viaads/trunk/readme.txt
r2975155 r2996362 4 4 Requires at least: 5.4 5 5 Tested up to: 6.2 6 Stable tag: 2.0. 06 Stable tag: 2.0.1 7 7 Requires PHP: 7.0 8 8 License: GPLv3 -
viaads/trunk/viaads.php
r2975155 r2996362 3 3 * Plugin Name: ViaAds 4 4 * Description: Plugin der muliggør forbindelsen til ViaAds / Plug-in enabling the connection to ViaAds. 5 * Version: 2.0. 05 * Version: 2.0.1 6 6 * Author: ViaAds 7 7 * Author URI: https://www.viaads.dk/
Note: See TracChangeset
for help on using the changeset viewer.