Plugin Directory

Changeset 3331464


Ignore:
Timestamp:
07/21/2025 12:00:41 PM (8 months ago)
Author:
teamwpminiorange
Message:

WP SSO Oauth v6.26.12 Release

Location:
miniorange-login-with-eve-online-google-facebook
Files:
353 added
9 edited

Legend:

Unmodified
Added
Removed
  • miniorange-login-with-eve-online-google-facebook/trunk/admin/partials/apps/partials/defaultapps.json

    r3288271 r3331464  
    3030        "label":"Discord", "type":"oauth", "image":"discord.png", "scope": "identify email", "domain": "", "discovery":"", "authorize": "https://discordapp.com/api/oauth2/authorize", "token": "https://discordapp.com/api/oauth2/token", "userinfo": "https://discordapp.com/api/users/@me", "guide":"https://plugins.miniorange.com/discord-single-sign-on-wordpress-sso-oauth-openid-connect/", "logo_class":"fa fa-lock"
    3131    , "video":"https://youtu.be/SKZ7uMJBoYY", "send_header":"1", "send_body":"0"
     32    },
     33    "criipto": {
     34        "label":"Criipto", "type":"oauth", "image":"Criipto.png", "scope": "openid", "domain":"", "discovery":"", "authorize": "https://YOUR_SUBDOMAIN.criipto.id/oauth2/authorize", "token": "https://YOUR_SUBDOMAIN.criipto.id/oauth2/token", "userinfo": "https://YOUR_SUBDOMAIN.criipto.id/oauth2/userInfo", "guide":"https://plugins.miniorange.com/wordpress-oauth-openid-connect-single-sign-on-sso-using-criipto", "logo_class":"fa fa-lock"
    3235    },
    3336    "keycloak": {
  • miniorange-login-with-eve-online-google-facebook/trunk/admin/partials/class-mo-oauth-client-admin-menu.php

    r3293145 r3331464  
    3131        return;
    3232    }
    33     wp_enqueue_style( 'mo_oauth_admin_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/admin.min.css', array(), MO_OAUTH_CSS_JS_VERSION );
    34     wp_enqueue_style( 'mo_oauth_admin_settings_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/style_settings.min.css', array(), MO_OAUTH_CSS_JS_VERSION );
    35     wp_enqueue_style( 'mo_oauth_admin_settings_font_awesome', plugin_dir_url( dirname( __FILE__ ) ) . 'css/font-awesome.min.css', array(), '4.7.0' );
    36     wp_enqueue_style( 'mo_oauth_admin_settings_phone_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/phone.min.css', array(), '0.0.2' );
    37     wp_enqueue_style( 'mo_oauth_admin_settings_datatable_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/jquery.dataTables.min.css', array(), '3.6.0' );
    38     wp_enqueue_style( 'mo_oauth_admin_settings_inteltelinput_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/intlTelInput.min.css', array(), '17.0.19' );
    39     wp_enqueue_style( 'mo_oauth_admin_settings_jquery_ui_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/jquery-ui.min.css', array(), '1.12.1' );
    40     wp_enqueue_style( 'mo_oauth_admin_settings_overall_font_style', plugin_dir_url( dirname( __FILE__ ) ) . 'css/fontNunito.min.css', array(), '1.0.0' );
     33    wp_enqueue_style( 'mo_oauth_admin_style', plugin_dir_url( __DIR__ ) . 'css/admin.min.css', array(), MO_OAUTH_CSS_JS_VERSION );
     34    wp_enqueue_style( 'mo_oauth_admin_settings_style', plugin_dir_url( __DIR__ ) . 'css/style_settings.min.css', array(), MO_OAUTH_CSS_JS_VERSION );
     35    wp_enqueue_style( 'mo_oauth_admin_settings_font_awesome', plugin_dir_url( __DIR__ ) . 'css/font-awesome.min.css', array(), '4.7.0' );
     36    wp_enqueue_style( 'mo_oauth_admin_settings_phone_style', plugin_dir_url( __DIR__ ) . 'css/phone.min.css', array(), '0.0.2' );
     37    wp_enqueue_style( 'mo_oauth_admin_settings_datatable_style', plugin_dir_url( __DIR__ ) . 'css/jquery.dataTables.min.css', array(), '3.6.0' );
     38    wp_enqueue_style( 'mo_oauth_admin_settings_inteltelinput_style', plugin_dir_url( __DIR__ ) . 'css/intlTelInput.min.css', array(), '17.0.19' );
     39    wp_enqueue_style( 'mo_oauth_admin_settings_jquery_ui_style', plugin_dir_url( __DIR__ ) . 'css/jquery-ui.min.css', array(), '1.12.1' );
     40    wp_enqueue_style( 'mo_oauth_admin_settings_overall_font_style', plugin_dir_url( __DIR__ ) . 'css/fontNunito.min.css', array(), '1.0.0' );
    4141}
    4242
     
    5050        return;
    5151    }
    52     wp_enqueue_script( 'mo_oauth_admin_script', plugin_dir_url( dirname( __FILE__ ) ) . 'js/admin.min.js', array(), $ver = MO_OAUTH_CSS_JS_VERSION, false );
    53     wp_enqueue_script( 'mo_oauth_admin_settings_script', plugin_dir_url( dirname( __FILE__ ) ) . 'js/settings.min.js', array(), $ver = MO_OAUTH_CSS_JS_VERSION, false );
    54     wp_enqueue_script( 'mo_oauth_admin_settings_phone_script', plugin_dir_url( dirname( __FILE__ ) ) . 'js/phone.min.js', array(), $ver = '0.8.3', false );
    55     wp_enqueue_script( 'mo_oauth_admin_settings_datatable_script', plugin_dir_url( dirname( __FILE__ ) ) . 'js/jquery.dataTables.min.js', array(), $ver = '1.10.20', false );
     52    wp_enqueue_script( 'mo_oauth_admin_script', plugin_dir_url( __DIR__ ) . 'js/admin.min.js', array(), $ver = MO_OAUTH_CSS_JS_VERSION, false );
     53    wp_enqueue_script( 'mo_oauth_admin_settings_script', plugin_dir_url( __DIR__ ) . 'js/settings.min.js', array(), $ver = MO_OAUTH_CSS_JS_VERSION, false );
     54    wp_enqueue_script( 'mo_oauth_admin_settings_phone_script', plugin_dir_url( __DIR__ ) . 'js/phone.min.js', array(), $ver = '0.8.3', false );
     55    wp_enqueue_script( 'mo_oauth_admin_settings_datatable_script', plugin_dir_url( __DIR__ ) . 'js/jquery.dataTables.min.js', array(), $ver = '1.10.20', false );
    5656    wp_enqueue_script( 'jquery-ui-datepicker' );
    5757    wp_enqueue_script( 'mo_oauth_admin_settings_jquery-ui3', includes_url() . 'js/jquery/ui/datepicker.min.js', array(), $ver = false, false );
    58     wp_enqueue_script( 'mo_oauth_admin_settings_inteltelinput', plugin_dir_url( dirname( __FILE__ ) ) . 'js/intlTelInput.min.js', array(), $ver = '13.0.4', false );
     58    wp_enqueue_script( 'mo_oauth_admin_settings_inteltelinput', plugin_dir_url( __DIR__ ) . 'js/intlTelInput.min.js', array(), $ver = '13.0.4', false );
    5959}
    6060
     
    110110    /**
    111111     * Delete log file
    112      */
    113     public static function logfile_delete() {
    114 
    115         $mo_file_path1 = dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . get_option( 'mo_oauth_debug' ) . '.log';
    116         if ( file_exists( $mo_file_path1 ) ) {
    117             wp_delete_file( $mo_file_path1 );
    118         }
    119 
     112     *
     113     * @param string $log_file_path Path to the log file to be deleted.
     114     */
     115    public static function logfile_delete( $log_file_path ) {
     116        if ( file_exists( $log_file_path ) ) {
     117            wp_delete_file( $log_file_path );
     118        }
    120119    }
    121120
     
    131130        }
    132131
    133         $log_file_path = dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . get_option( 'mo_oauth_debug' ) . '.log';
     132        $log_file_path = MOOAuth_Debug::get_log_file_path();
    134133
    135134        $mo_log_enable = get_option( 'mo_debug_enable' );
    136135
    137136        $mo_oauth_debug = get_option( 'mo_oauth_debug' );
    138 
    139         if ( 'on' === $mo_log_enable ) {
    140             $key            = 604800;
    141             $mo_debug_times = get_option( 'mo_debug_time' );
    142             $mo_curr_time   = time();
    143 
    144             $mo_oauth_var = (int) ( ( $mo_curr_time - $mo_debug_times ) / ( $key ) );
    145             if ( $mo_oauth_var >= 1 ) {
    146                 update_option( 'mo_debug_time', $mo_debug_times + ( $mo_oauth_var * $key ) );
    147                 update_option( 'mo_debug_enable', 0 );
    148 
    149                 self::logfile_delete();
    150                 delete_option( 'mo_oauth_debug' );
     137        if ( 'on' === $mo_log_enable && ( ! $mo_oauth_debug || ! file_exists( $log_file_path ) ) ) {
     138            if ( ! $mo_oauth_debug ) {
     139                update_option( 'mo_oauth_debug', 'mo_oauth_debug' . uniqid() );
     140                $mo_oauth_debug = get_option( 'mo_oauth_debug' );
     141                $log_file_path  = MOOAuth_Debug::get_log_file_path();
    151142            }
    152         } else {
    153             self::logfile_delete();
    154             delete_option( 'mo_oauth_debug' );
    155         }
    156 
    157         if ( ( 'on' === $mo_log_enable && ! $mo_oauth_debug ) || ( 'on' === $mo_log_enable && ( ! file_exists( $log_file_path ) ) ) ) {
    158 
    159             update_option( 'mo_oauth_debug', 'mo_oauth_debug' . uniqid() );
    160             $mo_oauth_debugs = get_option( 'mo_oauth_debug' );
    161             $mo_file_addr2   = dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . $mo_oauth_debugs . '.log';
    162             if ( ! function_exists( 'request_filesystem_credentials' ) ) {
    163                 require_once ABSPATH . 'wp-admin/includes/file.php';
    164             }
    165 
    166             $credentials = request_filesystem_credentials( site_url() );
    167             if ( ! WP_Filesystem( $credentials ) ) {
    168                 return;
    169             }
    170             global $wp_filesystem;
    171 
    172             if ( $wp_filesystem->put_contents( $mo_file_addr2, '', FS_CHMOD_FILE ) ) {
    173                 $wp_filesystem->chmod( $mo_file_addr2, 0644 );
    174                 update_option( 'mo_debug_check', 1 );
    175                 MOOAuth_Debug::mo_oauth_log( '' );
    176                 update_option( 'mo_debug_check', 0 );
    177             } else {
    178                 update_option( 'mo_debug_check', 0 ); // Handle failure.
     143            if ( ! file_exists( $log_file_path ) ) {
     144                if ( ! function_exists( 'request_filesystem_credentials' ) ) {
     145                    require_once ABSPATH . 'wp-admin/includes/file.php';
     146                }
     147                $credentials = request_filesystem_credentials( site_url() );
     148                if ( WP_Filesystem( $credentials ) ) {
     149                    global $wp_filesystem;
     150                    $log_content = 'This is the miniOrange OAuth plugin Debug Log file';
     151                    $log_dir     = dirname( $log_file_path );
     152                    if ( ! $wp_filesystem->is_dir( $log_dir ) ) {
     153                        $wp_filesystem->mkdir( $log_dir, FS_CHMOD_DIR );
     154                    }
     155                    if ( $wp_filesystem->put_contents( $log_file_path, $log_content, FS_CHMOD_FILE ) ) {
     156                        $wp_filesystem->chmod( $log_file_path, 0644 );
     157                    }
     158                }
    179159            }
    180160        }
     
    303283            <?php
    304284        }
    305 
    306285    }
    307286
  • miniorange-login-with-eve-online-google-facebook/trunk/admin/partials/setup_wizard/handler/class-mo-oauth-wizard-ajax.php

    r3293145 r3331464  
    3434            wp_send_json( 'error' );
    3535        }
    36         if ( current_user_can( 'administrator' ) && ! empty( $_POST['mo_oauth_option'] ) ) {
     36        if ( current_user_can( 'manage_options' ) && ! empty( $_POST['mo_oauth_option'] ) ) {
    3737            switch ( sanitize_text_field( wp_unslash( $_POST['mo_oauth_option'] ) ) ) {
    3838                case 'save_draft':
     
    8282        }
    8383
    84         $defaultapps     = file_get_contents( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . '/apps/partials/defaultapps.json' ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Using file_put_contents to fetch local file and not remote file.
     84        $defaultapps     = file_get_contents( dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . '/apps/partials/defaultapps.json' ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Using file_put_contents to fetch local file and not remote file.
    8585        $defaultappsjson = json_decode( $defaultapps );
    8686        $appname         = $app['mo_oauth_appId'];
     
    191191        }
    192192        $newapp          = array();
    193         $defaultapps     = file_get_contents( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . '/apps/partials/defaultapps.json' ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Using file_put_contents to fetch local file and not remote file.
     193        $defaultapps     = file_get_contents( dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . '/apps/partials/defaultapps.json' ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Using file_put_contents to fetch local file and not remote file.
    194194        $defaultappsjson = json_decode( $defaultapps );
    195195        $appname         = $app['mo_oauth_appId'];
     
    294294                update_option( 'mo_oauth_debug', 'mo_oauth_debug' . uniqid() );
    295295            }
    296             $mo_oauth_log_file = dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . DIRECTORY_SEPARATOR . get_option( 'mo_oauth_debug' ) . '.log';
     296
     297            // Use uploads directory instead of plugin directory.
     298            $mo_oauth_log_file = MOOAuth_Debug::get_log_file_path();
     299
     300            // Make sure log directory exists.
     301            if ( ! file_exists( $log_dir ) ) {
     302                wp_mkdir_p( $log_dir );
     303            }
     304
    297305            if ( ! function_exists( 'request_filesystem_credentials' ) ) {
    298306                require_once ABSPATH . 'wp-admin/includes/file.php';
     
    303311            }
    304312            global $wp_filesystem;
    305             $log_content = '';
     313            $log_content = 'This is the miniOrange OAuth plugin Debug Log file';
    306314            if ( $wp_filesystem->put_contents( $mo_oauth_log_file, $log_content, FS_CHMOD_FILE ) ) {
    307315                $wp_filesystem->chmod( $mo_oauth_log_file, 0644 );
     
    372380        }
    373381        return $new_scopes;
    374 
    375382    }
    376383
     
    393400
    394401        return $array;
    395 
    396402    }
    397403    /**
     
    407413            array_push( $result, array_values( get_option( 'mo_oauth_apps_list' ) )[0]['username_attr'] );
    408414        } else {
    409             $mo_oauth_log_file = dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . DIRECTORY_SEPARATOR . get_option( 'mo_oauth_debug' ) . '.log';
     415
     416            $mo_oauth_log_file = MOOAuth_Debug::get_log_file_path();
    410417            if ( file_exists( $mo_oauth_log_file ) ) {
    411                 $file = file_get_contents( $mo_oauth_log_file ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Using file_put_contents to fetch local file and not remote file.
     418                $file = file_get_contents( $mo_oauth_log_file );//phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Using file_put_contents to fetch local file and not remote file.
    412419            } else {
    413420                $file = '';
     
    432439        delete_option( 'mo_oauth_setup_wizard_app' );
    433440    }
    434 
    435 }new MO_OAuth_Wizard_Ajax();
    436 
     441}
     442new MO_OAuth_Wizard_Ajax();
  • miniorange-login-with-eve-online-google-facebook/trunk/admin/partials/support/class-mo-oauth-client-support.php

    r3293145 r3331464  
    224224        ?>
    225225
    226 
    227226<div class="mo_enable_logs_wrapper mo_support_layout mo_oauth_outer_div">
    228227    <div class="mo_oauth_support_layout mo_enable_logs">
     
    242241                    </label>
    243242
    244     </form>
     243        </form>
    245244                    <p>
    246245                        <b>
  • miniorange-login-with-eve-online-google-facebook/trunk/class-mooauth-debug.php

    r3293145 r3331464  
    1515
    1616    /**
     17     * Get the log file path
     18     *
     19     * @return string
     20     */
     21    public static function get_log_file_path() {
     22
     23        return MO_OAUTH_LOG_DIR . DIRECTORY_SEPARATOR . get_option( 'mo_oauth_debug' ) . '.log';
     24    }
     25
     26    /**
    1727     * Handle Debug log.
    1828     *
     
    2030     */
    2131    public static function mo_oauth_log( $mo_message ) {
    22         $mo_pluginlog = plugin_dir_path( __FILE__ ) . get_option( 'mo_oauth_debug' ) . '.log';
    23         $mo_time      = time();
    24         $mo_log       = '[' . gmdate( 'Y-m-d H:i:s', $mo_time ) . ' UTC] : ' . print_r( $mo_message, true ) . PHP_EOL; //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r -- This will be required for punching data in SSO debug logs.
     32        $mo_pluginlog = self::get_log_file_path();
     33
     34        $mo_time = time();
     35        $mo_log  = '[' . gmdate( 'Y-m-d H:i:s', $mo_time ) . ' UTC] : ' . print_r( $mo_message, true ) . PHP_EOL; //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r, WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Used for debugging purposes
     36
    2537        if ( get_option( 'mo_debug_enable' ) === 'on' ) {
    26             if ( get_option( 'mo_debug_check' ) ) {
    27                 $mo_message = 'This is miniOrange OAuth plugin Debug Log file';
    28                 error_log( $mo_message . PHP_EOL, 3, $mo_pluginlog ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- This will be required for punching data in SSO debug logs.
    29             } else {
    30                 error_log( $mo_log, 3, $mo_pluginlog ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- This will be required for punching data in SSO debug logs.
     38            // Only write the message if it's not empty or if it's not the initial check.
     39            if ( ! get_option( 'mo_debug_check' ) && ! empty( $mo_message ) ) {
     40                // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
     41                error_log( $mo_log . PHP_EOL, 3, $mo_pluginlog );
    3142            }
    3243        }
  • miniorange-login-with-eve-online-google-facebook/trunk/class-mooauth.php

    r3293145 r3331464  
    2828        add_action( 'admin_init', array( $this, 'mo_oauth_debug_log_ajax_hook' ) );
    2929        add_action( 'admin_init', array( $this, 'mo_oauth_client_support_script_hook' ) );
    30 
    3130    }
    3231
     
    6261            }
    6362        }
    64 
    6563    }
    6664
     
    7169     */
    7270    public function mo_oauth_reset_debug() {
    73         if ( isset( $_POST['mo_oauth_option'] ) && sanitize_text_field( wp_unslash( $_POST['mo_oauth_option'] ) ) === 'mo_oauth_reset_debug' && isset( $_REQUEST['mo_oauth_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_nonce'] ) ), 'mo-oauth-Debug-logs-unique-string-nonce' ) ) {
     71        if (
     72        isset( $_POST['mo_oauth_option'] ) &&
     73        sanitize_text_field( wp_unslash( $_POST['mo_oauth_option'] ) ) === 'mo_oauth_reset_debug' &&
     74        isset( $_REQUEST['mo_oauth_nonce'] ) &&
     75        wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_nonce'] ) ), 'mo-oauth-Debug-logs-unique-string-nonce' )
     76        ) {
    7477            $debug_enable = false;
    7578            if ( isset( $_POST['mo_oauth_mo_oauth_debug_check'] ) ) {
     
    7780            }
    7881            update_option( 'mo_debug_enable', $debug_enable );
    79             if ( get_option( 'mo_debug_enable' ) === 'on' ) {
     82
     83            $upload_dir   = wp_upload_dir();
     84            $log_filename = get_option( 'mo_oauth_debug' );
     85
     86            if ( 'on' === $debug_enable ) {
    8087                update_option( 'mo_debug_check', 1 );
    81             }
    82             if ( get_option( 'mo_debug_enable' ) === 'on' ) {
    83                 update_option( 'mo_oauth_debug', 'mo_oauth_debug' . uniqid() );
    84                 $mo_oauth_debugs = get_option( 'mo_oauth_debug' );
    85                 $mo_file_addr2   = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . $mo_oauth_debugs . '.log';
    86                 if ( ! function_exists( 'request_filesystem_credentials' ) ) {
    87                     require_once ABSPATH . 'wp-admin/includes/file.php';
    88                 }
    89                 $credentials = request_filesystem_credentials( site_url() );
    90                 if ( ! WP_Filesystem( $credentials ) ) {
    91                     return;
    92                 }
    93                 global $wp_filesystem;
    94                 if ( $wp_filesystem->put_contents( $mo_file_addr2, '', FS_CHMOD_FILE ) ) {
    95                     $wp_filesystem->chmod( $mo_file_addr2, 0644 );
    96                     update_option( 'mo_debug_check', 1 );
    97                     MOOAuth_Debug::mo_oauth_log( '' );
    98                     update_option( 'mo_debug_check', 0 );
    99                 } else {
    100                     update_option( 'mo_debug_check', 0 );
    101                 }
    102             }
    103 
    104             if ( get_option( 'mo_debug_enable' ) === 'off' ) {
    105                 $mo_oauth_debugs = get_option( 'mo_oauth_debug' );
    106                 $mo_file_addr2   = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . $mo_oauth_debugs . '.log';
    107                 delete_option( 'mo_oauth_debug' );
    108                 if ( file_exists( $mo_file_addr2 ) ) {
    109                     wp_delete_file( $mo_file_addr2 );
    110                 }
    111             }
    112 
    113             $switch_status             = get_option( 'mo_debug_enable' );
    114             $response['switch_status'] = $switch_status;
     88
     89                if ( ! $log_filename ) {
     90                    // Create a new debug filename if none exists.
     91                    update_option( 'mo_oauth_debug', 'mo_oauth_debug' . uniqid() );
     92                    $log_filename = get_option( 'mo_oauth_debug' );
     93                }
     94                $mo_file_path = MOOAuth_Debug::get_log_file_path();
     95
     96                // Create the file if it doesn't exist.
     97                if ( ! file_exists( $mo_file_path ) ) {
     98                    if ( ! function_exists( 'request_filesystem_credentials' ) ) {
     99                        require_once ABSPATH . 'wp-admin/includes/file.php';
     100                    }
     101                    $credentials = request_filesystem_credentials( site_url() );
     102                    if ( WP_Filesystem( $credentials ) ) {
     103                        global $wp_filesystem;
     104                        $log_content = 'This is the miniOrange OAuth plugin Debug Log file';
     105                        $wp_filesystem->put_contents( $mo_file_path, $log_content, FS_CHMOD_FILE );
     106                        $wp_filesystem->chmod( $mo_file_path, 0644 );
     107                    }
     108                }
     109
     110                update_option( 'mo_debug_check', 0 );
     111            }
     112
     113            if ( 'off' === $debug_enable ) {
     114                if ( $log_filename ) {
     115                    $mo_file_path = MOOAuth_Debug::get_log_file_path();
     116                    delete_option( 'mo_oauth_debug' );
     117                    if ( file_exists( $mo_file_path ) ) {
     118                        wp_delete_file( $mo_file_path );
     119                    }
     120                }
     121            }
     122            $response['switch_status'] = get_option( 'mo_debug_enable' );
    115123            wp_send_json( $response );
    116124        } else {
    117             echo 'error';}
    118     }
     125            echo 'error';
     126        }
     127    }
     128
     129
    119130
    120131
     
    126137            'miniorange-login-with-eve-online-google-facebook',
    127138            false,
    128             basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'languages'
     139            basename( __DIR__ ) . DIRECTORY_SEPARATOR . 'languages'
    129140        );
    130141    }
     
    137148        $message = get_option( 'message' );
    138149        echo "<div style='display:flex; margin:15px 19px 0px 0px; border-radius:5px;' class='" . esc_attr( $class ) . "'><div><img style='margin-bottom:-12px' src='" . esc_url( plugin_dir_url( __FILE__ ) ) . "/images/mo_oauth_error.png' ></div><div><p> &nbsp;&nbsp;" . esc_attr( $message ) . '</p></div></div>';
    139 
    140150    }
    141151
     
    158168    /*
    159169        *   Custom Intervals
    160         *   Name             dispname                Interval
    161         *   three_minutes    Every Three minutes    3  * MINUTE_IN_SECONDS (3 * 60)
    162         *   five_minutes     Every Five minutes      5  * MINUTE_IN_SECONDS (5 * 60)
    163         *   ten_minutes      Every Ten minutes       10 * MINUTE_IN_SECONDS (10 * 60)
    164         *   three_days       Every Three days        3  * 24 * 60 * MINUTE_IN_SECONDS
    165         *   five_days        Every Five days         5  * 24 * 60 * MINUTE_IN_SECONDS
     170        *   Name             dispname                Interval
     171        *   three_minutes    Every Three minutes    3  * MINUTE_IN_SECONDS (3 * 60)
     172        *   five_minutes     Every Five minutes      5  * MINUTE_IN_SECONDS (5 * 60)
     173        *   ten_minutes      Every Ten minutes       10 * MINUTE_IN_SECONDS (10 * 60)
     174        *   three_days       Every Three days        3  * 24 * 60 * MINUTE_IN_SECONDS
     175        *   five_days        Every Five days         5  * 24 * 60 * MINUTE_IN_SECONDS
    166176        *
    167177        *
    168178        *   Default Intervals
    169179        *   Name         dispname        Interval (in sec)
    170         *   hourly       Once Hourly    3600 (1 hour)
    171         *   twicedaily   Twice Daily    43200 (12 hours)
     180        *   hourly       Once Hourly    3600 (1 hour)
     181        *   twicedaily   Twice Daily    43200 (12 hours)
    172182        *   daily        Once Daily      86400 (1 day)
    173183        *   weekly       Once Weekly     604800 (1 week)
     
    272282            }
    273283        }
    274 
    275284    }
    276285
     
    280289     */
    281290    public function mo_login_widget_text_domain() {
    282         load_plugin_textdomain( 'miniorange-login-with-eve-online-google-facebook', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'languages' );
     291        load_plugin_textdomain( 'miniorange-login-with-eve-online-google-facebook', false, basename( __DIR__ ) . DIRECTORY_SEPARATOR . 'languages' );
    283292    }
    284293
     
    316325    public function miniorange_oauth_save_settings() {
    317326        if ( isset( $_GET['option'] ) && 'mo_oauth_client_setup_wizard' === sanitize_text_field( wp_unslash( $_GET['option'] ) ) ) {
    318             if ( current_user_can( 'administrator' ) ) {
     327            if ( current_user_can( 'manage_options' ) ) {
    319328                $setup_wizard = new MO_OAuth_Client_Setup_Wizard();
    320329                $setup_wizard->page();
     
    341350
    342351        if ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'change_miniorange' && isset( $_REQUEST['mo_oauth_goto_login_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_goto_login_form_field'] ) ), 'mo_oauth_goto_login_form' ) ) {
    343             if ( current_user_can( 'administrator' ) ) {
     352            if ( current_user_can( 'manage_options' ) ) {
    344353                $this->mo_oauth_deactivate();
    345354                return;
     
    347356        }
    348357
    349         if ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_clear_debug' && isset( $_REQUEST['mo_oauth_clear_debug_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_clear_debug_nonce'] ) ), 'mo_oauth_clear_debug' ) ) {
    350             $mo_filepath = plugin_dir_path( __FILE__ ) . get_option( 'mo_oauth_debug' ) . '.log';
     358        if (
     359        isset( $_POST['option'] ) &&
     360        sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_clear_debug' &&
     361        isset( $_REQUEST['mo_oauth_clear_debug_nonce'] ) &&
     362        wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_clear_debug_nonce'] ) ), 'mo_oauth_clear_debug' )
     363        ) {
     364            // Get uploads directory and log folder path.
     365            $upload_dir = wp_upload_dir();
     366
     367            $mo_filepath = MOOAuth_Debug::get_log_file_path();
    351368            if ( ! is_file( $mo_filepath ) ) {
    352                 echo( '404 File not found!' ); // file not found to clear logs.
    353                 exit();
    354             }
    355             // Ensure WP_Filesystem is available.
     369                    echo '404 File not found!';
     370                    exit();
     371            }
     372            // Load WP Filesystem API if not loaded.
    356373            if ( ! function_exists( 'request_filesystem_credentials' ) ) {
    357374                require_once ABSPATH . 'wp-admin/includes/file.php';
    358375            }
     376
    359377            $credentials = request_filesystem_credentials( site_url() );
    360378            if ( ! WP_Filesystem( $credentials ) ) {
    361379                return;
    362380            }
     381
    363382            global $wp_filesystem;
     383
     384            // Clear the file contents.
    364385            $wp_filesystem->put_contents( $mo_filepath, '', FS_CHMOD_FILE );
     386            // Write a default message to the log file.
    365387            $wp_filesystem->put_contents( $mo_filepath, 'This is the miniOrange OAuth plugin Debug Log file', FS_CHMOD_FILE );
     388
    366389            update_option( 'message', 'Debug Logs cleared successfully.' );
    367390            $this->mo_oauth_show_success_message();
    368391        }
    369 
    370         if ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_enable_debug_download' && isset( $_REQUEST['mo_oauth_enable_debug_download_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_enable_debug_download_nonce'] ) ), 'mo_oauth_enable_debug_download' ) ) {
    371             $mo_filepath = plugin_dir_path( __FILE__ ) . get_option( 'mo_oauth_debug' ) . '.log';
    372 
    373             if ( ! is_file( $mo_filepath ) ) {
    374                 echo( '404 File not found!' );
    375                 exit();
     392        if (
     393        isset( $_POST['option'] ) &&
     394        sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_enable_debug_download' &&
     395        isset( $_REQUEST['mo_oauth_enable_debug_download_nonce'] ) &&
     396        wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_enable_debug_download_nonce'] ) ), 'mo_oauth_enable_debug_download' )
     397        ) {
     398            // Prevent any extra output.
     399            while ( ob_get_level() ) {
     400                ob_end_clean();
     401            }
     402
     403            $upload_dir   = wp_upload_dir();
     404            $log_filename = get_option( 'mo_oauth_debug' );
     405            $mo_filepath  = MOOAuth_Debug::get_log_file_path();
     406            if ( ! file_exists( $mo_filepath ) ) {
     407                wp_die( '404 File not found!' );
    376408            }
    377409
     
    379411                require_once ABSPATH . 'wp-admin/includes/file.php';
    380412            }
    381 
    382413            $credentials = request_filesystem_credentials( site_url() );
    383414            if ( ! WP_Filesystem( $credentials ) ) {
    384                 return;
    385             }
    386 
     415                wp_die( 'Could not initialize filesystem.' );
     416            }
    387417            global $wp_filesystem;
    388             $file_content = $wp_filesystem->get_contents( $mo_filepath );
    389 
    390             if ( false !== $file_content ) {
    391                 $mo_filename = basename( $mo_filepath );
    392 
    393                 // Set headers for file download.
    394                 header( 'Content-Description: File Transfer' );
    395                 header( 'Content-Type: application/octet-stream' );
    396                 header( 'Content-Disposition: attachment; filename="' . $mo_filename . '"' );
    397                 header( 'Content-Transfer-Encoding: binary' );
    398                 header( 'Expires: 0' );
    399                 header( 'Cache-Control: must-revalidate' );
    400                 header( 'Pragma: public' );
    401                 header( 'Content-Length: ' . strlen( $file_content ) );
    402 
    403                 // Clear output buffer.
    404                 ob_clean();
    405                 flush();
    406 
    407                 // Output the file content.
    408                 echo esc_attr( $file_content );
    409             } else {
    410                 echo esc_html( 'Error reading the debug log file.' );
    411             }
     418
     419            header( 'Content-Description: File Transfer' );
     420            header( 'Content-Type: text/plain' );
     421            header( 'Content-Disposition: attachment; filename="' . basename( $mo_filepath ) . '"' );
     422            header( 'Content-Transfer-Encoding: binary' );
     423            header( 'Expires: 0' );
     424            header( 'Cache-Control: must-revalidate' );
     425            header( 'Pragma: public' );
     426            header( 'Content-Length: ' . filesize( $mo_filepath ) );
     427
     428            // Output the file contents using WP_Filesystem.
     429            echo esc_html( $wp_filesystem->get_contents( $mo_filepath ) );
     430            ob_flush();
     431            flush();
    412432            exit;
    413433        }
    414434
    415435        if ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_register_customer' && isset( $_REQUEST['mo_oauth_register_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_register_form_field'] ) ), 'mo_oauth_register_form' ) ) {
    416             if ( current_user_can( 'administrator' ) ) {
     436            if ( current_user_can( 'manage_options' ) ) {
    417437                $email            = '';
    418438                $phone            = '';
     
    485505
    486506        if ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_verify_customer' && isset( $_REQUEST['mo_oauth_verify_password_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_verify_password_form_field'] ) ), 'mo_oauth_verify_password_form' ) ) {   // register the admin to miniOrange.
    487             if ( current_user_can( 'administrator' ) ) {
     507            if ( current_user_can( 'manage_options' ) ) {
    488508                if ( mooauth_is_curl_installed() === 0 ) {
    489509                    return $this->mo_oauth_show_curl_error();
     
    521541            }
    522542        } elseif ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_add_app' && isset( $_REQUEST['mo_oauth_add_app_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_add_app_form_field'] ) ), 'mo_oauth_add_app_form' ) ) {
    523             if ( current_user_can( 'administrator' ) ) {
     543            if ( current_user_can( 'manage_options' ) ) {
    524544                $scope        = '';
    525545                $clientid     = ! empty( $_POST['mo_oauth_client_id'] ) ? sanitize_text_field( wp_unslash( $_POST['mo_oauth_client_id'] ) ) : '';
     
    698718        } elseif ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_attribute_mapping' && isset( $_REQUEST['mo_oauth_attr_role_mapping_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_attr_role_mapping_form_field'] ) ), 'mo_oauth_attr_role_mapping_form' ) ) {
    699719
    700             if ( current_user_can( 'administrator' ) ) {
     720            if ( current_user_can( 'manage_options' ) ) {
    701721                $appname       = isset( $_POST['mo_oauth_app_name'] ) ? stripslashes( sanitize_text_field( wp_unslash( $_POST['mo_oauth_app_name'] ) ) ) : '';
    702722                $username_attr = isset( $_POST['mo_oauth_username_attr'] ) ? stripslashes( sanitize_text_field( wp_unslash( $_POST['mo_oauth_username_attr'] ) ) ) : '';
     
    738758            }
    739759        } elseif ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_contact_us_query_option' && isset( $_REQUEST['mo_oauth_support_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_support_form_field'] ) ), 'mo_oauth_support_form' ) ) {
    740             if ( current_user_can( 'administrator' ) ) {
     760            if ( current_user_can( 'manage_options' ) ) {
    741761                if ( mooauth_is_curl_installed() === 0 ) {
    742762                    return $this->mo_oauth_show_curl_error();
     
    820840        } elseif ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_client_demo_request_form' && isset( $_REQUEST['mo_oauth_client_demo_request_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_client_demo_request_field'] ) ), 'mo_oauth_client_demo_request_form' ) ) {
    821841
    822             if ( current_user_can( 'administrator' ) ) {
     842            if ( current_user_can( 'manage_options' ) ) {
    823843                if ( mooauth_is_curl_installed() === 0 ) {
    824844                    return $this->mo_oauth_show_curl_error();
     
    885905                            update_option( 'message', 'Thanks for getting in touch! We shall get back to you shortly.' );
    886906                            $this->mo_oauth_show_success_message();
    887                         } else {
    888                             if ( 'SUCCESS' === $output->status ) {
    889 
    890                                 if ( isset( $output->demo_credentials ) ) {
    891                                     $demo_credentials = array();
    892 
    893                                     $site_url           = esc_url_raw( $output->demo_credentials->site_url );
    894                                     $email              = sanitize_email( $output->demo_credentials->email );
    895                                     $temporary_password = $output->demo_credentials->temporary_password;
    896                                     $password_link      = esc_url_raw( $output->demo_credentials->password_link );
    897 
    898                                     $sanitized_demo_credentials = array(
    899                                         'site_url'      => $site_url,
    900                                         'email'         => $email,
    901                                         'temporary_password' => $temporary_password,
    902                                         'password_link' => $password_link,
    903                                         'validity'      => gmdate( 'd F, Y', strtotime( '+10 day' ) ),
    904                                     );
    905 
    906                                     update_option( 'mo_oauth_demo_creds', $sanitized_demo_credentials );
    907 
    908                                     $output->message = 'Your trial has been generated successfully. Please use the below credentials to access the trial.';
    909                                 }
     907                        } elseif ( 'SUCCESS' === $output->status ) {
     908
     909                            if ( isset( $output->demo_credentials ) ) {
     910                                $demo_credentials = array();
     911
     912                                $site_url           = esc_url_raw( $output->demo_credentials->site_url );
     913                                $email              = sanitize_email( $output->demo_credentials->email );
     914                                $temporary_password = $output->demo_credentials->temporary_password;
     915                                $password_link      = esc_url_raw( $output->demo_credentials->password_link );
     916
     917                                $sanitized_demo_credentials = array(
     918                                    'site_url'           => $site_url,
     919                                    'email'              => $email,
     920                                    'temporary_password' => $temporary_password,
     921                                    'password_link'      => $password_link,
     922                                    'validity'           => gmdate( 'd F, Y', strtotime( '+10 day' ) ),
     923                                );
     924
     925                                update_option( 'mo_oauth_demo_creds', $sanitized_demo_credentials );
     926
     927                                $output->message = 'Your trial has been generated successfully. Please use the below credentials to access the trial.';
     928                            }
    910929                                update_option( 'message', $output->message );
    911930                                $this->mo_oauth_show_success_message();
    912                             } else {
    913                                 update_option( 'message', $output->message );
    914                                 $this->mo_oauth_show_error_message();
    915                             }
     931                        } else {
     932                            update_option( 'message', $output->message );
     933                            $this->mo_oauth_show_error_message();
    916934                        }
    917935                    } else {
     
    924942            }
    925943        } elseif ( isset( $_POST['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_client_video_demo_request_form' && isset( $_REQUEST['mo_oauth_client_video_demo_request_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_client_video_demo_request_field'] ) ), 'mo_oauth_client_video_demo_request_form' ) ) {
    926             if ( current_user_can( 'administrator' ) ) {
     944            if ( current_user_can( 'manage_options' ) ) {
    927945                if ( mooauth_is_curl_installed() === 0 ) {
    928946                    return $this->mo_oauth_show_curl_error();
     
    9991017        } elseif ( isset( $_POST ['option'] ) && sanitize_text_field( wp_unslash( $_POST['option'] ) ) === 'mo_oauth_forgot_password_form_option' && isset( $_REQUEST['mo_oauth_forgotpassword_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_forgotpassword_form_field'] ) ), 'mo_oauth_forgotpassword_form' ) ) {
    10001018
    1001             if ( current_user_can( 'administrator' ) ) {
     1019            if ( current_user_can( 'manage_options' ) ) {
    10021020                if ( ! mooauth_is_curl_installed() ) {
    10031021                    update_option( 'mo_oauth_message', 'ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed.' );
     
    10231041        } elseif ( isset( $_POST['mo_oauth_client_feedback'] ) && sanitize_text_field( wp_unslash( $_POST['mo_oauth_client_feedback'] ) ) === 'true' && isset( $_REQUEST['mo_oauth_feedback_form_field'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['mo_oauth_feedback_form_field'] ) ), 'mo_oauth_feedback_form' ) ) {
    10241042
    1025             if ( current_user_can( 'administrator' ) ) {
     1043            if ( current_user_can( 'manage_options' ) ) {
    10261044                $user = wp_get_current_user();
    10271045
     
    10721090                        $this->mo_oauth_show_success_message();
    10731091                        wp_safe_redirect( self_admin_url( 'plugins.php?deactivate=true' ) );
    1074                 } else {
    1075                     if ( ! empty( $deactivate_reason ) && ! empty( $email ) ) {
     1092                } elseif ( ! empty( $deactivate_reason ) && ! empty( $email ) ) {
    10761093                        $submited = json_decode( $feedback_reasons->mo_oauth_send_email_alert( $email, $reply, $message, 'Feedback: WordPress ' . MO_OAUTH_PLUGIN_NAME ), true );
    10771094                        deactivate_plugins( __DIR__ . DIRECTORY_SEPARATOR . 'mo_oauth_settings.php' );
    1078                         if ( ! array_key_exists( 'mo_oauth_keep_settings_intact', $_POST ) ) {
    1079                             $this->delete_options_on_deactivation();
    1080                         }
     1095                    if ( ! array_key_exists( 'mo_oauth_keep_settings_intact', $_POST ) ) {
     1096                        $this->delete_options_on_deactivation();
     1097                    }
    10811098                        update_option( 'message', 'Thank you for the feedback.' );
    10821099                        $this->mo_oauth_show_success_message();
    10831100                        wp_safe_redirect( self_admin_url( 'plugins.php?deactivate=true' ) );
    1084                     } elseif ( empty( $deactivate_reason ) ) {
    1085                         update_option( 'message', 'Please select one of the reasons, if your reason is not mentioned please select "Other Reasons" ' );
    1086                         $this->mo_oauth_show_error_message();
    1087                     } else {
    1088                         update_option( 'message', 'Please enter your email address.' );
    1089                         $this->mo_oauth_show_error_message();
    1090                     }
    1091                 }
    1092             }
    1093         }
    1094 
    1095     }
    1096 
     1101                } elseif ( empty( $deactivate_reason ) ) {
     1102                    update_option( 'message', 'Please select one of the reasons, if your reason is not mentioned please select "Other Reasons" ' );
     1103                    $this->mo_oauth_show_error_message();
     1104                } else {
     1105                    update_option( 'message', 'Please enter your email address.' );
     1106                    $this->mo_oauth_show_error_message();
     1107                }
     1108            }
     1109        }
     1110    }
    10971111
    10981112    /**
  • miniorange-login-with-eve-online-google-facebook/trunk/constants.php

    r3293145 r3331464  
    4040    }
    4141}
     42
     43if ( ! defined( 'MO_OAUTH_LOG_DIR' ) && function_exists( 'wp_upload_dir' ) ) {
     44    $upload_dir = wp_upload_dir();
     45    define( 'MO_OAUTH_LOG_DIR', $upload_dir['basedir'] . '/miniorange-login-with-eve-online-google-facebook' );
     46}
  • miniorange-login-with-eve-online-google-facebook/trunk/mo_oauth_settings.php

    r3305752 r3331464  
    1313 * Plugin URI: https://wordpress.org/plugins/miniorange-login-with-eve-online-google-facebook
    1414 * Description: This WordPress Single Sign-On plugin allows login into WordPress with your Azure AD B2C, AWS Cognito, Salesforce, Keycloak, Discord, WordPress or other custom OAuth 2.0 / OpenID Connect providers. WordPress OAuth Client plugin works with any Identity provider that conforms to the OAuth 2.0 and OpenID Connect (OIDC) 1.0 standard.
    15  * Version: 6.26.11
     15 * Version: 6.26.12
    1616 * Author: miniOrange
    1717 * Author URI: https://www.miniorange.com
     
    3636require 'admin' . DIRECTORY_SEPARATOR . 'partials' . DIRECTORY_SEPARATOR . 'mo_plugins' . DIRECTORY_SEPARATOR . 'autoload.php';
    3737require_once 'class-mooauth.php';
    38 define( 'MO_OAUTH_CSS_JS_VERSION', '6.26.11' );
     38define( 'MO_OAUTH_CSS_JS_VERSION', '6.26.12' );
    3939define( 'MO_OAUTH_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    4040
  • miniorange-login-with-eve-online-google-facebook/trunk/readme.txt

    r3305752 r3331464  
    44Requires at least: 3.0.1
    55Tested up to: 6.8
    6 Requires PHP: 5.4
    7 Stable tag: 6.26.11
     6Requires PHP: 7.0
     7Stable tag: 6.26.12
    88License: Expat
    99License URI: https://plugins.miniorange.com/mit-license
     
    220220
    221221== Changelog ==
     222= 6.26.12 =
     223* Updated debug log file path
     224* Minimum PHP version updated to 7.0 and above
     225
    222226= 6.26.11 =
    223227* Added support for trial access in paid applications
     
    816820
    817821== Upgrade Notice ==
     822= 6.26.12 =
     823* Updated debug log file path
     824* Minimum PHP version updated to 7.0 and above
     825
    818826= 6.26.11 =
    819827* Added support for trial access in paid applications
Note: See TracChangeset for help on using the changeset viewer.