How I can generate unique (no direct downloadable) links?

Author Message

Maxim Kopytov

Tuesday 21 December 2010 3:47:55 am

Hallo!
how I can generate unique (no direct downloadable) links for files using eZ?
it's mean temporary links just for current user, just for now.

______________
I love eZ Publish

zurgutt -

Thursday 23 December 2010 2:23:00 pm

Can you be bit more specific about what you mean by files and what exactly is the situation?

From the info above i could just guess you should make module for serving files and keep flag in session for users who have access, that the module will check.

Certified eZ developer looking for projects.
zurgutt at gg.ee

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:04:40
Script start
Timing: Jan 18 2025 02:04:40
Module start 'layout'
Timing: Jan 18 2025 02:04:40
Module start 'content'
Timing: Jan 18 2025 02:04:41
Module end 'content'
Timing: Jan 18 2025 02:04:41
Script end

Main resources:

Total runtime0.7591 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.0547152.6406
Module start 'layout' 0.00450.0028 740.695339.4844
Module start 'content' 0.00730.7501 780.1797527.7031
Module end 'content' 0.75750.0015 1,307.88288.2656
Script end 0.7590  1,316.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4571160.0002
Check MTime0.00150.1999160.0001
Mysql Total
Database connection0.00060.077610.0006
Mysqli_queries0.714094.0647540.0132
Looping result0.00080.1075520.0000
Template Total0.728896.020.3644
Template load0.00220.289220.0011
Template processing0.726695.726720.3633
Template load and register function0.00020.020510.0002
states
state_id_array0.00130.167710.0013
state_identifier_array0.00110.147420.0006
Override
Cache load0.00170.2300110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.085220.0003
Fetch class attribute name0.00130.177140.0003
XML
Image XML parsing0.00290.375520.0014
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00360.4774230.0002
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs