$callerid_num = $_REQUEST['callerid_ext']; $ok = gs_user_callerid_set($_SESSION['sudo_user']['name'], $callerid_num, 'external'); if (isGsError($ok)) { echo $ok->getMsg(); } } if (isset($_REQUEST['callerid_int'])) { $callerid_num = $_REQUEST['callerid_int']; $ok = gs_user_callerid_set($_SESSION['sudo_user']['name'], $callerid_num, 'internal'); if (isGsError($ok)) { echo $ok->getMsg(); } } } } $clir = gs_clir_get($_SESSION['sudo_user']['name']); if (isGsError($clir)) { echo __('Fehler beim Abfragen.'), '<br />', $clir->getMsg(); die; } $callwaiting = gs_callwaiting_get($_SESSION['sudo_user']['name']); if (isGsError($callwaiting)) { echo __('Fehler beim Abfragen.'), '<br />', $callwaiting->getMsg(); die; } ?> <form method="post" action="<?php echo gs_url($SECTION, $MODULE); ?> ">
function gs_clir_changed_ui($username) { //get the username include_once GS_DIR . 'inc/gs-fns/gs_user_name_by_ext.php'; $user_name = gs_user_name_by_ext($username); if (isGsError($user_name)) { gs_log(GS_LOG_WARNING, $user_name->getMsg()); return; } //get the clir include_once GS_DIR . 'inc/gs-fns/gs_clir_get.php'; $clir = gs_clir_get($user_name); if (isGsError($clir)) { gs_log(GS_LOG_WARNING, $clir->getMsg()); return; } $data = _get_ui_head('UserClirUI'); $data[] = array('parm' => 'user', 'value' => $username); $data[] = array('parm' => 'internal', 'value' => $clir['internal_restrict']); $data[] = array('parm' => 'external', 'value' => $clir['external_restrict']); _gs_send_event($data); }