scripts in de database

This commit is contained in:
2026-08-28 12:17:50 +02:00
parent 51187f8537
commit 2f92328461
179 changed files with 7344 additions and 0 deletions
@@ -0,0 +1,24 @@
// last execution: 2026-03-28 01:00:01
logAdd(log);
$portal_users = record\fetchManyHash('User', 'id, userName, contactId', 'userName', 'asc', 'type=', 'portal');
$script_praktijken_koppelen = configGet('script-praktijken-koppelen-aan-portal-user');
$n = array\length($portal_users);
$i = 0;
logAdd(log, 'info', $n, ' portal users');
while($i < $n,
$u = array\at($portal_users, $i);
$username = hash\get($u, 'userName');
$user_id = hash\get($u, 'id');
$contact_id = hash\get($u, 'contactId');
logAdd(log, 'info', 'user:', $username, ' id:', $user_id);
exec($script_praktijken_koppelen);
$i = $i + 1;
);