-
Notifications
You must be signed in to change notification settings - Fork 9
/
wp-cas-server.php
63 lines (52 loc) · 1.77 KB
/
wp-cas-server.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/*
Plugin Name: Cassava: A WordPress CAS Server
Version: 1.2.3
Description: Provides authentication services based on the Jasig CAS protocol.
Author: Luís Rodrigues
Author URI: http://goblindegook.com/
Plugin URI: https://goblindegook.github.io/wp-cas-server
Github URI: https://github.com/goblindegook/wp-cas-server
Text Domain: wp-cas-server
Domain Path: /languages
*/
/* Copyright 2014 Luís Rodrigues <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* WP CAS Server main plugin file.
*
* @version 1.2.0
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once dirname( __FILE__ ) . '/wp-requirements.php';
$wp_cas_server_requirements = new WP_Requirements(
__( 'Cassava CAS Server', 'wp-cas-server' ),
plugin_basename( __FILE__ ),
array(
'PHP' => '5.3.2',
'WordPress' => '3.9.0',
'Extensions' => array(
'libxml',
),
)
);
if ( $wp_cas_server_requirements->pass() === false ) {
$wp_cas_server_requirements->halt();
return;
}
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
require_once dirname( __FILE__ ) . '/plugin.php';