PluginProbe
Inactive Logout / trunk
Inactive Logout vtrunk
3.6.3 trunk 1.9.9 2.0.2 3.3.1 3.3.2 3.3.3 3.3.4 3.4.0 3.4.1 3.4.10 3.4.11 3.4.12 3.4.13 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 All 31 releases
inactive-logout / inactive-logout.php

inactive-logout.php in Inactive Logout trunk, at inactive-logout.php

47 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @link http://imdpen.com
4 * @since 1.0.0
5 * @package Inactive Logout
6 *
7 * Plugin Name: Inactive Logout
8 * Plugin URI: https://inactive-logout.com/
9 * Description: Automatically logout idle user sessions, even if they are on the front end! Fully configurable & easy to use.
10 * Version: 3.6.3
11 * Author: Inactive Logout
12 * Author URI: https://inactive-logout.com/
13 * License: GPL-2.0+
14 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
15 * Text Domain: inactive-logout
16 * Domain Path: /lang
17 * Requires at least: 6.6
18 * Requires PHP: 7.4
19 **/
20
21 // Not Permission to agree more or less then given.
22 if (!defined('ABSPATH')) {
23 die('-1');
24 }
25
26 defined('INACTIVE_LOGOUT_ABS_NAME') || define('INACTIVE_LOGOUT_ABS_NAME', plugin_basename(__FILE__));
27 defined('INACTIVE_LOGOUT_REQUIRED_PHP') || define('INACTIVE_LOGOUT_REQUIRED_PHP', '7.4');
28 defined('INACTIVE_LOGOUT_SLUG') || define('INACTIVE_LOGOUT_SLUG', 'inactive-logout');
29 defined('INACTIVE_LOGOUT_DIR_PATH') || define('INACTIVE_LOGOUT_DIR_PATH', trailingslashit(plugin_dir_path(__FILE__)));
30 defined('INACTIVE_LOGOUT_DIR_URI') || define('INACTIVE_LOGOUT_DIR_URI', trailingslashit(plugin_dir_url(__FILE__)));
31 defined('INACTIVE_LOGOUT_BUILD_URI') || define('INACTIVE_LOGOUT_BUILD_URI', INACTIVE_LOGOUT_DIR_URI . 'build');
32 defined('INACTIVE_LOGOUT_VIEWS') || define('INACTIVE_LOGOUT_VIEWS', INACTIVE_LOGOUT_DIR_PATH . 'views');
33 defined('INACTIVE_LOGOUT_VERSION') || define('INACTIVE_LOGOUT_VERSION', '3.6.3');
34
35 //Legacy support
36 require_once dirname(__FILE__) . '/legacy/class-inactive-logout-helpers.php';
37
38 //require autoload
39 if (file_exists(INACTIVE_LOGOUT_DIR_PATH . 'vendor/autoload.php')) {
40 require INACTIVE_LOGOUT_DIR_PATH . 'vendor/autoload.php';
41 }
42
43 require INACTIVE_LOGOUT_DIR_PATH . 'core/Base.php';
44
45 register_activation_hook(__FILE__, 'Codemanas\InactiveLogout\Base::activate');
46 register_deactivation_hook(__FILE__, 'Codemanas\InactiveLogout\Base::deactivate');
47