Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
backup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web2project
backup
Commits
57e496ef
Commit
57e496ef
authored
9 years ago
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index.php: update
parent
704ce96f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
index.php
index.php
+35
-4
No files found.
index.php
View file @
57e496ef
...
...
@@ -14,14 +14,45 @@
// Completely reworked the backup system to use ADODB primitives.
// Added localisation code so that it can be translated.
$perms
=&
$AppUI
->
acl
();
if
(
!
$perms
->
checkModule
(
'backup'
,
'view'
))
// Should we have an exec permission?
$AppUI
->
redirect
(
"m=public&a=access_denied"
);
$perms
=
&
$AppUI
->
acl
();
if
(
!
$perms
->
checkModuleItem
(
'backup'
,
'access'
))
{
$AppUI
->
redirect
(
ACCESS_DENIED
);
}
// Which tab do we need to show?
$tab
=
$AppUI
->
processIntState
(
'backupIdxTab'
,
$_GET
,
'tab'
,
0
);
// we check for permissions on this module
$canRead
=
$perms
->
checkModule
(
$m
,
'view'
);
$canEdit
=
$perms
->
checkModule
(
$m
,
'edit'
);
$canDelete
=
$perms
->
checkModule
(
$m
,
'delete'
);
// lock out users that do not have at least readPermission on this module
if
(
!
$canRead
)
{
$AppUI
->
redirect
(
"m=public&a=access_denied"
);
}
$title
=
new
CTitleBlock
(
'Backup Database'
,
'companies.gif'
,
$m
,
$m
.
'.'
.
$a
);
$title
->
addCrumb
(
'index.php?m=backup&a=restore'
,
'restore xml file'
);
$title
->
addCell
();
$title
->
addCell
(
'<input type="submit" class="button" value="'
.
$AppUI
->
_
(
'restore xml file'
)
.
'">'
,
''
,
'<form action="?m=backup&a=addedit" method="post">'
,
'</form>'
);
$title
->
show
();
// now prepare and show the tabbed information boxes
// The Period default for the timesheets (month,week)
// $period = $AppUI->getPref('TIMESHEET_PERIOD');
// build new tab box object
$tabBox
=
new
CTabBox
(
"?m=
$m
"
,
W2P_BASE_DIR
.
"/modules/
$m
/"
,
$tab
);
$tabBox
->
add
(
'vw_idx_backup'
,
'All backup'
);
$tabBox
->
show
();
// FIXME: the below should be rewritten to match web2Project
?>
<script>
function
check_backup_options
()
{
...
...
This diff is collapsed.
Click to expand it.
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