Changeset 4628 for freepbx/branches

Show
Ignore:
Timestamp:
08/02/07 13:49:43 (6 years ago)
Author:
p_lindheimer
Message:

fix notices from ob_flush ob_clean call, fix some undefined index variables in xml library (which points at clear bugs that need to be addressed by adopting a new library), fix some undefined variable notices - in page.modules.php actually breaks javascripts and functionality when notices are turned up

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.3/amp_conf/htdocs/admin/config.php

    r4623 r4628  
    400400if ($quietmode) { 
    401401  // send the output buffer 
    402   ob_end_flush(); 
     402  @ob_end_flush(); 
    403403} else { 
    404404  $admin_template = $template = array(); 
    405  
    406  
    407405  $admin_template['content'] = ob_get_contents(); 
    408   ob_end_clean(); 
     406  @ob_end_clean(); 
    409407 
    410408  // build the admin interface (with menu) 
  • freepbx/branches/2.3/amp_conf/htdocs/admin/functions.inc.php

    r4623 r4628  
    13941394   
    13951395  function tagClosed($parser, $name) { 
    1396     $this->arrOutput[count($this->arrOutput)-2]['children'][] = $this->arrOutput[count($this->arrOutput)-1]; 
     1396    @$this->arrOutput[count($this->arrOutput)-2]['children'][] = $this->arrOutput[count($this->arrOutput)-1]; 
    13971397    array_pop($this->arrOutput); 
    13981398  } 
     
    14011401    $array = array(); 
    14021402    foreach (array_keys($items) as $idx) { 
    1403       $items[$idx]['name'] = strtolower($items[$idx]['name']); 
     1403      @$items[$idx]['name'] = strtolower($items[$idx]['name']); 
    14041404       
    14051405      $multi = false; 
     
    18691869      $extext .= sprintf(_("%s (current: %s)"), $mod['name'].' '.$mod['online_version'], $mod['local_version'])."\n"; 
    18701870    } 
    1871     $notifications->add_update('freepbx', 'NEWUPDATES', $text, $extext, '', $reset_value); 
     1871    $notifications->add_update('freepbx', 'NEWUPDATES', $text, $extext, '', $passive_value); 
    18721872  } else { 
    18731873    $notifications->delete('freepbx', 'NEWUPDATES'); 
  • freepbx/branches/2.3/amp_conf/htdocs/admin/page.modules.php

    r4450 r4628  
    1717// can't go online if external management is on 
    1818$online = (isset($_REQUEST['online']) && !EXTERNAL_PACKAGE_MANAGEMENT) ? $_REQUEST['online'] : false; 
     19// fix php errors from undefined variable. Not sure if we can just change the reference below to use 
     20// online since it changes values so just setting to what we decided it is here. 
     21$_REQUEST['online'] = $online ? 1 : 0; 
    1922$moduleaction = isset($_REQUEST['moduleaction'])?$_REQUEST['moduleaction']:false; 
    2023/*