aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/vintage/configure.html
blob: 160286a58228ba0ff4aa2dc88d011b17443fcb50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html>
<head>{include="includes"}</head>
<body onload="document.configform.title.focus();">
<div id="pageheader">
  {include="page.header"}
  <form method="POST" action="#" name="configform" id="configform">
    <input type="hidden" name="token" value="{$token}">
    <table id="configuration_table">

      <tr>
        <td><b>Page title:</b></td>
        <td><input type="text" name="title" id="title" size="50" value="{$title}"></td>
      </tr>

      <tr>
        <td><b>Home link:</b></td>
        <td><input type="text" name="titleLink" id="titleLink" size="50" value="{$titleLink}"><br/><label
            for="titleLink">(default value is: ?)</label></td>
      </tr>

      <tr>
        <td><b>Theme:</b></td>
        <td>
          <select name="theme" id="theme">
            {loop="$theme_available"}
              <option value="{$value}" {if="$value===$theme"}selected{/if}>
                {$value|ucfirst}
              </option>
            {/loop}
          </select>
        </td>
      </tr>

      <tr>
        <td><b>Timezone:</b></td>
        <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>
      </tr>

      <tr>
        <td><b>Security:</b></td>
        <td>
          <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
                   {if="$session_protection_disabled"}checked{/if}>
          <label
            for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get
            disconnected often or if your IP address changes often.)</label>
        </td>
      </tr>

      <tr>
        <td valign="top"><b>New link:</b></td>
        <td>
          <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
                 {if="$private_links_default"}checked{/if}/>
          <label for="privateLinkByDefault">
            &nbsp;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"
                 {if="$enable_rss_permalinks"}checked{/if}/>
          <label for="enableRssPermalinks">
            &nbsp;Disable it to use permalinks in RSS feed instead of direct links to your shaared links. Currently <b>
            {if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b>
          </label>
        </td>
      </tr>
      <tr>
        <td valign="top"><b>Hide public links</b></td>
        <td>
          <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
                 {if="$hide_public_links"}checked{/if}/>
          <label for="hidePublicLinks">&nbsp;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"
                 {if="$enable_update_check"}checked{/if}/>
          <label for="updateCheck">&nbsp;Notify me when a new release is ready</label>
        </td>
      </tr>
      <tr>
        <td valign="top"><b>Automatically retrieve description for new bookmarks:</b></td>
        <td>
          <input type="checkbox" name="retrieveDescription" id="retrieveDescription"
                 {if="$retrieve_description"}checked{/if}/>
          <label for="retrieveDescription">&nbsp;Shaarli will try to retrieve the description from meta HTML headers</label>
        </td>
      </tr>
      <tr>
        <td valign="top"><b>Enable REST API</b></td>
        <td>
          <input type="checkbox" name="enableApi" id="enableApi"
                 {if="$api_enabled"}checked{/if}/>
          <label for="enableApi">&nbsp;Allow third party software to use Shaarli such as mobile application.</label>
        </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>
      <tr>
        <td valign="top"><b>Enable thumbnails</b></td>
        <td>
          <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>
          <label for="enableThumbnails">
            {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}
          </label>
        </td>
      </tr>

      <tr>
        <td></td>
        <td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td>
      </tr>
    </table>
  </form>
</div>
{include="page.footer"}
</body>
</html>