software-license-manager/software-license-manager.php
Michel Velis 36b80696e3 ## Features
- added: support for email reminder, user will receive an email when license has expired
-  fixed: a bug where email will be send-out
- added: custom fields to woocommece order
- added: product type (license) for woocommerce
- rebuilt my licenses in my account page
- added: until version and current version to api
- ui: change styles to match more wp interface
2019-07-01 14:50:31 -04:00

57 lines
2.5 KiB
PHP
Executable file

<?php
/*
Plugin Name: Software License Manager
Version: 5.0.2
Plugin URI: https://github.com/michelve/software-license-manager/
Author: Michel Velis
Author URI: https://www.epikly.com/
Description: Software license management solution for your web applications (WordPress plugins, Themes, Applications, PHP based membership script etc.). Supports WooCommerce.
Author2: <a href="https://www.tipsandtricks-hq.com/">Tips and Tricks HQ</a>
Text Domain: softwarelicensemanager
Domain Path: /languages/
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
global $wpdb, $slm_debug_logger;
//Short name/slug "SLM" or "slm"
define('SLM_VERSION', '5.0.2');
define('SLM_DB_VERSION', '4.0.12');
define('SLM_REWRITE_VERSION', '2.1.3');
define('SLM_FOLDER', dirname(plugin_basename(__FILE__)));
define('SLM_URL', plugins_url('' ,__FILE__));
define('SLM_ASSETS_URL', SLM_URL . '/public/assets/');
define('SLM_PATH', plugin_dir_path(__FILE__));
define('SLM_LIB', SLM_PATH . 'includes/');
define('SLM_WOO', SLM_PATH . 'woocommerce/');
define('SLM_ADMIN', SLM_PATH . 'admin/');
define('SLM_ADMIN_ADDONS', SLM_ADMIN . 'includes/');
define('SLM_CRONS', SLM_ADMIN_ADDONS . 'cronjobs/');
define('SLM_PUBLIC', SLM_PATH . 'public/');
define('SLM_TEAMPLATES', SLM_PATH . 'templates/');
define('SLM_SITE_HOME_URL', home_url());
define('SLM_SITE_URL', get_site_url() . '/');
define('SLM_TBL_LICENSE_KEYS', $wpdb->prefix . "lic_key_tbl");
define('SLM_TBL_EMAILS', $wpdb->prefix . "lic_emails_tbl");
define('SLM_TBL_LIC_DOMAIN', $wpdb->prefix . "lic_reg_domain_tbl");
define('SLM_TBL_LIC_DEVICES', $wpdb->prefix . "lic_reg_devices_tbl");
define('SLM_TBL_LIC_LOG', $wpdb->prefix . "lic_log_tbl");
define('SLM_MANAGEMENT_PERMISSION', 'manage_options');
define('SLM_MAIN_MENU_SLUG', 'slm_overview');
define('SLM_MENU_ICON', 'dashicons-lock');
if( file_exists( SLM_LIB . 'slm-plugin-core.php') ) {
require_once SLM_LIB . 'slm-plugin-core.php';
}
// Options and filters
define('WOO_SLM_API_SECRET', SLM_Helper_Class::slm_get_option('lic_creation_secret'));
define('KEY_API', SLM_Helper_Class::slm_get_option('lic_creation_secret'));
define('KEY_API_PREFIX', SLM_Helper_Class::slm_get_option('lic_prefix'));
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'slm_settings_link');