DT
This commit is contained in:
parent
acdad6ada6
commit
996399f6a4
@ -50,7 +50,9 @@ while ($user = $doldb->result->fetch_assoc())
|
|||||||
|
|
||||||
$oc_group_user_query = "INSERT INTO oc_group_user(uid, gid) VALUES ('" . $user["login"] . "','" . $gid . "')";
|
$oc_group_user_query = "INSERT INTO oc_group_user(uid, gid) VALUES ('" . $user["login"] . "','" . $gid . "')";
|
||||||
|
|
||||||
echo $account_data . EOL . $oc_account_query . EOL . $oc_users_query .EOL . $oc_group_user_query . EOL;
|
$oc_preferences_query_quota = "INSERT INTO oc_preferences('userid', 'appid', 'configkey', 'configvalue') VALUES('" . $user["login"] . "', ''files', 'quota', '10 GB')";
|
||||||
|
$oc_preferences_query_email = "INSERT INTO oc_preferences('userid', 'appid', 'configkey', 'configvalue') VALUES('" . $user["login"] . "', ''settings', 'email', '" . $user["email"] . "')";
|
||||||
|
echo $account_data . EOL . $oc_account_query . EOL . $oc_users_query .EOL . $oc_group_user_query . EOL . $oc_preferences_query_quota . EOL . $oc_preferences_query_email . EOL;
|
||||||
|
|
||||||
if (!$ncdb->query($oc_account_query))
|
if (!$ncdb->query($oc_account_query))
|
||||||
{
|
{
|
||||||
@ -64,9 +66,17 @@ while ($user = $doldb->result->fetch_assoc())
|
|||||||
{
|
{
|
||||||
echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error;
|
echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error;
|
||||||
}
|
}
|
||||||
|
if (!$ncdb->query($oc_preferences_query_quota))
|
||||||
|
{
|
||||||
|
echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error;
|
||||||
|
}
|
||||||
|
if (!$ncdb->query($oc_preferences_query_email))
|
||||||
|
{
|
||||||
|
echo "Echec lors de la requete : (" . $ncdb->connect->errno . ") " . $ncdb->connect->error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$ncdb->result->close();
|
$ncdb->result->close();
|
||||||
if ($flag > 3) exit;
|
if ($flag > 4) exit;
|
||||||
}
|
}
|
||||||
$doldb->result->close();
|
$doldb->result->close();
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user