{{vtScript}} {{vtIf: {vtGetValue:o} .gt. 0}} {{vtUse: {vtGetValue:o} }} {{vtSet: Token="{Token}"}} {{vtIf: {abgeschlossen} .eq. 1 .and. {Bezahlmethode} .in. rechnung|lastschrift|sepa }} {{vtSet: bezahlt="1"}} {{vtElse}} {{vtSet: bezahlt="{bezahlt}"}} {{vtEndIf}} {{vtSet: Warenkorb="{Warenkorb:raw}"}} {{vtSet: User = "{Vorname} {Name}"}} {{vtSet: Bestellnummer = "{Nummer}" }} {{vtEndUse}} {{vtElse}} {{vtSet: Token="x"}} {{vtEndIf}} {{vtIf: {vtGet:bezahlt} .eq. 1 .and. {vtGet:Token} .eq. {vtGetValue:t} .and. {vtGetValue:i} .gt. 0 }} {{vtRepeat:{vtGet:Warenkorb} }} {{vtIf: {vtItem:id} .eq. {vtGetValue:i} .and. {vtItem:type} .eq. file .and. {vtItem:hires_path} .neq.}} {{vtIf: {vtGlobal:pxtcPathHires} .bw. / }} {{vtSet: File="{vtGlobal:pxtcPathHires}/{vtItem:folder}/{vtItem:hires_path}"}} {{vtElse}} {{vtSet: File="{vtConfig:pathToVirthos}{vtGlobal:pxtcPathHires}/{vtItem:folder}/{vtItem:hires_path}"}} {{vtEndIf}} {{vtCalc: realpath( '{vtGet:File,raw}' ) }} {{vtSet: File}} {{vtCalc: basename('{vtGet:File,escaped}') }} {{vtSet: FileName }} {{vtIf: {vtGlobal:mailRecipient} .neq. .and. {vtGlobal:pxtcNotifyHiresDownload} .eq. 1 }} {{vtDo: -act="mail", -to="{vtGlobal:mailRecipient}", -subject="Pixtacy-Download zu Bestellung Nr. {vtGet:Bestellnummer} ({vtItem:filename})", -message="Die Bilddatei '{vtItem:folder}/{vtItem:hires_path}' wurde am {vtCurrentDate} um {vtCurrentTime} Uhr von IP {vtEcho: getenv( 'REMOTE_ADDR' )} heruntergeladen." }} {{vtEndIf}} {{vtDeliver: {vtGet:File}, {vtGet:FileName} }} {{vtExit}} {{vtEndIf}} {{vtEndRepeat}} {{vtEndIf}} {{vtEndScript}}{{vtInclude:download.html}}