samizdat-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New snapshot: Flowplayer, GPL3, access control plugins


From: Dmitry Borodaenko
Subject: New snapshot: Flowplayer, GPL3, access control plugins
Date: Sat, 10 May 2008 22:59:17 +0300

Greetings,

I have just uploaded new snapshot 0.6.1.20080510-1 to
Debian/experimental. It includes several substantial changes, so
please read on.

- Flowplayer free flash video player is integrated into Samizdat,
allowing to upload and view online flv and mp4/h.264 videos

- license upgraded from "GPL 2 or higher" to "GPL 3 or higher", this
is a requirement from Flowplayer (which uses GPL 3), and it's time to
do that anyway, GPL 3 is much better suited for Web applications

- upload of swf files is also enabled, but flash content file plugin
is disabled by default due to inherent insecurity of Flash, so these
files will be displayed as ordinary download links instead of being
included on the page

- member settings page is split into profile, account, and UI settings
pages, there's profile plugin API to expand member profile, but it's
just a placeholder for now

- access control is rewritten to use plugins instead of hard-coded
config options; role-based access control plugin provides the same
functionality as before, except list of moderators is now stored in db

Before installing this version, update your database:

CREATE TABLE Role (member INTEGER REFERENCES Member, role TEXT);
GRANT INSERT, UPDATE, SELECT ON Role TO samizdat;
INSERT INTO Role (member, role) SELECT id, 'moderator' FROM Member
WHERE login IN ('moderator1', 'moderator2', ...);

In the last line, replace ('moderator1', 'moderator2', ...) with your
current moderator list, that can be produced by the following command
line:

grep moderators /etc/samizdat/sites/*|sed "s/, /', '/g"

There's no UI to edit this list, yet, but it will get there, eventually.

You will also need to update your Apache or Lighttpd configuration to
make js/ and flowplayer/ directories visible via the Web server (see
doc/examples/).

Finally, if your access control configuration differs from Samizdat
default (e.g. guests are allowed to post), see defaults.yaml on how
role plugin is configured.

-- 
Dmitry Borodaenko




reply via email to

[Prev in Thread] Current Thread [Next in Thread]