.htaccess
1 year ago
SimpleAuthenticator.php
1 year ago
autoload.php
1 year ago
index.html
1 year ago
web.config
1 year 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] != 'SimpleThenticator') 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 |