Plugin Directory

Changeset 2301003 for gdpr-framework


Ignore:
Timestamp:
05/08/2020 03:21:30 PM (6 years ago)
Author:
data443
Message:

version 1.0.35

Location:
gdpr-framework
Files:
1311 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • gdpr-framework/trunk/gdpr-framework.php

    r2235819 r2301003  
    55 * Plugin URI:        https://www.data443.com/gdpr-framework/
    66 * Description:       Tools to help make your website GDPR-compliant. Fully documented, extendable and developer-friendly.
    7  * Version:           1.0.34
     7 * Version:           1.0.15
    88 * Author:            Data443
    99 * Author URI:        https://www.data443.com/
    1010 * Text Domain:       gdpr-framework
    1111 * Domain Path:       /languages
     12 *
     13 * @package WordPress
    1214 */
    1315
    1416if (!defined('WPINC'))
    15 {
     17{ 
    1618    die;
    1719}
    1820
    19 define('GDPR_FRAMEWORK_VERSION', '1.0.34');
     21define('GDPR_FRAMEWORK_VERSION', '1.0.15');
     22
     23add_shortcode( 'gdpr_privacy_safe', 'render_privacy_safe' );
     24
     25/**
     26 * Render WHMCS Seal Generator Addon Javascript
     27 */
     28function render_privacy_safe() {
     29    wp_register_script( 'whmcs_seal_generator', gdpr( 'config' )->get( 'plugin.url' ) . '/assets/js/showseal.js', null, true, true );
     30    wp_localize_script(
     31        'whmcs_seal_generator',
     32        'seal_var',
     33        array(
     34            'imageparams'   => esc_attr( get_option( 'gdpr_privacy_safe_params' ) ),
     35            'imagecode'     => esc_attr( get_option( 'gdpr_privacy_safe_imagecode' ) ),
     36            'showimagefunc' => 'showimage_' . esc_attr( get_option( 'gdpr_privacy_safe_imagecode' ) ),
     37        )
     38    );
     39    wp_enqueue_script( 'whmcs_seal_generator', basename( dirname( __FILE__ ) ) . '/assets/js/showseal.js', null, true, true );
     40
     41    echo '<a href="javascript:;" onclick="openpopup_' . esc_attr( get_option( 'gdpr_privacy_safe_imagecode' ) ) . '();"><img src="https://orders.data443.com/seal/seal.php?params=' . esc_attr( get_option( 'gdpr_privacy_safe_params' ) ) . '"/></a>';
     42}
     43
    2044add_action( 'plugins_loaded', 'gdpr_framework_load_textdomain' );
    2145function gdpr_framework_load_textdomain()
  • gdpr-framework/trunk/readme.txt

    r2235819 r2301003  
    1 === The GDPR Framework By Data443 ===
     1=== The GDPR Framework By Data443 ===
    22Contributors: data443
    3 Tags: gdpr, compliance, security, privacy, wordpress gdpr, eu privacy directive, eu cookie law, california privacy law, regulations, privacy law, law, data, general data protection regulation, gdpr law
     3Tags: gdpr, compliance, security, privacy, wordpress gdpr, eu privacy directive, eu cookie law, california privacy law, regulations, privacy law, law, data, general data protection regulation, gdpr law, cookie, consent
    44Requires at least: 4.7
    5 Tested up to: 5.3
     5Tested up to: 5.4.0
    66Requires PHP: 5.6.33
    77Stable tag: trunk
     
    2222
    2323### Features
     24&#9745; [Privacy Safe Seal&#8482;](https://orders.data443.com/cart.php?gid=8) now available - Strengthen your reputation by giving your customers complete control over their private information with Privacy Safe;
    2425&#9745; Enable DSAR on one page - allow even those without an account to automatically view, export and delete their personal data;
    2526&#9745; Configure the plugin to delete or anonymize personal data automatically or send a notification and allow admins to do it manually;
     
    115116
    116117== Changelog ==
     118= 1.0.35 (5/8/2020) =
     119* GDPRF-118: verified functionality on wordpress version 5.4.0
     120* Added support for the new Privacy Safe Seal&#8482; technology
     121
    117122= 1.0.34 (01/21/2020) =
    118123* WPSD-379 : fix to entry meta from $_POST
  • gdpr-framework/trunk/src/Components/PrivacyToolsPage/PrivacyToolsPageController.php

    r2235819 r2301003  
    6767        add_action('gdpr/frontend/privacy-tools-page/action/withdraw_consent', [$this, 'withdrawConsent'], 10, 2);
    6868        add_action('gdpr/frontend/privacy-tools-page/action/export', [$this, 'export'], 10, 2);
    69         add_action('gdpr/frontend/privacy-tools-page/action/forget', [$this, 'forget'], 10, 2);
     69        add_action('gdpr/frontend/privacy-tools-page/action/forget', [$this, 'forget'], 10, 2);
     70        add_action( 'wp_ajax_nopriv_validation_privacysafe', array( $this, 'validation_privacysafe' ) );
    7071    }
    7172
     
    8081            gdpr('config')->get('plugin.url') . 'assets/privacy-tools.css'
    8182        );
    82     }
     83    }
     84   
     85    public function validation_privacysafe() {
     86        return true;
     87        exit;
     88    }
    8389
    8490    /**
  • gdpr-framework/trunk/src/Installer/Installer.php

    r2024675 r2301003  
    5757            $this->setupSteps();
    5858            $this->runInstaller();
    59         }
     59        }
     60
     61        if(!$this->isPrivcySafeNotified()) {
     62            $this->run_privacysafe_promo();
     63        }
     64
     65       
     66       
    6067    }
    6168
     
    7279
    7380        add_action('gdpr/admin/action/auto_install', [$this, 'autoInstall']);
    74         add_action('gdpr/admin/action/skip_install', [$this, 'skipInstall']);
     81        add_action('gdpr/admin/action/skip_install', [$this, 'skipInstall']);
     82        add_action('gdpr/admin/action/skip_notice', [$this, 'skipNotice']);
     83       
    7584    }
    7685
     
    108117                'gdpr_action' => 'accept_disclaimer',
    109118                'gdpr_nonce'  => wp_create_nonce('gdpr/admin/action/accept_disclaimer'),
    110             ]);
     119            ]);
     120           
    111121            gdpr('admin-notice')->add('admin/notices/disclaimer', compact('acceptUrl'));
    112122        }
     
    161171        gdpr('options')->delete('installer_step');
    162172        gdpr('options')->delete('is_installed');
     173        gdpr('options')->delete('is_privacysafe_notified');
    163174
    164175        wp_safe_redirect(self_admin_url());
     
    207218    {
    208219        return gdpr('options')->get('is_installed');
     220    }
     221    /**
     222     * Check if the Privacy Safe notice is already ran
     223     *
     224     * @return bool
     225     */
     226    protected function isPrivcySafeNotified()
     227    {
     228        return gdpr('options')->get('is_privacysafe_notified');
    209229    }
    210230
     
    240260            'installer/welcome-notice',
    241261            compact('installerUrl', 'autoInstallUrl', 'skipUrl')
     262        );
     263       
     264       
     265    }
     266    /**
     267     *
     268     *
     269     */
     270    public function run_privacysafe_promo() {
     271        $skipNoticeUrl = add_query_arg([
     272            'gdpr_action' => 'skip_notice',
     273            'gdpr_nonce'  => wp_create_nonce("gdpr/admin/action/skip_notice"),
     274        ]);
     275        // Make sure we display the notice only to admins
     276        gdpr('privacy-safe')->add(
     277            'installer/privacy-safe-notice',
     278            compact('skipNoticeUrl')
    242279        );
    243280    }
     
    303340        exit;
    304341    }
     342    /**
     343     * Do nothing, but mark the Privacy Notice as completed
     344     */
     345    public function skipNotice()
     346    {
     347        gdpr('options')->set('is_privacysafe_notified', 'yes');
     348        wp_safe_redirect(gdpr('helpers')->getAdminUrl());
     349        exit;
     350    }
    305351}
  • gdpr-framework/trunk/src/Setup.php

    r2068885 r2301003  
    99use Codelight\GDPR\Components\AdvancedIntegration\AdvancedIntegration;
    1010use Codelight\GDPR\Components\PrivacyManager\PrivacyManager;
     11use Codelight\GDPR\Components\PrivacySafe\PrivacySafe;
    1112use Codelight\GDPR\Components\CookiePopup\CookiePopup;
    1213use Codelight\GDPR\Components\Support\Support;
     
    9394        gdpr()->make(CookiePopup::class);     
    9495        gdpr()->make(AdvancedIntegration::class); 
    95         gdpr()->make(PrivacyManager::class);
     96        gdpr()->make(PrivacyManager::class);
     97        gdpr()->make( PrivacySafe::class );
    9698        gdpr()->make(WordpressComments::class);
    9799        gdpr()->make(WordpressUser::class);
  • gdpr-framework/trunk/src/SetupAdmin.php

    r1922349 r2301003  
    1111use Codelight\GDPR\Installer\Installer;
    1212use Codelight\GDPR\Installer\AdminInstallerNotice;
     13use Codelight\GDPR\Admin\AdminPrivacySafe;
    1314
    1415/**
     
    4445        gdpr()->alias(AdminError::class, 'admin-error');
    4546        gdpr()->alias(AdminInstallerNotice::class, 'installer-notice');
     47        gdpr()->alias(AdminPrivacySafe::class, 'privacy-safe');
    4648        gdpr()->alias(Modal::class, 'admin-modal');
    4749        gdpr()->alias(WordpressAdminPage::class, 'admin-page');
Note: See TracChangeset for help on using the changeset viewer.