Changeset 10649 for freepbx/branches
- Timestamp:
- 12/05/10 13:44:38 (2 years ago)
- 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 61 61 62 62 $device_array = explode( '&', $devices ); 63 $dialstring = ''; 63 64 foreach ($device_array as $adevice) { 64 65 $dds = $astman->database_get('DEVICE',$adevice.'/dial'); freepbx/branches/bootstrap/amp_conf/htdocs/admin/functions.inc.php
r10640 r10649 155 155 return array('engine'=>'asterisk', 'version' => $matches[1].'.'.$matches[4], 'additional' => $matches[4], 'raw' => $verinfo); 156 156 } 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); 158 158 } elseif (preg_match('/Asterisk SVN-.+-(\d+(\.\d+)*)-r(-?(\S*))-(.+)/', $verinfo, $matches)) { 159 159 return array('engine'=>'asterisk', 'version' => $matches[1], 'additional' => $matches[3], 'raw' => $verinfo); freepbx/branches/bootstrap/amp_conf/htdocs/admin/page.modules.php
r10543 r10649 14 14 15 15 $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'; 17 17 $repo = "http://mirror.freepbx.org/"; 18 18 if ($module_repo == "extended") { … … 21 21 22 22 // 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; 24 24 25 25 // fix php errors from undefined variable. Not sure if we can just change the reference below to use 26 26 // online since it changes values so just setting to what we decided it is here. 27 $_REQUEST['online'] = $online ? 1 : 0;28 27 29 28 $moduleaction = isset($_REQUEST['moduleaction'])?$_REQUEST['moduleaction']:false; … … 126 125 freepbx_modal_hide('moduleBox'); 127 126 if (goback) { 128 location.href = 'config.php?display=modules&type=<?php echo $type ?>&online=<?php echo ($_REQUEST['online']?1:0); ?>';127 location.href = 'config.php?display=modules&type=<?php echo $type ?>&online=<?php echo $online; ?>'; 129 128 } 130 129 } … … 153 152 if ($module_getonlinexml_error) { 154 153 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; 156 155 unset($modules_online); 157 156 } else if (!is_array($modules_online)) { 158 157 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; 160 159 unset($modules_online); 161 160 } else { … … 280 279 echo "\t<a href=\"#\" onclick=\"parent.close_module_actions(true);\" />"._("Return")."</a>"; 281 280 } else { 282 echo "\t<input type=\"button\" value=\""._("Return")."\" onclick=\"location.href = 'config.php?display=modules&type=$type&online=". ($_REQUEST['online']?1:0)."';\" />";281 echo "\t<input type=\"button\" value=\""._("Return")."\" onclick=\"location.href = 'config.php?display=modules&type=$type&online=".$online."';\" />"; 283 282 echo "</div>"; 284 283 } … … 447 446 echo "<p>"._("Please select at least one action to perform by clicking on the module, and selecting an action on the \"Action\" tab.")."</p>"; 448 447 } 449 echo "\t<input type=\"button\" value=\""._("Cancel")."\" onclick=\"location.href = 'config.php?display=modules&type=$type&online= ".($_REQUEST['online']?1:0)."';\" />";448 echo "\t<input type=\"button\" value=\""._("Cancel")."\" onclick=\"location.href = 'config.php?display=modules&type=$type&online=$online';\" />"; 450 449 echo "</form>"; 451 450
