X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_webdemo%2Fregisterd.Pg;h=f166846b7d343eeb7f95b9e5db8bdce801968a42;hp=6f882da7792747a590490d1adf95619deed5c9f8;hb=c2146ae32fdef80049abfa13098db2d45f3ebdd5;hpb=836e20fbc7e694ac5be5ee067637cae4b855e40a diff --git a/fs_webdemo/registerd.Pg b/fs_webdemo/registerd.Pg index 6f882da77..f166846b7 100755 --- a/fs_webdemo/registerd.Pg +++ b/fs_webdemo/registerd.Pg @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # -# $Id: registerd.Pg,v 1.8 2001-04-26 02:23:27 ivan Exp $ +# $Id: registerd.Pg,v 1.11 2001-10-24 15:29:30 ivan Exp $ use strict; use vars qw( @@ -85,7 +85,7 @@ while ( 1 ) { my $username = $row->{'username'}; my $email = $row->{'passwd'}; - my $pdbh = DBI->connect( 'DBI:Pg:host=localhost;database=demo_template', 'freeside', 'maelcolm' ) + my $pdbh = DBI->connect( 'DBI:Pg:host=localhost;dbname=demo_template', 'freeside', 'maelcolm' ) or do { &myerr("$username: ". $DBI::errstr); next; }; my $psth = $pdbh->prepare("CREATE DATABASE demo_$username") @@ -131,15 +131,15 @@ while ( 1 ) { print LPR "mail $email"; close LPR; - open(FROM, ">${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/from") - or die "Can\'t open ${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/from: $!"; - print FROM "$email\n"; - close FROM; - - open(TO, ">${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/to") - or die "Can\'t open ${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/to: $!"; - print TO "$email\n"; - close TO; +# open(FROM, ">${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/from") +# or die "Can\'t open ${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/from: $!"; +# print FROM "$email\n"; +# close FROM; +# +# open(TO, ">${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/to") +# or die "Can\'t open ${freeside_conf}conf.DBI:Pg:host=localhost;dbname=demo_$username/registries/internic/to: $!"; +# print TO "$email\n"; +# close TO; open(SECRETS, ">${freeside_conf}secrets.demo_$username") or die "Can\'t open ${freeside_conf}secrets.demo_$username: $!"; @@ -184,6 +184,8 @@ while ( 1 ) { "\n", "Your sample Freeside database has been setup.\n", "\n", + "Your login and database will be automatically deleted in 1-2 months.\n", + "\n", "Point your web browswer at http://freeside.sisd.com/ and use the following\n", "authentication information:\n", "\n",