Changeset 5994

Show
Ignore:
Timestamp:
07/13/08 17:43:54 (3 months ago)
Author:
p_lindheimer
Message:

#2777 add ext_vmauthenticate() - different then in ticket to be consistent with other vm calls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/extensions.class.php

    r5739 r5994  
    125125                *  problems that array_splice has with multidmentional arrays 
    126126                */ 
    127                         $array = $this->_exts[$section][$extension]
     127                        $array = isset($this->_exts[$section][$extension]) ? $this->_exts[$section][$extension] : array()
    128128                        $ky = $priority; 
    129129                        $val = $newcommand; 
     
    794794                $this->options = $options; 
    795795        } 
    796          
    797796        function output() { 
    798797                return "Authenticate(".$this->pass.",".$this->options.")"; 
    799798        } 
    800799} 
     800 
     801class ext_vmauthenticate { 
     802        var $mailbox;  
     803        var $context;  
     804        var $options; 
     805 
     806        function ext_vmauthenticate($mailbox='', $options='') { 
     807                $this->mailbox = $mailbox;  
     808                $this->options = $options; 
     809        } 
     810        function output() { 
     811                return "VMAuthenticate(" .$this->mailbox . (($this->options != '') ? ','.$this->options : '' ) .")"; 
     812        } 
     813}  
    801814 
    802815class ext_page extends extension { 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads