[an error occurred while processing this directive] <% '************************************************************************ ' displays all currencies available ' VP-ASP 6.0 ' June 29, 2005 HK '*********************************************************************** dim currenturl, url dim rs dim dbc currenturl="shopcurrency.asp" 'response.write getsess("returnurl") ''response.end 'VP-ASP 6.08 - wasn't redirecting correctly after change 'if (getsess("returnurl") = "") OR (right(getsess("returnurl"), len(getsess("returnurl")) - instrrev(getsess("returnurl"), "/")) = currenturl) then ' if request.ServerVariables("HTTP_REFERER") > "" then ' setsess "returnurl", request.ServerVariables("HTTP_REFERER") ' else ' end if 'end if ShopOpendatabase dbc If Request("cid")<>"" then 'VP-ASP 6.08a - Security fix sql="select * from currencyvalues where cid= '" & CleanChars(Request("CID")) & "'" debugwrite sql set rs=dbc.execute(sql) if not rs.eof then SetSess "CID",rs("cid") setSess "Fullunitname",rs("fullunitname") SetSess "Conversionvalue",rs("conversionvalue") SetSess "Newcurrencysymbol",rs("currencysymbol") SetSess "flagimage",rs("theimage") else debugwrite "not found" & request("cid") end if closerecordset rs shopclosedatabase dbc Call SetCurrency(GetSess("CID"),false) Getreturnurl url 'response.write url Responseredirect url else shoppageheader 'VP-ASP 6.09 - added breadcrumb response.write "" DisplayForm shoppagetrailer end if ShopClosedatabase dbc Sub DisplayForm dim Fullunitname dim newrow newrow=true 'VP-ASP 6.08 - IF statement to handle different databases if (ucase(xdatabasetype)="SQLSERVER") or (getconfig("xmysql")="Yes") OR (instr(ucase(xdatabasetype), "MYSQL") > 0) then sql="select * from currencyvalues where theimage is not null AND hide = 0 order by fullunitname" else sql="select * from currencyvalues where theimage is not null AND hide = FALSE order by fullunitname" end if %>

<%=getlang("langcurrpage01")%>

<%=GetSess("Fullunitname")%> <%=getlang("langcurrpage02")%>
<%=getlang("langcurrpage03")%>
<% set rs=dbc.execute(sql) Do while not rs.eof Fullunitname=rs("fullunitname") if newrow=true then response.write "" newrow=false else newrow=true end if %> <% if newrow=true then response.write "" end if rs.MoveNext Loop closerecordset rs response.write "
&VAT=False">" alt="<%=Fullunitname%>">
<%=Fullunitname%>
" %>
<% If Getconfig("xbuttoncontinue")="" Then %> "> <% else %> "> <% end if %>
<% End Sub Sub getreturnurl (url) 'VP-ASP 6.08 - wasn't redirecting correctly after change 'url=getsess("currenturl") url=GetSess("convertBackBackpage") if url="" then url=getconfig("xhome") end if end sub %>