当前位置: 首页>>代码示例>>PHP>>正文


PHP gs_group_members_groups_get函数代码示例

本文整理汇总了PHP中gs_group_members_groups_get函数的典型用法代码示例。如果您正苦于以下问题:PHP gs_group_members_groups_get函数的具体用法?PHP gs_group_members_groups_get怎么用?PHP gs_group_members_groups_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了gs_group_members_groups_get函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __

    $xml .= '<SoftKey index="4">' . "\n";
    $xml .= '	<Label>' . __('Abbrechen') . '</Label>' . "\n";
    $xml .= '	<URI>SoftKey:Exit</URI>' . "\n";
    $xml .= '</SoftKey>' . "\n";
    $xml .= '<SoftKey index="3">' . "\n";
    $xml .= '	<Label>&lt;&lt;</Label>' . "\n";
    $xml .= '	<URI>' . $url_aastra_pb . '?t=gs</URI>' . "\n";
    $xml .= '</SoftKey>' . "\n";
    $xml .= '<SoftKey index="6">' . "\n";
    $xml .= '	<Label>&gt;&gt;</Label>' . "\n";
    $xml .= '	<URI>SoftKey:Select</URI>' . "\n";
    $xml .= '</SoftKey>' . "\n";
    $xml .= '</AastraIPPhoneFormattedTextScreen>' . "\n";
} elseif ($type === 'importeds') {
    $user_id = _get_userid();
    $user_groups = gs_group_members_groups_get(array($user_id), 'user');
    $xml = '<AastraIPPhoneFormattedTextScreen destroyOnExit="yes" cancelAction="' . $url_aastra_pb . '?t=prv">' . "\n";
    $query = 'SELECT
	`id`, `lastname` `ln`, `firstname` `fn`, `number`
FROM
	`pb_ldap`
WHERE
	`group_id` IN (' . implode(',', $user_groups) . ') AND
	`id`=' . $entry;
    $rs = $db->execute($query);
    if ($rs->numRows() !== 0) {
        $r = $rs->fetchRow();
        $xml .= '<Line Align="left">' . $r['ln'] . ' ' . $r['fn'] . '</Line>' . "\n";
        $xml .= '<Line Align="right" Size="double">' . $r['number'] . '</Line>' . "\n";
    }
    $xml .= '<SoftKey index="1">' . "\n";
开发者ID:hehol,项目名称:GemeinschaftPBX,代码行数:31,代码来源:pb.php

示例2: gs_user_add

}
if ($action === 'add' || $action === 'add-and-view') {
    if ($user_name) {
        $ret = gs_user_add($user_name, $user_ext, $user_pin, $user_fname, $user_lname, $user_host, $user_email);
        if (isGsError($ret)) {
            echo '<div class="errorbox">', $ret->getMsg(), '</div>', "\n";
        }
        if ($action === 'add-and-view') {
            $action = 'view';
            $edit_user = $user_name;
            $uid = (int) $DB->executeGetOne('SELECT `id` FROM `users` WHERE `user`=\'' . $DB->escape($edit_user) . '\'');
            if ($uid == 0) {
                echo '<div class="errorbox">', "Error. User not Found.", '</div>', "\n";
            }
            $groups = gs_group_info_get(false, 'user');
            $groups_my = gs_group_members_groups_get(array($uid), 'user');
        } else {
            $action = 'list';
        }
    } else {
        $action = 'list';
    }
}
if ($action === 'delpenalty' && $edit_user && $uid > 0 && $queue_id > 0) {
    $DB->execute('DELETE from `penalties` WHERE `_user_id`=' . $uid . ' AND `_queue_id`=' . $queue_id);
    $DB->execute('UPDATE `ast_queue_members` SET `penalty`=DEFAULT WHERE `_queue_id`=' . $queue_id . ' AND `_user_id`=' . $uid);
    $action = 'view';
}
if ($action === 'setpenalty' && $edit_user && $uid > 0 && $queue_id > 0) {
    $qhid = (int) $DB->executeGetOne('SELECT `_host_id` FROM `ast_queues` WHERE `_id`=' . $queue_id);
    $uhid = (int) $DB->executeGetOne('Select `host_id` FROM `users` WHERE `id`=' . $uid);
开发者ID:philipp-kempgen,项目名称:amooma-gemeinschaft-pbx,代码行数:31,代码来源:admin_users.php

示例3: gs_group_members_groups_get

    $day_d = @$_REQUEST['day'];
    $h_start = (int) @$_REQUEST['hstart'];
    $h_end = (int) @$_REQUEST['hend'];
} else {
    $action = '';
    $group = @$_SESSION['sudo_user']['name'];
    //$month_d  = -1;  # previous month
    $day_d = 0;
    # current month
    $h_start = 7;
    $h_end = 18;
}
if (!$group) {
    $group = @$_SESSION['sudo_user']['name'];
}
$user_groups = gs_group_members_groups_get(array(@$_SESSION['sudo_user']['info']['id']), 'user');
$select_groups = gs_group_permissions_get($user_groups, 'call_stats', 'user');
$group_info = gs_group_info_get($select_groups);
$queue_groups = gs_group_members_get(gs_group_permissions_get($user_groups, 'call_stats', 'queue'));
if (array_search($group, $select_groups) === FALSE) {
    $exts_sql = '';
} else {
    $users = gs_group_members_get(array($group));
    $exts_sql = userids_to_exts($users);
}
if (array_search($queue_id, $queue_groups) === FALSE) {
    $queue_id = 0;
}
?>

开发者ID:hehol,项目名称:GemeinschaftPBX,代码行数:29,代码来源:stats_combined.php

示例4: array

     }
     if ($queue['maxlen'] === null) {
         $queue['maxlen'] = 50;
     }
     if ($queue['timeout'] === null) {
         $queue['timeout'] = 10;
     }
 } else {
     $queue_id = 0;
     $queue = array('name' => '', '_host_id' => 0, '_title' => __('Neue Warteschlange'), 'musicclass' => 'default', '_sysrec_id' => 0, 'announce_holdtime' => 'yes', 'wrapuptime' => 5, 'maxlen' => 255, 'timeout' => 10, 'strategy' => 'rrmemory', 'joinempty' => 'strict', 'leavewhenempty' => 'yes', '_min_agents' => 0);
 }
 if (!is_array($queue)) {
     $action = '';
 } else {
     $groups = gs_group_info_get(false, 'queue');
     $groups_my = gs_group_members_groups_get(array($queue_id), 'queue', false);
     echo '<h3>', htmlEnt($queue['name']), ' (', htmlEnt($queue['_title']), ')</h3>', "\n";
     echo '<form method="post" action="', GS_URL_PATH, '">', "\n";
     echo gs_form_hidden($SECTION, $MODULE), "\n";
     echo '<input type="hidden" name="action" value="save" />', "\n";
     echo '<input type="hidden" name="qid" value="', $queue_id, '" />', "\n";
     echo '<input type="hidden" name="qname" value="', $queue['name'], '" />', "\n";
     echo '<input type="hidden" name="page" value="', $page, '" />', "\n";
     echo '<table cellspacing="1">', "\n";
     echo '<tbody>', "\n";
     echo '<tr>', "\n";
     echo '<th class="r" style="width:140px;">', __('Bezeichnung'), '</th>', "\n";
     echo '<td style="width:350px;">';
     echo '<input type="text" name="_title" value="', htmlEnt($queue['_title']), '" size="30" maxlength="30" />', "\n";
     echo '</td>';
     echo '<td class="transp xs gray"><code>queues.conf<code>:</td>', "\n";
开发者ID:philipp-kempgen,项目名称:amooma-gemeinschaft-pbx,代码行数:31,代码来源:admin_queues.php

示例5: str_replace

include_once GS_DIR . 'inc/gs-fns/gs_callwaiting_get.php';
include_once GS_DIR . 'inc/gs-fns/gs_clir_activate.php';
include_once GS_DIR . 'inc/gs-fns/gs_clir_get.php';
include_once GS_DIR . 'inc/gs-fns/gs_user_callerid_set.php';
include_once GS_DIR . 'inc/gs-fns/gs_user_callerids_get.php';
include_once GS_DIR . 'inc/group-fns.php';
echo '<h2>';
if (@$MODULES[$SECTION]['icon']) {
    echo '<img alt=" " src="', GS_URL_PATH, str_replace('%s', '32', $MODULES[$SECTION]['icon']), '" /> ';
}
if (count($MODULES[$SECTION]['sub']) > 1) {
    echo $MODULES[$SECTION]['title'], ' - ';
}
echo $MODULES[$SECTION]['sub'][$MODULE]['title'];
echo '</h2>', "\n";
$user_groups = gs_group_members_groups_get(array($_SESSION['real_user']['info']['id']), 'user');
$members_clip = gs_group_permissions_get($user_groups, 'clip_set');
$members_clir = gs_group_permissions_get($user_groups, 'clir_set');
$members_cw = gs_group_permissions_get($user_groups, 'callwaiting_set');
$members_adm = gs_group_permissions_get($user_groups, 'sudo_user');
$disabled = array('clip' => '', 'clir' => '', 'cw' => '');
if (count($members_adm) <= 0) {
    if (count($members_clip) <= 0) {
        $disabled['clip'] = ' disabled';
    }
    if (count($members_clir) <= 0) {
        $disabled['clir'] = ' disabled';
    }
    if (count($members_cw) <= 0) {
        $disabled['cw'] = ' disabled';
    }
开发者ID:hehol,项目名称:GemeinschaftPBX,代码行数:31,代码来源:features_features.php

示例6: array

                echo '<br /><p align="center"><a href="setup/">Setup</a></p>', "\n";
                echo '</body>', "\n";
                echo '</html>';
                exit;
            }
        }
    }
}
include_once GS_DIR . 'inc/gettext.php';
require_once GS_DIR . 'htdocs/gui/inc/session.php';
# defines $DB
require_once GS_HTDOCS_DIR . 'inc/modules.php';
if (!@$_SESSION['login_ok']) {
    $display_modules = array();
} else {
    $display_modules = gs_group_members_get(gs_group_permissions_get(gs_group_members_groups_get(array(@$_SESSION['sudo_user']['info']['id']), 'user'), 'display_module_gui', 'module_gui'));
}
# get section & module
#
if (array_key_exists('s', $_REQUEST)) {
    $SECTION = $_REQUEST['s'];
    if ($SECTION != '') {
        $MODULE = array_key_exists('m', $_REQUEST) ? $_REQUEST['m'] : '';
    } else {
        $SECTION = 'home';
        $MODULE = '';
    }
} else {
    $SECTION = 'home';
    $MODULE = '';
}
开发者ID:philipp-kempgen,项目名称:amooma-gemeinschaft-pbx,代码行数:31,代码来源:index.php

示例7: gui_get_grouped_peers

function gui_get_grouped_peers($user_id, $type)
{
    require_once GS_DIR . 'inc/group-fns.php';
    $user_groups = gs_group_members_groups_get(array($user_id), 'user');
    $permission_groups = gs_group_permissions_get($user_groups, $type);
    $group_members = gs_group_members_get($permission_groups);
    return $group_members;
}
开发者ID:rkania,项目名称:GS3,代码行数:8,代码来源:permissions.php


注:本文中的gs_group_members_groups_get函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。