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
d67ecb5a
Commit
d67ecb5a
authored
Aug 19, 2017
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.5
parent
d43229a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
autoload.php
autoload.php
+11
-10
composer.json
composer.json
+3
-3
No files found.
autoload.php
View file @
d67ecb5a
<?php
<?php
if
(
!
defined
(
'DS'
))
define
(
'DS'
,
DIRECTORY_SEPARATOR
);
if
(
!
defined
(
'DS'
))
{
define
(
'DS'
,
DIRECTORY_SEPARATOR
);}
spl_autoload_register
(
spl_autoload_register
(
function
(
$class
Name
)
function
(
$class
_name
)
{
{
$class_name
=
str_replace
(
"
\\
"
,
"_"
,
$class_name
);
$class
Name
=
str_replace
(
"
\\
"
,
"_"
,
$classN
ame
);
$class
_path
=
explode
(
'_'
,
$class_n
ame
);
$classPath
=
explode
(
'_'
,
$className
);
if
(
array_shift
(
$class_path
)
!=
'X'
)
{
return
;}
if
(
array_shift
(
$classPath
)
!=
'X'
)
return
;
if
(
ctype_digit
(
end
(
$class_path
)))
{
$v
=
"_"
.
array_pop
(
$class_path
);}
else
{
$v
=
""
;}
if
(
ctype_digit
(
end
(
$classPath
)
)
)
$V
=
"_"
.
array_pop
(
$classPath
);
else
$V
=
""
;
// Version Control
// Version Control
$file
Path
=
dirname
(
__FILE__
)
.
DS
.
implode
(
DS
,
$classPath
)
.
$V
.
'.php'
;
$file
_path
=
dirname
(
__FILE__
)
.
DS
.
implode
(
DS
,
$class_path
)
.
$v
.
'.php'
;
if
(
count
(
$classPath
)
==
0
)
$classPath
[]
=
"X"
;
if
(
count
(
$class_path
)
==
0
)
{
$class_path
[]
=
"X"
;}
if
(
file_exists
(
$filePath
)
)
require_once
(
$filePath
);
if
(
file_exists
(
$file_path
))
{
require_once
(
$file_path
);}
}
}
);
);
?>
?>
\ No newline at end of file
composer.json
View file @
d67ecb5a
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
"email"
:
"xfilee@gmail.com"
"email"
:
"xfilee@gmail.com"
}
}
],
],
"version"
:
"1.0.
3-dev
"
,
"version"
:
"1.0.
5
"
,
"require"
:
{},
"require"
:
{
"php"
:
"^5.6 || ^7.0"
},
"autoload"
:
{
"autoload"
:
{
"files"
:
[
"files"
:
[
"
_
autoload.php"
"autoload.php"
]
]
}
}
}
}
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