]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tpl/configure.html
Prepare settings for the API in the admin page and during the install
[github/shaarli/Shaarli.git] / tpl / configure.html
index b7f87c6845335bd078426fb6b6eae6d51afd8958..a015770ef1477004af51fcdae44a3921045a6772 100644 (file)
@@ -36,7 +36,7 @@
         <td><b>Security:</b></td>
         <td>
           <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
-                   {if="!empty($GLOBALS['disablesessionprotection'])"}checked{/if}>
+                   {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>
@@ -47,7 +47,7 @@
         <td valign="top"><b>New link:</b></td>
         <td>
           <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
-                 {if="!empty($GLOBALS['privateLinkByDefault'])"}checked{/if}/>
+                 {if="$private_links_default"}checked{/if}/>
           <label for="privateLinkByDefault">
             &nbsp;All new links are private by default
           </label>
         <td valign="top"><b>RSS direct links</b></td>
         <td>
           <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
-                 {if="!empty($GLOBALS['config']['ENABLE_RSS_PERMALINKS'])"}checked{/if}/>
+                 {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="$GLOBALS['config']['ENABLE_RSS_PERMALINKS']"}enabled{else}disabled{/if}.</b>
+            {if="$enable_rss_permalinks"}enabled{else}disabled{/if}.</b>
           </label>
         </td>
       </tr>
@@ -68,7 +68,7 @@
         <td valign="top"><b>Hide public links</b></td>
         <td>
           <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
-                 {if="!empty($GLOBALS['config']['HIDE_PUBLIC_LINKS'])"}checked{/if}/>
+                 {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>
         <td valign="top"><b>Update:</b></td>
         <td>
           <input type="checkbox" name="updateCheck" id="updateCheck"
-                 {if="!empty($GLOBALS['config']['ENABLE_UPDATECHECK'])"}checked{/if}/>
+                 {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>Enable API</b></td>
+        <td>
+          <input type="checkbox" name="apiEnabled" id="apiEnabled"
+                 {if="$api_enabled"}checked{/if}/>
+          <label for="apiEnabled">&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></td>