summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-06-29 18:00:44 -0400
committerEudyptula <eitan@mosenkis.net>2009-06-29 18:00:44 -0400
commitd0172b464174f6ebc17a93f84e901618dd648adc (patch)
tree8e64402243d5b9a2e9dd8564dc1fcfba0fa8fb25 /setup.php
parentAdded an send invitations form to frontend and email notifications to backend (diff)
downloadingenue-d0172b464174f6ebc17a93f84e901618dd648adc.tar.gz
ingenue-d0172b464174f6ebc17a93f84e901618dd648adc.tar.bz2
ingenue-d0172b464174f6ebc17a93f84e901618dd648adc.zip
Added image format option to frontend, tbz2 and preliminary Install CD and LiveCD support to backend
Diffstat (limited to 'setup.php')
-rwxr-xr-xsetup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.php b/setup.php
index 2e179e8..0862c09 100755
--- a/setup.php
+++ b/setup.php
@@ -69,7 +69,7 @@ do {
if ($interactive) {
system('stty echo');
}
-$user->passhash=sha1($pass);
+$user->passhash=substr($pass, 0, 5)=='sha1:'?substr($pass, 5):sha1($pass);
$user->flags='a'; // Admin
$user->write();
?>