forked from techies23/Inactive-Logout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inactive-logout.php
41 lines (36 loc) · 1.73 KB
/
inactive-logout.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
<?php
/**
* @link http://www.deepenbajracharya.com.np
* @since 1.0.0
* @package Inactive Logout
*
* Plugin Name: Inactive Logout
* Plugin URI: https://www.deepenbajracharya.com.np
* Description: Automatically logout idle user sessions, even if they are on the front end! Fully configurable & easy to use.
* Version: 1.9.9
* Author: Deepen Bajracharya
* Author URI: https://www.deepenbajracharya.com.np
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: inactive-logout
* Domain Path: /lang
**/
// Not Permission to agree more or less then given.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
define( 'INA_PLUGIN_ABS_NAME', plugin_basename( __FILE__ ) );
define( 'INACTIVE_LOGOUT_SLUG', 'inactive-logout' );
define( 'INACTIVE_LOGOUT_DIR_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'INACTIVE_LOGOUT_DIR_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'INACTIVE_LOGOUT_VIEWS', INACTIVE_LOGOUT_DIR_PATH . 'views' );
define( 'INACTIVE_LOGOUT_ASSETS_URL', INACTIVE_LOGOUT_DIR_URI . 'assets/' );
define( 'INACTIVE_LOGOUT_VENDOR_URL', INACTIVE_LOGOUT_DIR_URI . 'assets/vendor/' );
define( 'INACTIVE_LOGOUT_VERSION', '1.9.9' );
//Helper Load
require_once dirname( __FILE__ ) . '/src/class-inactive-logout-helpers.php';
// The main plugin class.
require_once dirname( __FILE__ ) . '/src/class-inactive-logout-main.php';
add_action( 'plugins_loaded', array( 'Inactive_Logout_Main', 'instance' ), 99 );
register_activation_hook( __FILE__, array( 'Inactive_Logout_Main', 'ina_activate' ) );
register_deactivation_hook( __FILE__, array( 'Inactive_Logout_Main', 'ina_deactivate' ) );