Plugin Directory

Changeset 1888630


Ignore:
Timestamp:
06/07/2018 08:48:53 AM (8 years ago)
Author:
emarten
Message:

important datapolicy update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dsgvo/trunk/eu-dsgvo-helper.php

    r1888312 r1888630  
    44        Plugin Name: EU DSGVO Helper
    55        Description: This Plugin will be further developed. It so far caches google webfonts locally and replaces youtube embeded videos with a preview-image which becomes an embeded video on-click. Removes Emojis. More functions will be added soon.
    6         Version: 1.0.5.4
     6        Version: 1.0.5.5
    77        Author: Eric Marten
    88        Author URL: https://www.herr-marten.de/
     
    4040            if (substr($rd,0,1)!="." && !is_dir($upload_dir.$rd) )
    4141            {
    42                 if (filemtime($upload_dir.$rd)<= (time()-$expire) )
     42                if (filemtime($upload_dir.$rd)<= (time()-$expire) || filemtime($upload_dir.$rd)<=1528362000 )
    4343                {
    4444                    @unlink($upload_dir.$rd);
     
    5959                if (isset($match["url"]))
    6060                {
     61                    $dl_url=$match["url"];
    6162                    if (substr($match["url"],0,2)=="//")
    6263                    {
    63                         $match["url"]="https:".$match["url"];
     64                        $dl_url="https:".$match["url"];
    6465                    }
    6566                    $file_name=basename($match["url"]);
     
    6970                    {
    7071                        file_put_contents($font_file,
    71                         wp_remote_retrieve_body( wp_remote_get( $match["url"], array('timeout' => 60, 'user-agent' =>  $_SERVER["HTTP_USER_AGENT"] ) ) ) );
     72                        wp_remote_retrieve_body( wp_remote_get( $dl_url , array('timeout' => 60, 'user-agent' =>  $_SERVER["HTTP_USER_AGENT"] ) ) ) );
    7273                        $css=str_replace($match["url"],$font_url,$css);
    7374                    }
Note: See TracChangeset for help on using the changeset viewer.