diff options
author | Arthur <arthur@hoa.ro> | 2016-04-14 14:25:50 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-04-14 14:25:50 +0100 |
commit | 62a5ba083d5137feaef9f4293c401521bad603b0 (patch) | |
tree | 4c8b55010ad02d91b524b0cb8cc02ddf318fcaa2 /doc/Datastore-hacks.md | |
parent | 9f400b0dad68b82d65692bd6ab6190f6a787fa89 (diff) | |
parent | 5409ade28c5f0acf99dbadd4d95e6f8efda5d395 (diff) | |
download | Shaarli-62a5ba083d5137feaef9f4293c401521bad603b0.tar.gz Shaarli-62a5ba083d5137feaef9f4293c401521bad603b0.tar.zst Shaarli-62a5ba083d5137feaef9f4293c401521bad603b0.zip |
Merge pull request #540 from ArthurHoaro/doc/update20160414
Update docs from Wiki
Diffstat (limited to 'doc/Datastore-hacks.md')
-rw-r--r-- | doc/Datastore-hacks.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/Datastore-hacks.md b/doc/Datastore-hacks.md index 33aa2223..ef6f6d50 100644 --- a/doc/Datastore-hacks.md +++ b/doc/Datastore-hacks.md | |||
@@ -12,8 +12,13 @@ exit; | |||
12 | ``` | 12 | ``` |
13 | This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation). | 13 | This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation). |
14 | 14 | ||
15 | Alternatively, you can transform to JSON format (and pretty-print if you have `jq` installed): | ||
16 | ``` | ||
17 | php -r 'print(json_encode(unserialize(gzinflate(base64_decode(preg_replace("!.*/\* (.+) \*/.*!", "$1", file_get_contents("data/datastore.php")))))));' | jq . | ||
18 | ``` | ||
19 | |||
15 | ### Changing the timestamp for a link | 20 | ### Changing the timestamp for a link |
16 | * Look for `<input type="hidden" name="lf_linkdate" value="{$link.linkdate}">` in `tpl/editlink.tpl` (line 14) | 21 | * Look for `<input type="hidden" name="lf_linkdate" value="{$link.linkdate}">` in `tpl/editlink.tpl` (line 14) |
17 | * Remove `type="hidden"` from this line | 22 | * Replace `type="hidden"` with `type="text"` from this line |
18 | * A new date/time field becomes available in the edit/new link dialog. | 23 | * A new date/time field becomes available in the edit/new link dialog. |
19 | * You can set the timestamp manually by entering it in the format `YYYMMDD_HHMMS`. | 24 | * You can set the timestamp manually by entering it in the format `YYYMMDD_HHMMS`. |