Plugin Directory

Changeset 2988354


Ignore:
Timestamp:
11/03/2023 07:41:19 AM (2 years ago)
Author:
wpintegrate
Message:

Fixed user auth plugin issue and tested up to WordPress 6.3.2

Location:
o365-wp-restrict/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • o365-wp-restrict/trunk/inc/class-o365-wp-restrict.php

    r2559102 r2988354  
    115115        if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) {
    116116            $settings = O365_USER_AUTH_Settings::loadSettingsFromJSON();
    117         } else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') ) {
     117        } else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') ) {
    118118            $settings = O365_USER_AUTH_Settings_ONLINE::loadSettingsFromJSON();
    119119        }
    120120
    121121        if ( !is_user_logged_in() && !isset($_GET["code"]))
    122         {
     122        {
     123           
    123124            $o365_wp_restrict_settings = get_option( 'o365_wp_restrict_settings','' );         
    124125            $Exclude_post_ids = array();
     
    138139            $o365_wp_restrict_settings = unserialize($o365_wp_restrict_settings);
    139140            $current_url = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
     141
    140142           
    141143            if( isset($o365_wp_restrict_settings['postidsprivate']) && $o365_wp_restrict_settings['postidsprivate'] != "" ){   
     
    150152                        }
    151153                    }
    152                     else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php')) )
     154                    else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php')) )
    153155                    {
    154156                        if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) )
     
    162164                            }
    163165                        }
    164                         else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     166                        else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    165167                        {
    166168                            if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
     
    227229                                    }
    228230                                }
    229                                 else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php')) )
     231                                else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php')) )
    230232                                {
    231233                                    if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) )
     
    239241                                        }
    240242                                    }
    241                                     else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     243                                    else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    242244                                    {
    243245                                        if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
     
    283285                                }
    284286                            }
    285                             else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php')) )
     287                            else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php')) )
    286288                            {
    287289                                if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) )
     
    295297                                    }
    296298                                }
    297                                 else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     299                                else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    298300                                {
    299301                                    if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
     
    358360                                }
    359361                            }
    360                             else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php')) )
     362                            else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php')) )
    361363                            {
    362364                                if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) )
     
    370372                                    }
    371373                                }
    372                                 else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     374                                else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    373375                                {
    374376                                    if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
     
    411413                            }
    412414                        }
    413                         else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php')) )
     415                        else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php')) )
    414416                        {
    415417                           
     
    424426                                }
    425427                            }
    426                             else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     428                            else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    427429                            {
    428430                                if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
     
    544546                                            }
    545547                                        }
    546                                         else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && (is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php' )) )
     548                                        else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && (is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php' )) )
    547549                                        {
    548550                                            if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) )
     
    556558                                                }
    557559                                            }
    558                                             else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     560                                            else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    559561                                            {
    560562                                                if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
     
    600602                                        }
    601603                                    }
    602                                     else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php')) )
     604                                    else if( isset($o365_wp_restrict_settings['enable_auth'] ) && $o365_wp_restrict_settings['enable_auth'] == "o365_user_auth" && ( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) || is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php')) )
    603605                                    {
    604606                                        if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) )
     
    612614                                            }
    613615                                        }
    614                                         else if( is_plugin_active( 'o365-user-auth-online/o365-user-auth-online.php') )
     616                                        else if( is_plugin_active( 'o365-user-authentication/o365-user-auth-online.php') )
    615617                                        {
    616618                                            if( !isset($_GET["code"]) && !isset($_POST["wp-submit"]))
  • o365-wp-restrict/trunk/o365-wp-restrict.php

    r2900474 r2988354  
    33    * Plugin Name: Intranet and Extranet with O365 Login
    44    * Plugin URI: http://wpintegrate.com
    5     * Version: 1.5
     5    * Version: 1.6
    66    * Author: contact@wpintegrate.com
    77    * Author URI: contact@wpintegrate.com
     
    1010    * Text Domain: wpintegrate
    1111    * Requires at least: 3.5.2
    12     * Tested up to: 7.4.12
     12    * Tested up to: 6.3.2
    1313*/
    1414defined( 'ABSPATH') OR die('Access denied!' );
    1515define( 'O365_WP_RESTRICT_PATH', plugin_dir_path(__FILE__) );
    1616define( 'O365_WP_RESTRICT_URL', plugin_dir_url(__FILE__) );
    17 define( 'O365_WP_RESTRICT_VERSION', '1.5' );
     17define( 'O365_WP_RESTRICT_VERSION', '1.6' );
    1818define( 'O365_WP_RESTRICT_BASENAME', plugin_basename(__FILE__));
    1919
  • o365-wp-restrict/trunk/readme.txt

    r2900474 r2988354  
    44Tags: office 365, intranet extranet, limited access, protect, restriction
    55Requires at least: 3.5.2
    6 Tested up to: 6.2
     6Tested up to: 6.3.2
    77Requires PHP: 5.6.36
    8 Stable tag: 1.5
     8Stable tag: 1.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.