Update add_user

master
Patrick Höhn 2017-07-30 22:48:34 +02:00 committed by GitHub
parent 1a7a003137
commit d781dd02d2
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/php #!/usr/local/bin/php
<? <?
set_include_path("../include"); set_include_path("../include");
require("header.inc.php"); require("header.inc.php");
@ -32,7 +32,7 @@ Zotero_DB::beginTransaction();
# $sql = "INSERT INTO zotero_master.storageAccounts (userID, quota, expiration) VALUES (?,?,?);"; # $sql = "INSERT INTO zotero_master.storageAccounts (userID, quota, expiration) VALUES (?,?,?);";
# Zotero_DB::query($sql,array($userID, '10000', '2020-12-31 00:00:00')); # Zotero_DB::query($sql,array($userID, '10000', '2020-12-31 00:00:00'));
$sql = "INSERT INTO zotero_www.user_email (userID, email) VALUES (?,?);"; $sql = "INSERT INTO zotero_www.users_email (userID, email) VALUES (?,?);";
Zotero_DB::query($sql,array($userID, $email)); Zotero_DB::query($sql,array($userID, $email));
$sql = "INSERT INTO zotero_www.LUM_User (RoleID, UserID) VALUES (3,?);"; $sql = "INSERT INTO zotero_www.LUM_User (RoleID, UserID) VALUES (3,?);";