3rdparty
4 months ago
Ajax
19 hours ago
Alert
1 year ago
Archive
19 hours ago
Backup
4 months ago
BackupJob
1 month ago
CLI
19 hours ago
Cache
1 year ago
Config
5 months ago
Cron
1 month ago
Crontab
5 months ago
Data
5 months ago
Destination
1 month ago
DirIterator
5 months ago
Download
10 months ago
Downloader
10 months ago
Encryption
1 year ago
Entities
19 hours ago
Exception
1 year ago
Export
1 year ago
Filesystem
5 months ago
IO
1 year ago
Integrations
1 year ago
JetBackupLinux
1 month ago
License
1 year ago
Log
4 months ago
MFA
7 months ago
Notification
1 year ago
Queue
19 hours ago
Restore
7 months ago
ResumableTask
5 months ago
SGB
10 months ago
Schedule
3 months ago
Settings
19 hours ago
Showcase
1 year ago
Snapshot
4 months ago
Upload
3 months ago
UserInput
1 year ago
Web
1 year ago
Wordpress
19 hours ago
.htaccess
1 year ago
Factory.php
1 year ago
JetBackup.php
19 hours ago
autoload.php
1 year ago
functions.php
1 year ago
index.html
1 year ago
web.config
1 year ago
JetBackup.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JetBackup; |
| 4 | |
| 5 | use JetBackup\Wordpress\Wordpress; |
| 6 | |
| 7 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 8 | |
| 9 | class JetBackup { |
| 10 | |
| 11 | private function __construct() {} |
| 12 | |
| 13 | const VERSION = '3.1.22.3'; |
| 14 | const DEVELOPMENT = false; |
| 15 | |
| 16 | const DEFAULT_LANGUAGE = 'en_US'; |
| 17 | const NONCE_COOKIE_NAME = 'wp-jetbackup-nonce'; |
| 18 | const LANG_COOKIE_NAME = 'wp-jetbackup-user-language'; |
| 19 | |
| 20 | const MINIMUM_PHP_VERSION = '7.4'; |
| 21 | const MINIMUM_WP_VERSION = '6.0'; |
| 22 | const TESTED_ON_WP_VERSION = '7.0.0'; |
| 23 | const PLUGIN_CONFLICTS = [ |
| 24 | 'backup-guard-gold' . self::SEP . 'BackupGuard.php', |
| 25 | 'backup-guard-platinum' . self::SEP . 'BackupGuard.php', |
| 26 | 'backup-guard-silver' . self::SEP . 'BackupGuard.php', |
| 27 | ]; |
| 28 | |
| 29 | const SEP = DIRECTORY_SEPARATOR; |
| 30 | |
| 31 | const WP_ROOT_PATH = WP_ROOT; |
| 32 | const ROOT_PATH = JB_ROOT; |
| 33 | |
| 34 | const PLUGIN_NAME = 'backup'; |
| 35 | const PLUGIN_EXT_NAME = 'JetBackup'; |
| 36 | const PLUGIN_SLUG = self::PLUGIN_NAME . self::SEP . self::PLUGIN_NAME . '.php'; |
| 37 | const CRON_PUBLIC_URL = '/' . Wordpress::WP_CONTENT . '/' . Wordpress::WP_PLUGINS . '/' . JetBackup::PLUGIN_NAME . '/public/cron'; |
| 38 | |
| 39 | const ID_FIELD = '_id'; |
| 40 | |
| 41 | const SRC_PATH = self::ROOT_PATH . self::SEP . 'src' . self::SEP . self::PLUGIN_EXT_NAME; |
| 42 | const TRDPARTY_PATH = self::SRC_PATH . self::SEP . '3rdparty'; |
| 43 | const PUBLIC_PATH = self::ROOT_PATH . self::SEP . 'public'; |
| 44 | const CRON_PATH = self::PUBLIC_PATH . self::SEP . 'cron'; |
| 45 | const CONFIG_PATH = self::ROOT_PATH . self::SEP . 'config'; |
| 46 | const TEMPLATES_PATH = self::ROOT_PATH . self::SEP . 'templates'; |
| 47 | |
| 48 | } |
| 49 |