Changeset 2787146
- Timestamp:
- 09/19/2022 04:58:49 PM (4 years ago)
- Location:
- fair-analytics/tags/1.1.2
- Files:
-
- 2 edited
- 2 copied
-
. (copied) (copied from fair-analytics/tags/1.1.1)
-
fair-analytics.php (modified) (1 diff)
-
readme.txt (copied) (copied from fair-analytics/tags/1.1.1/readme.txt) (2 diffs)
-
template/main_page.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fair-analytics/tags/1.1.2/fair-analytics.php
r2782490 r2787146 4 4 * Plugin URI: https://wordpress.org/plugins/fairanalytics 5 5 * Description: Enables Fair Analytics on your website. To analyze your visitor data we integrate a small javascript code into the header of your website. 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 -
fair-analytics/tags/1.1.2/readme.txt
r2787144 r2787146 5 5 Tested up to: 6.0.2 6 6 Requires PHP: 7.2 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv3 and Higher 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 155 155 156 156 == Changelog == 157 = 1.1.2 = 158 * Code cleanup 157 159 = 1.1.1 = 158 160 * A few minor bug fixes -
fair-analytics/tags/1.1.2/template/main_page.php
r2781420 r2787146 15 15 if(!empty($DSGVO_Analytic_ID) && $DSGVO_Analytic_ID != DSGVO_Analytic_ID_Placeholder){ 16 16 $JS_ID = htmlspecialchars(stripslashes( base64_decode($DSGVO_Analytic_ID))); 17 18 17 } 19 18 … … 25 24 26 25 27 28 29 30 31 26 <div class="fa-content-box hero"> 32 33 27 <div class="row right"> 34 28 <div class="fa-logo-wrapper"> … … 37 31 </div> 38 32 </div> 39 40 33 </div> 41 42 43 44 <div>45 46 47 48 49 <?php50 if (isset($_POST['submit'])) {51 52 53 $curl = curl_init();54 55 curl_setopt_array($curl, [56 CURLOPT_URL => 'https://fairanalytics.app.n8n.cloud/webhook-test/cd61f4d1-d8c1-4333-a034-a7d9e72138ef', //Your n8n webhook URL57 CURLOPT_RETURNTRANSFER => true,58 CURLOPT_ENCODING => "",59 CURLOPT_MAXREDIRS => 10,60 CURLOPT_TIMEOUT => 30,61 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,62 CURLOPT_CUSTOMREQUEST => "POST",63 CURLOPT_POSTFIELDS => "name=Hello&email=hello%40gmail.com&password=asdasdasd", //Data you want to send64 CURLOPT_HTTPHEADER => [65 "Content-Type: application/x-www-form-urlencoded"66 ],67 ]);68 69 70 71 $response = curl_exec($curl);72 $err = curl_error($curl);73 74 curl_close($curl);75 76 if ($err) {77 echo "cURL Error #:" . $err;78 } else {79 echo $response;80 }81 82 }83 ?>84 85 86 87 </div>88 89 <div class="js-analytic">90 91 <div class="js-analytic-sidebar-wrapper">92 93 <div class="js-analytic-sidebar-wrapper-content">94 95 96 </div>97 </div>98 99 </div>100 101 34 102 35
Note: See TracChangeset
for help on using the changeset viewer.