123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <!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>Redirector</b></td>
- <td>
- <input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br>
- (e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)
- </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"> 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">
- 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">
- 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"> 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"> Notify me when a new release is ready</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"> 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></td>
- <td class="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td>
- </tr>
- </table>
- </form>
- </div>
- {include="page.footer"}
- </body>
- </html>
|