configure.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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>Security:</b></td>
  58. <td>
  59. <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
  60. {if="$session_protection_disabled"}checked{/if}>
  61. <label
  62. for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get
  63. disconnected often or if your IP address changes often.)</label>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td valign="top"><b>New link:</b></td>
  68. <td>
  69. <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
  70. {if="$private_links_default"}checked{/if}/>
  71. <label for="privateLinkByDefault">
  72. &nbsp;All new links are private by default
  73. </label>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td valign="top"><b>RSS direct links</b></td>
  78. <td>
  79. <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
  80. {if="$enable_rss_permalinks"}checked{/if}/>
  81. <label for="enableRssPermalinks">
  82. &nbsp;Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b>
  83. {if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b>
  84. </label>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td valign="top"><b>Hide public links</b></td>
  89. <td>
  90. <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
  91. {if="$hide_public_links"}checked{/if}/>
  92. <label for="hidePublicLinks">&nbsp;Do not show any links if the user is not logged in.</label>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td valign="top"><b>Update:</b></td>
  97. <td>
  98. <input type="checkbox" name="updateCheck" id="updateCheck"
  99. {if="$enable_update_check"}checked{/if}/>
  100. <label for="updateCheck">&nbsp;Notify me when a new release is ready</label>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td valign="top"><b>Enable REST API</b></td>
  105. <td>
  106. <input type="checkbox" name="enableApi" id="enableApi"
  107. {if="$api_enabled"}checked{/if}/>
  108. <label for="enableApi">&nbsp;Allow third party software to use Shaarli such as mobile application.</label>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td valign="top"><b>API secret</b></td>
  113. <td>
  114. <input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" />
  115. </td>
  116. </tr>
  117. <tr>
  118. <td valign="top"><b>Enable thumbnails</b></td>
  119. <td>
  120. <select name="enableThumbnails" id="enableThumbnails" class="align">
  121. <option value="all" {if="$thumbnails_mode=='all'"}selected{/if}>
  122. {'All'|t}
  123. </option>
  124. <option value="common" {if="$thumbnails_mode=='common'"}selected{/if}>
  125. {'Only common media hosts'|t}
  126. </option>
  127. <option value="none" {if="$thumbnails_mode=='none'"}selected{/if}>
  128. {'None'|t}
  129. </option>
  130. </select>
  131. <label for="enableThumbnails">
  132. {if="! $gd_enabled"}
  133. {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t}
  134. {elseif="$thumbnails_enabled"}
  135. <a href="?do=thumbs_update">{'Synchonize thumbnails'|t}</a>
  136. {/if}
  137. </label>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td></td>
  142. <td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td>
  143. </tr>
  144. </table>
  145. </form>
  146. </div>
  147. {include="page.footer"}
  148. </body>
  149. </html>