2013-02-26 10:09:41 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>{include="includes"}</head>
|
|
|
|
<body onload="document.configform.title.focus();">
|
|
|
|
<div id="pageheader">
|
2016-05-16 08:54:03 +02:00
|
|
|
{include="page.header"}
|
|
|
|
<form method="POST" action="#" name="configform" id="configform">
|
|
|
|
<input type="hidden" name="token" value="{$token}">
|
|
|
|
<table id="configuration_table">
|
2013-03-01 22:21:10 +01:00
|
|
|
|
2016-05-16 08:54:03 +02:00
|
|
|
<tr>
|
|
|
|
<td><b>Page title:</b></td>
|
|
|
|
<td><input type="text" name="title" id="title" size="50" value="{$title}"></td>
|
|
|
|
</tr>
|
2013-03-01 22:21:10 +01:00
|
|
|
|
2016-05-16 08:54:03 +02:00
|
|
|
<tr>
|
2017-05-03 19:13:29 +02:00
|
|
|
<td><b>Home link:</b></td>
|
2016-05-16 08:54:03 +02:00
|
|
|
<td><input type="text" name="titleLink" id="titleLink" size="50" value="{$titleLink}"><br/><label
|
|
|
|
for="titleLink">(default value is: ?)</label></td>
|
|
|
|
</tr>
|
2016-12-07 11:58:25 +01:00
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><b>Theme:</b></td>
|
|
|
|
<td>
|
|
|
|
<select name="theme" id="theme">
|
|
|
|
{loop="$theme_available"}
|
2017-01-03 12:01:25 +01:00
|
|
|
<option value="{$value}" {if="$value===$theme"}selected{/if}>
|
2017-01-03 11:42:21 +01:00
|
|
|
{$value|ucfirst}
|
|
|
|
</option>
|
2016-12-07 11:58:25 +01:00
|
|
|
{/loop}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2016-05-16 08:54:03 +02:00
|
|
|
<tr>
|
|
|
|
<td><b>Timezone:</b></td>
|
2017-04-03 19:23:30 +02:00
|
|
|
<td>
|
|
|
|
<select id="continent" name="continent">
|
|
|
|
{loop="$continents"}
|
|
|
|
{if="$key !== 'selected'"}
|
|
|
|
<option value="{$value}" {if="$continents.selected === $value"}selected{/if}>
|
|
|
|
{$value}
|
|
|
|
</option>
|
|
|
|
{/if}
|
|
|
|
{/loop}
|
|
|
|
</select>
|
|
|
|
<select id="city" name="city">
|
|
|
|
{loop="$cities"}
|
|
|
|
{if="$key !== 'selected'"}
|
|
|
|
<option value="{$value.city}"
|
|
|
|
{if="$cities.selected === $value.city"}selected{/if}
|
|
|
|
data-continent="{$value.continent}">
|
|
|
|
{$value.city}
|
|
|
|
</option>
|
|
|
|
{/if}
|
|
|
|
{/loop}
|
|
|
|
</select>
|
|
|
|
</td>
|
2016-05-16 08:54:03 +02:00
|
|
|
</tr>
|
2013-03-01 22:21:10 +01:00
|
|
|
|
2016-05-16 08:54:03 +02:00
|
|
|
<tr>
|
|
|
|
<td><b>Security:</b></td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
|
2016-07-10 10:42:21 +02:00
|
|
|
{if="$session_protection_disabled"}checked{/if}>
|
2016-05-16 08:54:03 +02:00
|
|
|
<label
|
|
|
|
for="disablesessionprotection"> Disable session cookie hijacking protection (Check this if you get
|
|
|
|
disconnected often or if your IP address changes often.)</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-03-01 22:21:10 +01:00
|
|
|
|
2016-05-16 08:54:03 +02:00
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>New link:</b></td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
|
2016-05-18 21:48:24 +02:00
|
|
|
{if="$private_links_default"}checked{/if}/>
|
2016-05-16 08:54:03 +02:00
|
|
|
<label for="privateLinkByDefault">
|
|
|
|
All new links are private by default
|
|
|
|
</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>RSS direct links</b></td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
|
2016-05-18 21:48:24 +02:00
|
|
|
{if="$enable_rss_permalinks"}checked{/if}/>
|
2016-05-16 08:54:03 +02:00
|
|
|
<label for="enableRssPermalinks">
|
|
|
|
Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b>
|
2016-05-29 16:10:32 +02:00
|
|
|
{if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b>
|
2016-05-16 08:54:03 +02:00
|
|
|
</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>Hide public links</b></td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
|
2016-05-18 21:48:24 +02:00
|
|
|
{if="$hide_public_links"}checked{/if}/>
|
2016-05-16 08:54:03 +02:00
|
|
|
<label for="hidePublicLinks"> Do not show any links if the user is not logged in.</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>Update:</b></td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="updateCheck" id="updateCheck"
|
2016-05-18 21:48:24 +02:00
|
|
|
{if="$enable_update_check"}checked{/if}/>
|
2016-05-16 08:54:03 +02:00
|
|
|
<label for="updateCheck"> Notify me when a new release is ready</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-07-31 10:46:17 +02:00
|
|
|
<tr>
|
2016-12-15 10:13:00 +01:00
|
|
|
<td valign="top"><b>Enable REST API</b></td>
|
2016-07-31 10:46:17 +02:00
|
|
|
<td>
|
2017-03-22 19:58:22 +01:00
|
|
|
<input type="checkbox" name="enableApi" id="enableApi"
|
2016-07-31 10:46:17 +02:00
|
|
|
{if="$api_enabled"}checked{/if}/>
|
2017-03-22 19:58:22 +01:00
|
|
|
<label for="enableApi"> Allow third party software to use Shaarli such as mobile application.</label>
|
2016-07-31 10:46:17 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>API secret</b></td>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="apiSecret" id="apiSecret" size="50" value="{$api_secret}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-11-09 18:57:02 +01:00
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>Enable thumbnails</b></td>
|
|
|
|
<td>
|
2018-07-05 20:29:55 +02:00
|
|
|
<select name="enableThumbnails" id="enableThumbnails" class="align">
|
|
|
|
<option value="all" {if="$thumbnails_mode=='all'"}selected{/if}>
|
|
|
|
{'All'|t}
|
|
|
|
</option>
|
|
|
|
<option value="common" {if="$thumbnails_mode=='common'"}selected{/if}>
|
|
|
|
{'Only common media hosts'|t}
|
|
|
|
</option>
|
|
|
|
<option value="none" {if="$thumbnails_mode=='none'"}selected{/if}>
|
|
|
|
{'None'|t}
|
|
|
|
</option>
|
|
|
|
</select>
|
2016-11-09 18:57:02 +01:00
|
|
|
<label for="enableThumbnails">
|
2018-06-08 12:50:49 +02:00
|
|
|
{if="! $gd_enabled"}
|
|
|
|
{'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t}
|
|
|
|
{elseif="$thumbnails_enabled"}
|
|
|
|
<a href="?do=thumbs_update">{'Synchonize thumbnails'|t}</a>
|
|
|
|
{/if}
|
2016-11-09 18:57:02 +01:00
|
|
|
</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-07-15 11:47:12 +02:00
|
|
|
|
2016-05-16 08:54:03 +02:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2013-02-26 10:09:41 +01:00
|
|
|
</div>
|
|
|
|
{include="page.footer"}
|
|
|
|
</body>
|
2014-11-21 21:31:21 +01:00
|
|
|
</html>
|