Offer the possiblity to download the entire database
This commit is contained in:
parent
d63c28b16f
commit
6957bc3a2f
@ -200,6 +200,11 @@ textarea.form-error {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.form-help {
|
||||
font-size: 0.9em;
|
||||
color: brown;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* alerts */
|
||||
.alert {
|
||||
@ -310,10 +315,16 @@ nav .active a {
|
||||
color: #339966;
|
||||
}
|
||||
|
||||
.page-section {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.page-section,
|
||||
.page-header {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.page-section h2,
|
||||
.page-header h2 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -221,6 +221,13 @@ Router\post_action('add', function() {
|
||||
});
|
||||
|
||||
|
||||
Router\get_action('download-db', function() {
|
||||
|
||||
Response\force_download('db.sqlite.gz');
|
||||
Response\binary(gzencode(file_get_contents('data/db.sqlite')));
|
||||
});
|
||||
|
||||
|
||||
Router\get_action('export', function() {
|
||||
|
||||
Response\force_download('feeds.opml');
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>miniflux</title>
|
||||
<link href="./assets/css/app.css?v1" rel="stylesheet" media="screen">
|
||||
<link href="./assets/css/app.css?v2" rel="stylesheet" media="screen">
|
||||
<script type="text/javascript" src="./assets/js/app.js?v1" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -2,13 +2,14 @@
|
||||
<h2>Preferences</h2>
|
||||
</div>
|
||||
|
||||
<form method="post" action="?action=config">
|
||||
<form method="post" action="?action=config" autocomplete="off">
|
||||
|
||||
<?= Helper\form_label('Username', 'username') ?>
|
||||
<?= Helper\form_text('username', $values, $errors, array('required')) ?><br/>
|
||||
|
||||
<?= Helper\form_label('Password', 'password') ?>
|
||||
<?= Helper\form_password('password', $values, $errors) ?><br/>
|
||||
<?= Helper\form_password('password', $values, $errors) ?>
|
||||
<span class="form-help">Don't use the same password everywhere!</span><br/>
|
||||
|
||||
<?= Helper\form_label('Confirmation', 'confirmation') ?>
|
||||
<?= Helper\form_password('confirmation', $values, $errors) ?><br/>
|
||||
@ -16,4 +17,10 @@
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="Update" class="btn btn-blue"/>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
<div class="page-section">
|
||||
<h2>My data</h2>
|
||||
</div>
|
||||
|
||||
<p><a href="?action=download-db">Download the entire database</a> (Gzip compressed Sqlite file).</p>
|
Loading…
Reference in New Issue
Block a user