Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerry wham
Make-S5-Easy
Commits
bb91de31
Commit
bb91de31
authored
Oct 25, 2017
by
jerry wham
Browse files
Update prepend.php
parent
6bae3585
Changes
1
Hide whitespace changes
Inline
Side-by-side
prepend.php
View file @
bb91de31
...
...
@@ -299,6 +299,7 @@
$root
=
substr
(
$racine
,
strpos
(
$racine
,
'://'
)
+
3
,
strpos
(
$racine
,
basename
(
$racine
))
+
4
);
$racine
=
substr
(
$root
,
strpos
(
$root
,
'/'
));
}
$racine
=
str_replace
(
DS
,
'/'
,
$racine
);
return
$racine
;
}
...
...
@@ -310,7 +311,7 @@
$basename
=
basename
(
$_SERVER
[
'DOCUMENT_ROOT'
]);
$root
=
substr
(
MS5E_ROOT
,
strpos
(
MS5E_ROOT
,
$basename
)
+
strlen
(
$basename
)
);
$path
=
str_replace
(
MS5E_ROOT
,
''
,
$path
);
return
$protocol
.
$servername
.
$serverport
.
$root
.
$path
;
return
str_replace
(
DS
,
'/'
,
$protocol
.
$servername
.
$serverport
.
$root
.
$path
)
;
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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