Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
d43229a5
Commit
d43229a5
authored
Aug 19, 2017
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.5
parent
0384f319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
_autoload.php
_autoload.php
+0
-15
No files found.
_autoload.php
deleted
100644 → 0
View file @
0384f319
<?php
if
(
!
defined
(
'DS'
))
define
(
'DS'
,
DIRECTORY_SEPARATOR
);
spl_autoload_register
(
function
(
$className
)
{
$className
=
str_replace
(
"
\\
"
,
"_"
,
$className
);
$classPath
=
explode
(
'_'
,
$className
);
if
(
array_shift
(
$classPath
)
!=
'X'
)
return
;
if
(
ctype_digit
(
end
(
$classPath
)
)
)
$V
=
"_"
.
array_pop
(
$classPath
);
else
$V
=
""
;
// Version Control
$filePath
=
dirname
(
__FILE__
)
.
DS
.
implode
(
DS
,
$classPath
)
.
$V
.
'.php'
;
if
(
count
(
$classPath
)
==
0
)
$classPath
[]
=
"X"
;
if
(
file_exists
(
$filePath
)
)
require_once
(
$filePath
);
}
);
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment