Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
bf116541
Commit
bf116541
authored
Apr 12, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: prettify backups 1/3
parent
7fe5a8cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
72 deletions
+68
-72
diag_backup.php
src/www/diag_backup.php
+68
-72
No files found.
src/www/diag_backup.php
View file @
bf116541
...
...
@@ -626,78 +626,74 @@ $( document ).ready(function() {
</div>
</div>
</section>
<section
class=
"__mb"
>
<div
class=
"content-box"
>
<header
class=
"content-box-head container-fluid"
>
<h3>
<?=
gettext
(
"Google Drive"
);
?>
</h3>
</header>
<div
class=
"content-box-main "
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped "
>
<thead>
<tr>
<th
class=
"col-sm-1"
></th>
<th
class=
"col-sm-3"
></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?=
gettext
(
"Enable"
);
?>
</td>
<td>
<input
name=
"GDriveEnabled"
type=
"checkbox"
<?=
!
empty
(
$pconfig
[
'GDriveEnabled'
])
?
"checked"
:
""
;
?>
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Email Address"
);
?>
</td>
<td>
<input
name=
"GDriveEmail"
value=
"
<?=
$pconfig
[
'GDriveEmail'
];
?>
"
type=
"text"
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"P12 key"
);
?>
<?=
!
empty
(
$pconfig
[
'GDriveP12key'
])
?
gettext
(
"(replace)"
)
:
gettext
(
"(not loaded)"
);
?>
</td>
<td>
<input
name=
"GDriveP12file"
type=
"file"
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Folder ID"
);
?>
</td>
<td>
<input
name=
"GDriveFolderID"
value=
"
<?=
$pconfig
[
'GDriveFolderID'
];
?>
"
type=
"text"
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Backup Count"
);
?>
</td>
<td>
<input
name=
"GDriveBackupCount"
value=
"
<?=
$pconfig
[
'GDriveBackupCount'
];
?>
"
type=
"text"
>
</td>
</tr>
<tr>
<td
colspan=
2
>
<?=
gettext
(
"Password protect your data"
);
?>
:
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Password :"
);
?>
</td>
<td>
<input
name=
"GDrivePassword"
type=
"password"
value=
"
<?=
$pconfig
[
'GDrivePassword'
];
?>
"
/>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Confirm :"
);
?>
</td>
<td>
<input
name=
"GDrivePasswordConfirm"
type=
"password"
value=
"
<?=
$pconfig
[
'GDrivePassword'
];
?>
"
/>
</td>
</tr>
<tr>
<td>
<input
name=
"setup_gdrive"
class=
"btn btn-primary"
id=
"Gdrive"
value=
"
<?=
gettext
(
"Setup/Test Google Drive"
);
?>
"
type=
"submit"
>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<div
class=
"content-box tab-content table-responsive"
>
<table
class=
"table table-striped "
>
<thead
style=
"display: none;"
>
<tr>
<th
class=
"col-sm-1"
></th>
<th
class=
"col-sm-3"
></th>
</tr>
</thead>
<tbody>
<tr>
<th
colspan=
"2"
valign=
"top"
class=
"listtopic"
>
<?=
gettext
(
"Google Drive"
);
?>
</th>
</tr>
<tr>
<td>
<?=
gettext
(
"Enable"
);
?>
</td>
<td>
<input
name=
"GDriveEnabled"
type=
"checkbox"
<?=
!
empty
(
$pconfig
[
'GDriveEnabled'
])
?
"checked"
:
""
;
?>
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Email Address"
);
?>
</td>
<td>
<input
name=
"GDriveEmail"
value=
"
<?=
$pconfig
[
'GDriveEmail'
];
?>
"
type=
"text"
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"P12 key"
);
?>
<?=
!
empty
(
$pconfig
[
'GDriveP12key'
])
?
gettext
(
"(replace)"
)
:
gettext
(
"(not loaded)"
);
?>
</td>
<td>
<input
name=
"GDriveP12file"
type=
"file"
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Folder ID"
);
?>
</td>
<td>
<input
name=
"GDriveFolderID"
value=
"
<?=
$pconfig
[
'GDriveFolderID'
];
?>
"
type=
"text"
>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Backup Count"
);
?>
</td>
<td>
<input
name=
"GDriveBackupCount"
value=
"
<?=
$pconfig
[
'GDriveBackupCount'
];
?>
"
type=
"text"
>
</td>
</tr>
<tr>
<td
colspan=
2
>
<?=
gettext
(
"Password protect your data"
);
?>
:
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Password :"
);
?>
</td>
<td>
<input
name=
"GDrivePassword"
type=
"password"
value=
"
<?=
$pconfig
[
'GDrivePassword'
];
?>
"
/>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Confirm :"
);
?>
</td>
<td>
<input
name=
"GDrivePasswordConfirm"
type=
"password"
value=
"
<?=
$pconfig
[
'GDrivePassword'
];
?>
"
/>
</td>
</tr>
<tr>
<td>
<input
name=
"setup_gdrive"
class=
"btn btn-primary"
id=
"Gdrive"
value=
"
<?=
gettext
(
"Setup/Test Google Drive"
);
?>
"
type=
"submit"
>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</section>
</form>
</div>
...
...
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