themes/grey/config.tpl
changeset 50 1b4288399b1f
child 72 b8730fcd64a9
equal deleted inserted replaced
49:d62212462f9b 50:1b4288399b1f
       
     1 {**
       
     2  * Template file for default Funky Monkey theme
       
     3  * Web control interface script for Amarok
       
     4  * Written by Dan Fuhry - 2008
       
     5  *
       
     6  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
       
     7  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
       
    10  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
       
    11  *}
       
    12 
       
    13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
       
    14 <html>
       
    15   <head>
       
    16     <title>Greyhound: Configuration</title>
       
    17     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
    18     <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" />
       
    19     <link rel="favorite icon" type="image/ico" href="/favicon.ico" />
       
    20     <script type="text/javascript" src="/scripts/config.js"></script>
       
    21   </head>
       
    22   <body>
       
    23   
       
    24     <div class="greylogo"></div>
       
    25     <a class="backlink" href="/index">&laquo; Return to playlist</a>
       
    26     <div class="clearer"></div>
       
    27   
       
    28     <form action="/config" method="post">
       
    29     
       
    30       <div class="tblholder">
       
    31         <table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
       
    32           <tr>
       
    33             <th colspan="2">Greyhound configuration</th>
       
    34           </tr>
       
    35           
       
    36           {if $tried}
       
    37           <tr>
       
    38             <td class="row3" colspan="2">
       
    39             {if $success}
       
    40               <p class="success">{$success|nl2br}</p>
       
    41             {else}
       
    42               <p class="error">{$error|nl2br}</p>
       
    43             {/if}
       
    44             </td>
       
    45           </tr>
       
    46           {/if}
       
    47           
       
    48           <!-- field - current config pass -->
       
    49           {if $needpass}
       
    50           <tr>
       
    51             <td class="row2" style="width: 50%;">
       
    52               <b>Current configuration password:</b><br />
       
    53               <small>Please input the current configuration password to make changes below.</small>
       
    54             </td>
       
    55             <td class="row1" style="width: 50%;">
       
    56               <input type="password" name="configpass" />
       
    57             </td>
       
    58           </tr>
       
    59           {/if}
       
    60           
       
    61           <!-- field - public IP -->
       
    62           <tr>
       
    63             <td class="row2" style="width: 50%;">
       
    64               <label for="chk_public"><b>Publicly accessible IP</b></label><br />
       
    65               <small>
       
    66                 This controls whether Greyhound can be accessed from other computers on the network interface level. For the nerds, this
       
    67                 means that Greyhound will bind to 127.0.0.1 if unchecked or 0.0.0.0 if checked.
       
    68               </small>
       
    69             </td>
       
    70             <td class="row1" style="width: 50%;">
       
    71               <input type="checkbox"
       
    72                      name="public"
       
    73                      id="chk_public"
       
    74                      {if $public}checked="checked"{/if}
       
    75                 />
       
    76             </td>
       
    77           </tr>
       
    78           
       
    79           <!-- field - allow control -->
       
    80           <tr>
       
    81             <td class="row2" style="width: 50%;">
       
    82               <label for="chk_allowcontrol"><b>Allow control of Amarok</b></label><br />
       
    83               <small>
       
    84                 Tick this option to enable full playback controls (recommended). Otherwise, Greyhound will just be a playlist viewer and
       
    85                 won't be able to do anything to control what Amarok is doing.
       
    86               </small>
       
    87             </td>
       
    88             <td class="row1" style="width: 50%;">
       
    89               <input type="checkbox"
       
    90                      name="allowcontrol"
       
    91                      id="chk_allowcontrol"
       
    92                      {if $allowcontrol}checked="checked"{/if}
       
    93                 />
       
    94             </td>
       
    95           </tr>
       
    96           
       
    97           <!-- field - allow multi-process -->
       
    98           <tr>
       
    99             <td class="row2" style="width: 50%;">
       
   100               <label for="chk_allow_fork"><b>Enable multi-process webserving</b></label><br />
       
   101               <small>
       
   102                 If this is enabled, Greyhound will use fork() to allow serving multiple HTTP requests at the same time. It is recommended
       
   103                 that you enable this to improve performance. In some rare cases, this results in a large number of zombie processes and
       
   104                 sometimes locks up the server, so disable this if you're experiencing problems.
       
   105               </small>
       
   106             </td>
       
   107             <td class="row1" style="width: 50%;">
       
   108               <input type="checkbox"
       
   109                      name="allow_fork"
       
   110                      id="chk_allow_fork"
       
   111                      {if $allow_fork}checked="checked"{/if}
       
   112                 />
       
   113             </td>
       
   114           </tr>
       
   115           
       
   116           <!-- section - auth config -->
       
   117           <tr>
       
   118             <th colspan="2">
       
   119               Authentication
       
   120             </th>
       
   121           </tr>
       
   122           
       
   123           <!-- field - enable auth -->
       
   124           <tr>
       
   125             <td class="row2" style="width: 50%;">
       
   126               <label for="chk_use_auth"><b>Require login</b></label><br />
       
   127               <small>
       
   128                 Check this box to require a login to Greyhound's interface. The logins are cookie based, so make sure your browser supports
       
   129                 cookies and has them enabled before you enable this. You have to create at least one user for this to work.
       
   130               </small>
       
   131             </td>
       
   132             <td class="row1" style="width: 50%;">
       
   133               <input type="checkbox"
       
   134                      name="use_auth"
       
   135                      id="chk_use_auth"
       
   136                      {if $use_auth}checked="checked"{/if}
       
   137                 />
       
   138             </td>
       
   139           </tr>
       
   140           
       
   141           <!-- field - user list -->
       
   142           <tr>
       
   143             <td class="row2" style="width: 50%;">
       
   144               <b>User list</b><br />
       
   145               <small>
       
   146                 This is the list of valid users for Greyhound. Passwords aren't encrypted in the config file to make editing easier.
       
   147               </small>
       
   148             </td>
       
   149             <td class="row1" style="width: 50%;">
       
   150               {strip}
       
   151               {foreach key=username item=password from=$users}
       
   152                 <script type="text/javascript">register_user('{$username|escape:'quotes'}');</script>
       
   153               {/foreach}
       
   154               {/strip}
       
   155               <ul id="userlist">
       
   156                 <li><a href="#" onclick="add_user_form(); return false;">add user</a></li>
       
   157               </ul>
       
   158             </td>
       
   159           </tr>
       
   160           
       
   161           <!-- field - config PW -->
       
   162           <tr>
       
   163             <td class="row2" style="width: 50%;">
       
   164               <b>Config password</b><br />
       
   165               <small>
       
   166                 Enter a password here to protect your configuration from being modified.
       
   167               </small>
       
   168             </td>
       
   169             <td class="row1" style="width: 50%;">
       
   170               <input type="password" name="newconfigpass" value="____________________" />
       
   171             </td>
       
   172           </tr>
       
   173           
       
   174           <!-- submit -->
       
   175           <tr>
       
   176             <th colspan="2">
       
   177               <input type="hidden" name="submit" value="true" />
       
   178               <input type="submit" value="Save changes" />
       
   179             </th>
       
   180           </tr>
       
   181           
       
   182         </table>
       
   183       </div>
       
   184     
       
   185     </form>
       
   186     
       
   187     <a class="backlink" href="/index">&laquo; Return to playlist</a>
       
   188   
       
   189     <div class="poweredby">
       
   190       {include file="footer.tpl"}
       
   191     </div>
       
   192   </body>
       
   193 </html>
       
   194