mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
initial commit
This commit is contained in:
commit
e324e70050
21 changed files with 1410 additions and 0 deletions
19
src/autoload.php
Normal file
19
src/autoload.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__);
|
||||
|
||||
require_once 'errors.php';
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
if (substr($class, 0, 4) == 'SMB\\') {
|
||||
$class = strtolower($class);
|
||||
$file = str_replace('\\', '/', substr($class, 4));
|
||||
include $file . '.php';
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue