fixed minor bugs

git-svn-id: http://yolanda.mister-muffin.de/svn@153 7eef14d0-6ed0-489d-bf55-20463b2d70db
main
josch 17 years ago
parent c802351bb9
commit 4820060d1d

@ -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)
)

@ -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

@ -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']" />

Loading…
Cancel
Save