diff --git a/customer_extras.php b/customer_extras.php index 752abf5a..024f7141 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -56,6 +56,12 @@ elseif($page == 'backup') redirectTo($filename, Array('page' => $page, 's' => $s)); } + $backup_data = include_once dirname(__FILE__).'/lib/formfields/customer/extras/formfield.backup.php'; + $backup_form = htmlform::genHTMLForm($backup_data); + + $title = $backup_data['backup']['title']; + $image = $backup_data['backup']['image']; + eval("echo \"" . getTemplate("extras/backup") . "\";"); } elseif($page == 'htpasswds') diff --git a/lib/formfields/customer/extras/formfield.backup.php b/lib/formfields/customer/extras/formfield.backup.php new file mode 100644 index 00000000..58b5c9b4 --- /dev/null +++ b/lib/formfields/customer/extras/formfield.backup.php @@ -0,0 +1,46 @@ + (2010-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Formfields + */ + +return array( + 'backup' => array( + 'title' => $lng['backup'], + 'image' => 'icons/backup.png', + 'sections' => array( + 'section_a' => array( + 'title' => $lng['backup'], + 'image' => 'icons/backup.png', + 'fields' => array( + 'info' => array( + 'label' => $lng['extras']['backup_info'], + 'type' => 'label', + 'value' => '' + ), + 'path' => array( + 'label' => $lng['extras']['backup_create'], + 'desc' => ($settings['system']['backup_bigfile'] == 1 ? $lng['extras']['backup_info_big'] : $lng['extras']['backup_info_sep']), + 'type' => 'yesno', + 'yesno_var' => $backup_enabled + ), + 'count' => array( + 'label' => $lng['extras']['backup_count_info'], + 'type' => 'label', + 'value' => '' + ), + ) + ) + ) + ) +); diff --git a/templates/Classic/customer/extras/backup.tpl b/templates/Classic/customer/extras/backup.tpl index 2a50888c..3d828814 100644 --- a/templates/Classic/customer/extras/backup.tpl +++ b/templates/Classic/customer/extras/backup.tpl @@ -1,26 +1,32 @@ $header -
- - - - - - - - - - - - - - - - -
 {$lng['backup']}
{$lng['extras']['backup_info']} - {$lng['extras']['backup_info_big']} - {$lng['extras']['backup_info_sep']} - {$lng['extras']['backup_count_info']} :{$lng['extras']['backup_create']} $backup_enabled
-
-
-
-$footer +
+
+

+ {$title}  + {$title} +

+
+ +
+ +
+
+ Froxlor - {$title} + + + {$backup_form} +
+ +

+ + + + +

+
+
+ +
+ +
+$footer \ No newline at end of file diff --git a/templates/Froxlor/customer/extras/backup.tpl b/templates/Froxlor/customer/extras/backup.tpl index 2a50888c..3d828814 100644 --- a/templates/Froxlor/customer/extras/backup.tpl +++ b/templates/Froxlor/customer/extras/backup.tpl @@ -1,26 +1,32 @@ $header -
- - - - - - - - - - - - - - - - -
 {$lng['backup']}
{$lng['extras']['backup_info']} - {$lng['extras']['backup_info_big']} - {$lng['extras']['backup_info_sep']} - {$lng['extras']['backup_count_info']} :{$lng['extras']['backup_create']} $backup_enabled
-
-
-
-$footer +
+
+

+ {$title}  + {$title} +

+
+ +
+ +
+
+ Froxlor - {$title} + + + {$backup_form} +
+ +

+ + + + +

+
+
+ +
+ +
+$footer \ No newline at end of file