-
Notifications
You must be signed in to change notification settings - Fork 7
/
loggedin.php
executable file
·78 lines (72 loc) · 2.34 KB
/
loggedin.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
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Main plugin header.
*
* @package LoggedIn
*
* Plugin Name: Loggedin - Limit Active Logins
* Plugin URI: https://duckdev.com/products/loggedin-limit-active-logins/
* Description: Light weight plugin to limit number of active logins from an account. Set maximum number of concurrent logins a user can have from multiple places.
* Version: 1.3.2
* Author: Joel James
* Author URI: https://duckdev.com/
* Donate link: https://paypal.me/JoelCJ
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: loggedin
* Domain Path: /languages
*
* LoggedIn is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* LoggedIn 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 LoggedIn. If not, see <http://www.gnu.org/licenses/>.
*/
// If this file is called directly, abort.
defined( 'WPINC' ) || die( 'Well, get lost.' );
// Make sure loggedin is not already defined.
if ( ! function_exists( 'loggedin_init' ) ) {
/**
* Main instance of plugin.
*
* Returns the main instance of Beehive to prevent the need to use globals
* and to maintain a single copy of the plugin object.
* You can simply call beehive_analytics() to access the object.
*
* @since 1.3.0
*
* @return void
*/
function loggedin_init() {
// Load text domain.
load_plugin_textdomain(
'loggedin',
false,
dirname( plugin_basename( __FILE__ ) ) . '/languages/'
);
// Load required files.
require dirname( __FILE__ ) . '/includes/class-loggedin.php';
require dirname( __FILE__ ) . '/includes/class-loggedin-admin.php';
// Load core class.
new Loggedin();
// Load admin class.
new Loggedin_Admin();
/**
* Action hook to execute after LoggedIn plugin init.
*
* Use this hook to init addons.
*
* @since 1.3.1
*/
do_action( 'loggedin_init' );
}
}
// Init the plugin.
add_action( 'plugins_loaded', 'loggedin_init' );