Changeset 10647

Show
Ignore:
Timestamp:
12/01/10 08:47:38 (2 years ago)
Author:
mbrevda
Message:

re #4675 - Hide FOP Bakcup option when FOPDISABLE=true. Im leaving this open for comment on implementation, can be closed if no comments are forthcoming

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/bootstrap-2.9/backup/functions.inc.php

    r9888 r10647  
    419419    $opts=Get_Backup_Options($id); 
    420420  } 
    421   $files=($opts['include']||$opts['exclude']); 
    422   $ftp=($opts['ftpuser']||$opts['ftppass']||$opts['ftphost']||$opts['ftpdir']); 
    423   $ssh=($opts['sshuser']||$opts['sshkey']||$opts['sshhost']||$opts['sshdir']); 
    424   $email=($opts['emailaddr']); 
    425   $remote=($opts['remotesshhost']||$opts['remotesshuser']||$opts['remotesshkey']||$opts['remoterestore']); 
    426   $advanced=($amp_conf['AMPBACKUPADVANCED']||$opts['sudo']); 
     421  $files   = ($opts['include'] || $opts['exclude']); 
     422  $ftp   = ($opts['ftpuser'] || $opts['ftppass'] || $opts['ftphost'] || $opts['ftpdir']); 
     423  $ssh   = ($opts['sshuser'] || $opts['sshkey'] || $opts['sshhost'] || $opts['sshdir']); 
     424  $email   = ($opts['emailaddr']); 
     425  $remote    = ($opts['remotesshhost'] || $opts['remotesshuser'] || $opts['remotesshkey'] || $opts['remoterestore']); 
     426  $advanced  = ($amp_conf['AMPBACKUPADVANCED'] || $opts['sudo']); 
    427427  ?> 
    428428  <style type="text/css"> 
     
    477477    <td><input type="checkbox" name="cdr" value="yes" <?php echo ($opts['cdr']=='yes')?'checked':''; ?>/></td> 
    478478  </tr> 
     479  <?php //dont shoe FOP back option if FOP is disabled  
     480    if ($amp_conf['FOPDISABLE'] != 'true') { ?> 
    479481  <tr> 
    480482    <td><a href="#" class="info"><?php echo _("Operator Panel");?><span><?php echo _("Backup the Operator Panel (HTML and Database)");?></span></a>: </td> 
    481483    <td><input type="checkbox" name="fop" value="yes" <?php echo ($opts['fop']=='yes')?'checked':''; ?>/></td> 
    482484  </tr> 
     485  <?php } ?> 
    483486  <tr> 
    484487    <td><a href="#" class="info"><?php echo _("Overwrite Backup Settings");?><span><?php echo _("When restoring the backup, if this option is selected, all saved backups and their schedules will be overwriten. Leaving this unchecked will restore all other configurations EXCEPT for those related to backup. When doing a remote backup and restore, this option is always forced to no.");?></span></a>: </td>