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