Changeset 2988354
- Timestamp:
- 11/03/2023 07:41:19 AM (2 years ago)
- Location:
- o365-wp-restrict/trunk
- Files:
-
- 3 edited
-
inc/class-o365-wp-restrict.php (modified) (16 diffs)
-
o365-wp-restrict.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
o365-wp-restrict/trunk/inc/class-o365-wp-restrict.php
r2559102 r2988354 115 115 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) { 116 116 $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') ) { 118 118 $settings = O365_USER_AUTH_Settings_ONLINE::loadSettingsFromJSON(); 119 119 } 120 120 121 121 if ( !is_user_logged_in() && !isset($_GET["code"])) 122 { 122 { 123 123 124 $o365_wp_restrict_settings = get_option( 'o365_wp_restrict_settings','' ); 124 125 $Exclude_post_ids = array(); … … 138 139 $o365_wp_restrict_settings = unserialize($o365_wp_restrict_settings); 139 140 $current_url = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; 141 140 142 141 143 if( isset($o365_wp_restrict_settings['postidsprivate']) && $o365_wp_restrict_settings['postidsprivate'] != "" ){ … … 150 152 } 151 153 } 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')) ) 153 155 { 154 156 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) … … 162 164 } 163 165 } 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') ) 165 167 { 166 168 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) … … 227 229 } 228 230 } 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')) ) 230 232 { 231 233 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) … … 239 241 } 240 242 } 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') ) 242 244 { 243 245 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) … … 283 285 } 284 286 } 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')) ) 286 288 { 287 289 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) … … 295 297 } 296 298 } 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') ) 298 300 { 299 301 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) … … 358 360 } 359 361 } 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')) ) 361 363 { 362 364 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) … … 370 372 } 371 373 } 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') ) 373 375 { 374 376 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) … … 411 413 } 412 414 } 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')) ) 414 416 { 415 417 … … 424 426 } 425 427 } 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') ) 427 429 { 428 430 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) … … 544 546 } 545 547 } 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' )) ) 547 549 { 548 550 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) … … 556 558 } 557 559 } 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') ) 559 561 { 560 562 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) … … 600 602 } 601 603 } 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')) ) 603 605 { 604 606 if( is_plugin_active( 'o365-user-auth/o365-user-auth.php' ) ) … … 612 614 } 613 615 } 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') ) 615 617 { 616 618 if( !isset($_GET["code"]) && !isset($_POST["wp-submit"])) -
o365-wp-restrict/trunk/o365-wp-restrict.php
r2900474 r2988354 3 3 * Plugin Name: Intranet and Extranet with O365 Login 4 4 * Plugin URI: http://wpintegrate.com 5 * Version: 1. 55 * Version: 1.6 6 6 * Author: contact@wpintegrate.com 7 7 * Author URI: contact@wpintegrate.com … … 10 10 * Text Domain: wpintegrate 11 11 * Requires at least: 3.5.2 12 * Tested up to: 7.4.1212 * Tested up to: 6.3.2 13 13 */ 14 14 defined( 'ABSPATH') OR die('Access denied!' ); 15 15 define( 'O365_WP_RESTRICT_PATH', plugin_dir_path(__FILE__) ); 16 16 define( 'O365_WP_RESTRICT_URL', plugin_dir_url(__FILE__) ); 17 define( 'O365_WP_RESTRICT_VERSION', '1. 5' );17 define( 'O365_WP_RESTRICT_VERSION', '1.6' ); 18 18 define( 'O365_WP_RESTRICT_BASENAME', plugin_basename(__FILE__)); 19 19 -
o365-wp-restrict/trunk/readme.txt
r2900474 r2988354 4 4 Tags: office 365, intranet extranet, limited access, protect, restriction 5 5 Requires at least: 3.5.2 6 Tested up to: 6. 26 Tested up to: 6.3.2 7 7 Requires PHP: 5.6.36 8 Stable tag: 1. 58 Stable tag: 1.6 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.