Plugin Directory

Changeset 2748063


Ignore:
Timestamp:
06/26/2022 08:32:01 AM (4 years ago)
Author:
stremovsky
Message:

Fix code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • better-gdpr/trunk/admin-user.php

    r2746591 r2748063  
    1919  if (isset($_POST["email"])) {
    2020    $account_email = sanitize_email($_POST["email"]);
    21   } else {
    22  
    2321  }
    2422  if (isset($_POST["subdomain"])) {
    2523    $subdomain = sanitize_text_field($_POST["subdomain"]);
     24  }
     25  if ($subdomain) {
     26    update_option('privacybunker_subdomain', $subdomain);
    2627  }
    2728  if (isset($_POST["email"]) && isset($_POST["code"]) && isset($_POST["subdomain"])) {
     
    102103add_action('admin_enqueue_scripts', 'my_load_scripts');
    103104*/
    104 
    105 function bettergdpr_wizard_page() {
    106 $xtoken = get_option( 'bettergdpr_xtoken', '' );
    107 $subdomain = get_option( 'bettergdpr_subdomain', '' );
    108 $service = "https://".$subdomain.".privacybunker.cloud/";
    109 ?>
    110 <script type='text/javascript' src='<?php echo($service); ?>/site/wizard.js' ></script>
    111 <link rel='stylesheet' type='text/css' media='all' href='<?php echo($service); ?>/site/wizard.css' />
    112 <div class='better-gdpr-admin'>
    113 <div id='bettergdpr-wizard'>&nbsp;</div>
    114 <script type="text/javascript">
    115 jQuery( document ).ready(function() {
    116   bettergdprLoadSettings('<?php echo($xtoken); ?>', '<?php echo($service); ?>', 'v1/account/technologies');
    117   bettergdprLoadSettings('<?php echo($xtoken); ?>', '<?php echo($service); ?>', 'v1/account/objectives');
    118   bettergdprShowWizardPage('objectives');
    119 });
    120 </script>
    121 <center><p>If you have any questions you can contact us at <u>onboarding@privacybunker.io</u></p></center>
    122 </div>
    123 <?php
    124 }
    125105
    126106function bettergdpr_setup_page() {
Note: See TracChangeset for help on using the changeset viewer.