Changeset 1503356
- Timestamp:
- 09/27/2016 06:42:37 AM (10 years ago)
- Location:
- cfiltering
- Files:
-
- 110 added
- 10 edited
-
tags/1.2.9 (added)
-
tags/1.2.9/.htaccess (added)
-
tags/1.2.9/README.md (added)
-
tags/1.2.9/apis (added)
-
tags/1.2.9/apis/access.php (added)
-
tags/1.2.9/apis/related-post.php (added)
-
tags/1.2.9/collaborative-filtering.php (added)
-
tags/1.2.9/controllers (added)
-
tags/1.2.9/controllers/001-setting.php (added)
-
tags/1.2.9/controllers/100-action.php (added)
-
tags/1.2.9/controllers/900-log.php (added)
-
tags/1.2.9/controllers/index.php (added)
-
tags/1.2.9/db-config.php (added)
-
tags/1.2.9/emblemmatic-c-filtering-logo-58.png (added)
-
tags/1.2.9/functions.php (added)
-
tags/1.2.9/index.php (added)
-
tags/1.2.9/languages (added)
-
tags/1.2.9/languages/CollaborativeFiltering-ja.mo (added)
-
tags/1.2.9/languages/CollaborativeFiltering-ja.po (added)
-
tags/1.2.9/lib (added)
-
tags/1.2.9/lib/apis (added)
-
tags/1.2.9/lib/apis/nonce.php (added)
-
tags/1.2.9/lib/base (added)
-
tags/1.2.9/lib/common (added)
-
tags/1.2.9/lib/common/010-defines.php (added)
-
tags/1.2.9/lib/common/030-base-class.php (added)
-
tags/1.2.9/lib/common/040-db.php (added)
-
tags/1.2.9/lib/common/050-db_config.php (added)
-
tags/1.2.9/lib/common/080-model-base.php (added)
-
tags/1.2.9/lib/common/090-api-base.php (added)
-
tags/1.2.9/lib/common/100-controller-base.php (added)
-
tags/1.2.9/lib/common/110-api-loader.php (added)
-
tags/1.2.9/lib/common/120-controller-loader.php (added)
-
tags/1.2.9/lib/common/130-service-base.php (added)
-
tags/1.2.9/lib/library (added)
-
tags/1.2.9/lib/library/YUI-CSS-compressor (added)
-
tags/1.2.9/lib/library/YUI-CSS-compressor/cssmin.php (added)
-
tags/1.2.9/lib/library/jsmin-php (added)
-
tags/1.2.9/lib/library/jsmin-php/README.md (added)
-
tags/1.2.9/lib/library/jsmin-php/jsmin.php (added)
-
tags/1.2.9/lib/library/jsmin-php/test (added)
-
tags/1.2.9/lib/library/jsmin-php/test/setup.php (added)
-
tags/1.2.9/lib/library/jsmin-php/test/test.php (added)
-
tags/1.2.9/lib/library/jsmin-php/test/utf8-with-bom.js (added)
-
tags/1.2.9/lib/load.php (added)
-
tags/1.2.9/lib/public (added)
-
tags/1.2.9/lib/public/css (added)
-
tags/1.2.9/lib/public/css/index.php (added)
-
tags/1.2.9/lib/public/fonts (added)
-
tags/1.2.9/lib/public/fonts/index.php (added)
-
tags/1.2.9/lib/public/img (added)
-
tags/1.2.9/lib/public/img/back.png (added)
-
tags/1.2.9/lib/public/img/index.php (added)
-
tags/1.2.9/lib/public/img/loading.gif (added)
-
tags/1.2.9/lib/public/index.php (added)
-
tags/1.2.9/lib/public/js (added)
-
tags/1.2.9/lib/public/js/index.php (added)
-
tags/1.2.9/lib/public/plugins (added)
-
tags/1.2.9/lib/public/plugins/index.php (added)
-
tags/1.2.9/lib/services (added)
-
tags/1.2.9/lib/services/device-service.php (added)
-
tags/1.2.9/lib/services/minify-service.php (added)
-
tags/1.2.9/lib/services/option-service.php (added)
-
tags/1.2.9/lib/services/post-service.php (added)
-
tags/1.2.9/lib/services/system-service.php (added)
-
tags/1.2.9/lib/services/user-service.php (added)
-
tags/1.2.9/lib/views (added)
-
tags/1.2.9/lib/views/ajaxurl-admin.php (added)
-
tags/1.2.9/lib/views/ajaxurl.php (added)
-
tags/1.2.9/lib/views/modal-script.php (added)
-
tags/1.2.9/lib/views/modal-style.php (added)
-
tags/1.2.9/logs (added)
-
tags/1.2.9/models (added)
-
tags/1.2.9/models/access.php (added)
-
tags/1.2.9/models/index.php (added)
-
tags/1.2.9/models/number.php (added)
-
tags/1.2.9/public (added)
-
tags/1.2.9/public/css (added)
-
tags/1.2.9/public/css/index.php (added)
-
tags/1.2.9/public/fonts (added)
-
tags/1.2.9/public/fonts/index.php (added)
-
tags/1.2.9/public/img (added)
-
tags/1.2.9/public/img/index.php (added)
-
tags/1.2.9/public/img/logo.png (added)
-
tags/1.2.9/public/index.php (added)
-
tags/1.2.9/public/js (added)
-
tags/1.2.9/public/js/index.php (added)
-
tags/1.2.9/public/plugins (added)
-
tags/1.2.9/public/plugins/index.php (added)
-
tags/1.2.9/readme.txt (added)
-
tags/1.2.9/screenshot-1.png (added)
-
tags/1.2.9/screenshot-2.png (added)
-
tags/1.2.9/services (added)
-
tags/1.2.9/services/ajax.php (added)
-
tags/1.2.9/services/calculate.php (added)
-
tags/1.2.9/services/clear.php (added)
-
tags/1.2.9/services/index.php (added)
-
tags/1.2.9/services/number.php (added)
-
tags/1.2.9/services/show-related-post.php (added)
-
tags/1.2.9/services/update.php (added)
-
tags/1.2.9/settings.php (added)
-
tags/1.2.9/uninstall.php (added)
-
tags/1.2.9/update.json (added)
-
tags/1.2.9/views (added)
-
tags/1.2.9/views/action.php (added)
-
tags/1.2.9/views/index.php (added)
-
tags/1.2.9/views/log.php (added)
-
tags/1.2.9/views/setting.php (added)
-
tags/1.2.9/views/show-related-post-script.php (added)
-
tags/1.2.9/views/show-related-post.php (added)
-
trunk/.htaccess (modified) (1 diff)
-
trunk/collaborative-filtering.php (modified) (2 diffs)
-
trunk/controllers/100-action.php (modified) (1 diff)
-
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/110-api-loader.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/settings.php (modified) (1 diff)
-
trunk/update.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cfiltering/trunk/.htaccess
r1499554 r1503356 16 16 Allow from all 17 17 </FilesMatch> 18 19 #allow access to access 20 <FilesMatch "^ajax$"> 21 Allow from all 22 RewriteRule ^(.*)$ /index.php [L] 23 </FilesMatch> -
cfiltering/trunk/collaborative-filtering.php
r1502487 r1503356 5 5 Description: Recommendation plugin using collaborative filtering 6 6 Author: 123teru321 7 Version: 1.2. 87 Version: 1.2.9 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.2. 8' );29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2.9' ); 30 30 31 31 //plugin file name -
cfiltering/trunk/controllers/100-action.php
r1497067 r1503356 70 70 $action = $actions[$_REQUEST['cf-action']]; 71 71 if ( is_callable( array( $this, $action['action'] ) ) ) { 72 $this-> $action['action']();72 $this->{$action['action']}(); 73 73 } 74 74 $this->do_action( 'did_action', $_REQUEST['cf-action'] ); -
cfiltering/trunk/languages/CollaborativeFiltering-ja.po
r1463753 r1503356 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-0 7-30 17:23+0900\n"5 "PO-Revision-Date: 2016-09-27 14:58+0900\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 182 182 msgid "data num" 183 183 msgstr "データ数" 184 185 msgid "whether to use admin-ajax.php on front page" 186 msgstr "フロントでadmin-ajax.phpを使用するかどうか" -
cfiltering/trunk/lib/common/030-base-class.php
r1463732 r1503356 32 32 "post_types" => array( "label" => "valid post types, which is separated by commas", "type" => "string", "default" => COLLABORATIVE_FILTERING_POST_TYPES ), 33 33 "show_result" => array( "label" => "whether to set button to show result", "type" => "bool", "default" => COLLABORATIVE_FILTERING_SHOW_RESULT ), 34 "front_admin_ajax" => array( "label" => "whether to use admin-ajax.php on front page", "type" => "bool", "default" => COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX ), 34 35 ); 35 36 -
cfiltering/trunk/lib/common/110-api-loader.php
r1463732 r1503356 14 14 private function __construct() 15 15 { 16 if ( $this->defined( 'DOING_AJAX' ) ) { 17 add_action( 'init', array( $this, 'setup' ) ); 18 } else { 19 if ( is_admin() ) { 20 add_action( 'admin_footer', array( $this, 'setup' ) ); 16 add_action( 'init', function () { 17 if ( $this->defined( 'DOING_AJAX' ) ) { 18 $this->setup(); 21 19 } else { 22 add_action( 'wp_footer', array( $this, 'setup' ) ); 20 if ( is_admin() ) { 21 add_action( 'admin_footer', array( $this, 'setup' ) ); 22 } else { 23 add_action( 'wp_footer', array( $this, 'setup' ) ); 24 } 23 25 } 24 } 26 } ); 25 27 } 26 28 … … 84 86 $cf_minify->register_script( $this->view( "ajaxurl-admin", false, array(), true ) ); 85 87 } else { 86 $cf_minify->register_script( $this->view( "ajaxurl", false, array( "ajaxurl" => admin_url( 'admin-ajax.php' ) ), true ) ); 88 global $cf_ajax; 89 $cf_minify->register_script( $this->view( "ajaxurl", false, array( "ajaxurl" => $cf_ajax->get_ajax_url() ), true ) ); 87 90 } 88 91 } -
cfiltering/trunk/readme.txt
r1502487 r1503356 4 4 Requires at least: 3.9.13 5 5 Tested up to: 4.6.1 6 Stable tag: 1.2. 86 Stable tag: 1.2.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 33 33 == Changelog == 34 35 = 1.2.9 = 36 * 2016-09-27 37 * Ajax access without using admin-ajax.php 38 * PHP7 34 39 35 40 = 1.2.8 = -
cfiltering/trunk/settings.php
r1463732 r1503356 41 41 define( 'COLLABORATIVE_FILTERING_POST_TYPES', 'post' ); 42 42 define( 'COLLABORATIVE_FILTERING_SHOW_RESULT', true ); 43 define( 'COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX', true ); 43 44 44 45 //default value 45 46 define( 'COLLABORATIVE_FILTERING_DEFAULT_SAMPLING_RATE', 1 ); 47 48 //ajax 49 define( 'COLLABORATIVE_FILTERING_AJAX_FILE', 'ajax' ); -
cfiltering/trunk/update.json
r1502487 r1503356 3 3 "slug": "cfiltering", 4 4 "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip", 5 "version": "1.2. 8",5 "version": "1.2.9", 6 6 "tested": "4.6.1", 7 7 "homepage": "https://technote.space/",
Note: See TracChangeset
for help on using the changeset viewer.