Commit 3afe028a authored by Martin Markech's avatar Martin Markech
Browse files

flash support is broken, so deleting all that files. we have html5, I think we dont need flash

parent 1a81252e
......@@ -191,7 +191,6 @@ Remove gem from Gemfile
* add support for amazon S3 storage
* create app tests
* repair problems with Flash runtime and test gears, silverlight and HTML4 runtime
* show live links in admin
* allow to check which photo is photo album preview
* set albums public/not public.
......
=begin
#TODO fix Flash runtime
require 'rack/utils'
module Refinery
module PhotoGallery
module Admin
class FlashSessionCookieMiddleware
def initialize(app, session_key = '_session_id')
@app = app
@session_key = session_key
end
def call(env)
if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/
req = Rack::Request.new(env)
env['HTTP_COOKIE'] = [ @session_key,
req.params[@session_key] ].join('=').freeze unless req.params[@session_key].nil?
env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}".freeze unless req.params['_http_accept'].nil?
end
@app.call(env)
end
end
end
end
end
=end
\ No newline at end of file
#Rails.application.config.session_store :cookie_store, :key => '_balder_session'
=begin
#TODO fix flash runtime
Rails.application.config.middleware.insert_before(
Rails.application.config.session_store,
Refinery::PhotoGallery::Admin::FlashSessionCookieMiddleware,
Rails.application.config.session_options[:key]
)
=end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment