Changeset 3131

Show
Ignore:
Timestamp:
11/20/06 21:49:37 (7 years ago)
Author:
gregmac
Message:

Added output buffering, and new redirect() function

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.2/amp_conf/htdocs/admin/functions.inc.php

    r3089 r3131  
    20882088                print "[DEBUG-$section] ($level) $message\n"; 
    20892089} 
     2090 
     2091/** Abort all output, and redirect the browser's location 
     2092 * @param string   The url to go to 
     2093 * @param bool     If execution should stop after the function 
     2094 */ 
     2095function redirect($url, $stop_processing = true) { 
     2096  ob_end_clean(); 
     2097  header('Location: '.$url); 
     2098  if ($stop_processing) exit; 
     2099} 
     2100 
    20902101?> 
  • freepbx/branches/2.2/amp_conf/htdocs/admin/header.php

    r2887 r3131  
    3535} 
    3636 
     37 
     38// start output buffering 
     39ob_start(); 
    3740 
    3841//get the current file name 
  • freepbx/branches/2.2/amp_conf/htdocs/admin/page.modules.php

    r3083 r3131  
    203203     
    204204    echo "<div id=\"moduleprogress\">"; 
     205 
     206    // stop output buffering, and send output 
     207    @ ob_end_flush(); 
     208 
    205209    flush(); 
    206210    foreach ($moduleaction as $modulename => $action) {