本文整理汇总了PHP中slog::getTeamID方法的典型用法代码示例。如果您正苦于以下问题:PHP slog::getTeamID方法的具体用法?PHP slog::getTeamID怎么用?PHP slog::getTeamID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类slog
的用法示例。
在下文中一共展示了slog::getTeamID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: slog
include "data/config.inc.php";
include "classes/function.viscacha_frontend.php";
$zeitmessung1 = t1();
$slog = new slog();
$my = $slog->logged();
$lang->init($my->language);
$tpl = new tpl();
$my->p = $slog->Permissions();
if ($my->p['team'] == 0) {
errorLogin();
}
$breadcrumb->Add($lang->phrase('team'));
echo $tpl->parse("header");
echo $tpl->parse("menu");
$mymodules->load('team_top');
$team = $slog->getTeamID();
$cache = array();
$t = array_merge($team['admin'], $team['gmod']);
foreach ($t as $row) {
$cache[] = "FIND_IN_SET({$row},groups)";
}
$result = $db->query('SELECT id, name, mail, hp, location, fullname, groups FROM ' . $db->pre . 'user WHERE ' . implode(' OR ', $cache) . ' ORDER BY name ASC', __LINE__, __FILE__);
$admin_cache = array();
$gmod_cache = array();
while ($row = $gpc->prepare($db->fetch_object($result))) {
$gids = explode(',', $row->groups);
foreach ($gids as $gid) {
if (in_array($gid, $team['admin'])) {
$admin_cache[] = $row;
} elseif (in_array($gid, $team['gmod'])) {
$gmod_cache[] = $row;