12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- if(!isset($config->cookie_name)) {
- $config->cookie_name = '';
- }
- if(!isset($config->secret)) {
- $config->secret = '';
- }
- if(!isset($config->email_config)) {
- $config->email_config = '';
- }
- ?>
- <table cellspacing="0" cellpadding="5" border="0">
- <tr>
- <td colspan="3">
- <h3>Macaroons configuration</h3>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label for="cookie_name">Cookie name</label>
- </td>
- <td>
- <input name="cookie_name" id="cookie_name" type="text" size="50" value="<?php echo $config->cookie_name; ?>" />
- </td>
- <td>Name of the cookie your macaroon is located in.</td>
- </tr>
- <tr>
- <td align="right">
- <label for="secret">Secret</label>
- </td>
- <td>
- <input name="secret" id="secret" type="text" size="50" value="<?php echo $config->secret; ?>" />
- </td>
- <td>The secret your macaroon was signed with</td>
- </tr>
- <tr>
- <td align="right">
- <label for="email_config">E-mail template</label>
- </td>
- <td>
- <input name="email_config" id="email_config" type="text" size="50" value="<?php echo $config->email_config; ?>" />
- </td>
- <td>Template for emails. Available placeholders are {{firstname}} and {{lastname}}.<br />
- eg: {{firstname}}.{{lastname}}@company.tld</td>
- </tr>
- </table>
|