", "");
$licKey = getSingleTagContent($messageReq, "", "");
// Decode
$licKey = mcDecode($licKey);
// HARDCODED START ENVIRONMENT
// $functionName = "getLicenceData";
// $licKey = "L1000000001";
// ------------------------------------------------------------------------------------------------------
// **************
// * XML Output *
// **************
$retVal = "";
$xmlOut = "";
$xmlNoErrOut .= "0\nOK\n";
$xmlErrOut .= "100\nCurrently not implemented.\n";
if ($functionName == "getLicenceData") :
if ($transactionHandle != "") :
// $xmlOut .= "" . $transaction_no . "\n";
endif;
$xmlOut .= "\n";
if ($functionName != "") :
if (function_exists($functionName)) :
if ($functionName == "getLicenceData") :
$retVal = call_user_func_array($functionName, array($licKey)); // Check licence data
$retValLen = count($retVal);
if (!is_array($retVal[0]) && $retVal[0] != "0") :
$xmlOut .= $retVal[1] . $retVal[2];
else :
// if ($retValLen > 0) :
$xmlOut .= "\n";
for ($i = 0; $i < $retValLen; $i++) :
$xmlOut .= "\n";
$xmlOut .= " \n";
$xmlOut .= " " . $retVal[$i][2] . "\n";
$xmlOut .= " \n";
$xmlOut .= " \n";
$xmlOut .= " \n";
$xmlOut .= "\n";
endfor;
$xmlOut .= "\n";
// endif;
endif;
// elseif ($functionName == "xxx") :
/*
$retVal = call_user_func_array($functionName, array($actionMode, $rpId, $rpType, $rpObjType, $rpObjId, $rpText, $rpConfidential, $hq_id, $usr_id)); // DB actions for a report
$xmlOut .= "\n";
$xmlOut .= "\n";
$xmlOut .= "" . $actionMode . "\n";
$xmlOut .= "" . $rpId . "\n";
$xmlOut .= "" . $retVal . "\n";
$xmlOut .= "\n";
$xmlOut .= "\n";
*/
else :
$xmlOut .= "103\n";
$xmlOut .= "Function does not exist in API.\n";
endif;
else :
$xmlOut .= "102\n";
$xmlOut .= "Specified function does not exist.\n";
endif;
else :
$xmlOut .= "101\n";
$xmlOut .= "No function specified.\n";
endif;
$xmlOut .= "\n";
endif;
echo $xmlOut;
?>