AAAH#35551 -- Uitbreiding Absoluta koppeling

svn path=/Website/branches/v2016.1/; revision=29531
This commit is contained in:
Arthur Egberink
2016-05-26 08:14:44 +00:00
parent f5fe6a95f8
commit 0b9fe885c5

View File

@@ -14,12 +14,16 @@
%>
<!-- #include file="../../appl/Shared/common.inc" -->
<!-- #include file="../../appl/bes/bes.inc" -->
<%
var bes_key = getQParamInt("key", -1);
var bes_key = getQParamInt("key");
var accounthash = getQParam("accounthash", "");
var succes = 0;
var bes_bestelling = bes.bestelling_info(bes_key); // Globale variabele met alle bes_bestelling informatie
var this_bes = bes.func_enabled_bestelling(bes_bestelling);
user.auth_required_or_abort(this_bes.canRetourURL);
sql = " SELECT MAX (SUBSTR (bes_srtdeel_nr, INSTR (bes_srtdeel_nr, '/') + 1, 30)) "
+ " FROM bes_srtdeel sd, bes_bestelling_item bi"
@@ -28,9 +32,9 @@ var succes = 0;
oRs = Oracle.Execute(sql);
if (!oRs.eof) {
succes = 1;
//remoteUrl = "http://www.facilitor.nl/?id=" + oRs(0).value + "&accounthash=" + accounthash;
remoteUrl = "https://corp.dev.sotasty.nl/index/login/accounthash/" + accounthash + "/orderid/" + oRs(0).value + "/actie/choose/"
msg = "Een moment... U wordt doorgezet naar de site van de leverancier.";
//remoteUrl = "http://www.facilitor.nl/?id=" + oRs(0).value + "&accounthash=" + safe.url(accounthash);
remoteUrl = safe.jsstring("https://corp.dev.sotasty.nl/index/login/accounthash/" + safe.url(accounthash) + "/orderid/" + oRs(0).value + "/actie/choose/");
msg = safe.html("Een moment... U wordt doorgezet naar de site van de leverancier.");
}
else {
msg = "U heeft hiervoor geen autorisatie.";