summaryrefslogtreecommitdiffstats
path: root/inc/user.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-19 17:00:35 +0200
committerSimon Rettberg2016-05-19 17:00:35 +0200
commit4e65c3bc0bccf6be849cceb185aacd18e337f7f4 (patch)
treeb877d3502b3d48fa3f65a316e4615465d41af8a8 /inc/user.inc.php
parentFix CSRF token checking; improve token/sid generation (diff)
downloadslx-admin-4e65c3bc0bccf6be849cceb185aacd18e337f7f4.tar.gz
slx-admin-4e65c3bc0bccf6be849cceb185aacd18e337f7f4.tar.xz
slx-admin-4e65c3bc0bccf6be849cceb185aacd18e337f7f4.zip
[usermanagement] Merge changes from 'gitlab.c3sl.ufpr.br/cdn/slx-admin.git'
Diffstat (limited to 'inc/user.inc.php')
-rw-r--r--inc/user.inc.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php
index 49500aa2..dc603dac 100644
--- a/inc/user.inc.php
+++ b/inc/user.inc.php
@@ -97,19 +97,4 @@ class User
return self::$user['lasteventid'];
}
- public static function addUser($data){
- Database::exec ( "INSERT INTO user SET login = :login, passwd = :pass, fullname = :name, phone = :phone, email = :email, permissions = 4", $data );
- $ret = Database::queryFirst('SELECT userid FROM user WHERE login = :user LIMIT 1', array('user' => $data['login']));
- $user = array(
- 'user' => $ret['userid']
- );
- Database::exec ( "INSERT INTO setting_partition SET partition_id = '44', size = '5G', mount_point = '/tmp', user = :user", $user );
- Database::exec ( "INSERT INTO setting_partition SET partition_id = '43', size = '20G', mount_point = '/boot', options = 'bootable', user = :user", $user );
- Database::exec ( "INSERT INTO setting_partition SET partition_id = '40', size = '20G', mount_point = '/cache/export/dnbd3', user = :user", $user );
- Database::exec ( "INSERT INTO setting_partition SET partition_id = '41', size = '5G', mount_point = '/home', user = :user", $user );
- Database::exec ( "INSERT INTO setting_partition SET partition_id = '82', size = '1G', user = :user", $user );
- Message::addSuccess('add-user');
- EventLog::info ( User::getName () . ' created user ' . $data['login'] );
- }
-
}