diff --git a/customer_extras.php b/customer_extras.php index df451cb4..b49e3052 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -161,6 +161,13 @@ elseif($page == 'htpasswds') else { $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); + + $htpasswd_add_data = include_once dirname(__FILE__).'/lib/formfields/customer/extras/formfield.htpasswd_add.php'; + $htpasswd_add_form = htmlform::genHTMLForm($htpasswd_add_data); + + $title = $htpasswd_add_data['htpasswd_add']['title']; + $image = $htpasswd_add_data['htpasswd_add']['image']; + eval("echo \"" . getTemplate("extras/htpasswds_add") . "\";"); } } @@ -220,6 +227,13 @@ elseif($page == 'htpasswds') } $result = htmlentities_array($result); + + $htpasswd_edit_data = include_once dirname(__FILE__).'/lib/formfields/customer/extras/formfield.htpasswd_edit.php'; + $htpasswd_edit_form = htmlform::genHTMLForm($htpasswd_edit_data); + + $title = $htpasswd_edit_data['htpasswd_edit']['title']; + $image = $htpasswd_edit_data['htpasswd_edit']['image']; + eval("echo \"" . getTemplate("extras/htpasswds_edit") . "\";"); } } diff --git a/templates/Froxlor/customer/extras/htpasswds_add.tpl b/templates/Froxlor/customer/extras/htpasswds_add.tpl index 9b85ee14..87404177 100644 --- a/templates/Froxlor/customer/extras/htpasswds_add.tpl +++ b/templates/Froxlor/customer/extras/htpasswds_add.tpl @@ -1,41 +1,20 @@ $header -
-
-

- {$lng['extras']['directoryprotection_add']}  - {$lng['extras']['directoryprotection_add']} -

-
- -
+
+
+

+ {$title}  + {$title} +

+
+ +
- Froxlor - {$lng['extras']['directoryprotection_add']} + Froxlor - {$title} - - - - - - - - - - - - - - - - - - - + {$htpasswd_add_form}
- {$lng['panel']['path']}:
- {$lng['panel']['pathDescription']} -
{$pathSelect}
{$lng['login']['username']}:
{$lng['login']['password']}:
{$lng['extras']['htpasswdauthname']}:

@@ -46,6 +25,8 @@ $header

-
-
+ +
+ +
$footer diff --git a/templates/Froxlor/customer/extras/htpasswds_edit.tpl b/templates/Froxlor/customer/extras/htpasswds_edit.tpl index eab2c101..8b848dc3 100644 --- a/templates/Froxlor/customer/extras/htpasswds_edit.tpl +++ b/templates/Froxlor/customer/extras/htpasswds_edit.tpl @@ -1,48 +1,33 @@ $header -
-
-

- {$lng['extras']['directoryprotection_edit']}  - {$lng['extras']['directoryprotection_edit']} -

-
- -
+
+
+

+ {$title}  + {$title} +

+
+ +
- Froxlor - {$lng['extras']['directoryprotection_edit']} + Froxlor - {$title} - - - - - - - - - - - - - - - - - - - + {$htpasswd_edit_form}
{$lng['panel']['path']}:{$result['path']}
{$lng['login']['username']}:{$result['username']}
{$lng['login']['password']}:
{$lng['extras']['htpasswdauthname']}:

+

-
-
+ +
+ +
$footer