3rdparty
8 months ago
Ajax
8 months ago
Alert
8 months ago
Archive
8 months ago
Backup
8 months ago
BackupJob
8 months ago
CLI
8 months ago
Cache
8 months ago
Config
8 months ago
Cron
8 months ago
Crontab
8 months ago
Data
8 months ago
Destination
8 months ago
DirIterator
8 months ago
Download
8 months ago
Downloader
8 months ago
Encryption
8 months ago
Entities
8 months ago
Exception
8 months ago
Export
8 months ago
Filesystem
8 months ago
IO
8 months ago
Integrations
8 months ago
JetBackupLinux
8 months ago
License
8 months ago
Log
8 months ago
MFA
8 months ago
Notification
8 months ago
Queue
8 months ago
Restore
8 months ago
ResumableTask
8 months ago
SGB
8 months ago
Schedule
8 months ago
Settings
8 months ago
Showcase
8 months ago
Snapshot
8 months ago
Upload
8 months ago
UserInput
8 months ago
Web
8 months ago
Wordpress
8 months ago
.htaccess
8 months ago
Factory.php
8 months ago
JetBackup.php
8 months ago
autoload.php
8 months ago
functions.php
8 months ago
index.html
8 months ago
web.config
8 months 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'); |