Show
Ignore:
Timestamp:
12/05/10 13:44:38 (2 years ago)
Author:
mbrevda
Message:

re #4566 - merge revisions to BS branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/bootstrap

    • Property svnmerge-integrated changed from /freepbx/trunk:1-10368,10370-10626 /freepbx/branches/2.8:1-10284 to /freepbx/branches/2.8:1-10284 /freepbx/trunk:1-10368,10370-10648
  • freepbx/branches/bootstrap/amp_conf/bin/generate_hints.php

    r10617 r10649  
    6161 
    6262  $device_array = explode( '&', $devices ); 
     63  $dialstring = '';  
    6364  foreach ($device_array as $adevice) { 
    6465    $dds = $astman->database_get('DEVICE',$adevice.'/dial'); 
  • freepbx/branches/bootstrap/amp_conf/htdocs/admin/functions.inc.php

    r10640 r10649  
    155155        return array('engine'=>'asterisk', 'version' => $matches[1].'.'.$matches[4], 'additional' => $matches[4], 'raw' => $verinfo); 
    156156      } elseif (preg_match('/Asterisk SVN-trunk-r(-?(\S*))/', $verinfo, $matches)) { 
    157         return array('engine'=>'asterisk', 'version' => '1.6', 'additional' => $matches[1], 'raw' => $verinfo); 
     157        return array('engine'=>'asterisk', 'version' => '1.8', 'additional' => $matches[1], 'raw' => $verinfo); 
    158158      } elseif (preg_match('/Asterisk SVN-.+-(\d+(\.\d+)*)-r(-?(\S*))-(.+)/', $verinfo, $matches)) { 
    159159        return array('engine'=>'asterisk', 'version' => $matches[1], 'additional' => $matches[3], 'raw' => $verinfo); 
  • freepbx/branches/bootstrap/amp_conf/htdocs/admin/page.modules.php

    r10543 r10649  
    1414 
    1515$extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:''; 
    16 $module_repo = isset($_REQUEST['module_repo'])?$_REQUEST['module_repo']:'supported'; 
     16$module_repo = isset($_REQUEST['module_repo'])?htmlentities($_REQUEST['module_repo']):'supported'; 
    1717$repo = "http://mirror.freepbx.org/"; 
    1818if ($module_repo == "extended") { 
     
    2121 
    2222// can't go online if external management is on 
    23 $online = (isset($_REQUEST['online']) && !EXTERNAL_PACKAGE_MANAGEMENT) ? $_REQUEST['online'] : false
     23$online = (isset($_REQUEST['online']) && !EXTERNAL_PACKAGE_MANAGEMENT) ? 1 : 0
    2424 
    2525// fix php errors from undefined variable. Not sure if we can just change the reference below to use 
    2626// online since it changes values so just setting to what we decided it is here. 
    27 $_REQUEST['online'] = $online ? 1 : 0; 
    2827 
    2928$moduleaction = isset($_REQUEST['moduleaction'])?$_REQUEST['moduleaction']:false; 
     
    126125    freepbx_modal_hide('moduleBox'); 
    127126    if (goback) { 
    128       location.href = 'config.php?display=modules&amp;type=<?php echo $type ?>&amp;online=<?php echo ($_REQUEST['online']?1:0); ?>'; 
     127      location.href = 'config.php?display=modules&amp;type=<?php echo $type ?>&amp;online=<?php echo $online; ?>'; 
    129128    } 
    130129  } 
     
    153152  if ($module_getonlinexml_error) { 
    154153    echo "<div class=\"warning\"><p>".sprintf(_("Warning: Cannot connect to online repository (%s). Online modules are not available."), "mirror.freepbx.org")."</p></div><br />"; 
    155     $online = false
     154    $online = 0
    156155    unset($modules_online); 
    157156  } else if (!is_array($modules_online)) { 
    158157    echo "<div class=\"warning\"><p>".sprintf(_("Warning: Error retrieving updates from online repository (%s). Online modules are not available."), "mirror.freepbx.org")."</p></div><br />"; 
    159     $online = false
     158    $online = 0
    160159    unset($modules_online); 
    161160  } else { 
     
    280279      echo "\t<a href=\"#\" onclick=\"parent.close_module_actions(true);\" />"._("Return")."</a>"; 
    281280    } else { 
    282       echo "\t<input type=\"button\" value=\""._("Return")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=$type&amp;online=".($_REQUEST['online']?1:0)."';\" />"; 
     281      echo "\t<input type=\"button\" value=\""._("Return")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=$type&amp;online=".$online."';\" />"; 
    283282    echo "</div>"; 
    284283    } 
     
    447446      echo "<p>"._("Please select at least one action to perform by clicking on the module, and selecting an action on the \"Action\" tab.")."</p>"; 
    448447    } 
    449     echo "\t<input type=\"button\" value=\""._("Cancel")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=$type&amp;online=".($_REQUEST['online']?1:0)."';\" />"; 
     448    echo "\t<input type=\"button\" value=\""._("Cancel")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=$type&amp;online=$online';\" />"; 
    450449    echo "</form>"; 
    451450