configure.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. <form method="POST" action="#" name="configform" id="configform">
  8. <input type="hidden" name="token" value="{$token}">
  9. <table id="configuration_table">
  10. <tr>
  11. <td><b>Page title:</b></td>
  12. <td><input type="text" name="title" id="title" size="50" value="{$title}"></td>
  13. </tr>
  14. <tr>
  15. <td><b>Home link:</b></td>
  16. <td><input type="text" name="titleLink" id="titleLink" size="50" value="{$titleLink}"><br/><label
  17. for="titleLink">(default value is: ?)</label></td>
  18. </tr>
  19. <tr>
  20. <td><b>Theme:</b></td>
  21. <td>
  22. <select name="theme" id="theme">
  23. {loop="$theme_available"}
  24. <option value="{$value}" {if="$value===$theme"}selected{/if}>
  25. {$value|ucfirst}
  26. </option>
  27. {/loop}
  28. </select>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td><b>Timezone:</b></td>
  33. <td>
  34. <select id="continent" name="continent">
  35. {loop="$continents"}
  36. {if="$key !== 'selected'"}
  37. <option value="{$value}" {if="$continents.selected === $value"}selected{/if}>
  38. {$value}
  39. </option>
  40. {/if}
  41. {/loop}
  42. </select>
  43. <select id="city" name="city">
  44. {loop="$cities"}
  45. {if="$key !== 'selected'"}
  46. <option value="{$value.city}"
  47. {if="$cities.selected === $value.city"}selected{/if}
  48. data-continent="{$value.continent}">
  49. {$value.city}
  50. </option>
  51. {/if}
  52. {/loop}
  53. </select>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td><b>Redirector</b></td>
  58. <td>
  59. <input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br>
  60. (e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)
  61. </td>
  62. </tr>
  63. <tr>
  64. <td><b>Security:</b></td>
  65. <td>
  66. <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
  67. {if="$session_protection_disabled"}checked{/if}>
  68. <label
  69. for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get
  70. disconnected often or if your IP address changes often.)</label>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td valign="top"><b>New link:</b></td>
  75. <td>
  76. <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
  77. {if="$private_links_default"}checked{/if}/>
  78. <label for="privateLinkByDefault">
  79. &nbsp;All new links are private by default
  80. </label>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td valign="top"><b>RSS direct links</b></td>
  85. <td>
  86. <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
  87. {if="$enable_rss_permalinks"}checked{/if}/>
  88. <label for="enableRssPermalinks">
  89. &nbsp;Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b>
  90. {if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b>
  91. </label>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td valign="top"><b>Hide public links</b></td>
  96. <td>
  97. <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
  98. {if="$hide_public_links"}checked{/if}/>
  99. <label for="hidePublicLinks">&nbsp;Do not show any links if the user is not logged in.</label>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td valign="top"><b>Update:</b></td>
  104. <td>
  105. <input type="checkbox" name="updateCheck" id="updateCheck"
  106. {if="$enable_update_check"}checked{/if}/>
  107. <label for="updateCheck">&nbsp;Notify me when a new release is ready</label>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td valign="top"><b>Enable REST API</b></td>
  112. <td>
  113. <input type="checkbox" name="enableApi" id="enableApi"
  114. {if="$api_enabled"}checked{/if}/>
  115. <label for="enableApi">&nbsp;Allow third party software to use Shaarli such as mobile application.</label>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td valign="top"><b>API secret</b></td>
  120. <td>
  121. <input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" />
  122. </td>
  123. </tr>
  124. <tr>
  125. <td valign="top"><b>Enable thumbnails</b></td>
  126. <td>
  127. <input type="checkbox" name="enableThumbnails" id="enableThumbnails"
  128. {if="$thumbnails_enabled"}checked{/if} {if="!$gd_enabled"}disabled{/if}>
  129. <label for="enableThumbnails">
  130. {if="! $gd_enabled"}
  131. {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t}
  132. {elseif="$thumbnails_enabled"}
  133. <a href="?do=thumbs_update">{'Synchonize thumbnails'|t}</a>
  134. {/if}
  135. </label>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td></td>
  140. <td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td>
  141. </tr>
  142. </table>
  143. </form>
  144. </div>
  145. {include="page.footer"}
  146. </body>
  147. </html>