Changeset 1977760
- Timestamp:
- 11/21/2018 12:11:01 AM (7 years ago)
- Location:
- ose-lets-encrypt
- Files:
-
- 6 edited
- 1 copied
-
tags/1.2.8 (copied) (copied from ose-lets-encrypt/trunk)
-
tags/1.2.8/README.txt (modified) (2 diffs)
-
tags/1.2.8/cron.php (modified) (1 diff)
-
tags/1.2.8/ose-letsencrypt.php (modified) (4 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/cron.php (modified) (1 diff)
-
trunk/ose-letsencrypt.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ose-lets-encrypt/tags/1.2.8/README.txt
r1977024 r1977760 5 5 Tested up to: 4.9.8 6 6 Requires PHP: 5.3 7 Stable tag: 1.2. 7.27 Stable tag: 1.2.8 8 8 License: GNU General Public License v3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 64 64 65 65 == Changelog == 66 = 1.2.8 67 * Added API function for SSL certificate update 68 66 69 = 1.2.7.2 67 70 * Improve ACME challenge test function -
ose-lets-encrypt/tags/1.2.8/cron.php
r1976512 r1977760 35 35 if(file_exists($wp_load)) { 36 36 require($wp_load); 37 wp_cache_delete('oseletsencrypt_data', 'options'); 38 $options = get_option('oseletsencrypt_data', array()); 39 if ($options['web_token'] == $_POST['web_token']) { 40 $task = $_POST['task']; 41 if($task == 'saveSSL'){ 42 $oseletsencrypt = new Oseletsencrypt(); 43 $oseletsencrypt->saveSsl($_POST); 44 } 45 } 37 $oseletsencrypt = new Oseletsencrypt(); 38 $oseletsencrypt->sslUpdateActions($_POST); 46 39 } 47 40 } -
ose-lets-encrypt/tags/1.2.8/ose-letsencrypt.php
r1977024 r1977760 16 16 * Plugin URI: https://www.opensource-excellence.com/ose-free-ssl/ 17 17 * Description: OSE Free SSL is an easy-to-use plugin to create SSL certificates from Let’s Encrypt (https://letsencrypt.org) platform which provides free SSL certificates for everyone to turn on https protocol. 18 * Version: 1.2. 7.218 * Version: 1.2.8 19 19 * Author: Open Source Excellence 20 20 * Author URI: https://www.opensource-excellence.com/ose-free-ssl/ … … 29 29 */ 30 30 if(!defined('OSELETSENCRYPT_PLUGIN_VERSION')) 31 define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2. 7.2');31 define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2.8'); 32 32 if(!defined('OSELETSENCRYPT_URL')) 33 33 define('OSELETSENCRYPT_URL', plugin_dir_url( __FILE__ )); … … 94 94 'methods' => 'POST', 95 95 'callback' => array($this,'acmeChallengeActions') 96 ] ); 97 register_rest_route( 'ose/v1', 'sslupdate', [ 98 'methods' => 'POST', 99 'callback' => array($this,'sslUpdateActions') 96 100 ] ); 97 101 } … … 736 740 $this->acmeChallengeActions($request,false); 737 741 } 738 public function saveSsl($post){ 742 public function sslUpdateActions($request) { 743 $checked = $this->checkToken($request['web_token']); 744 if(!$checked){ 745 $this->returnJSON(false, __( 'Token not match!', 'ose-lets-encrypt' )); 746 exit; 747 } 748 $task = $request['task']; 749 if($task == 'saveSSL'){ 750 $this->saveSsl($request); 751 } 752 } 753 protected function saveSsl($post){ 739 754 $privatekey = $post['privatekey']; 740 755 $cert = $post['cert']; -
ose-lets-encrypt/trunk/README.txt
r1977024 r1977760 5 5 Tested up to: 4.9.8 6 6 Requires PHP: 5.3 7 Stable tag: 1.2. 7.27 Stable tag: 1.2.8 8 8 License: GNU General Public License v3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 64 64 65 65 == Changelog == 66 = 1.2.8 67 * Added API function for SSL certificate update 68 66 69 = 1.2.7.2 67 70 * Improve ACME challenge test function -
ose-lets-encrypt/trunk/cron.php
r1976512 r1977760 35 35 if(file_exists($wp_load)) { 36 36 require($wp_load); 37 wp_cache_delete('oseletsencrypt_data', 'options'); 38 $options = get_option('oseletsencrypt_data', array()); 39 if ($options['web_token'] == $_POST['web_token']) { 40 $task = $_POST['task']; 41 if($task == 'saveSSL'){ 42 $oseletsencrypt = new Oseletsencrypt(); 43 $oseletsencrypt->saveSsl($_POST); 44 } 45 } 37 $oseletsencrypt = new Oseletsencrypt(); 38 $oseletsencrypt->sslUpdateActions($_POST); 46 39 } 47 40 } -
ose-lets-encrypt/trunk/ose-letsencrypt.php
r1977024 r1977760 16 16 * Plugin URI: https://www.opensource-excellence.com/ose-free-ssl/ 17 17 * Description: OSE Free SSL is an easy-to-use plugin to create SSL certificates from Let’s Encrypt (https://letsencrypt.org) platform which provides free SSL certificates for everyone to turn on https protocol. 18 * Version: 1.2. 7.218 * Version: 1.2.8 19 19 * Author: Open Source Excellence 20 20 * Author URI: https://www.opensource-excellence.com/ose-free-ssl/ … … 29 29 */ 30 30 if(!defined('OSELETSENCRYPT_PLUGIN_VERSION')) 31 define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2. 7.2');31 define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2.8'); 32 32 if(!defined('OSELETSENCRYPT_URL')) 33 33 define('OSELETSENCRYPT_URL', plugin_dir_url( __FILE__ )); … … 94 94 'methods' => 'POST', 95 95 'callback' => array($this,'acmeChallengeActions') 96 ] ); 97 register_rest_route( 'ose/v1', 'sslupdate', [ 98 'methods' => 'POST', 99 'callback' => array($this,'sslUpdateActions') 96 100 ] ); 97 101 } … … 736 740 $this->acmeChallengeActions($request,false); 737 741 } 738 public function saveSsl($post){ 742 public function sslUpdateActions($request) { 743 $checked = $this->checkToken($request['web_token']); 744 if(!$checked){ 745 $this->returnJSON(false, __( 'Token not match!', 'ose-lets-encrypt' )); 746 exit; 747 } 748 $task = $request['task']; 749 if($task == 'saveSSL'){ 750 $this->saveSsl($request); 751 } 752 } 753 protected function saveSsl($post){ 739 754 $privatekey = $post['privatekey']; 740 755 $cert = $post['cert'];
Note: See TracChangeset
for help on using the changeset viewer.