Show
Ignore:
Timestamp:
07/31/06 08:43:18 (7 years ago)
Author:
gregmac
Message:

Fix #1061

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.1/disa/functions.inc.php

    r1864 r2204  
    2626                                foreach($disalist as $item) { 
    2727          // Create the disa-$id.conf file 
    28           $fh = fopen("/etc/asterisk/disa-".$item['disa_id'].".conf", "w+"); 
     28          $filename = "/etc/asterisk/disa-".$item['disa_id'].".conf" 
     29          $fh = fopen($filename, "w+"); 
    2930          $pinarr = explode(',' , $item['pin'] ); 
    3031          foreach($pinarr as $pin) { 
     
    3738          } 
    3839          fclose($fh); 
     40          chmod($filename, 0660); 
    3941           
    4042                                        $thisitem = disa_get(ltrim($item['disa_id']));