| 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 |
|