tools.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head><title>{{.title}}</title></head>
  3. <body>
  4. <ol>
  5. <li id="disclosure">
  6. <b>Responsible Disclosure:</b> In case you are reluctant to <a
  7. href="http://purl.mro.name/ShaarliGo/issues">file a public issue</a>, feel free to
  8. email <a href="mailto:security@mro.name?subject=ShaarliGo">security@mro.name</a>.
  9. </li>
  10. <li id="update">
  11. <b>Update:</b> Just replace the file <code>shaarligo.cgi</code>. To update the assets, delete them and
  12. <code>app/delete_me_to_restore</code>, then clear your browser cache and visit the CGI, e.g.
  13. the <a href="../search/?q=foo">search</a>.
  14. <br class="br"/>
  15. <br class="br"/>
  16. <code>$ curl -LRo shaarligo.cgi http://purl.mro.name/Linux-x86_64/shaarligo.cgi<br class="br"/>
  17. # copy to your webspace<br class="br"/>
  18. $ chmod 555 shaarligo.cgi<br class="br"/>
  19. $ rm -rf app/delete_me_to_restore themes/current .htaccess app/.htaccess app/lighttpd.conf</code>
  20. </li>
  21. <li id="config"><a href="../config/">Config</a></li>
  22. <li>
  23. <form class="form-inline" name="tag_rename">
  24. <div class="form-group">
  25. <label for="tag_rename_old">Rename Tag:</label>
  26. <input type="text" class="form-control" id="tag_rename_old" placeholder="#before" value="{{ .tag_rename_old }}"/>
  27. </div>
  28. <div class="form-group">
  29. <label for="tag_rename_new" class="sr-only">To:</label>
  30. <input type="text" class="form-control" id="tag_rename_new" placeholder="#after" value="{{ .tag_rename_new }}"/>
  31. </div>
  32. <button type="submit" class="btn btn-primary">Rename</button>
  33. </form>
  34. </li>
  35. <li>
  36. <form class="form-inline" name="shaarli_import" method="post">
  37. <div class="form-group">
  38. <label for="shaarli_import_url">Import Other Shaarli:</label>
  39. <input type="url" class="form-control" name="shaarli_import_url" placeholder="https://demo.shaarli.org/?" value="{{ .other_shaarli_url }}"/>
  40. </div>
  41. <div class="form-group">
  42. <label for="shaarli_import_tag" class="sr-only">#MarkerForThisImport</label>
  43. <input type="text" class="form-control" name="shaarli_import_tag" placeholder="#MarkerTagForThisImport" value="#{{ .other_shaarli_tag }}"/>
  44. </div>
  45. <button name="shaarli_import_submit" type="submit" value="shaarli_import_submit" class="btn btn-primary">Import</button>
  46. </form>
  47. </li>
  48. <li id="bookmarklet">
  49. <b>Bookmarklet:</b> <a
  50. onclick="alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...');return false;"
  51. href="javascript:javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('{{.xml_base}}?post='%20+%20encodeURIComponent(url)+'&amp;title='%20+%20encodeURIComponent(title)+'&amp;description='%20+%20encodeURIComponent(document.getSelection())+'&amp;source=bookmarklet','_blank','menubar=no,height=450,width=600,toolbar=no,scrollbars=no,status=no,dialog=1');})();"
  52. >✚ShaarliGo 🌺</a>
  53. <span>⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link…).
  54. Then click "✚ShaarliGo 🌺" button in any page you want to share.</span>
  55. </li>
  56. <li id="version">
  57. <b>Version:</b> <a href="http://purl.mro.name/ShaarliGo/v{{.version}}+{{.gitsha1}}"><span id="number">v{{.version}}</span>+<span id="gitsha1">{{.gitsha1}}</span></a>
  58. </li>
  59. </ol>
  60. </body>
  61. </html>