fixed minor bugs

git-svn-id: http://yolanda.mister-muffin.de/svn@153 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-10-29 08:54:16 +00:00
parent c802351bb9
commit 4820060d1d
3 changed files with 6 additions and 2 deletions

View file

@ -54,7 +54,7 @@ $dbh->do(qq{create table
sid char(32) not null,
timestamp bigint not null,
locale varchar(10) not null,
pagesize unsigned tinyint default 5,
pagesize tinyint unsigned default 5,
cortado tinyint default 1,
primary key (id)
)

View file

@ -33,7 +33,7 @@ elsif($query->param('user') and $query->param('pass') and $query->param('pass_re
my $dbh = DBI->connect("DBI:mysql:$database:$host", $dbuser, $dbpass) or die $dbh->errstr;
#do query
$dbh->de(qq{insert into users (username, password, timestamp, locale) values ( ?, password( ? ), unix_timestamp(), ?)}, undef,
$dbh->do(qq{insert into users (username, password, timestamp, locale) values ( ?, password( ? ), unix_timestamp(), ?)}, undef,
$query->param("user"), $query->param("pass"), $page->{'locale'}) or die $dbh->errstr;
#disconnect db

View file

@ -341,6 +341,10 @@
<br />
<input name="pass" type="password" size="30" maxlength="30" />
<br />
<xsl:value-of select="$locale_strings[@id='password_repeat']" />:
<br />
<input name="pass_repeat" type="password" size="30" maxlength="30" />
<br />
<input type="submit" name="register" >
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_register']" />