diff --git a/customer_extras.php b/customer_extras.php index a6b1d3f9..df451cb4 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -357,6 +357,13 @@ elseif($page == 'htaccess') $options_indexes = makeyesno('options_indexes', '1', '0', '0'); $cperlenabled = customerHasPerlEnabled($userinfo['customerid']); $options_cgi = makeyesno('options_cgi', '1', '0', '0'); + + $htaccess_add_data = include_once dirname(__FILE__).'/lib/formfields/customer/extras/formfield.htaccess_add.php'; + $htaccess_add_form = htmlform::genHTMLForm($htaccess_add_data); + + $title = $htaccess_add_data['htaccess_add']['title']; + $image = $htaccess_add_data['htaccess_add']['image']; + eval("echo \"" . getTemplate("extras/htaccess_add") . "\";"); } } @@ -418,6 +425,13 @@ elseif($page == 'htaccess') $cperlenabled = customerHasPerlEnabled($userinfo['customerid']); $options_cgi = makeyesno('options_cgi', '1', '0', $result['options_cgi']); $result = htmlentities_array($result); + + $htaccess_edit_data = include_once dirname(__FILE__).'/lib/formfields/customer/extras/formfield.htaccess_edit.php'; + $htaccess_edit_form = htmlform::genHTMLForm($htaccess_edit_data); + + $title = $htaccess_edit_data['htaccess_edit']['title']; + $image = $htaccess_edit_data['htaccess_edit']['image']; + eval("echo \"" . getTemplate("extras/htaccess_edit") . "\";"); } } diff --git a/templates/Froxlor/customer/extras/htaccess_add.tpl b/templates/Froxlor/customer/extras/htaccess_add.tpl index 0271baea..14eca14d 100644 --- a/templates/Froxlor/customer/extras/htaccess_add.tpl +++ b/templates/Froxlor/customer/extras/htaccess_add.tpl @@ -1,55 +1,20 @@ $header -
-
-

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

-
- -
+
+
+

+ {$title}  + {$title} +

+
+ +
- Froxlor - {$lng['extras']['pathoptions_add']} + Froxlor - {$title} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {$htaccess_add_form}
- {$lng['panel']['path']}:
- {$lng['panel']['pathDescription']} -
{$pathSelect}
{$lng['extras']['directory_browsing']}:$options_indexes
{$lng['extras']['errordocument404path']}:
{$lng['panel']['descriptionerrordocument']}
{$lng['extras']['errordocument403path']}:
{$lng['panel']['descriptionerrordocument']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['extras']['errordocument500path']}:
{$lng['panel']['descriptionerrordocument']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['extras']['execute_perl']}:$options_cgi

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

-
-
+ +
+ +
$footer diff --git a/templates/Froxlor/customer/extras/htaccess_edit.tpl b/templates/Froxlor/customer/extras/htaccess_edit.tpl index d1b0cc17..828b4b4d 100644 --- a/templates/Froxlor/customer/extras/htaccess_edit.tpl +++ b/templates/Froxlor/customer/extras/htaccess_edit.tpl @@ -1,62 +1,33 @@ $header -
-
-

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

-
- -
+
+
+

+ {$title}  + {$title} +

+
+ +
- Froxlor -  + Froxlor - {$title} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {$htaccess_edit_form}
{$lng['panel']['path']}:{$result['path']}
{$lng['extras']['directory_browsing']}:$options_indexes
{$lng['extras']['errordocument404path']}:
{$lng['panel']['descriptionerrordocument']}
{$lng['extras']['errordocument403path']}:
{$lng['panel']['descriptionerrordocument']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['extras']['errordocument500path']}:
{$lng['panel']['descriptionerrordocument']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['extras']['execute_perl']}:$options_cgi

+

-
-
+ +
+ +
$footer