-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheacSoftwareRegistry.php
More file actions
executable file
·94 lines (85 loc) · 2.91 KB
/
eacSoftwareRegistry.php
File metadata and controls
executable file
·94 lines (85 loc) · 2.91 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/**
* EarthAsylum Consulting {eac} Software Registration Server
*
* Plugin Loader
*
* @category WordPress Plugin
* @package {eac}SoftwareRegistry
* @author Kevin Burkholder <KBurkholder@EarthAsylum.com>
* @copyright Copyright (c) 2025 EarthAsylum Consulting <www.earthasylum.com>
* @uses EarthAsylumConsulting\Traits\plugin_loader
*
* @wordpress-plugin
* Plugin Name: {eac}SoftwareRegistry
* Description: Software Registration Server - A feature-rich and easily customized software registration and licensing server for WordPress.
* Version: 1.5.0
* Requires at least: 5.8
* Tested up to: 6.8
* Requires PHP: 8.1
* Requires Plugins: eacDoojigger
* Plugin URI: https://swregistry.earthasylum.com/
* Update URI: https://swregistry.earthasylum.com/software-updates/eacsoftwareregistry.json
* Author: EarthAsylum Consulting
* Author URI: http://www.earthasylum.com
* License: EarthAsylum Consulting Proprietary License - {eac}PLv1
* License URI: https://swregistry.earthasylum.com/end-user-license-agreement/
* Text Domain: eacSoftwareRegistry
* Domain Path: /languages
* Network: false
*/
namespace EarthAsylumConsulting
{
if (!defined('EACDOOJIGGER_VERSION'))
{
\add_action( 'all_admin_notices', function()
{
echo '<div class="notice notice-error is-dismissible"><p>{eac}SoftwareRegistry requires installation & activation of '.
'<a href="https://eacdoojigger.earthasylum.com/eacdoojigger" target="_blank">{eac}Doojigger</a>.</p></div>';
}
);
return;
}
/**
* loader/initialization class
*/
class eacSoftwareRegistry
{
use \EarthAsylumConsulting\Traits\plugin_loader;
use \EarthAsylumConsulting\Traits\plugin_environment;
/*
* @var array $plugin_detail
* 'PluginFile' - the file path to this file (__FILE__)
* 'NameSpace' - the root namespace of our plugin class (__NAMESPACE__)
* 'PluginClass' - the full classname of our plugin (to instantiate)
*/
protected static $plugin_detail =
[
'PluginFile' => __FILE__,
'NameSpace' => __NAMESPACE__,
'PluginClass' => __NAMESPACE__.'\\Plugin\\eacSoftwareRegistry',
'RequiresWP' => '5.8', // WordPress
'RequiresPHP' => '8.1', // PHP
'RequiresEAC' => '3.1', // eacDoojigger
'NetworkActivate' => false, // require (or forbid) network activation
'AutoUpdate' => 'self', // automatic update 'self' or 'wp'
];
} // eacSoftwareRegistry
} // namespace
namespace // global scope
{
defined( 'ABSPATH' ) or exit;
/**
* Run the plugin loader - only for php files?
*/
\EarthAsylumConsulting\eacSoftwareRegistry::loadPlugin(false);
/**
* Load registration extension
*/
add_filter( 'eacSoftwareRegistry_required_extensions', function($extensionDirectories)
{
$extensionDirectories[ plugin_basename( __DIR__.'/Registration' ) ] = [plugin_dir_path( __FILE__ ).'EarthAsylumConsulting/Registration'];
return $extensionDirectories;
}
);
}