Show
Ignore:
Timestamp:
09/24/09 06:18:32 (4 years ago)
Author:
mbrevda
Message:

closes #3905, adds timestamp to freepbx_debug; alias dbug()

Files:

Legend:

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

    r8271 r8392  
    36633663function freepbx_debug($string, $option='a', $filename='/tmp/freepbx_debug.log') { 
    36643664  $fh = fopen($filename,$option); 
     3665  fwrite($fh,date("Y-M-d H:i:s")."\n");//add timestamp 
    36653666  if (is_array($string)) { 
    36663667    fwrite($fh,print_r($string,true)."\n"); 
     
    36693670  } 
    36703671  fclose($fh); 
     3672} 
     3673//lazy, I mean efficient, alias for function freepbx_debug 
     3674function dbug(){ 
     3675  $args=func_get_args(); 
     3676  call_user_func_array(freepbx_debug,$args); 
    36713677} 
    36723678