Changeset 10468

Show
Ignore:
Timestamp:
11/01/10 17:10:18 (3 years ago)
Author:
p_lindheimer
Message:

Merged revisions 10467 via svnmerge from
http://svn.freepbx.org/freepbx/branches/2.4

................

r10467 | p_lindheimer | 2010-11-01 14:08:44 -0700 (Mon, 01 Nov 2010) | 30 lines


Merged revisions 10466 via svnmerge from
http://svn.freepbx.org/freepbx/branches/2.5


................

r10466 | p_lindheimer | 2010-11-01 14:06:43 -0700 (Mon, 01 Nov 2010) | 23 lines


Merged revisions 10465 via svnmerge from
http://svn.freepbx.org/freepbx/branches/2.6


................

r10465 | p_lindheimer | 2010-11-01 14:02:29 -0700 (Mon, 01 Nov 2010) | 16 lines


Merged revisions 10464 via svnmerge from
http://www.freepbx.org/v2/svn/freepbx/branches/2.7


................

r10464 | p_lindheimer | 2010-11-01 13:42:52 -0700 (Mon, 01 Nov 2010) | 9 lines


Merged revisions 10453 via svnmerge from
http://www.freepbx.org/v2/svn/freepbx/branches/2.8


........

r10453 | p_lindheimer | 2010-11-01 10:34:27 -0700 (Mon, 01 Nov 2010) | 1 line


fixes #4615 XSS to Module Admin

........

................

................

................

................

Files:

Legend:

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

    • Property svnmerge-integrated changed from /freepbx/branches/2.2:1-4145,4434,4437 /freepbx/branches/2.4:1-5454,5492,5517,5648,5656,5710,5828,6057,6564,6700,9514 to /freepbx/branches/2.2:1-4145,4434,4437 /freepbx/branches/2.4:1-5454,5492,5517,5648,5656,5710,5828,6057,6564,6700,9514,10467
  • freepbx/branches/2.3/amp_conf/htdocs/admin/page.modules.php

    r5724 r10468  
    1616$extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:''; 
    1717// can't go online if external management is on 
    18 $online = (isset($_REQUEST['online']) && !EXTERNAL_PACKAGE_MANAGEMENT) ? $_REQUEST['online'] : false
     18$online = (isset($_REQUEST['online']) && !EXTERNAL_PACKAGE_MANAGEMENT) ? 1 : 0
    1919// fix php errors from undefined variable. Not sure if we can just change the reference below to use 
    2020// online since it changes values so just setting to what we decided it is here. 
    21 $_REQUEST['online'] = $online ? 1 : 0; 
    2221$moduleaction = isset($_REQUEST['moduleaction'])?$_REQUEST['moduleaction']:false; 
    2322/* 
     
    139138    freepbx_modal_hide('moduleBox'); 
    140139    if (goback) { 
    141      location.href = 'config.php?display=modules&amp;type=tool&amp;online=<?php echo ($_REQUEST['online']?1:0); ?>'; 
     140      location.href = 'config.php?display=modules&amp;type=<?php echo $type ?>&amp;online=<?php echo $online; ?>'; 
    142141    } 
    143142  } 
     
    165164  if ($module_getonlinexml_error) { 
    166165    echo "<div class=\"warning\"><p>".sprintf(_("Warning: Cannot connect to online repository (%s). Online modules are not available."), "mirror.freepbx.org")."</p></div><br />"; 
    167     $online = false
     166    $online = 0
    168167    unset($modules_online); 
    169168  } else if (!is_array($modules_online)) { 
    170169    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 />"; 
    171     $online = false
     170    $online = 0
    172171    unset($modules_online); 
    173172  } else { 
     
    374373      echo "\t<a href=\"#\" onclick=\"parent.close_module_actions(true);\" />"._("Return")."</a>"; 
    375374    } else { 
    376       echo "\t<input type=\"button\" value=\""._("Return")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=tool&amp;online=".($_REQUEST['online']?1:0)."';\" />"; 
     375      echo "\t<input type=\"button\" value=\""._("Return")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=$type&amp;online=".$online."';\" />"; 
    377376    echo "</div>"; 
    378377    } 
     
    509508      echo "<p>"._("Please select at least one action to perform by clicking on the module, and selecting an action on the \"Action\" tab.")."</p>"; 
    510509    } 
    511     echo "\t<input type=\"button\" value=\""._("Cancel")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=tool&amp;online=".($_REQUEST['online']?1:0)."';\" />"; 
     510    echo "\t<input type=\"button\" value=\""._("Cancel")."\" onclick=\"location.href = 'config.php?display=modules&amp;type=$type&amp;online=$online';\" />"; 
    512511    echo "</form>"; 
    513512