Changeset 2204

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'])); 
  • modules/branches/2.2/disa/functions.inc.php

    r2179 r2204  
    2929          if (isset($item['pin']) && !empty($item['pin']) && (strtolower($item['pin']) != 'no-password')) { 
    3030            // Create the disa-$id.conf file 
    31             $fh = fopen("/etc/asterisk/disa-".$item['disa_id'].".conf", "w+"); 
     31            $filename = "/etc/asterisk/disa-".$item['disa_id'].".conf" 
     32            $fh = fopen($filename, "w+"); 
    3233            $pinarr = explode(',' , $item['pin'] ); 
    3334            foreach($pinarr as $pin) { 
     
    3738            } 
    3839            fclose($fh); 
     40            chmod($filename, 0660); 
    3941          } else { 
    4042            $nopass = true;