Plugin Directory

Changeset 2787146


Ignore:
Timestamp:
09/19/2022 04:58:49 PM (4 years ago)
Author:
fairanalytics
Message:

Code Cleanup

Location:
fair-analytics/tags/1.1.2
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • fair-analytics/tags/1.1.2/fair-analytics.php

    r2782490 r2787146  
    44* Plugin URI:        https://wordpress.org/plugins/fairanalytics
    55* 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.1
     6* Version:           1.1.2
    77* Requires at least: 5.2
    88* Requires PHP:      7.2
  • fair-analytics/tags/1.1.2/readme.txt

    r2787144 r2787146  
    55Tested up to: 6.0.2
    66Requires PHP: 7.2
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv3 and Higher
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    155155
    156156== Changelog ==
     157= 1.1.2 =
     158* Code cleanup
    157159= 1.1.1 =
    158160* A few minor bug fixes
  • fair-analytics/tags/1.1.2/template/main_page.php

    r2781420 r2787146  
    1515if(!empty($DSGVO_Analytic_ID) && $DSGVO_Analytic_ID != DSGVO_Analytic_ID_Placeholder){
    1616    $JS_ID  = htmlspecialchars(stripslashes( base64_decode($DSGVO_Analytic_ID)));
    17 
    1817}
    1918
     
    2524
    2625
    27 
    28 
    29 
    30 
    3126<div class="fa-content-box hero">
    32 
    3327  <div class="row right">
    3428    <div class="fa-logo-wrapper">
     
    3731    </div>
    3832  </div>
    39 
    4033</div>
    41 
    42 
    43 
    44 <div>
    45 
    46 
    47 
    48 
    49     <?php
    50     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 URL
    57         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 send
    64         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 
    10134
    10235
Note: See TracChangeset for help on using the changeset viewer.