Changeset 1447113
- Timestamp:
- 07/01/2016 10:11:35 AM (10 years ago)
- Location:
- copyfight
- Files:
-
- 66 added
- 5 edited
-
tags/1.5.4 (added)
-
tags/1.5.4/LICENSE.txt (added)
-
tags/1.5.4/_inc (added)
-
tags/1.5.4/_inc/css (added)
-
tags/1.5.4/_inc/css/copyfight-admin.css (added)
-
tags/1.5.4/_inc/css/copyfight-admin.min.css (added)
-
tags/1.5.4/_inc/css/copyfight-cdn.css (added)
-
tags/1.5.4/_inc/css/copyfight-cdn.min.css (added)
-
tags/1.5.4/_inc/css/copyfight.css (added)
-
tags/1.5.4/_inc/css/copyfight.min.css (added)
-
tags/1.5.4/_inc/css/copyfight.php (added)
-
tags/1.5.4/_inc/css/genericons.css (added)
-
tags/1.5.4/_inc/css/genericons.min.css (added)
-
tags/1.5.4/_inc/css/noprint.css (added)
-
tags/1.5.4/_inc/css/noprint.min.css (added)
-
tags/1.5.4/_inc/css/print.css (added)
-
tags/1.5.4/_inc/css/print.min.css (added)
-
tags/1.5.4/_inc/fonts (added)
-
tags/1.5.4/_inc/fonts/Genericons.ttf (added)
-
tags/1.5.4/_inc/fonts/Genericons.woff (added)
-
tags/1.5.4/_inc/img (added)
-
tags/1.5.4/_inc/img/certificate-background.png (added)
-
tags/1.5.4/_inc/img/copyfight-business-plan.png (added)
-
tags/1.5.4/_inc/img/copyfight-dashicon-01.svg (added)
-
tags/1.5.4/_inc/img/copyfight-dashicon.data (added)
-
tags/1.5.4/_inc/img/copyfight-dashicon.svg (added)
-
tags/1.5.4/_inc/img/copyfight-enterprise-plan.png (added)
-
tags/1.5.4/_inc/img/copyfight-freemium-plan.png (added)
-
tags/1.5.4/_inc/img/copyfight-logo-color.svg (added)
-
tags/1.5.4/_inc/img/copyfight-logo-dark.svg (added)
-
tags/1.5.4/_inc/img/copyfight-logo-light.svg (added)
-
tags/1.5.4/_inc/img/copyfight-logo.png (added)
-
tags/1.5.4/_inc/img/copyfight-premium-plan.png (added)
-
tags/1.5.4/_inc/img/icn-green.png (added)
-
tags/1.5.4/_inc/img/icn-grey-black.png (added)
-
tags/1.5.4/_inc/img/icn-red.png (added)
-
tags/1.5.4/_inc/img/icn-yellow.png (added)
-
tags/1.5.4/_inc/js (added)
-
tags/1.5.4/_inc/js/copyfight-admin.js (added)
-
tags/1.5.4/_inc/js/copyfight-admin.min.js (added)
-
tags/1.5.4/_inc/js/copyfight.js (added)
-
tags/1.5.4/_inc/js/copyfight.min.js (added)
-
tags/1.5.4/cache (added)
-
tags/1.5.4/cache/fontlist.txt (added)
-
tags/1.5.4/cache/index.php (added)
-
tags/1.5.4/class.copyfight-admin.php (added)
-
tags/1.5.4/class.copyfight.php (added)
-
tags/1.5.4/copyfight.php (added)
-
tags/1.5.4/index.php (added)
-
tags/1.5.4/languages (added)
-
tags/1.5.4/languages/copyfight-de_DE.mo (added)
-
tags/1.5.4/languages/copyfight-de_DE.po (added)
-
tags/1.5.4/languages/copyfight-es_ES.mo (added)
-
tags/1.5.4/languages/copyfight-es_ES.po (added)
-
tags/1.5.4/languages/copyfight-nl_NL.mo (added)
-
tags/1.5.4/languages/copyfight-nl_NL.po (added)
-
tags/1.5.4/languages/copyfight-zh_CN.mo (added)
-
tags/1.5.4/languages/copyfight-zh_CN.po (added)
-
tags/1.5.4/readme.txt (added)
-
tags/1.5.4/uninstall.php (added)
-
tags/1.5.4/views (added)
-
tags/1.5.4/views/config.php (added)
-
tags/1.5.4/views/index.php (added)
-
tags/1.5.4/views/notice.php (added)
-
tags/1.5.4/views/plans.php (added)
-
tags/1.5.4/widgets.php (added)
-
trunk/class.copyfight-admin.php (modified) (4 diffs)
-
trunk/class.copyfight.php (modified) (3 diffs)
-
trunk/copyfight.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/views/config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
copyfight/trunk/class.copyfight-admin.php
r1439065 r1447113 409 409 410 410 $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' ) ) { 412 412 set_transient( 'copyfight_transient', $post_id, 60 ); 413 413 update_post_meta( $post_id, '_copyfight_status', 'disabled' ); … … 496 496 if ( !file_exists( $font ) || $overwrite ) { 497 497 $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 ); 499 500 file_put_contents( $font, $response ); 500 501 chmod( $font, $permissions ); … … 519 520 if ( !file_exists( $font ) ) { 520 521 $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 ); 522 524 file_put_contents( $font, $response ); 523 525 chmod( $font, $permissions ); … … 680 682 echo '<p>' . __( 'A Copyfight error has occurred...', 'copyfight' ); 681 683 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 689 687 public static function ajax() { 690 688 -
copyfight/trunk/class.copyfight.php
r1443274 r1447113 240 240 wp_enqueue_script( 'copyfight' ); 241 241 242 //debugging243 $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 248 242 } else { 249 243 … … 283 277 } 284 278 285 /**286 * http://ajax.nl/ !!!287 */288 279 public static function ajax() { 289 280 … … 309 300 $unicode = strtoupper( $unicode ); 310 301 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 } 312 305 } else { 313 306 $response .= ' '; -
copyfight/trunk/copyfight.php
r1443274 r1447113 4 4 Plugin URI: https://getcopyfight.com/ 5 5 Description: Copyright protection 6 Version: 1.5. 36 Version: 1.5.4 7 7 Author: Copyfight 8 8 Author URI: https://getcopyfight.com/ … … 35 35 add_action( 'plugins_loaded', 'copyfight_textdomain' ); 36 36 37 define( 'COPYFIGHT_VERSION', '1.5. 3' );37 define( 'COPYFIGHT_VERSION', '1.5.4' ); 38 38 define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.3.0' ); 39 39 define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
copyfight/trunk/readme.txt
r1443283 r1447113 4 4 Contributors: Christopher Starke, Roman Macek, Marcus Juhl, Farhan Burns, Gerasimos Sozonov, Uno Dahlberg, Jason Hamburg, Amanda Seltzer, Eduard Stula 5 5 Donate 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, Nederlands6 Tags: 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 7 7 Requires at least: 3.3.0 8 8 Tested up to: 4.5.3 9 Stable tag: 1.5. 39 Stable tag: 1.5.4 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
copyfight/trunk/views/config.php
r1439065 r1447113 1 1 <?php if ( strlen(get_option( 'copyfight_api_key')) > 0 ) { 2 2 $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' ) ) { 4 4 $api_status = __( 'Service disruption', 'copyfight' ); 5 5 $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.