1
0
This commit is contained in:
Daniel Tartavel 2019-09-06 20:35:01 +02:00
parent cfca1b5b31
commit da9e7f7903
2 changed files with 57 additions and 5 deletions

View File

@ -1,21 +1,22 @@
#!/usr/bin/php #!/usr/bin/php
<?php <?php
require("session_init.php"); require("session_init.php");
require("config.inc.php"); require("config.inc.php");
require("log.php"); require("log.php");
require("db.class.php"); require("db.class.php");
$doldb = new db("dolibarr"); $doldb = new db("dolibarr");
$doldb->query("SELECT login, firstname, lastname, email FROM llx_adherent"); $doldb->query("SELECT login, firstname, lastname, email FROM llx_adherent");
while ($user = $doldb->result->fetch_assoc()) while ($user = $doldb->result->fetch_assoc())
{ {
$mail = "Bonjour " . $user['firstname'] . " " . $user['lastname'] . "," . "L'association met à votre disposition un compte Nextcloud. l'adresse Web => <https://lalis69.ddns.net:10443/laliscloud>\nVotre identifiant est '" . $user['login'] . "'.\nPour le mot de passe, faites 'mot de passe perdus' pour l'initialiser.\nDes ateliers seront organisés dès ma rentrée pour vous expliquer ce qu'est Nextcloud et configurer ce compte sur vos ordinateurs , tablettes et téléphones.\nPour plus de renseignements vous pouvez allez voir sur le site de Nextcloud => <https://nextcloud.com/>\n\nLibrement,\nDaniel Tartavel"; $mail = "Bonjour " . $user['firstname'] . " " . $user['lastname'] . "," . "L'association met à votre disposition un compte Nextcloud. l'adresse Web => <https://lalis69.ddns.net:10443/laliscloud>\nVotre identifiant est '" . $user['login'] . "'.\nPour le mot de passe, faites 'mot de passe perdus' pour l'initialiser.\nDes ateliers seront organisés dès ma rentrée pour vous expliquer ce qu'est Nextcloud et configurer ce compte sur vos ordinateurs , tablettes et téléphones.\nPour plus de renseignements vous pouvez allez voir sur le site de Nextcloud => <https://nextcloud.com/>\n\nLibrement,\nDaniel Tartavel";
//mail( $user['email'], "Nouveau: un compte Nextcloud pour les adhérents", $mail, $headers ); //mail( $user['email'], "Nouveau: un compte Nextcloud pour les adhérents", $mail, $headers );
mail( "dtux@free.fr", "Nouveau: un compte Nextcloud pour les adhérents", $mail, $headers );
echo $mail; echo $mail;
sleep(1); sleep(1);
} }
?> ?>

View File

@ -46,6 +46,57 @@ data
} }
} }
array("displayname"=>array("value"=>"[uid]","scope"=>"contacts",
"verified":"0"
},
"address":
{
"value":"[adresse]",
"scope":"private",
"verified":"0"
},
"website":
{
"value":"[website]",
"scope":"private",{"displayname":{"value":"Arthur","scope":"contacts","verified":"0"},"address":{"value":"","scope":"private","verified":"0"},"website":{"value":"","scope":"private","verified":"0"},"email":{"value":"arthur.suzuki@free.fr","scope":"contacts","verified":"1"},"avatar":{"scope":"contacts","verified":"0"},"phone":{"value":"","scope":"private","verified":"0"},"twitter":{"value":"","scope":"private","verified":"0"}}
"verified":"0"
},
"email":
{
"value":"[email]",
"scope":"contacts","verified":"1"
},
"avatar":
{
"scope":"contacts",
"verified":"0"
},
"phone":
{
"value":"[telephone]",
"scope":"private",
"verified":"0"
},
"twitter":
{
"value":"",
"scope":"private",
"verified":"0"
}
}
table oc_preferences
userid
appid files
settings
configkey quota
email
Table oc_users Table oc_users
uid => llx_adherent.login uid => llx_adherent.login
displayname => llx_adherent.firstname llx_adherent.lastname displayname => llx_adherent.firstname llx_adherent.lastname