summaryrefslogtreecommitdiffstats
path: root/lib/install.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-19 23:11:57 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-19 23:11:57 +0000
commit5296a8d351f94a04d19791e4c9d3b73c5cb82ac6 (patch)
treeb26f7d6ec135270353ec1feebc304e49c2311a14 /lib/install.php
parentffb43ad33ec6198df04cf188a205f236863d1dd3 (diff)
downloadampache-5296a8d351f94a04d19791e4c9d3b73c5cb82ac6.tar.gz
ampache-5296a8d351f94a04d19791e4c9d3b73c5cb82ac6.tar.bz2
ampache-5296a8d351f94a04d19791e4c9d3b73c5cb82ac6.zip
fixed issue with xmlapi when no limit provided, fixed now playing refresh, fixed single item update (Thx alex2008) added some more stuff for managing shoutbox stuff, started work on implementation of CoFs system added untested search method on xmlapi
Diffstat (limited to 'lib/install.php')
-rw-r--r--lib/install.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/install.php b/lib/install.php
index 1c5a7317..816f97c3 100644
--- a/lib/install.php
+++ b/lib/install.php
@@ -227,13 +227,18 @@ function install_create_config($web_path,$username,$password,$hostname,$database
* install_create_account
* this creates your initial account and sets up the preferences for the -1 user and you
*/
-function install_create_account($username,$password) {
+function install_create_account($username,$password,$password2) {
if (!strlen($username) OR !strlen($password)) {
- Error::add('general',"No Username/Password specified");
+ Error::add('general',_('No Username/Password specified'));
return false;
}
+ if ($password !== $password2) {
+ Error::add('general',_('Passwords do not match'))
+ return false;
+ }
+
$dbh = Dba::dbh();
if (!is_resource($dbh)) {