Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
ISPConfig 3
Commits
6477cf68
Commit
6477cf68
authored
4 years ago
by
Till Brehm
Browse files
Options
Downloads
Plain Diff
Merge branch 'system-move' into 'develop'
Add move to system.inc.php See merge request
ispconfig/ispconfig3!1142
parents
49a081d1
a108ce41
No related branches found
No related tags found
1 merge request
!1142
Add move to system.inc.php
Pipeline
#4975
passed
4 years ago
Stage: syntax
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/lib/classes/system.inc.php
+7
-0
7 additions, 0 deletions
server/lib/classes/system.inc.php
with
7 additions
and
0 deletions
server/lib/classes/system.inc.php
+
7
−
0
View file @
6477cf68
...
@@ -934,6 +934,13 @@ class system{
...
@@ -934,6 +934,13 @@ class system{
return
copy
(
$file1
,
$file2
);
return
copy
(
$file1
,
$file2
);
}
}
function
move
(
$file1
,
$file2
)
{
$cmd
=
'mv ? ?'
;
$this
->
exec_safe
(
$cmd
,
$file1
,
$file2
);
$return_var
=
$this
->
last_exec_retcode
();
return
$return_var
==
0
?
true
:
false
;
}
function
touch
(
$file
,
$allow_symlink
=
false
){
function
touch
(
$file
,
$allow_symlink
=
false
){
global
$app
;
global
$app
;
if
(
$allow_symlink
==
false
&&
@
file_exists
(
$file
)
&&
$this
->
checkpath
(
$file
)
==
false
)
{
if
(
$allow_symlink
==
false
&&
@
file_exists
(
$file
)
&&
$this
->
checkpath
(
$file
)
==
false
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment