{{vtScript}} {{vtInclude: includes/initialize.html}} {{vtIf: userhasadminprivileges}} {{vtElse}} {{vtIf: {vtPageUserID} .eq. 52}} {{vtIf: {Token} .neq. {vtSession:token} }} {{vtIf: {Token} .nin. {vtCookie:pxtc_tklist} }} {{vtRedirect:..}} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} {{vtIf: {vtGetValue:v} .neq. }} {{vtIf: {vtPageUserID} .eq. 52 }} {{vtElseIf: OthersViewAccess}} {{vtSet: Public="1"}} {{vtEndIf}} {{vtIf: {vtUser:admin} .eq. 1 .or. {vtGlobal:pxtcPrivilegeHiresDownload} .eq. 1 }} {{vtSet: Allowed="1"}} {{vtElseIf: {DownloadAllowed} .eq. 1 .and. {vtGet:Public} .neq. 1 }} {{vtSet: Allowed="1"}} {{vtElseIf: {vtGlobal:pxtcPrivilegeHiresDownload} .eq. 2 .and. {vtUser:id} .gt. 0 }} {{vtSet: Allowed="1"}} {{vtElseIf: {vtGlobal:pxtcPrivilegeHiresDownload} .eq. 3}} {{vtRepeat: {vtGlobal:pxtcGroupsHiresDownload} }} {{vtIf: {vtItem} .in. {vtUser:groups} }} {{vtSet: Allowed="1"}} {{vtExit}} {{vtEndIf}} {{vtEndRepeat}} {{vtEndIf}} {{vtSet: Directory="{vtGlobal:pxtcPathHires}"}} {{vtSet: Zipname="bilder_hires.zip"}} {{vtIf: {vtGlobal:pxtcDownloadLogHires} .eq. 1 }} {{vtSet: LogType="hires"}} {{vtEndIf}} {{vtElse}} {{vtIf: {vtUser:admin} .eq. 1}} {{vtSet: Allowed="1"}} {{vtElseIf: {vtGlobal:pxtcPrivilegeLoresDownload} .eq. 1}} {{vtSet: Allowed="1"}} {{vtElseIf: {vtGlobal:pxtcPrivilegeLoresDownload} .eq. 2}} {{vtIf: {vtUser:id} .gt. 0}} {{vtSet: Allowed="1"}} {{vtEndIf}} {{vtElseIf: {vtGlobal:pxtcPrivilegeLoresDownload} .eq. 3}} {{vtRepeat: {vtGlobal:pxtcGroupsLoresDownload} }} {{vtIf: {vtItem} .in. {vtUser:groups} }} {{vtSet: Allowed="1"}} {{vtExit}} {{vtEndIf}} {{vtEndRepeat}} {{vtEndIf}} {{vtSet: Directory="{vtGlobal:pxtcPathLores}"}} {{vtSet: Zipname="bilder_lores.zip"}} {{vtIf: {vtGlobal:pxtcDownloadLogLores} .eq. 1 }} {{vtSet: LogType="lores"}} {{vtEndIf}} {{vtEndIf}} {{vtIf: {vtGet:Allowed} .eq. 1 }} {{vtCalc: substr( '{Verzeichnis:escaped}', 0, 1 ) == '/' ? substr( '{Verzeichnis:escaped}', 1 ) : '{Verzeichnis:raw}' }} {{vtSet: Verzeichnis}} {{vtIf: {vtGet:Directory} .bw. / }} {{vtElse}} {{vtSet: Directory = "{vtConfig:pathToVirthos}/{vtGet:Directory}" }} {{vtEndIf}} {{vtDo: -act="setSelection", -name="search", -type="image", -origin="{vtID}", -depth="1" }} {{vtIf: {vtUser:admin} .neq. 1 .and. {vtPageUserID} .neq. 52 }} {{vtDo: -act="updateSelection", -name="search", -filter="{vtPageUserID} .neq. 52"}} {{vtEndIf}} {{vtSelect: -name="search" }} {{vtLoop}} {{vtIf: {vtGetValue:v} .eq. }} {{vtSet: File="{vtGet:Verzeichnis,raw}/{vtName}"}} {{vtElseIf: {vtGetValue:v} .eq. *}} {{vtSet: File="{vtGet:Verzeichnis,raw}/{vtName}"}} {{vtElseIf: {vtGetValue:v} .cn. * .and. {vtGetValue:v} .ncn. .. }} {{vtCalc: str_replace( '*', substr( '{vtName:escaped}', 0, -4 ), '{vtGetValue:v,escaped}' ) }} {{vtSet: File="{vtGet:Verzeichnis,raw}/{vtResult}"}} {{vtElse}} {{vtSet: File="{vtGet:Verzeichnis,raw}/{vtGetValue:v}/{vtName}"}} {{vtEndIf}} {{vtIf: {vtGet:File} .neq.}} {{vtCalc: substr( '{vtGet:File,raw}', 0, -3 ) }} {{vtSet: BaseName }} {{vtIf: {vtGetValue:v} .eq. }} {{vtSet: Suffixes = "jpg,JPG,jpeg,JPEG" }} {{vtElseIf: {vtConfig:pxtcHiresSuffixes} .neq. }} {{vtSet: Suffixes = "{vtConfig:pxtcHiresSuffixes}" }} {{vtElse}} {{vtSet: Suffixes = "jpg,JPG,jpeg,JPEG,tif,TIF,tiff,TIFF" }} {{vtEndIf}} {{vtRepeat: {vtGet:Suffixes} }} {{vtCalc: file_exists( '{vtGet:Directory}/{vtGet:BaseName}{vtItem}' ) ? '1' : '' }} {{vtIf: {vtResult} .eq. 1}} {{vtSet: FinalList="{vtGet:FinalList}|{vtGet:BaseName}{vtItem}"}} {{vtSet: NumberList="{vtGet:NumberList},{vtID}"}} {{vtExit}} {{vtEndIf}} {{vtEndRepeat}} {{vtEndIf}} {{vtEndLoop}} {{vtEndSelect}} {{vtEndIf}} {{vtIf: {vtGet:FinalList} .neq.}} {{vtCalc: getZipMethod() }} {{vtSet: ZipMethod }} {{vtIf: {vtGet:ZipMethod} .eq. external }} {{vtCalc: create_zip_file( '{vtGet:Zipname}', '{vtGet:Directory,escaped}', '{vtGet:FinalList,escaped}' ) }} {{vtSet: ZipFile}} {{vtEndIf}} {{vtIf: {vtGet:ZipFile} .cn. : .or. {vtGet:ZipMethod} .eq. internal }} {{vtIf: {vtGlobal:mailRecipient} .neq.}} {{vtIf: {vtUser:realname}.neq.}} {{vtSet: User="{vtUser:realname}"}} {{vtElse}} {{vtSet: User="Benutzer '{vtUser:name}'"}} {{vtEndIf}} {{vtSet: Mailtext="{vtInclude:mails/notify_download.txt}"}} {{vtIf: {vtGetValue:v} .neq. }} {{vtIf: {vtGlobal:pxtcNotifyHiresDownload} .eq. 1}} {{vtDo: -act="mail", -to="{vtGlobal:mailRecipient}", -subject="Pixtacy-Download von {vtGet:User} (Lightbox/High-res)", -message="{vtGet:Mailtext,raw}" }} {{vtEndIf}} {{vtElse}} {{vtIf: {vtGlobal:pxtcNotifyLoresDownload} .eq. 1}} {{vtDo: -act="mail", -to="{vtGlobal:mailRecipient}", -subject="Pixtacy-Download von {vtGet:User} (Lightbox/Low-res)", -message="{vtGet:Mailtext,raw}" }} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} {{vtIf: {vtGet:LogType} .neq.}} {{vtRepeat: {vtGet:FinalList} }} {{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` = '/{vtItem}' }} {{vtEndRepeat}} {{vtEndIf}} {{vtIf: {vtGet:ZipMethod} .eq. external }} {{vtRedirect: -url="{vtGet:ZipFile}" }} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} {{vtEndScript}}

{{vtGet:s_title_sorry}}

Beim Erstellen der ZIP-Datei ist ein Fehler aufgetreten.

{{vtGet:s_msg_0034}}

zurück

{{vtTemplate: views/empty.html }}