3 <head>{
include="includes"}
</head>
4 <body onload=
"document.configform.title.focus();">
6 {
include="page.header"}
7 <form method=
"POST" action=
"{$base_path}/admin/configure" name=
"configform" id=
"configform">
8 <input type=
"hidden" name=
"token" value=
"{$token}">
9 <table id=
"configuration_table">
12 <td><b>Page title:
</b></td>
13 <td><input type=
"text" name=
"title" id=
"title" size=
"50" value=
"{$title}"></td>
17 <td><b>Home link:
</b></td>
18 <td><input type=
"text" name=
"titleLink" id=
"titleLink" size=
"50" value=
"{$titleLink}"><br/><label
19 for=
"titleLink">(default value is: {$base_path}/)
</label></td>
23 <td><b>Theme:
</b></td>
25 <select name=
"theme" id=
"theme">
26 {
loop="$theme_available"}
27 <option value=
"{$value}" {
if=
"$value===$theme"}selected{/if}
>
36 <td><b>Description formatter:
</b></td>
38 <select name=
"formatter" id=
"formatter">
39 {
loop="$formatter_available"}
40 <option value=
"{$value}" {
if=
"$value===$formatter"}selected{/if}
>
49 <td><b>Timezone:
</b></td>
51 <select id=
"continent" name=
"continent">
53 {
if="$key !== 'selected'"}
54 <option value=
"{$value}" {
if=
"$continents.selected === $value"}selected{/if}
>
60 <select id=
"city" name=
"city">
62 {
if="$key !== 'selected'"}
63 <option value=
"{$value.city}"
64 {
if=
"$cities.selected === $value.city"}selected{/if}
65 data-continent=
"{$value.continent}">
75 <td><b>Security:
</b></td>
77 <input type=
"checkbox" name=
"disablesessionprotection" id=
"disablesessionprotection"
78 {
if=
"$session_protection_disabled"}checked{/if}
>
80 for=
"disablesessionprotection"> Disable session cookie hijacking protection (Check this if you get
81 disconnected often or if your IP address changes often.)
</label>
86 <td valign=
"top"><b>New link:
</b></td>
88 <input type=
"checkbox" name=
"privateLinkByDefault" id=
"privateLinkByDefault"
89 {
if=
"$private_links_default"}checked{/if}
/>
90 <label for=
"privateLinkByDefault">
91 All new links are private by default
96 <td valign=
"top"><b>RSS direct links
</b></td>
98 <input type=
"checkbox" name=
"enableRssPermalinks" id=
"enableRssPermalinks"
99 {
if=
"$enable_rss_permalinks"}checked{/if}
/>
100 <label for=
"enableRssPermalinks">
101 Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently
<b>
102 {
if="$enable_rss_permalinks"}enabled{else}disabled{/if}.
</b>
107 <td valign=
"top"><b>Hide public links
</b></td>
109 <input type=
"checkbox" name=
"hidePublicLinks" id=
"hidePublicLinks"
110 {
if=
"$hide_public_links"}checked{/if}
/>
111 <label for=
"hidePublicLinks"> Do not show any links if the user is not logged in.
</label>
115 <td valign=
"top"><b>Update:
</b></td>
117 <input type=
"checkbox" name=
"updateCheck" id=
"updateCheck"
118 {
if=
"$enable_update_check"}checked{/if}
/>
119 <label for=
"updateCheck"> Notify me when a new release is ready
</label>
123 <td valign=
"top"><b>Automatically retrieve description for new bookmarks:
</b></td>
125 <input type=
"checkbox" name=
"retrieveDescription" id=
"retrieveDescription"
126 {
if=
"$retrieve_description"}checked{/if}
/>
127 <label for=
"retrieveDescription"> Shaarli will try to retrieve the description from meta HTML headers
</label>
131 <td valign=
"top"><b>Enable REST API
</b></td>
133 <input type=
"checkbox" name=
"enableApi" id=
"enableApi"
134 {
if=
"$api_enabled"}checked{/if}
/>
135 <label for=
"enableApi"> Allow third party software to use Shaarli such as mobile application.
</label>
139 <td valign=
"top"><b>API secret
</b></td>
141 <input type=
"text" name=
"apiSecret" id=
"apiSecret" size=
"50" value=
"{$api_secret}" />
145 <td valign=
"top"><b>Enable thumbnails
</b></td>
147 <select name=
"enableThumbnails" id=
"enableThumbnails" class=
"align">
148 <option value=
"all" {
if=
"$thumbnails_mode=='all'"}selected{/if}
>
151 <option value=
"common" {
if=
"$thumbnails_mode=='common'"}selected{/if}
>
152 {'Only common media hosts'|t}
154 <option value=
"none" {
if=
"$thumbnails_mode=='none'"}selected{/if}
>
158 <label for=
"enableThumbnails">
160 {'You need to enable the extension
<code>php-gd
</code> to use thumbnails.'|t}
161 {
elseif="$thumbnails_enabled"}
162 <a href=
"{$base_path}/admin/thumbnails">{'Synchonize thumbnails'|t}
</a>
170 <td class=
"right"><input type=
"submit" name=
"Save" value=
"Save config" class=
"bigbutton"></td>
175 {
include="page.footer"}