Plugin Directory

Changeset 1977760


Ignore:
Timestamp:
11/21/2018 12:11:01 AM (7 years ago)
Author:
oseuk
Message:

Update to version 1.2.8

Location:
ose-lets-encrypt
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ose-lets-encrypt/tags/1.2.8/README.txt

    r1977024 r1977760  
    55Tested up to: 4.9.8
    66Requires PHP: 5.3
    7 Stable tag: 1.2.7.2
     7Stable tag: 1.2.8
    88License: GNU General Public License v3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    6464
    6565== Changelog ==
     66= 1.2.8
     67* Added API function for SSL certificate update
     68
    6669= 1.2.7.2
    6770* Improve ACME challenge test function
  • ose-lets-encrypt/tags/1.2.8/cron.php

    r1976512 r1977760  
    3535        if(file_exists($wp_load)) {
    3636            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);
    4639        }
    4740    }
  • ose-lets-encrypt/tags/1.2.8/ose-letsencrypt.php

    r1977024 r1977760  
    1616 * Plugin URI:        https://www.opensource-excellence.com/ose-free-ssl/
    1717 * 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.2
     18 * Version:           1.2.8
    1919 * Author:            Open Source Excellence
    2020 * Author URI:        https://www.opensource-excellence.com/ose-free-ssl/
     
    2929 */
    3030if(!defined('OSELETSENCRYPT_PLUGIN_VERSION'))
    31     define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2.7.2');
     31    define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2.8');
    3232if(!defined('OSELETSENCRYPT_URL'))
    3333    define('OSELETSENCRYPT_URL', plugin_dir_url( __FILE__ ));
     
    9494            'methods'   => 'POST',
    9595            'callback'  =>   array($this,'acmeChallengeActions')
     96        ] );
     97        register_rest_route( 'ose/v1', 'sslupdate', [
     98            'methods'   => 'POST',
     99            'callback'  =>   array($this,'sslUpdateActions')
    96100        ] );
    97101    }
     
    736740        $this->acmeChallengeActions($request,false);
    737741    }
    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){
    739754        $privatekey = $post['privatekey'];
    740755        $cert = $post['cert'];
  • ose-lets-encrypt/trunk/README.txt

    r1977024 r1977760  
    55Tested up to: 4.9.8
    66Requires PHP: 5.3
    7 Stable tag: 1.2.7.2
     7Stable tag: 1.2.8
    88License: GNU General Public License v3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    6464
    6565== Changelog ==
     66= 1.2.8
     67* Added API function for SSL certificate update
     68
    6669= 1.2.7.2
    6770* Improve ACME challenge test function
  • ose-lets-encrypt/trunk/cron.php

    r1976512 r1977760  
    3535        if(file_exists($wp_load)) {
    3636            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);
    4639        }
    4740    }
  • ose-lets-encrypt/trunk/ose-letsencrypt.php

    r1977024 r1977760  
    1616 * Plugin URI:        https://www.opensource-excellence.com/ose-free-ssl/
    1717 * 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.2
     18 * Version:           1.2.8
    1919 * Author:            Open Source Excellence
    2020 * Author URI:        https://www.opensource-excellence.com/ose-free-ssl/
     
    2929 */
    3030if(!defined('OSELETSENCRYPT_PLUGIN_VERSION'))
    31     define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2.7.2');
     31    define('OSELETSENCRYPT_PLUGIN_VERSION', '1.2.8');
    3232if(!defined('OSELETSENCRYPT_URL'))
    3333    define('OSELETSENCRYPT_URL', plugin_dir_url( __FILE__ ));
     
    9494            'methods'   => 'POST',
    9595            'callback'  =>   array($this,'acmeChallengeActions')
     96        ] );
     97        register_rest_route( 'ose/v1', 'sslupdate', [
     98            'methods'   => 'POST',
     99            'callback'  =>   array($this,'sslUpdateActions')
    96100        ] );
    97101    }
     
    736740        $this->acmeChallengeActions($request,false);
    737741    }
    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){
    739754        $privatekey = $post['privatekey'];
    740755        $cert = $post['cert'];
Note: See TracChangeset for help on using the changeset viewer.