Hi guys,
Another issue is the user deletion, when I delete FOP user, it did not delete user from the fop2uttons.
So, I have edit the functions.inc.php again to look for the function statement fop2_del_user($id),
and I added a new line to delete the user from fop2buttons using the exten field.
Cheers!
Regards,
Chu
function fop2_del_user($id) {
$id = intval($id);
$thisItem = fop2_get_user($id);
$exten = $thisItem['exten'];
$results = sql("DELETE FROM fop2UserGroup WHERE exten = '$exten'","query");
$results = sql("DELETE FROM fop2users WHERE id = '$id'","query");
$results = sql("DELETE FROM fop2buttons WHERE exten = '$exten'","query");[/color:3pgvj4ls]