DT
This commit is contained in:
parent
08978f1976
commit
118086dabe
@ -14,10 +14,9 @@ function esp( $s )
|
||||
}
|
||||
|
||||
$doldb = new db("dolibarr");
|
||||
//$doldb->database = ;
|
||||
$ncdb = new db("nextcloud");
|
||||
//$ncdb->database = "nextcloud";
|
||||
$doldb->query("SELECT login, firstname, lastname, pass_crypted, fk_adherent_type, address, email, phone_perso, phone_mobile, zip, town FROM llx_adherent");
|
||||
print_r ($ncdb);
|
||||
while ($user = $doldb->result->fetch_assoc())
|
||||
{
|
||||
$ncdb->query("SELECT uid FROM oc_accounts WHERE uid='" . $user["login"] . "'");
|
||||
@ -49,7 +48,9 @@ while ($user = $doldb->result->fetch_assoc())
|
||||
}
|
||||
|
||||
$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;
|
||||
|
||||
if (!$ncdb->query($oc_account_query))
|
||||
{
|
||||
echo "Echec lors de la requete : (" . $ncdb->errno . ") " . $ncdb->error;
|
||||
|
Reference in New Issue
Block a user