Changeset 5871

Show
Ignore:
Timestamp:
07/01/08 21:44:13 (3 months ago)
Author:
p_lindheimer
Message:

added default USEDEVSTATE, added workaround using wget to try and pull xml when issues with certain content filters

Files:

Legend:

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

    r5827 r5871  
    5858        'SERVERINTITLE'  => array('bool' , false), 
    5959        'XTNCONFLICTABORT' => array('bool' , false), 
     60        'USEDEVSTATE'    => array('bool' , false), 
    6061); 
    6162 
     
    21302131                //$fn = "/usr/src/freepbx-modules/modules.xml"; 
    21312132                $data = @ file_get_contents($fn); 
    2132                 $module_getonlinexml_error = empty($data); 
     2133 
     2134                if (empty($data)) { 
     2135                        exec("wget -O - $fn 2> /dev/null", $data_arr, $retcode); 
     2136                        $data = implode("\n",$data_arr); 
     2137                        $module_getonlinexml_error = ($retcode == 0)?false:true; 
     2138                } 
    21332139                 
    21342140                $old_xml = array(); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads