3rdparty
4 months ago
Ajax
3 months ago
Alert
1 year ago
Archive
4 months ago
Backup
4 months ago
BackupJob
3 months ago
CLI
3 months ago
Cache
1 year ago
Config
5 months ago
Cron
4 months ago
Crontab
5 months ago
Data
5 months ago
Destination
4 months ago
DirIterator
5 months ago
Download
10 months ago
Downloader
10 months ago
Encryption
1 year ago
Entities
5 months ago
Exception
1 year ago
Export
1 year ago
Filesystem
5 months ago
IO
1 year ago
Integrations
1 year ago
JetBackupLinux
4 months ago
License
1 year ago
Log
4 months ago
MFA
7 months ago
Notification
1 year ago
Queue
5 months ago
Restore
7 months ago
ResumableTask
5 months ago
SGB
10 months ago
Schedule
3 months ago
Settings
3 months ago
Showcase
1 year ago
Snapshot
4 months ago
Upload
3 months ago
UserInput
1 year ago
Web
1 year ago
Wordpress
4 months ago
.htaccess
1 year ago
Factory.php
1 year ago
JetBackup.php
3 months ago
autoload.php
1 year ago
functions.php
1 year ago
index.html
1 year ago
web.config
1 year ago
autoload.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | use JetBackup\JetBackup; |
| 4 | |
| 5 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 6 | |
| 7 | spl_autoload_register(function ($className) { |
| 8 | |
| 9 | $parts = explode('\\', $className); |
| 10 | if (!isset($parts[0]) || !in_array($parts[0], ['JetBackup','OLD'])) return false; |
| 11 | |
| 12 | $path = JB_ROOT . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $parts) . '.php'; |
| 13 | if (!file_exists($path)) return false; |
| 14 | |
| 15 | require_once($path); |
| 16 | return true; |
| 17 | }); |
| 18 | |
| 19 | require_once(JetBackup::TRDPARTY_PATH . JetBackup::SEP . 'autoload.php'); |
| 20 | require_once(JetBackup::SRC_PATH . JetBackup::SEP . 'functions.php'); |