chiark / gitweb /
disorder
11 years agodeluser and edituser now adjust live connections
rjk@greenend.org.uk [Mon, 31 Dec 2007 13:48:53 +0000 (13:48 +0000)]
deluser and edituser now adjust live connections

11 years agocorrect base64 changes
rjk@greenend.org.uk [Mon, 31 Dec 2007 13:46:41 +0000 (13:46 +0000)]
correct base64 changes

11 years agoimprove READMEs a bit
rjk@greenend.org.uk [Mon, 31 Dec 2007 12:28:46 +0000 (12:28 +0000)]
improve READMEs a bit

11 years agotypo
rjk@greenend.org.uk [Mon, 31 Dec 2007 12:14:56 +0000 (12:14 +0000)]
typo

11 years agoConfirmation strings are now invariant under URL-encoding. They are still
rjk@greenend.org.uk [Mon, 31 Dec 2007 11:46:17 +0000 (11:46 +0000)]
Confirmation strings are now invariant under URL-encoding.  They are still
base64-encoded but using a slightly different set of symbols to MIME.

11 years agomake login status messages stand out more
rjk@greenend.org.uk [Mon, 31 Dec 2007 11:45:28 +0000 (11:45 +0000)]
make login status messages stand out more

11 years agofix more broken images
rjk@greenend.org.uk [Mon, 31 Dec 2007 11:08:05 +0000 (11:08 +0000)]
fix more broken images

11 years agoRegistration now insists you type your password twice the same.
rjk@greenend.org.uk [Mon, 31 Dec 2007 11:02:29 +0000 (11:02 +0000)]
Registration now insists you type your password twice the same.

Editing user details (email/password) from the web now works.  Again
you must type your password twice.

Registration and editing forms in login.html now have extra
documentation in a third column, controlled as ever via labels.

New @userinfo@ expansion allows user properties to be queried.

Added some missing error.* labels.

11 years ago'confirm' now logs the user in (and sends back their username so the
rjk@greenend.org.uk [Mon, 31 Dec 2007 10:26:52 +0000 (10:26 +0000)]
'confirm' now logs the user in (and sends back their username so the
CGI knows who it is today).  The CGI then gets a new cookie so that
the user continues being logged in.

This is a bit of a change from the original design but does save the
user a bit of time.

Also improved some of the associated web page text.

11 years agoOnly display register form if it'll work
rjk@greenend.org.uk [Mon, 31 Dec 2007 10:13:26 +0000 (10:13 +0000)]
Only display register form if it'll work

11 years agoStyling for error and login pages.
rjk@greenend.org.uk [Mon, 31 Dec 2007 10:11:02 +0000 (10:11 +0000)]
Styling for error and login pages.

Error messages are now displayed in red.  Success messages are
displayed in green.

The login/register/edit user forms are now boxed.

11 years agocgi: actually use the connection from the new login after logging in!
rjk@greenend.org.uk [Mon, 31 Dec 2007 10:01:47 +0000 (10:01 +0000)]
cgi: actually use the connection from the new login after logging in!

11 years agoTidy up login reporting.
rjk@greenend.org.uk [Mon, 31 Dec 2007 09:54:21 +0000 (09:54 +0000)]
Tidy up login reporting.

The various login-page actions now set the label 'status' to their
result and this is used to pick the right label for the response text.

The interpretation of 'back' is fixed too.

11 years agoInclude a Date: header in mail sent by the CGI. We always use UTC
rjk@greenend.org.uk [Sun, 30 Dec 2007 21:29:08 +0000 (21:29 +0000)]
Include a Date: header in mail sent by the CGI.  We always use UTC
rather than relying on the non-standard %z, though both Linux and OS X
have it.

11 years agoShorter confirmation URLs. 'confirm=' becomes 'c=' and the
rjk@greenend.org.uk [Sun, 30 Dec 2007 21:00:59 +0000 (21:00 +0000)]
Shorter confirmation URLs.  'confirm=' becomes 'c=' and the
confirmation secret is reduced to 80 bits (which amounts to 20
characters under base64).

http:// and /cgi-bin/disorder?c=XXXXXXXXXXXXXXXXXXXX amount to 47
characters, leaving over 30 characters for a hostname and still
fitting into an 80 column display.

11 years agoConfirmation URLs now work and activate new logins. The code is all a
rjk@greenend.org.uk [Sun, 30 Dec 2007 20:56:33 +0000 (20:56 +0000)]
Confirmation URLs now work and activate new logins.  The code is all a
bit ad-hoc and crufty but the basic functionality does work.

11 years agoALSA mixer support.
rjk@greenend.org.uk [Sun, 30 Dec 2007 20:13:20 +0000 (20:13 +0000)]
ALSA mixer support.

Mixer configuration is no longer checked when reading the config file,
as with the current design this would force every DisOrder program to
link against all the sound libraries.

11 years agoUnify sound API configuration.
rjk@greenend.org.uk [Sun, 30 Dec 2007 16:20:37 +0000 (16:20 +0000)]
Unify sound API configuration.

'speaker_backend' is now spelled 'api' (though the old name still
works) and effects the choice of volume setting API as well as the
device used by the speaker process.

For volume setting, only OSS is implemented (still).  The new
structure means that ALSA volume setting no longer works as it will no
longer use the OSS interface instead.  However, this was never
reliable as it depended upon ALSA's OSS emulation being enabled.

11 years agomake sure disorder-normalize gets the right config file
rjk@greenend.org.uk [Sun, 30 Dec 2007 15:59:04 +0000 (15:59 +0000)]
make sure disorder-normalize gets the right config file

11 years agoset default gap to 0
Richard Kettlewell [Sun, 30 Dec 2007 13:53:57 +0000 (13:53 +0000)]
set default gap to 0

11 years agoconfig files note that "trust" can be removed
Richard Kettlewell [Sun, 30 Dec 2007 13:52:30 +0000 (13:52 +0000)]
config files note that "trust" can be removed

11 years agodebian now defaults to UTF-8; using the local encoding would be better still
Richard Kettlewell [Sun, 30 Dec 2007 13:42:54 +0000 (13:42 +0000)]
debian now defaults to UTF-8; using the local encoding would be better still

11 years ago'collection' no longer requires an encoding to be specified (or a module).
Richard Kettlewell [Sun, 30 Dec 2007 13:37:54 +0000 (13:37 +0000)]
'collection' no longer requires an encoding to be specified (or a module).
This isn't quite as useful as it sounds as it depends on the server getting
the right LC_CTYPE, which it might well not do.

11 years agotypo
rjk@greenend.org.uk [Sat, 29 Dec 2007 20:27:08 +0000 (20:27 +0000)]
typo

11 years agoFurther simplify web setup.
rjk@greenend.org.uk [Sat, 29 Dec 2007 20:25:26 +0000 (20:25 +0000)]
Further simplify web setup.
 - The default icons directory now matches the instructions.
 - vhost-specific setup is moved to a README

11 years agostop disorder(1) permuting command line
rjk@greenend.org.uk [Sat, 29 Dec 2007 20:22:37 +0000 (20:22 +0000)]
stop disorder(1) permuting command line

11 years agofix enabled/disabled icons. still a bit crufty but does now work again.
rjk@greenend.org.uk [Sat, 29 Dec 2007 19:59:42 +0000 (19:59 +0000)]
fix enabled/disabled icons.  still a bit crufty but does now work again.

11 years agodisorder setup-guest enforces mail_sender requirement
rjk@greenend.org.uk [Sat, 29 Dec 2007 19:08:01 +0000 (19:08 +0000)]
disorder setup-guest enforces mail_sender requirement

11 years agoupdate docs for mail_sender and smtp_server
rjk@greenend.org.uk [Sat, 29 Dec 2007 19:07:47 +0000 (19:07 +0000)]
update docs for mail_sender and smtp_server

11 years agoOnline registration now sends email. The confirmation URL doesn't
rjk@greenend.org.uk [Sat, 29 Dec 2007 18:54:16 +0000 (18:54 +0000)]
Online registration now sends email.  The confirmation URL doesn't
work yet.  The mail comes from mail_sender which MUST be configured.

sendmail() sends mail via the SMTP server specified in the config
file.  The default is localhost.  inputline() is extended to cope with
CRLF-flavored protocols.

local_hostname() returns the FQDN of the local host (assuming you
didn't screw up your /etc/hosts).

mime_encode_text() and mime_to_qp() prepare text/* messages for
sending in mail.

11 years agobuild default stopword list into server
rjk@greenend.org.uk [Sat, 29 Dec 2007 16:48:25 +0000 (16:48 +0000)]
build default stopword list into server

11 years agodisobedience --help doesn't DISPLAY to be set
rjk@greenend.org.uk [Sat, 29 Dec 2007 16:22:40 +0000 (16:22 +0000)]
disobedience --help doesn't DISPLAY to be set

11 years agomake url.static work as described, and adjust cgi setup details
rjk@greenend.org.uk [Fri, 28 Dec 2007 18:08:34 +0000 (18:08 +0000)]
make url.static work as described, and adjust cgi setup details

11 years agocgi: grey out volume set buttons if unusable
rjk@greenend.org.uk [Fri, 28 Dec 2007 17:32:57 +0000 (17:32 +0000)]
cgi: grey out volume set buttons if unusable

11 years agoavoid prefs links that you cannot use
rjk@greenend.org.uk [Fri, 28 Dec 2007 17:26:44 +0000 (17:26 +0000)]
avoid prefs links that you cannot use

11 years agoavoid choose links that you cannot use
rjk@greenend.org.uk [Fri, 28 Dec 2007 17:20:32 +0000 (17:20 +0000)]
avoid choose links that you cannot use

11 years agocgi: update copyright notice
rjk@greenend.org.uk [Fri, 28 Dec 2007 17:05:02 +0000 (17:05 +0000)]
cgi: update copyright notice

11 years agotypo fix from earlier topbar changes
rjk@greenend.org.uk [Fri, 28 Dec 2007 17:00:45 +0000 (17:00 +0000)]
typo fix from earlier topbar changes

11 years agokeep cookie more private to disorder.cgi
rjk@greenend.org.uk [Fri, 28 Dec 2007 16:58:50 +0000 (16:58 +0000)]
keep cookie more private to disorder.cgi

11 years agocgi: more graceful error handling in absence of server
rjk@greenend.org.uk [Fri, 28 Dec 2007 16:13:46 +0000 (16:13 +0000)]
cgi: more graceful error handling in absence of server

11 years agoextra make clean in tests/
rjk@greenend.org.uk [Sun, 23 Dec 2007 21:07:23 +0000 (21:07 +0000)]
extra make clean in tests/

11 years agoupdate help
rjk@greenend.org.uk [Sun, 23 Dec 2007 19:03:49 +0000 (19:03 +0000)]
update help

11 years agoabolish sidebar.html for man pages too
rjk@greenend.org.uk [Sun, 23 Dec 2007 19:03:42 +0000 (19:03 +0000)]
abolish sidebar.html for man pages too

11 years agoabolish sidebar.html; too much hassle to maintain two
rjk@greenend.org.uk [Sun, 23 Dec 2007 18:51:52 +0000 (18:51 +0000)]
abolish sidebar.html; too much hassle to maintain two

11 years agoMore web support for user rights:
rjk@greenend.org.uk [Sun, 23 Dec 2007 18:44:37 +0000 (18:44 +0000)]
More web support for user rights:
 - choose/search greyed out if don't have RIGHT_PLAY
 - edit link in new/recent omitted if don't have RIGHT_PREFS
 - move buttons in manage greyed out if not movable

11 years agoWeb interface starts to reflect user rights properly:
rjk@greenend.org.uk [Sun, 23 Dec 2007 18:16:43 +0000 (18:16 +0000)]
Web interface starts to reflect user rights properly:

- scratch/move/remove rights check is moved to lib/queue-rights.c
  which is shared with the web interface
- new @rights@ and @movable@ expansions (not used yet)
- @removable@ and @scratchable@ rewritten for the new world

11 years agonever set an expired cookie; on logout, re-login as guest
rjk@greenend.org.uk [Sun, 23 Dec 2007 16:34:13 +0000 (16:34 +0000)]
never set an expired cookie; on logout, re-login as guest

11 years agofix RIGHT_*_ANY tests; log rights failures
rjk@greenend.org.uk [Sun, 23 Dec 2007 16:33:30 +0000 (16:33 +0000)]
fix RIGHT_*_ANY tests; log rights failures

11 years agoThe redirection after login now works properly.
rjk@greenend.org.uk [Sun, 23 Dec 2007 12:49:30 +0000 (12:49 +0000)]
The redirection after login now works properly.

The logout button sort of works; oddly you have to press it twice.

11 years agodoxygen cleanup
rjk@greenend.org.uk [Sun, 23 Dec 2007 12:38:21 +0000 (12:38 +0000)]
doxygen cleanup

11 years agoclient.c remembers last response string
rjk@greenend.org.uk [Sun, 23 Dec 2007 12:28:55 +0000 (12:28 +0000)]
client.c remembers last response string

11 years agomake client.c return status code on error
rjk@greenend.org.uk [Sun, 23 Dec 2007 12:22:02 +0000 (12:22 +0000)]
make client.c return status code on error

11 years agodarwin and stupidity fixes for speaker socket move
Richard Kettlewell [Sun, 23 Dec 2007 10:28:08 +0000 (10:28 +0000)]
darwin and stupidity fixes for speaker socket move

11 years agoThe web interface now automaticallty figures out its own URL, so this
rjk@greenend.org.uk [Sun, 23 Dec 2007 10:13:12 +0000 (10:13 +0000)]
The web interface now automaticallty figures out its own URL, so this
need no longer be specified in the configuration file.  It is still
available as an override (for instance to turn http://domain/index.cgi
back into http://domain).

11 years agodon't include obsolete options.transform
rjk@greenend.org.uk [Sun, 23 Dec 2007 10:12:46 +0000 (10:12 +0000)]
don't include obsolete options.transform

11 years agoput speaker socket in its own private directory
Richard Kettlewell [Sun, 23 Dec 2007 09:43:36 +0000 (09:43 +0000)]
put speaker socket in its own private directory

11 years agosome docs catchup for web interface changes
rjk@greenend.org.uk [Sat, 22 Dec 2007 20:24:32 +0000 (20:24 +0000)]
some docs catchup for web interface changes

11 years agoinsufficient rights always produces 51x response
rjk@greenend.org.uk [Sat, 22 Dec 2007 19:52:35 +0000 (19:52 +0000)]
insufficient rights always produces 51x response

11 years agoFirst cut at cookie support in the web interface
rjk@greenend.org.uk [Sat, 22 Dec 2007 19:09:49 +0000 (19:09 +0000)]
First cut at cookie support in the web interface

Things that seem to work:
   * guest access
   * logging in

Things that are broken:
   * guests don't get a sensible error message when they exceed their rights,
     just nothing happens.
   * the redirection from the login page goes to an HTML redirection
     page rather than what you expected
   * if your cookie has expired the results aren't helpful

Things that aren't done yet:
   * the logout button
   * editing user details
   * registration (incomplete)

11 years agoremember username correctly when logged in via cookie
rjk@greenend.org.uk [Sat, 22 Dec 2007 19:04:03 +0000 (19:04 +0000)]
remember username correctly when logged in via cookie

11 years agocopyright date
rjk@greenend.org.uk [Sat, 22 Dec 2007 19:00:15 +0000 (19:00 +0000)]
copyright date

11 years agosome more testing
Richard Kettlewell [Sat, 22 Dec 2007 16:36:46 +0000 (16:36 +0000)]
some more testing

11 years ago'cookie' response now includes the username.
Richard Kettlewell [Sat, 22 Dec 2007 15:34:58 +0000 (15:34 +0000)]
'cookie' response now includes the username.

Rewrote the mad address lookup code shared by client/eclient.

disorder_connect_cookie() connects trying to use a cookie and backing
off to guest otherwise.

11 years agoclient.c doxygen; kill some redundant code
Richard Kettlewell [Sat, 22 Dec 2007 14:45:04 +0000 (14:45 +0000)]
client.c doxygen; kill some redundant code

11 years agocomments
Richard Kettlewell [Sat, 22 Dec 2007 13:59:32 +0000 (13:59 +0000)]
comments

11 years agoclient.c make-cookie support
Richard Kettlewell [Sat, 22 Dec 2007 13:59:19 +0000 (13:59 +0000)]
client.c make-cookie support

11 years agoSplit base64 code into a separate .c so that the server doesn't pull
Richard Kettlewell [Sat, 22 Dec 2007 12:39:44 +0000 (12:39 +0000)]
Split base64 code into a separate .c so that the server doesn't pull
in rest of the MIME code.

Correct computation of legacy user rights.

11 years agomore consistent language use in docs
Richard Kettlewell [Sat, 22 Dec 2007 11:51:06 +0000 (11:51 +0000)]
more consistent language use in docs

11 years agodisorder setup-guest + docs + tests
Richard Kettlewell [Sat, 22 Dec 2007 11:37:45 +0000 (11:37 +0000)]
disorder setup-guest + docs + tests

adduser/authorize now take an optional rights argument, removing the
race where you wanted a new user not to have some of the default
rights.

The command line client now delays creating a connection until it
needs it, allowing per-command help, syntax checking etc to succeed
even in the absence of a working server (mostly useful during
development).

11 years agoregister/confirm commands, and tests, and docs
Richard Kettlewell [Fri, 21 Dec 2007 20:24:54 +0000 (20:24 +0000)]
register/confirm commands, and tests, and docs

11 years agomissing initialization
Richard Kettlewell [Fri, 21 Dec 2007 17:27:04 +0000 (17:27 +0000)]
missing initialization

11 years agodefault_rights directive
Richard Kettlewell [Fri, 21 Dec 2007 16:23:27 +0000 (16:23 +0000)]
default_rights directive

11 years agomore docs catchup
Richard Kettlewell [Fri, 21 Dec 2007 16:02:41 +0000 (16:02 +0000)]
more docs catchup

11 years agoprotocol gen 2 support for eclient.c
Richard Kettlewell [Fri, 21 Dec 2007 16:02:28 +0000 (16:02 +0000)]
protocol gen 2 support for eclient.c

11 years agodisorder-normalize should wait for sox to finish. I think this is
Richard Kettlewell [Fri, 21 Dec 2007 14:55:59 +0000 (14:55 +0000)]
disorder-normalize should wait for sox to finish.  I think this is
mostly a test-time issue: disorder-speaker doesn't care about program
termination, just whether it gets the audio data.

11 years agoQuote responses. Unfortunately this is a major protocol change. I've
Richard Kettlewell [Fri, 21 Dec 2007 14:46:49 +0000 (14:46 +0000)]
Quote responses.  Unfortunately this is a major protocol change.  I've
added a protocol generation field, to allow future such changes to be
handled more gracefuly, but 2.1 will therefore require all clients to
be upgraded too.

11 years agoremove become from python module
Richard Kettlewell [Fri, 21 Dec 2007 13:56:52 +0000 (13:56 +0000)]
remove become from python module

11 years agoserver always mentions algorithm in client greeting
Richard Kettlewell [Fri, 21 Dec 2007 13:40:22 +0000 (13:40 +0000)]
server always mentions algorithm in client greeting

11 years agoremove become from client; more docs updates
Richard Kettlewell [Fri, 21 Dec 2007 13:15:04 +0000 (13:15 +0000)]
remove become from client; more docs updates

11 years agofill in some more gaps in the user database support
Richard Kettlewell [Fri, 21 Dec 2007 13:05:33 +0000 (13:05 +0000)]
fill in some more gaps in the user database support

11 years agorights now apply to commands; docs catch up a bit
Richard Kettlewell [Fri, 21 Dec 2007 12:06:20 +0000 (12:06 +0000)]
rights now apply to commands; docs catch up a bit

11 years agoadd "users" command
Richard Kettlewell [Thu, 20 Dec 2007 18:45:44 +0000 (18:45 +0000)]
add "users" command

11 years agouserinfo/edituser implementation
Richard Kettlewell [Thu, 20 Dec 2007 18:31:37 +0000 (18:31 +0000)]
userinfo/edituser implementation

11 years agoUse users.db. trackdb* moves to lib/, as it's now used by client.c to
Richard Kettlewell [Thu, 20 Dec 2007 16:02:39 +0000 (16:02 +0000)]
Use users.db.  trackdb* moves to lib/, as it's now used by client.c to
pick out root's password (or others if it could read them, but it
can't).

11 years agocreate users.db (but don't do anythin with it). tighter db permissions
Richard Kettlewell [Tue, 18 Dec 2007 17:39:26 +0000 (17:39 +0000)]
create users.db (but don't do anythin with it).  tighter db permissions

11 years agoserver side support for cookies, basic tests
Richard Kettlewell [Tue, 18 Dec 2007 17:04:00 +0000 (17:04 +0000)]
server side support for cookies, basic tests

11 years agodisorder-udplog exits more reliably when parent dies
Richard Kettlewell [Tue, 18 Dec 2007 17:03:24 +0000 (17:03 +0000)]
disorder-udplog exits more reliably when parent dies

11 years agobase64 encoder
Richard Kettlewell [Tue, 18 Dec 2007 11:53:54 +0000 (11:53 +0000)]
base64 encoder

11 years agomerge extra MIME parsing
Richard Kettlewell [Tue, 18 Dec 2007 10:40:52 +0000 (10:40 +0000)]
merge extra MIME parsing

11 years agoupdate version number
Richard Kettlewell [Tue, 18 Dec 2007 10:08:23 +0000 (10:08 +0000)]
update version number

11 years agoDisOrder 2.0 2.0
Richard Kettlewell [Mon, 17 Dec 2007 19:33:21 +0000 (19:33 +0000)]
DisOrder 2.0

11 years agodistribution fixes
Richard Kettlewell [Mon, 17 Dec 2007 19:31:29 +0000 (19:31 +0000)]
distribution fixes

11 years agosimplify RTP transmission
Richard Kettlewell [Mon, 17 Dec 2007 17:18:46 +0000 (17:18 +0000)]
simplify RTP transmission

11 years agodocs update
Richard Kettlewell [Sun, 16 Dec 2007 15:06:28 +0000 (15:06 +0000)]
docs update

11 years agomore tests
Richard Kettlewell [Sun, 16 Dec 2007 14:55:38 +0000 (14:55 +0000)]
more tests

11 years agomore tag normalization work
Richard Kettlewell [Sat, 15 Dec 2007 17:06:06 +0000 (17:06 +0000)]
more tag normalization work

11 years agonormalize tags and exercise this
Richard Kettlewell [Sat, 15 Dec 2007 16:40:19 +0000 (16:40 +0000)]
normalize tags and exercise this

11 years agodisobedience uses proper copyright symbol instead of (c)
Richard Kettlewell [Sat, 15 Dec 2007 15:14:52 +0000 (15:14 +0000)]
disobedience uses proper copyright symbol instead of (c)

11 years agodisobedience uses disorder_short_version_string instead of VERSION
Richard Kettlewell [Sat, 15 Dec 2007 15:00:59 +0000 (15:00 +0000)]
disobedience uses disorder_short_version_string instead of VERSION

11 years agoinclude configure and compiler details in version output
Richard Kettlewell [Sat, 15 Dec 2007 12:03:08 +0000 (12:03 +0000)]
include configure and compiler details in version output