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
lolo888
ISPConfig 3
Commits
2ffaf4b0
Commit
2ffaf4b0
authored
Aug 20, 2007
by
pedro_morgan
Browse files
Minor code cleanup
parent
c9dfe47f
Changes
1
Show whitespace changes
Inline
Side-by-side
install/lib/install.lib.php
View file @
2ffaf4b0
...
...
@@ -119,7 +119,7 @@ function phpcaselog($ret_val, $msg, $file = '', $line = ''){
}
function
mkdirs
(
$strPath
,
$mode
=
'0755'
){
if
(
isset
(
$strPath
)
&&
$strPath
!=
""
){
if
(
isset
(
$strPath
)
&&
$strPath
!=
''
){
//* Verzeichnisse rekursiv erzeugen
if
(
is_dir
(
$strPath
)){
return
true
;
...
...
@@ -236,17 +236,17 @@ function find_includes($file){
$lines
=
explode
(
"
\n
"
,
$inhalt
);
if
(
!
empty
(
$lines
)){
foreach
(
$lines
as
$line
){
if
(
stristr
(
$line
,
"
include
"
)){
$include_file
=
str_replace
(
"
\n
"
,
""
,
trim
(
shell_exec
(
"echo
\"
$line
\"
| awk '{print
\$
2}'"
)));
if
(
substr
(
$include_file
,
0
,
1
)
!=
"/"
){
$include_file
=
$httpd_root
.
"/"
.
$include_file
;
if
(
stristr
(
$line
,
'
include
'
)){
$include_file
=
str_replace
(
"
\n
"
,
''
,
trim
(
shell_exec
(
"echo
\"
$line
\"
| awk '{print
\$
2}'"
)));
if
(
substr
(
$include_file
,
0
,
1
)
!=
'/'
){
$include_file
=
$httpd_root
.
'/'
.
$include_file
;
}
if
(
is_file
(
$include_file
)){
if
(
$further_includes
=
find_includes
(
$include_file
)){
$includes
=
array_merge
(
$includes
,
$further_includes
);
}
}
else
{
if
(
strstr
(
$include_file
,
"*"
)){
if
(
strstr
(
$include_file
,
'*'
)){
$more_files
=
explode
(
"
\n
"
,
shell_exec
(
"ls -l
$include_file
| awk '{print
\$
9}'"
));
if
(
!
empty
(
$more_files
)){
foreach
(
$more_files
as
$more_file
){
...
...
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