liquid_feedback_frontend

diff app/main/member/avatar.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children 5c601807d397
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/member/avatar.lua	Wed Nov 18 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +local record = Member:by_id(param.get_id())
     1.5 +
     1.6 +if false and (not record or not record.avatar) then
     1.7 +  print('Location: ' .. encode.url{ static = 'no_image.png' } .. '\n\n')
     1.8 +  exit()
     1.9 +end
    1.10 +
    1.11 +print('Content-type: image/jpg\n')
    1.12 +
    1.13 +if record then
    1.14 +  io.stdout:write(record.avatar)
    1.15 +else
    1.16 +end
    1.17 +
    1.18 +exit()

Impressum / About Us