- added possibility to customize authname of directory-protection, fixes #345

This commit is contained in:
Michael Kaufmann (d00p)
2010-08-11 07:48:56 +00:00
parent db286077f8
commit 040f151d65
11 changed files with 58 additions and 16 deletions

View File

@@ -22,6 +22,10 @@ $header
<td class="main_field_name">{$lng['login']['password']}:</td>
<td class="main_field_display" nowrap="nowrap"><input type="password" name="directory_password" size="30" /></td>
</tr>
<tr>
<td class="main_field_name">{$lng['extras']['htpasswdauthname']}:</td>
<td class="main_field_display" nowrap="nowrap"><input type="text" name="directory_authname" size="30" /></td>
</tr>
<tr>
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottom" value="{$lng['extras']['directoryprotection_add']}" /></td>
</tr>

View File

@@ -6,7 +6,7 @@ $header
<input type="hidden" name="id" value="$id" />
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
<tr>
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" />&nbsp;{$lng['menue']['main']['changepassword']}</b></td>
<td class="maintitle" colspan="2"><b><img src="images/title.gif" alt="" />&nbsp;{$lng['extras']['directoryprotection_edit']}</b></td>
</tr>
<tr>
<td class="main_field_name">{$lng['panel']['path']}:</td>
@@ -21,7 +21,11 @@ $header
<td class="main_field_display" nowrap="nowrap"><input type="password" name="directory_password" maxlength="50" /></td>
</tr>
<tr>
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottom" value="{$lng['menue']['main']['changepassword']}" /></td>
<td class="main_field_name">{$lng['extras']['htpasswdauthname']}:</td>
<td class="main_field_display" nowrap="nowrap"><input type="text" name="directory_authname" value="{$result['authname']}" /></td>
</tr>
<tr>
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input type="submit" class="bottom" value="{$lng['extras']['directoryprotection_edit']}" /></td>
</tr>
</table>
</form>

View File

@@ -1,6 +1,6 @@
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
<td class="field_name_border_left">{$row['username']}</td>
<td class="field_name">{$row['path']}</td>
<td class="field_name"><a href="$filename?page=htpasswds&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['menue']['main']['changepassword']}</a></td>
<td class="field_name"><a href="$filename?page=htpasswds&amp;action=edit&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['edit']}</a></td>
<td class="field_name"><a href="$filename?page=htpasswds&amp;action=delete&amp;id={$row['id']}&amp;s=$s">{$lng['panel']['delete']}</a></td>
</tr>