This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function timeAgoFormat(date){ | |
var interval = ""; | |
var offset = 0; | |
var result = 0; | |
var res = structNew(); | |
if (isDate(arguments.date)){ | |
var formattedDate = dateFormat(arguments.date, "ddd dd mmm yy"); | |
//& " at " & timeFormat(arguments.date, "HH:MM"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- read post from PayPal system and add 'cmd' --> | |
<CFSET str="cmd=_notify-validate"> | |
<CFLOOP INDEX="TheField" list="#Form.FieldNames#"> | |
<CFSET str = str & "&#LCase(TheField)#=#URLEncodedFormat(Form[TheField])#"> | |
</CFLOOP> | |
<CFIF IsDefined("FORM.payment_date")> | |
<CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"> | |
</CFIF> | |
<CFIF IsDefined("FORM.subscr_date")> | |
<CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#"> |