Changeset 1503877
- Timestamp:
- 09/27/2016 05:31:04 PM (10 years ago)
- Location:
- cfiltering
- Files:
-
- 110 added
- 8 edited
-
tags/1.3.3 (added)
-
tags/1.3.3/.htaccess (added)
-
tags/1.3.3/README.md (added)
-
tags/1.3.3/apis (added)
-
tags/1.3.3/apis/access.php (added)
-
tags/1.3.3/apis/related-post.php (added)
-
tags/1.3.3/collaborative-filtering.php (added)
-
tags/1.3.3/controllers (added)
-
tags/1.3.3/controllers/001-setting.php (added)
-
tags/1.3.3/controllers/100-action.php (added)
-
tags/1.3.3/controllers/900-log.php (added)
-
tags/1.3.3/controllers/index.php (added)
-
tags/1.3.3/db-config.php (added)
-
tags/1.3.3/emblemmatic-c-filtering-logo-58.png (added)
-
tags/1.3.3/functions.php (added)
-
tags/1.3.3/index.php (added)
-
tags/1.3.3/languages (added)
-
tags/1.3.3/languages/CollaborativeFiltering-ja.mo (added)
-
tags/1.3.3/languages/CollaborativeFiltering-ja.po (added)
-
tags/1.3.3/lib (added)
-
tags/1.3.3/lib/apis (added)
-
tags/1.3.3/lib/apis/nonce.php (added)
-
tags/1.3.3/lib/base (added)
-
tags/1.3.3/lib/common (added)
-
tags/1.3.3/lib/common/010-defines.php (added)
-
tags/1.3.3/lib/common/030-base-class.php (added)
-
tags/1.3.3/lib/common/040-db.php (added)
-
tags/1.3.3/lib/common/050-db_config.php (added)
-
tags/1.3.3/lib/common/080-model-base.php (added)
-
tags/1.3.3/lib/common/090-api-base.php (added)
-
tags/1.3.3/lib/common/100-controller-base.php (added)
-
tags/1.3.3/lib/common/110-api-loader.php (added)
-
tags/1.3.3/lib/common/120-controller-loader.php (added)
-
tags/1.3.3/lib/common/130-service-base.php (added)
-
tags/1.3.3/lib/library (added)
-
tags/1.3.3/lib/library/YUI-CSS-compressor (added)
-
tags/1.3.3/lib/library/YUI-CSS-compressor/cssmin.php (added)
-
tags/1.3.3/lib/library/jsmin-php (added)
-
tags/1.3.3/lib/library/jsmin-php/README.md (added)
-
tags/1.3.3/lib/library/jsmin-php/jsmin.php (added)
-
tags/1.3.3/lib/library/jsmin-php/test (added)
-
tags/1.3.3/lib/library/jsmin-php/test/setup.php (added)
-
tags/1.3.3/lib/library/jsmin-php/test/test.php (added)
-
tags/1.3.3/lib/library/jsmin-php/test/utf8-with-bom.js (added)
-
tags/1.3.3/lib/load.php (added)
-
tags/1.3.3/lib/public (added)
-
tags/1.3.3/lib/public/css (added)
-
tags/1.3.3/lib/public/css/index.php (added)
-
tags/1.3.3/lib/public/fonts (added)
-
tags/1.3.3/lib/public/fonts/index.php (added)
-
tags/1.3.3/lib/public/img (added)
-
tags/1.3.3/lib/public/img/back.png (added)
-
tags/1.3.3/lib/public/img/index.php (added)
-
tags/1.3.3/lib/public/img/loading.gif (added)
-
tags/1.3.3/lib/public/index.php (added)
-
tags/1.3.3/lib/public/js (added)
-
tags/1.3.3/lib/public/js/index.php (added)
-
tags/1.3.3/lib/public/plugins (added)
-
tags/1.3.3/lib/public/plugins/index.php (added)
-
tags/1.3.3/lib/services (added)
-
tags/1.3.3/lib/services/device-service.php (added)
-
tags/1.3.3/lib/services/minify-service.php (added)
-
tags/1.3.3/lib/services/option-service.php (added)
-
tags/1.3.3/lib/services/post-service.php (added)
-
tags/1.3.3/lib/services/system-service.php (added)
-
tags/1.3.3/lib/services/user-service.php (added)
-
tags/1.3.3/lib/views (added)
-
tags/1.3.3/lib/views/ajaxurl-admin.php (added)
-
tags/1.3.3/lib/views/ajaxurl.php (added)
-
tags/1.3.3/lib/views/modal-script.php (added)
-
tags/1.3.3/lib/views/modal-style.php (added)
-
tags/1.3.3/logs (added)
-
tags/1.3.3/models (added)
-
tags/1.3.3/models/access.php (added)
-
tags/1.3.3/models/index.php (added)
-
tags/1.3.3/models/number.php (added)
-
tags/1.3.3/public (added)
-
tags/1.3.3/public/css (added)
-
tags/1.3.3/public/css/index.php (added)
-
tags/1.3.3/public/fonts (added)
-
tags/1.3.3/public/fonts/index.php (added)
-
tags/1.3.3/public/img (added)
-
tags/1.3.3/public/img/index.php (added)
-
tags/1.3.3/public/img/logo.png (added)
-
tags/1.3.3/public/index.php (added)
-
tags/1.3.3/public/js (added)
-
tags/1.3.3/public/js/index.php (added)
-
tags/1.3.3/public/plugins (added)
-
tags/1.3.3/public/plugins/index.php (added)
-
tags/1.3.3/readme.txt (added)
-
tags/1.3.3/screenshot-1.png (added)
-
tags/1.3.3/screenshot-2.png (added)
-
tags/1.3.3/services (added)
-
tags/1.3.3/services/ajax.php (added)
-
tags/1.3.3/services/calculate.php (added)
-
tags/1.3.3/services/clear.php (added)
-
tags/1.3.3/services/index.php (added)
-
tags/1.3.3/services/number.php (added)
-
tags/1.3.3/services/show-related-post.php (added)
-
tags/1.3.3/services/update.php (added)
-
tags/1.3.3/settings.php (added)
-
tags/1.3.3/uninstall.php (added)
-
tags/1.3.3/update.json (added)
-
tags/1.3.3/views (added)
-
tags/1.3.3/views/action.php (added)
-
tags/1.3.3/views/index.php (added)
-
tags/1.3.3/views/log.php (added)
-
tags/1.3.3/views/setting.php (added)
-
tags/1.3.3/views/show-related-post-script.php (added)
-
tags/1.3.3/views/show-related-post.php (added)
-
trunk/collaborative-filtering.php (modified) (2 diffs)
-
trunk/languages/CollaborativeFiltering-ja.mo (modified) (previous)
-
trunk/languages/CollaborativeFiltering-ja.po (modified) (2 diffs)
-
trunk/lib/common/030-base-class.php (modified) (1 diff)
-
trunk/lib/common/090-api-base.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/settings.php (modified) (1 diff)
-
trunk/update.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cfiltering/trunk/collaborative-filtering.php
r1503847 r1503877 5 5 Description: Recommendation plugin using collaborative filtering 6 6 Author: 123teru321 7 Version: 1.3. 27 Version: 1.3.3 8 8 Author URI: http://technote.space/ 9 9 Text Domain: CollaborativeFiltering … … 27 27 28 28 //plugin version 29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.3. 2' );29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.3.3' ); 30 30 31 31 //plugin file name -
cfiltering/trunk/languages/CollaborativeFiltering-ja.po
r1503356 r1503877 3 3 "Project-Id-Version: collaborative-filtering0.0.0.0.1\n" 4 4 "POT-Creation-Date: 2016-07-19 20:40+0900\n" 5 "PO-Revision-Date: 2016-09-2 7 14:58+0900\n"5 "PO-Revision-Date: 2016-09-28 02:09+0900\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 185 185 msgid "whether to use admin-ajax.php on front page" 186 186 msgstr "フロントでadmin-ajax.phpを使用するかどうか" 187 188 msgid "whether to check referer when ajax access without nonce check" 189 msgstr "nonceチェックをせずにAjaxアクセスする場合にリファラをチェックするかどうか" -
cfiltering/trunk/lib/common/030-base-class.php
r1503368 r1503877 33 33 "show_result" => array( "label" => "whether to set button to show result", "type" => "bool", "default" => COLLABORATIVE_FILTERING_SHOW_RESULT ), 34 34 "front_admin_ajax" => array( "label" => "whether to use admin-ajax.php on front page", "type" => "bool", "default" => COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX ), 35 "check_referer" => array( "label" => "whether to check referer when ajax access without nonce check", "type" => "bool", "default" => COLLABORATIVE_FILTERING_CHECK_REFERER ), 35 36 ); 36 37 -
cfiltering/trunk/lib/common/090-api-base.php
r1502487 r1503877 326 326 } 327 327 } else { 328 $host = $_SERVER['HTTP_REFERER']; 329 $str = parse_url( $host ); 330 $server_name = isset( $_SERVER['HTTP_X_FORWARDED_SERVER'] ) ? $_SERVER['HTTP_X_FORWARDED_SERVER'] : $_SERVER['SERVER_NAME']; 331 if ( !stristr( $str['host'], $server_name ) ) { 332 status_header( '403' ); 333 echo 'Forbidden'; 334 die; 328 if ( $this->apply_filters( 'check_referer', COLLABORATIVE_FILTERING_CHECK_REFERER ) ) { 329 $host = $_SERVER['HTTP_REFERER']; 330 $str = parse_url( $host ); 331 $server_name = isset( $_SERVER['HTTP_X_FORWARDED_SERVER'] ) ? $_SERVER['HTTP_X_FORWARDED_SERVER'] : $_SERVER['SERVER_NAME']; 332 if ( !stristr( $str['host'], $server_name ) ) { 333 status_header( '403' ); 334 echo 'Forbidden'; 335 die; 336 } 335 337 } 336 338 } -
cfiltering/trunk/readme.txt
r1503847 r1503877 32 32 33 33 == Changelog == 34 35 = 1.3.3 = 36 * 2016-09-28 Add filter to decide whether to check ajax referer 34 37 35 38 = 1.3.2 = -
cfiltering/trunk/settings.php
r1503356 r1503877 42 42 define( 'COLLABORATIVE_FILTERING_SHOW_RESULT', true ); 43 43 define( 'COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX', true ); 44 define( 'COLLABORATIVE_FILTERING_CHECK_REFERER', true ); 44 45 45 46 //default value -
cfiltering/trunk/update.json
r1503847 r1503877 3 3 "slug": "cfiltering", 4 4 "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip", 5 "version": "1.3. 2",5 "version": "1.3.3", 6 6 "tested": "4.6.1", 7 7 "homepage": "https://technote.space/",
Note: See TracChangeset
for help on using the changeset viewer.