Plugin Directory

Changeset 1447113


Ignore:
Timestamp:
07/01/2016 10:11:35 AM (10 years ago)
Author:
getcopyfight
Message:

version 1.5.4

Location:
copyfight
Files:
66 added
5 edited

Legend:

Unmodified
Added
Removed
  • copyfight/trunk/class.copyfight-admin.php

    r1439065 r1447113  
    409409
    410410        $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_api_health' );
    411         if ( $response->status->http == '0' || $response->status->mysql == '0' ) {
     411        if ( !empty( $response->status ) && ( $response->status->http == '0' || $response->status->mysql == '0' ) ) {
    412412            set_transient( 'copyfight_transient', $post_id, 60 );
    413413            update_post_meta( $post_id, '_copyfight_status', 'disabled' );
     
    496496            if ( !file_exists( $font ) || $overwrite ) {
    497497                $url = COPYFIGHT_CDN . $subdir . '/' . $copyfight_hash . '.woff';
    498                 $response = wp_remote_fopen( $url );
     498                //$response = wp_remote_fopen( $url );
     499                $response = file_get_contents( $url );
    499500                file_put_contents( $font, $response );
    500501                chmod( $font, $permissions );
     
    519520            if ( !file_exists( $font ) ) {
    520521                $url = COPYFIGHT_CDN . $subdir . '/' . $typeface_filename . '.woff';
    521                 $response = wp_remote_fopen( $url );
     522                //$response = wp_remote_fopen( $url );
     523                $response = file_get_contents( $url );
    522524                file_put_contents( $font, $response );
    523525                chmod( $font, $permissions );
     
    680682            echo '<p>' . __( 'A Copyfight error has occurred...', 'copyfight' );
    681683            echo ' <a href="javascript:window.location.reload();">' . __( 'Click here to try again...' ) . '</a></p>';
    682             die();
    683         }
    684     }
    685 
    686     /**
    687      * http://ajax.nl/ !!!
    688      */
     684        }
     685    }
     686
    689687    public static function ajax() {
    690688
  • copyfight/trunk/class.copyfight.php

    r1443274 r1447113  
    240240            wp_enqueue_script( 'copyfight' );
    241241
    242             //debugging
    243             $copyfight_debugging = get_option( 'copyfight_debugging' );
    244             if ( $copyfight_debugging == 'true' ) {
    245                 call_user_func( COPYFIGHT_CLASS_ADMIN . '::debug_log', 'post: id=' . $post->ID . ', ip: ' . $_SERVER['REMOTE_ADDR'] . ', useragent: ' . $_SERVER['HTTP_USER_AGENT'] );
    246             }
    247 
    248242        } else {
    249243
     
    283277    }
    284278
    285     /**
    286      * http://ajax.nl/ !!!
    287      */
    288279    public static function ajax() {
    289280
     
    309300                $unicode = strtoupper( $unicode );
    310301                if ( array_key_exists( $unicode, $copyfight_mapping ) ) {
    311                     $response .= json_decode( '"\u' . $copyfight_mapping[$unicode] . '"' );
     302                    for ( $i = 0; $i < strlen( $copyfight_mapping[$unicode] ); $i = $i + 4 ) {
     303                        $response .= json_decode( '"\u' . substr( $copyfight_mapping[$unicode], $i, 4 ) . '"' );
     304                    }
    312305                } else {
    313306                    $response .= ' ';
  • copyfight/trunk/copyfight.php

    r1443274 r1447113  
    44Plugin URI:         https://getcopyfight.com/
    55Description:        Copyright protection
    6 Version:            1.5.3
     6Version:            1.5.4
    77Author:             Copyfight
    88Author URI:         https://getcopyfight.com/
     
    3535add_action( 'plugins_loaded', 'copyfight_textdomain' );
    3636
    37 define( 'COPYFIGHT_VERSION', '1.5.3' );
     37define( 'COPYFIGHT_VERSION', '1.5.4' );
    3838define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.3.0' );
    3939define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • copyfight/trunk/readme.txt

    r1443283 r1447113  
    44Contributors:       Christopher Starke, Roman Macek, Marcus Juhl, Farhan Burns, Gerasimos Sozonov, Uno Dahlberg, Jason Hamburg, Amanda Seltzer, Eduard Stula
    55Donate link:        https://getcopyfight.com/
    6 Tags:               copyright, copyfight, anti, shortcode, infringement, copy, protect, post, page, plugin, plagiarism, duplicate, widget, admin, data, noindex, nofollow, languages, English, Deutsch, Español, Nederlands
     6Tags:               copyright, copyfight, encryption, cypher, cipher, encrypt, anti, shortcode, infringement, copy, paste, protect, post, page, plugin, plagiarism, duplicate, widget, admin, data, noindex, nofollow, languages, English, Deutsch, Español, Nederlands
    77Requires at least:  3.3.0
    88Tested up to:       4.5.3
    9 Stable tag:         1.5.3
     9Stable tag:         1.5.4
    1010License:            GPLv2 or later
    1111License URI:        http://www.gnu.org/licenses/gpl-2.0.html
  • copyfight/trunk/views/config.php

    r1439065 r1447113  
    11<?php if ( strlen(get_option( 'copyfight_api_key')) > 0 ) {
    22    $response = call_user_func( COPYFIGHT_CLASS_ADMIN . '::get_api_health' );
    3     if ( $response->status->http == '0' || $response->status->mysql == '0' ) {
     3    if ( !empty( $response->status ) && ( $response->status->http == '0' || $response->status->mysql == '0' ) ) {
    44        $api_status = __( 'Service disruption', 'copyfight' );
    55        $api_status_image = '<img alt="' . $api_status . '" src="' . COPYFIGHT_PLUGIN_URL . '_inc/img/icn-red.png" />';
Note: See TracChangeset for help on using the changeset viewer.