configure.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html>
  3. <head>{include="includes"}</head>
  4. <body onload="document.configform.title.focus();">
  5. <div id="pageheader">
  6. {include="page.header"}
  7. {$timezone_js}
  8. <form method="POST" action="#" name="configform" id="configform">
  9. <input type="hidden" name="token" value="{$token}">
  10. <table id="configuration_table">
  11. <tr>
  12. <td><b>Page title:</b></td>
  13. <td><input type="text" name="title" id="title" size="50" value="{$title}"></td>
  14. </tr>
  15. <tr>
  16. <td><b>Title link:</b></td>
  17. <td><input type="text" name="titleLink" id="titleLink" size="50" value="{$titleLink}"><br/><label
  18. for="titleLink">(default value is: ?)</label></td>
  19. </tr>
  20. <tr>
  21. <td><b>Theme:</b></td>
  22. <td>
  23. <select name="theme" id="theme">
  24. {loop="$theme_available"}
  25. <option value="{$value}" {if="$value===$theme"}selected{/if}>
  26. {$value|ucfirst}
  27. </option>
  28. {/loop}
  29. </select>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td><b>Timezone:</b></td>
  34. <td>{$timezone_form}</td>
  35. </tr>
  36. <tr>
  37. <td><b>Redirector</b></td>
  38. <td>
  39. <input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br>
  40. (e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)
  41. </td>
  42. </tr>
  43. <tr>
  44. <td><b>Security:</b></td>
  45. <td>
  46. <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
  47. {if="$session_protection_disabled"}checked{/if}>
  48. <label
  49. for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get
  50. disconnected often or if your IP address changes often.)</label>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td valign="top"><b>New link:</b></td>
  55. <td>
  56. <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
  57. {if="$private_links_default"}checked{/if}/>
  58. <label for="privateLinkByDefault">
  59. &nbsp;All new links are private by default
  60. </label>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td valign="top"><b>RSS direct links</b></td>
  65. <td>
  66. <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
  67. {if="$enable_rss_permalinks"}checked{/if}/>
  68. <label for="enableRssPermalinks">
  69. &nbsp;Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b>
  70. {if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b>
  71. </label>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td valign="top"><b>Hide public links</b></td>
  76. <td>
  77. <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
  78. {if="$hide_public_links"}checked{/if}/>
  79. <label for="hidePublicLinks">&nbsp;Do not show any links if the user is not logged in.</label>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td valign="top"><b>Update:</b></td>
  84. <td>
  85. <input type="checkbox" name="updateCheck" id="updateCheck"
  86. {if="$enable_update_check"}checked{/if}/>
  87. <label for="updateCheck">&nbsp;Notify me when a new release is ready</label>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td valign="top"><b>Enable REST API</b></td>
  92. <td>
  93. <input type="checkbox" name="apiEnabled" id="apiEnabled"
  94. {if="$api_enabled"}checked{/if}/>
  95. <label for="apiEnabled">&nbsp;Allow third party software to use Shaarli such as mobile application.</label>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td valign="top"><b>API secret</b></td>
  100. <td>
  101. <input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" />
  102. </td>
  103. </tr>
  104. <tr>
  105. <td></td>
  106. <td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td>
  107. </tr>
  108. </table>
  109. </form>
  110. </div>
  111. {include="page.footer"}
  112. </body>
  113. </html>