Changeset 13873
- Timestamp:
- 03/23/12 14:05:28 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.7
- Property svn:mergeinfo set to
/freepbx/branches/2.10:13870
/freepbx/branches/2.8:13872
/freepbx/branches/2.9:13871 - Property svnmerge-integrated changed from /freepbx/branches/2.6:1-8598,8646-8647,8828 /freepbx/branches/2.8:1-9715,9728,9961,9977,10010,10038,10050,10453,11465,11623,11673,11743 to /freepbx/branches/2.8:1-9715,9728,9961,9977,10010,10038,10050,10453,11465,11623,11673,11743,13872 /freepbx/branches/2.6:1-8598,8646-8647,8828
- Property svn:mergeinfo set to
freepbx/branches/2.7/amp_conf/htdocs/recordings/misc/callme_page.php
r7040 r13873 10 10 include_once("./includes/common.php"); 11 11 12 $pageaction = $_REQUEST['action']; 13 14 if (!isset($_SESSION['ari_user']['extension']) || $pageaction === 'c' && !isset($_SESSION['ari_user']['recfiles'][$_REQUEST['recindex']])) { 15 die; // Disable anonymous or malicious access. 16 } 17 12 18 ?> 13 19 … … 19 25 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 20 26 </head> 27 <body> 21 28 22 29 <?php … … 25 32 $success = databaseLogon(); 26 33 if ($success) { 34 $extension = $_SESSION['ari_user']['extension']; 27 35 $path = $_SESSION['ari_user']['recfiles'][$_REQUEST['recindex']]; 28 $pageaction = $_REQUEST['action']; 29 $to = $_REQUEST['callmenum']; 30 $msgFrom = $_REQUEST['msgFrom']; 36 $to = callme_getnum($extension); 31 37 $new_path = substr($path, 0, -4); /* Without the sound file extension. */ 32 $matches[0] = ''; /* init the $matches array. */33 38 /* Either start or end the call me call */ 34 39 switch($pageaction) … … 36 41 case "c": 37 42 /* Call me. */ 38 $call_status = callme_startcall($to, $ msgFrom, $new_path);43 $call_status = callme_startcall($to, $extension, $new_path); 39 44 echo("<table class='voicemail' style='width: 100%; height: 100%; margin: 0 0 0 0; border: 0px; padding: 0px'><tr><td valign='middle' style='border: 0px'>"); 40 45 /* if successful, display hang-up button */ 41 46 if (callme_succeeded($call_status)) 42 47 { 43 echo("<a href='callme_page.php?action=h &callmenum=" . $to . "'>Click here to hang up.</a>");48 echo("<a href='callme_page.php?action=h'>Click here to hang up.</a>"); 44 49 } 45 50 echo("</td></tr></table>"); freepbx/branches/2.7/amp_conf/htdocs/recordings/modules/voicemail.module
r8599 r13873 553 553 $_SESSION['ari_user']['recfiles'][$i] = $recording; 554 554 $recordingLink = "<a href='#' onClick=\"javascript:playback('play', $playbackRow, 'misc/play_page.php?recindex=" . $i . "'); return false;\"><img src='theme/images/sound.png' title=" . _("Play") . "></img></a>"; 555 $callmePage = "'misc/callme_page.php?recindex=" . $i . "& callmenum=" . $this->callme_num . "&action=c&msgFrom=" . $extension . "'";555 $callmePage = "'misc/callme_page.php?recindex=" . $i . "&action=c'"; 556 556 $callme_tooltip = _("Play message at: ") . $this->callme_num; 557 557 $callmeLink = "<a href='#' onClick=\"javascript:playback('callme', $playbackRow, $callmePage); return false;\"><img src='theme/images/telephone.png' title='" . $callme_tooltip . "'></img></a>";
