Common
9 months ago
Crypt
9 months ago
Exception
9 months ago
File
9 months ago
Math
9 months ago
Net
9 months ago
System
9 months ago
.htaccess
9 months ago
autoload.php
9 months ago
bootstrap.php
9 months ago
index.html
9 months ago
openssl.cnf
9 months ago
web.config
9 months ago
autoload.php
18 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(string $className) { |
| 8 | |
| 9 | $parts = explode('\\', $className); |
| 10 | if(!isset($parts[0]) || $parts[0] != 'phpseclib3') return false; |
| 11 | |
| 12 | $path = JetBackup::TRDPARTY_PATH . JetBackup::SEP . implode(JetBackup::SEP, $parts) . '.php'; |
| 13 | if(!file_exists($path)) return false; |
| 14 | |
| 15 | require_once($path); |
| 16 | return true; |
| 17 | }); |
| 18 |