{{vtScript}} {{vtIf: {vtGlobal:pxtcPathLores} .bw. /}} {{vtElseIf: {vtGlobal:pxtcPathLores} .bw. .}} {{vtElse}} {{vtSet: pixtacyBaseURL="./{vtGlobal:pxtcPathLores}"}} {{vtEndIf}} {{vtInclude:includes/checkdownloadallowed.html}} {{vtIf: {vtGetValue:v} .neq. }} {{vtIf: {vtGet:HiresDownloadAllowed} .eq. 1 }} {{vtSet: File="{vtGlobal:pxtcPathHires}/{Verzeichnis}/./{vtGetValue:v}"}} {{vtSet: Notify="{vtGlobal:pxtcNotifyHiresDownload}"}} {{vtSet: LogPath="{Verzeichnis}/{vtGetValue:v}"}} {{vtIf: {vtGlobal:pxtcDownloadLogHires} .eq. 1 }} {{vtSet: LogType="hires"}} {{vtEndIf}} {{vtEndIf}} {{vtElse}} {{vtIf: {vtGet:LoresDownloadAllowed} .eq. 1 }} {{vtSet: File="{vtGlobal:pxtcPathLores}/{Verzeichnis}/./{vtName}"}} {{vtSet: Notify="{vtGlobal:pxtcNotifyLoresDownload}"}} {{vtSet: LogPath="{Verzeichnis}/{vtName}"}} {{vtIf: {vtGlobal:pxtcDownloadLogLores} .eq. 1 }} {{vtSet: LogType="lores"}} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} {{vtIf: {vtGet:File} .neq.}} {{vtIf: {vtGet:File} .bw. ftp://}} {{vtElse}} {{vtIf: {vtGet:File} .bw. / }} {{vtElse}} {{vtSet: File = "{vtConfig:pathToVirthos}{vtGet:File}" }} {{vtEndIf}} {{vtCalc: realpath( '{vtGet:File}' ) }} {{vtSet:File}} {{vtEndIf}} {{vtIf: {vtGlobal:mailRecipient} .neq.}} {{vtIf: {vtGet:Notify} .eq. 1}} {{vtIf: {vtUser:realname}.neq.}} {{vtSet: User="{vtUser:realname}"}} {{vtElse}} {{vtSet: User="Benutzer '{vtUser:name}'"}} {{vtEndIf}} {{vtDo: -act="mail", -to="{vtGlobal:mailRecipient}", -subject="Pixtacy-Download von {vtGet:User}", -message="{vtGet:User} ({vtEcho: getenv( 'REMOTE_ADDR' ) }) hat am {vtCurrentDate} um {vtCurrentTime} Uhr die Bilddatei '{vtGet:LogPath}' ({vtGet:LogType}) heruntergeladen." }} {{vtEndIf}} {{vtEndIf}} {{vtIf: {vtGet:LogType} .neq. }} {{vtDbQuery: INSERT INTO {vtDbTable:table_downloads_log} SET `timestamp` = CURRENT_TIMESTAMP, `ip_address` = '{vtEcho: getenv( 'REMOTE_ADDR' ) }', `session_id` = '{vtSession:id}', `type` = '{vtGet:LogType}', `user` = '{vtUser:name}', `realname` = '{vtUser:realname}', `organization` = '{vtUser:Contact_Company}', `image_path` = '{vtGet:LogPath}' }} {{vtEndIf}} {{vtCalc: basename( '{vtGet:File,escaped}' ) }} {{vtDeliver: {vtGet:File}, {vtResult} }} {{vtEndIf}} {{vtEndScript}}