Net::SMTP DBI Mail::Address Email::Valid sub start_form_Booking { my($ctxt)=@_; } sub validate_Lastname { my($ctxt,$value)=@_; $value=~s/^\s*//; $value=~s/\s*$//; die "You must enter a last name" unless length($value); } sub validate_Firstname { my($ctxt,$value)=@_; $value=~s/^\s*//; $value=~s/\s*$//; die "You must enter a first name" unless length($value); } sub validate_Email { my($ctxt,$value)=@_; die "You must enter a valid email address" unless Email::Valid->address($value); } sub load_workAM { my($ctxt,$value)=@_; return $value || "", "Select Below" => "", "Deployment: making the institutional case" =>"Deployment", "Development: how do you make an open source project" =>"Development" } sub load_workPM { my($ctxt,$value)=@_; return $value || "", "Select Below" => "", "Deployment: practical approaches and support" =>"Deployment", "Development: getting the right licence" =>"Development", } sub submit_send { my($ctxt,$value)=@_; my $date = scalar localtime; my $name=$ctxt->{Form}{Firstname} . " " . $ctxt->{Form}{Lastname}; my $addr = Mail::Address->new($name, $ctxt->{Form}{Email}) or die "Unable to build From: address"; my $them = $addr->format(); my $us= "osswatch-data\@rt.oucs.ox.ac.uk"; my $host="pgsql.oucs.ox.ac.uk"; my $user="www-data"; my $pwd=""; my $Contact=0; my $Reception=0; my $List=0; if ($ctxt->{Form}{Contact} eq 'true') { $Contact=1;} if ($ctxt->{Form}{List} eq 'true') { $List=1;} if ($ctxt->{Form}{Reception} eq 'true'){ $Reception=1;} my $dbh = DBI->connect("dbi:Pg:dbname=osswatch;host=$host;port=5432",$user,$pwd) or die "cannot connect to osswatch database"; my $rc = $dbh->do("INSERT INTO bookings (workAM, workPM, Reception, Title, Lastname, Firstname, Email, Job, Department, Organisation, Street, City, County, PostCode, Phone, Fax, Diet, Access, Contact, List,status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,? )", {}, $ctxt->{Form}{workAM}, $ctxt->{Form}{workPM}, $Reception, $ctxt->{Form}{Title}, $ctxt->{Form}{Lastname}, $ctxt->{Form}{Firstname}, $ctxt->{Form}{Email}, $ctxt->{Form}{Job}, $ctxt->{Form}{Department}, $ctxt->{Form}{Organisation}, $ctxt->{Form}{Street}, $ctxt->{Form}{City}, $ctxt->{Form}{County}, $ctxt->{Form}{PostCode}, $ctxt->{Form}{Phone}, $ctxt->{Form}{Fax}, $ctxt->{Form}{Diet}, $ctxt->{Form}{Access}, $Contact, $List, 0 ); if ($rc != 1) { die "YIKES. Failed to update database, code $rc:" . $dbh->errstr; } $dbh->disconnect; # to be changed to osswatch-data\@rt.oucs.ox.ac.uk"; my $message = <<"EOT"; To: $them From: $us Subject: OSS Watch Conference registration waiting list confirmation Dear $ctxt->{Form}{Firstname} $ctxt->{Form}{Lastname}, Thank you for registering for the OSS Watch inaugural conference Open Source Deployment and Development on 11 December in Oxford. Your registration has been added to the waiting list for this event and you will be contacted should a place become available. The venue for the conference is the Martin Wood Complex, Clarendon Laboratory, Department of Physics, University of Oxford. The Martin Wood Complex is marked as number 38 on this map, http://www.ox.ac.uk/aboutoxford/maps/scimap.shtml. For your morning workshop you selected $ctxt->{Form}{workAM} and for your afternoon workshop you selected $ctxt->{Form}{workPM} Reception: $ctxt->{Form}{Reception} For further information on how to get to Oxford and possibilities for accommodation, please see http://www.oss-watch.ac.uk/events/2003-12-11/furtherinfo.xml. Registration on the day is between 10:00 and 10:30, with the opening session starting at 10:30. The conference proper ends at 16:45, with a post-conference reception between 17:00 and 18:00. We look forward to seeing you on the 11th should a place become available. Best wishes, Randy Metcalfe Communications Manager OSS Watch http://www.oss-watch.ac.uk/ EOT my $smtp= Net::SMTP->new('smtp.ox.ac.uk') or die; $smtp->mail($us); $smtp->recipient($them); $smtp->data($message); if ($smtp->quit) { } else { die "message sending failed" } $message = <<"EOT"; To: $us From: $them Subject: waiting list booking from $them $ctxt->{Form}{Firstname} $ctxt->{Form}{Lastname} booked on $date for the OSS Watch Conference on 11th December in Oxford. workAM: $ctxt->{Form}{workAM} workPM: $ctxt->{Form}{workPM} Reception: $Reception Title: $ctxt->{Form}{Title} Firstname: $ctxt->{Form}{Firstname} Lastname: $ctxt->{Form}{Lastname} Email: $ctxt->{Form}{Email} Job: $ctxt->{Form}{Job} Department: $ctxt->{Form}{Department} Organisation: $ctxt->{Form}{Organisation} Street: $ctxt->{Form}{Street} City: $ctxt->{Form}{City} County: $ctxt->{Form}{County} PostCode: $ctxt->{Form}{PostCode} Phone: $ctxt->{Form}{Phone} Fax: $ctxt->{Form}{Fax} Diet: $ctxt->{Form}{Diet} Access: $ctxt->{Form}{Access} Contact: $Contact List: $List EOT $smtp= Net::SMTP->new('smtp.ox.ac.uk') or die; $smtp->mail($them); $smtp->recipient($us); $smtp->data($message); if ($smtp->quit) { return "confirm.xml" } else { return "." } } OSS Watch Deployment and Development - registration OSS Watch, Oxford University OSS Watch
info@oss-watch.ox.ac.uk
http://creativecommons.org/licenses/by-sa/2.0/uk/ 2003-10-01

This is the master version of an original document, created by converting an HTML file to TEI XML on 2001/09/06.

2003-10-01 author Sebastian Rahtz creation

overview | programme | booking form | further information

Registration

NOTE: The conference is now full, but please register here to be placed on a waiting list. You will be contacted should a place become available.

There is no fee to attend OSS Watch's inaugural conference, Open Source Deployment and Development. However, you must register in order to attend. The event is catered and limited to the first 125 individuals who register. There will be a waiting list should that number be reached. All those who register are encouraged to let the organiser know if they will not be able to take up their place, in order that someone on the waiting list may attend.

On completing the registration form you will automatically be sent a email confirmation. If you do not receive an email confirmation of your booking please contact info@oss-watch.ac.uk.

Workshops

Please select one morning workshop and one afternoon workshop:

Reception: I would like to stay for the (free) post-conference reception:

Personal Details: Title: First name: Last Name E-mail address: Job title (or "Student"): Department: Institution/organisation: Street: Town/City: Region/County: Postal code: Telephone: Fax:

Additional Information

Special dietary requirements:

Access requirements:

Please include my name and institution in the delegates list on 11 December:

Please add my name and email address to the osswatch-announce@jismail.ac.uk list so that I may be kept in formed of future OSS Watch developments and events: