Classes
4 months ago
Exceptions
1 year ago
.htaccess
1 year ago
Cache.php
4 months ago
Query.php
1 year ago
QueryBuilder.php
1 year ago
SleekDB.php
1 year ago
Store.php
4 months ago
autoload.php
1 year ago
index.html
1 year ago
web.config
1 year ago
autoload.php
19 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] != 'SleekDB') return false; |
| 11 | |
| 12 | $path = JetBackup::TRDPARTY_PATH . JetBackup::SEP . implode(JetBackup::SEP, $parts) . '.php'; |
| 13 | |
| 14 | if(!file_exists($path)) return false; |
| 15 | |
| 16 | require_once($path); |
| 17 | return true; |
| 18 | }); |
| 19 |