diff options
Diffstat (limited to 'bin/install/add_user.inc')
-rw-r--r-- | bin/install/add_user.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/install/add_user.inc b/bin/install/add_user.inc index 97302404..a5317dd5 100644 --- a/bin/install/add_user.inc +++ b/bin/install/add_user.inc @@ -1,5 +1,5 @@ <?php -/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */ +/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) @@ -21,7 +21,7 @@ */ if(php_sapi_name() != 'cli') { - exit(1); + exit(1); } define('NO_SESSION', 1); @@ -33,8 +33,8 @@ require_once $prefix . '/lib/init.php'; $options = getopt('e:l:n:p:u:'); if (!$options || !isset($options['u'])) { - echo "Usage: add_user.inc -u <username> [ -l <access level> ] [ -p <password ] [ -e <email> ] [ -n <name> ]\n"; - exit(1); + echo "Usage: add_user.inc -u <username> [ -l <access level> ] [ -p <password ] [ -e <email> ] [ -n <name> ]\n"; + exit(1); } $username = $options['u']; @@ -46,12 +46,12 @@ $email = isset($options['e']) ? $options['e'] : ''; $name = isset($options['n']) ? $options['n'] : ''; if (User::create($username, $name, $email, $password, $access)) { - printf(T_('Created %s user %s with password %s'), T_($access), $username, $password); - echo "\n"; + printf(T_('Created %s user %s with password %s'), T_($access), $username, $password); + echo "\n"; } else { - echo T_('User creation failed'), "\n"; - exit(1); + echo T_('User creation failed'), "\n"; + exit(1); } User::fix_preferences('-1'); |