-
Notifications
You must be signed in to change notification settings - Fork 7
/
pbs-passport-authenticate.php
67 lines (50 loc) · 1.74 KB
/
pbs-passport-authenticate.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
64
65
66
67
<?php
/*
* Plugin Name: PBS Passport Authenticate
* Version: 0.4.2.4 -- faster cachebusting
* Plugin URI: https://github.com/tamw-wnet/pbs-passport-authenticate
* Description: PBS Passport Authenticate
* Author: William Tam, Brian Santalone
* Author URI: http://ieg.wnet.org/
* Requires at least: 4.0
* Tested up to: 4.2.2
*
* @package WordPress
* @author William Tam
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit;
// pre-define pluggable functions if needed
$plugpath = trailingslashit(dirname(__FILE__)) . 'pluggable.php';
if (file_exists($plugpath)) {
require_once($plugpath);
}
// Include plugin class files
require_once( 'build-passport-player.php' );
require_once( 'classes/class-pbs-passport-authenticate.php' );
require_once( 'classes/class-pbs-passport-authenticate-settings.php' );
require_once('classes/class-PBS-LAAS-client.php');
require_once('classes/class-PMSSO-Client.php');
if (!class_exists('PBS_MVault_Client')) {
require_once('classes/class-PBS-MVault-client.php');
}
global $plugin_obj;
$plugin_obj = new PBS_Passport_Authenticate( __FILE__ );
if ( is_admin() ) {
$plugin_settings_obj = new PBS_Passport_Authenticate_Settings( __FILE__ );
}
register_activation_hook(__FILE__, 'pbs_passport_authenticate_activation');
function pbs_passport_authenticate_activation() {
// init the object, which will setup the object
$plugin_obj = new PBS_Passport_Authenticate( __FILE__ );
$plugin_obj->setup_rewrite_rules();
flush_rewrite_rules();
}
// always cleanup after yourself
register_deactivation_hook(__FILE__, 'pbs_passport_authenticate_deactivation');
function pbs_passport_authenticate_deactivation() {
flush_rewrite_rules();
}
function pbs_passport_authenticate_render_video($vidid) {
}
/* end of file */