Ejemplo n.º 1
0
 function angel_process_transaction()
 {
     foreach ($this->page_map as $index => $value) {
         ${$value} = $index;
     }
     $lookup = new lookup_class();
     $trans = $this->working_vars['transactions'];
     $curr = $this->working_vars['current_trans'] - 1;
     if (!isset($trans[$curr])) {
         return $this->angel_404("error message: 1000");
     }
     $is_sub = $lookup->is_subscription($trans[$curr]['transactionId']);
     //		if($is_sub < 0)
     //			return $this->angel_404("error message: 1001");
     $sub_message = $is_sub ? "\n\t\t\tTo cancel your subscription, say, cancel, or press, 2, on your keypad\n\t\t" : "";
     return "\n\t<ANGELXML>\n\t\t<MESSAGE>\n\t\t\t<PLAY>\n\t\t\t\t<PROMPT type=\"text\">\n\t\t\t\tTo request a refund for this transaction, say refund, or press, 1, on your keypad.\n\t\t\t\t\n\t\t\t\t{$sub_message}\n\t\t\t\t</PROMPT>\n\t\t\t</PLAY>\n\t\t\t<LINK keyword=\"refund\" dtmf=\"1\" destination=\"/{$angel_refund_transaction}\"/>\n\t\t\t<LINK keyword=\"cancel\" dtmf=\"2\" destination=\"/{$angel_confirm_cancel_subscription}\"/>\n\t\t</MESSAGE>\n\t</ANGELXML>\n\t\t";
 }
Ejemplo n.º 2
0
<?php

/*written by rob wultsch on or 6/15/2306
This page is intended to get called by an iframe on phpmyfaq.
If someone should screw up the faq pages that run the iframe,  run:
UPDATE `faq_faqdata` SET `content` = '<P ALIGN=center><IFRAME SRC="../transaction_lookup.php" WIDTH=400 HEIGHT=400 FRAMEBORDER=0></IFRAME></P>' WHERE `id` =19 AND CONVERT( `lang` USING utf8 ) = 'en' LIMIT 1 ;

For fake transaction to run against:
SELECT cs_transactiondetails.`transactionId` , cs_transactiondetails.`transactionDate` , cs_transactiondetails.`email` , cs_transactiondetails.`reference_number` , cs_subscription.`ss_ID`
FROM `cs_transactiondetails` , `cs_subscription`
WHERE cs_subscription.`ss_ID` = cs_transactiondetails.`td_ss_ID` 
*/
$etel_debug_mode = 0;
include '../includes/dbconnection.php';
require_once "lookup.class.php";
$lookup = new lookup_class();
$URL = str_replace(strstr($_SERVER["REQUEST_URI"], '?'), "", $_SERVER["REQUEST_URI"]);
?>
<html>
<head>
<?php 
if ($_REQUEST[action] == "request_refund" or $_REQUEST[action] == "cancel") {
    echo '<META HTTP-EQUIV="refresh" CONTENT="3;URL=' . $_SERVER['HTTP_REFERER'] . '\\">';
}
?>
 
<style type="text/css">
h2.pos_right
{
position:relative;
left:23px