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
Dirk Dankhoff
ISPConfig 3
Commits
6c343bcc
Commit
6c343bcc
authored
Jun 29, 2010
by
tbrehm
Browse files
No commit message
No commit message
parent
7a4489f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
6c343bcc
...
...
@@ -1243,13 +1243,13 @@ class installer_base {
$tmp
=
new
$module_name
;
if
(
$tmp
->
onInstall
())
{
if
(
!@
is_link
(
$install_dir
.
'/server/mods-enabled/'
.
$file
))
{
//
@symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file);
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
'../mods-enabled/'
.
$file
);
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
$install_dir
.
'/server/mods-enabled/'
.
$file
);
//
@symlink($install_dir.'/server/mods-available/'.$file, '../mods-enabled/'.$file);
}
if
(
strpos
(
$file
,
'_core_module'
)
!==
false
)
{
if
(
!@
is_link
(
$install_dir
.
'/server/mods-core/'
.
$file
))
{
//
@symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-core/'.$file);
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
'../mods-core/'
.
$file
);
@
symlink
(
$install_dir
.
'/server/mods-available/'
.
$file
,
$install_dir
.
'/server/mods-core/'
.
$file
);
//
@symlink($install_dir.'/server/mods-available/'.$file, '../mods-core/'.$file);
}
}
}
...
...
@@ -1270,13 +1270,13 @@ class installer_base {
$tmp
=
new
$plugin_name
;
if
(
method_exists
(
$tmp
,
'onInstall'
)
&&
$tmp
->
onInstall
())
{
if
(
!@
is_link
(
$install_dir
.
'/server/plugins-enabled/'
.
$file
))
{
//
@symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-enabled/'.$file);
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
'../plugins-enabled/'
.
$file
);
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
$install_dir
.
'/server/plugins-enabled/'
.
$file
);
//
@symlink($install_dir.'/server/plugins-available/'.$file, '../plugins-enabled/'.$file);
}
if
(
strpos
(
$file
,
'_core_plugin'
)
!==
false
)
{
if
(
!@
is_link
(
$install_dir
.
'/server/plugins-core/'
.
$file
))
{
//
@symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-core/'.$file);
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
'../plugins-core/'
.
$file
);
@
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
$install_dir
.
'/server/plugins-core/'
.
$file
);
//
@symlink($install_dir.'/server/plugins-available/'.$file, '../plugins-core/'.$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