This commit is contained in:
konrad 2017-05-30 21:47:55 +02:00
parent 86dafb255a
commit 68fd7bbfeb
4 changed files with 12 additions and 2 deletions

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
db-mysql.php Normal file → Executable file
View File

14
wallabag-export.php Normal file → Executable file
View File

@ -1,7 +1,8 @@
<?php
require_once 'db-mysql.php';
$db = new db('localhost', 'wallabag', 'root', 'tTuG04Z5N2', '');
$db = new db('db', 'wallabag', 'root', 'tTuG04Z5N2', '');
echo '<pre>';
//Get all Tags
$db->setCol('wallabag_tag');
$db->get();
@ -46,5 +47,14 @@ foreach($entries as $entry)
}
$entries = json_encode($entries);
echo $entries;
if(file_put_contents('wallabag_export.json', $entries))
{
echo 'Export successfully saved';
} else {
echo 'Error saving export';
}
//echo $entries;
echo '</pre>';