| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Authorizer |
| 4 |
* Description: Authorizer limits login attempts, restricts access to specified users, and authenticates against external sources (e.g., Google, LDAP, or CAS). |
| 5 |
* Author: Paul Ryan <prar@hawaii.edu> |
| 6 |
* Plugin URI: https://github.com/uhm-coe/authorizer |
| 7 |
* Text Domain: authorizer |
| 8 |
* Domain Path: /languages |
| 9 |
* License: GPL2 |
| 10 |
* Version: 2.9.0 |
| 11 |
* |
| 12 |
* Portions forked from Restricted Site Access plugin: |
| 13 |
* http://wordpress.org/plugins/restricted-site-access/ |
| 14 |
* Portions forked from wpCAS plugin: |
| 15 |
* http://wordpress.org/extend/plugins/cas-authentication/ |
| 16 |
* Portions forked from Limit Login Attempts: |
| 17 |
* http://wordpress.org/plugins/limit-login-attempts/ |
| 18 |
* |
| 19 |
* @package authorizer |
| 20 |
*/ |
| 21 |
|
| 22 |
namespace Authorizer; |
| 23 |
|
| 24 |
require_once dirname( __FILE__ ) . '/src/authorizer/abstract-class-static-instance.php'; |
| 25 |
|
| 26 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-wp-plugin-authorizer.php'; |
| 27 |
|
| 28 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-helper.php'; |
| 29 |
|
| 30 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-updates.php'; |
| 31 |
|
| 32 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-authentication.php'; |
| 33 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-authorization.php'; |
| 34 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-login-form.php'; |
| 35 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-dashboard-widget.php'; |
| 36 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-ajax-endpoints.php'; |
| 37 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-sync-userdata.php'; |
| 38 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-admin-page.php'; |
| 39 |
|
| 40 |
require_once dirname( __FILE__ ) . '/src/authorizer/class-options.php'; |
| 41 |
|
| 42 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-access-lists.php'; |
| 43 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-login-access.php'; |
| 44 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-public-access.php'; |
| 45 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-external.php'; |
| 46 |
|
| 47 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-google.php'; |
| 48 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-cas.php'; |
| 49 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-ldap.php'; |
| 50 |
|
| 51 |
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-advanced.php'; |
| 52 |
|
| 53 |
/** |
| 54 |
* Add phpCAS library if it's not included. |
| 55 |
* |
| 56 |
* @see https://wiki.jasig.org/display/CASC/phpCAS+installation+guide |
| 57 |
*/ |
| 58 |
if ( ! defined( 'PHPCAS_VERSION' ) ) { |
| 59 |
require_once dirname( __FILE__ ) . '/vendor/phpCAS-1.3.6/CAS.php'; |
| 60 |
} |
| 61 |
|
| 62 |
/** |
| 63 |
* Helper function to always return the path to the plugin's entry point. Used |
| 64 |
* when locating asset paths using plugins_url(). |
| 65 |
*/ |
| 66 |
function plugin_root() { |
| 67 |
return __FILE__; |
| 68 |
} |
| 69 |
|
| 70 |
// Instantiate the plugin class. |
| 71 |
WP_Plugin_Authorizer::get_instance(); |
| 72 |
|