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