fixed minor bugs
git-svn-id: http://yolanda.mister-muffin.de/svn@153 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
c802351bb9
commit
4820060d1d
3 changed files with 6 additions and 2 deletions
|
@ -54,7 +54,7 @@ $dbh->do(qq{create table
|
||||||
sid char(32) not null,
|
sid char(32) not null,
|
||||||
timestamp bigint not null,
|
timestamp bigint not null,
|
||||||
locale varchar(10) not null,
|
locale varchar(10) not null,
|
||||||
pagesize unsigned tinyint default 5,
|
pagesize tinyint unsigned default 5,
|
||||||
cortado tinyint default 1,
|
cortado tinyint default 1,
|
||||||
primary key (id)
|
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;
|
my $dbh = DBI->connect("DBI:mysql:$database:$host", $dbuser, $dbpass) or die $dbh->errstr;
|
||||||
|
|
||||||
#do query
|
#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;
|
$query->param("user"), $query->param("pass"), $page->{'locale'}) or die $dbh->errstr;
|
||||||
|
|
||||||
#disconnect db
|
#disconnect db
|
||||||
|
|
|
@ -341,6 +341,10 @@
|
||||||
<br />
|
<br />
|
||||||
<input name="pass" type="password" size="30" maxlength="30" />
|
<input name="pass" type="password" size="30" maxlength="30" />
|
||||||
<br />
|
<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" >
|
<input type="submit" name="register" >
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_register']" />
|
<xsl:value-of select="$locale_strings[@id='button_register']" />
|
||||||
|
|
Loading…
Reference in a new issue