Added backup function to froxlor, fixes #186

Thanks to monotek.
This commit is contained in:
Andreas Burchert (scarya)
2011-04-24 02:18:50 +02:00
parent a97e7d3697
commit 7890730afa
17 changed files with 525 additions and 7 deletions

View File

@@ -243,6 +243,11 @@ return array(
array ('label' => $lng['panel']['yes'], 'value' => '1')
)
),
'backup_allowed' => array(
'label' => $lng['backup_allowed'].'?',
'type' => 'yesno',
'yesno_var' => $backup_allowed
),
'number_of_aps_packages' => array(
'label' => $lng['aps']['numberofapspackages'],
'type' => 'textul',

View File

@@ -252,6 +252,11 @@ return array(
),
'value' => array($result['perlenabled'])
),
'backup_allowed' => array(
'label' => $lng['backup_allowed'].'?',
'type' => 'yesno',
'yesno_var' => $backup_allowed
),
'number_of_aps_packages' => array(
'label' => $lng['aps']['numberofapspackages'],
'type' => 'textul',

View File

@@ -34,7 +34,8 @@ function inserttask($type, $param1 = '', $param2 = '', $param3 = '', $param4 = '
if($type == '1'
|| $type == '3'
|| $type == '4'
|| $type == '5')
|| $type == '5'
|| $type == '9')
{
$db->query('DELETE FROM `' . TABLE_PANEL_TASKS . '` WHERE `type`="' . $type . '"');
$db->query('INSERT INTO `' . TABLE_PANEL_TASKS . '` (`type`) VALUES ("' . $type . '")');

View File

@@ -129,6 +129,11 @@ return array (
'url' => 'customer_extras.php?page=htaccess',
'label' => $lng['menue']['extras']['pathoptions'],
),
array (
'url' => 'customer_extras.php?page=backup',
'label' => $lng['backup'],
'required_resources' => 'backup_allowed',
),
),
),
'traffic' => array (