| 1 |
<?php |
| 2 |
defined('ABSPATH') || die('Restricted Access'); |
| 3 |
|
| 4 |
use AcyMailing\Core\AcymParameter; |
| 5 |
use AcyMailing\Core\AcymPlugin; |
| 6 |
|
| 7 |
define('ACYM_NAME', 'AcyMailing'); |
| 8 |
define('ACYM_DBPREFIX', '#__acym_'); |
| 9 |
define('ACYM_LANGUAGE_FILE', 'com_acym'); |
| 10 |
define('ACYM_ACYMAILING_WEBSITE', 'https://www.acymailing.com/'); |
| 11 |
define('ACYM_ACYCHECKER_WEBSITE', 'https://www.acychecker.com/'); |
| 12 |
define('ACYM_UPDATEME_API_URL', 'https://api.acymailing.com/'); |
| 13 |
define('ACYM_YOURCRONTASK_IP', '178.23.155.178'); |
| 14 |
define('ACYM_DOCUMENTATION', 'https://docs.acymailing.com/'); |
| 15 |
define('ACYM_COMPONENT_NAME_API', 'acymailing'); |
| 16 |
define('ACYM_PRODUCTION', true); |
| 17 |
define('ACYM_STARTER', 0); |
| 18 |
define('ACYM_ESSENTIAL', 1); |
| 19 |
define('ACYM_ENTERPRISE', 2); |
| 20 |
if (!defined('DS')) { |
| 21 |
define('DS', DIRECTORY_SEPARATOR); |
| 22 |
} |
| 23 |
|
| 24 |
include_once __DIR__.DS.strtolower('WordPress.php'); |
| 25 |
|
| 26 |
define('ACYM_LIVE', rtrim(acym_rootURI(), '/').'/'); |
| 27 |
define('ACYM_HELPER_GLOBAL', ACYM_HELPER.'global'.DS); |
| 28 |
|
| 29 |
define('ACYM_REGEX_SWITCHES', '#(switch_[0-9]*".*)(data\-switch=")(switch_.+id=")(switch_.+for=")(switch_)#Uis'); |
| 30 |
define('ACYM_SOCIAL_MEDIA', json_encode(['facebook', 'twitter', 'instagram', 'linkedin', 'pinterest', 'vimeo', 'wordpress', 'youtube', 'x', 'telegram'])); |
| 31 |
define('ACYM_ENTERPRISE_PRICE', '7.4'); |
| 32 |
define('ACYM_ESSENTIAL_PRICE', '2.4'); |
| 33 |
|
| 34 |
include_once ACYM_HELPER_GLOBAL.'acl.php'; |
| 35 |
include_once ACYM_HELPER_GLOBAL.'addon.php'; |
| 36 |
include_once ACYM_HELPER_GLOBAL.'ajax.php'; |
| 37 |
include_once ACYM_HELPER_GLOBAL.'chart.php'; |
| 38 |
include_once ACYM_HELPER_GLOBAL.'date.php'; |
| 39 |
include_once ACYM_HELPER_GLOBAL.'email.php'; |
| 40 |
include_once ACYM_HELPER_GLOBAL.'field.php'; |
| 41 |
include_once ACYM_HELPER_GLOBAL.'file.php'; |
| 42 |
include_once ACYM_HELPER_GLOBAL.'global.php'; |
| 43 |
include_once ACYM_HELPER_GLOBAL.'language.php'; |
| 44 |
include_once ACYM_HELPER_GLOBAL.'mail.php'; |
| 45 |
include_once ACYM_HELPER_GLOBAL.'modal.php'; |
| 46 |
include_once ACYM_HELPER_GLOBAL.'module.php'; |
| 47 |
include_once ACYM_HELPER_GLOBAL.'multibyte.php'; |
| 48 |
include_once ACYM_HELPER_GLOBAL.'query.php'; |
| 49 |
include_once ACYM_HELPER_GLOBAL.'security.php'; |
| 50 |
include_once ACYM_HELPER_GLOBAL.'url.php'; |
| 51 |
include_once ACYM_HELPER_GLOBAL.'user.php'; |
| 52 |
include_once ACYM_HELPER_GLOBAL.'utf8.php'; |
| 53 |
include_once ACYM_HELPER_GLOBAL.'version.php'; |
| 54 |
include_once ACYM_HELPER_GLOBAL.'view.php'; |
| 55 |
include_once ACYM_HELPER_GLOBAL.'log.php'; |
| 56 |
|
| 57 |
// Load libraries |
| 58 |
include_once ACYM_CORE.'AcymObject.php'; |
| 59 |
include_once ACYM_CORE.'AcymClass.php'; |
| 60 |
include_once ACYM_CORE.'AcymParameter.php'; |
| 61 |
include_once ACYM_CORE.'AcymController.php'; |
| 62 |
include_once ACYM_CORE.'AcymView.php'; |
| 63 |
include_once ACYM_CORE.'AcymPlugin.php'; |
| 64 |
|
| 65 |
// For old plugins compatibility |
| 66 |
class_alias(AcymParameter::class, 'AcyMailing\\Libraries\\acymParameter'); |
| 67 |
class_alias(AcymPlugin::class, 'AcyMailing\\Libraries\\acymPlugin'); |
| 68 |
class_alias(AcymPlugin::class, 'acymPlugin'); |
| 69 |
|
| 70 |
// Load the AcyMailing translations |
| 71 |
acym_loadLanguage(); |
| 72 |
|