]>
Commit | Line | Data |
---|---|---|
45034273 SS |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head>{include="includes"}</head> | |
4 | <body onload="document.configform.title.focus();"> | |
5 | <div id="pageheader"> | |
823a363c | 6 | {include="page.header"} |
823a363c A |
7 | <form method="POST" action="#" name="configform" id="configform"> |
8 | <input type="hidden" name="token" value="{$token}"> | |
9 | <table id="configuration_table"> | |
858c5c2b | 10 | |
823a363c A |
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> | |
858c5c2b | 15 | |
823a363c | 16 | <tr> |
6177f320 | 17 | <td><b>Home link:</b></td> |
823a363c A |
18 | <td><input type="text" name="titleLink" id="titleLink" size="50" value="{$titleLink}"><br/><label |
19 | for="titleLink">(default value is: ?)</label></td> | |
20 | </tr> | |
adc4aee8 KT |
21 | |
22 | <tr> | |
23 | <td><b>Theme:</b></td> | |
24 | <td> | |
25 | <select name="theme" id="theme"> | |
26 | {loop="$theme_available"} | |
04a0e8ea | 27 | <option value="{$value}" {if="$value===$theme"}selected{/if}> |
a0df0651 A |
28 | {$value|ucfirst} |
29 | </option> | |
adc4aee8 KT |
30 | {/loop} |
31 | </select> | |
adc4aee8 KT |
32 | </td> |
33 | </tr> | |
34 | ||
823a363c A |
35 | <tr> |
36 | <td><b>Timezone:</b></td> | |
49bc541d A |
37 | <td> |
38 | <select id="continent" name="continent"> | |
39 | {loop="$continents"} | |
40 | {if="$key !== 'selected'"} | |
41 | <option value="{$value}" {if="$continents.selected === $value"}selected{/if}> | |
42 | {$value} | |
43 | </option> | |
44 | {/if} | |
45 | {/loop} | |
46 | </select> | |
47 | <select id="city" name="city"> | |
48 | {loop="$cities"} | |
49 | {if="$key !== 'selected'"} | |
50 | <option value="{$value.city}" | |
51 | {if="$cities.selected === $value.city"}selected{/if} | |
52 | data-continent="{$value.continent}"> | |
53 | {$value.city} | |
54 | </option> | |
55 | {/if} | |
56 | {/loop} | |
57 | </select> | |
58 | </td> | |
823a363c | 59 | </tr> |
858c5c2b | 60 | |
823a363c A |
61 | <tr> |
62 | <td><b>Security:</b></td> | |
63 | <td> | |
64 | <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection" | |
2e193ad3 | 65 | {if="$session_protection_disabled"}checked{/if}> |
823a363c A |
66 | <label |
67 | for="disablesessionprotection"> Disable session cookie hijacking protection (Check this if you get | |
68 | disconnected often or if your IP address changes often.)</label> | |
69 | </td> | |
70 | </tr> | |
858c5c2b | 71 | |
823a363c A |
72 | <tr> |
73 | <td valign="top"><b>New link:</b></td> | |
74 | <td> | |
75 | <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault" | |
684e662a | 76 | {if="$private_links_default"}checked{/if}/> |
823a363c A |
77 | <label for="privateLinkByDefault"> |
78 | All new links are private by default | |
79 | </label> | |
80 | </td> | |
81 | </tr> | |
82 | <tr> | |
83 | <td valign="top"><b>RSS direct links</b></td> | |
84 | <td> | |
85 | <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks" | |
684e662a | 86 | {if="$enable_rss_permalinks"}checked{/if}/> |
823a363c A |
87 | <label for="enableRssPermalinks"> |
88 | Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b> | |
da10377b | 89 | {if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b> |
823a363c A |
90 | </label> |
91 | </td> | |
92 | </tr> | |
93 | <tr> | |
94 | <td valign="top"><b>Hide public links</b></td> | |
95 | <td> | |
96 | <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks" | |
684e662a | 97 | {if="$hide_public_links"}checked{/if}/> |
823a363c A |
98 | <label for="hidePublicLinks"> Do not show any links if the user is not logged in.</label> |
99 | </td> | |
100 | </tr> | |
101 | <tr> | |
102 | <td valign="top"><b>Update:</b></td> | |
103 | <td> | |
104 | <input type="checkbox" name="updateCheck" id="updateCheck" | |
684e662a | 105 | {if="$enable_update_check"}checked{/if}/> |
823a363c A |
106 | <label for="updateCheck"> Notify me when a new release is ready</label> |
107 | </td> | |
108 | </tr> | |
cbfdcff2 | 109 | <tr> |
18e67967 | 110 | <td valign="top"><b>Enable REST API</b></td> |
cbfdcff2 | 111 | <td> |
76be95e1 | 112 | <input type="checkbox" name="enableApi" id="enableApi" |
cbfdcff2 | 113 | {if="$api_enabled"}checked{/if}/> |
76be95e1 | 114 | <label for="enableApi"> Allow third party software to use Shaarli such as mobile application.</label> |
cbfdcff2 A |
115 | </td> |
116 | </tr> | |
117 | <tr> | |
118 | <td valign="top"><b>API secret</b></td> | |
119 | <td> | |
120 | <input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" /> | |
121 | </td> | |
122 | </tr> | |
1b93137e A |
123 | <tr> |
124 | <td valign="top"><b>Enable thumbnails</b></td> | |
125 | <td> | |
b302b3c5 A |
126 | <select name="enableThumbnails" id="enableThumbnails" class="align"> |
127 | <option value="all" {if="$thumbnails_mode=='all'"}selected{/if}> | |
128 | {'All'|t} | |
129 | </option> | |
130 | <option value="common" {if="$thumbnails_mode=='common'"}selected{/if}> | |
131 | {'Only common media hosts'|t} | |
132 | </option> | |
133 | <option value="none" {if="$thumbnails_mode=='none'"}selected{/if}> | |
134 | {'None'|t} | |
135 | </option> | |
136 | </select> | |
1b93137e | 137 | <label for="enableThumbnails"> |
28f26524 A |
138 | {if="! $gd_enabled"} |
139 | {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t} | |
140 | {elseif="$thumbnails_enabled"} | |
141 | <a href="?do=thumbs_update">{'Synchonize thumbnails'|t}</a> | |
142 | {/if} | |
1b93137e A |
143 | </label> |
144 | </td> | |
145 | </tr> | |
567967fd | 146 | |
823a363c A |
147 | <tr> |
148 | <td></td> | |
149 | <td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td> | |
150 | </tr> | |
151 | </table> | |
152 | </form> | |
45034273 SS |
153 | </div> |
154 | {include="page.footer"} | |
155 | </body> | |
ed5b38dd | 156 | </html> |