本文整理汇总了PHP中slog::getStatus方法的典型用法代码示例。如果您正苦于以下问题:PHP slog::getStatus方法的具体用法?PHP slog::getStatus怎么用?PHP slog::getStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类slog
的用法示例。
在下文中一共展示了slog::getStatus方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BBProfile
$row->comment = $bbcode->ReplaceTextOnce($row->comment, 'moved');
}
if (count($q) > 0) {
$bbcode->setHighlight('highlight', $q);
}
$row->comment = $bbcode->parse($row->comment);
if ($my->opt_showsig == 1) {
BBProfile($bbcode, 'signature');
$row->signature = $bbcode->parse($row->signature);
}
if ($config['post_user_status'] == 1) {
$row->lang_online = $lang->phrase('profile_' . iif($row->online == 1, 'online', 'offline'));
}
$row->date = str_date($lang->phrase('dformat1'), times($row->date));
$row->regdate = gmdate($lang->phrase('dformat2'), times($row->regdate));
$row->level = $slog->getStatus($row->groups, ', ');
if (empty($row->location)) {
$row->location = $lang->phrase('showtopic_na');
}
if (!empty($row->fullname) && $config['fullname_posts'] == 1 || !empty($row->signature) && $my->opt_showsig == 1) {
$bottom = TRUE;
} else {
$bottom = FALSE;
}
if (isset($uploads[$row->id]) && $config['tpcallow'] == 1) {
foreach ($uploads[$row->id] as $file) {
$uppath = 'uploads/topics/' . $file['source'];
$imginfo = get_extension($uppath);
if (!isset($fileicons[$imginfo])) {
$icon = 'unknown.gif';
} else {
示例2: gmdate
if (isset($memberdata[$row['mid']])) {
$row['name'] = $memberdata[$row['mid']];
} else {
$row['name'] = $lang->phrase('fallback_no_username');
}
$row['location'] = '-';
} else {
$row['regdate'] = gmdate($lang->phrase('dformat2'), times($row['regdate']));
}
$bbcode->setSmileys(1);
$bbcode->setReplace($config['wordstatus']);
$bbcode->setAuthor($row['mid']);
$row['comment'] = $bbcode->parse($row['comment']);
$row['date'] = str_date($lang->phrase('dformat1'), times($row['date']));
$row['read'] = iif($row['status'] == 1, 'old', 'new');
$row['level'] = $slog->getStatus($row['groups'], ', ');
($code = $plugins->load('pm_show_prepared')) ? eval($code) : null;
$breadcrumb->Add(get_pmdir($row['dir']), 'pm.php?action=browse&id=' . $row['dir'] . SID2URL_x);
$breadcrumb->Add($lang->phrase('pm_show'));
echo $tpl->parse("header");
echo $tpl->parse("menu");
echo $tpl->parse("pm/menu");
echo $tpl->parse("pm/show");
($code = $plugins->load('pm_show_end')) ? eval($code) : null;
} elseif ($_GET['action'] == "massmanage") {
$breadcrumb->Add($lang->phrase('pm_massmanage'));
echo $tpl->parse("header");
echo $tpl->parse("menu");
echo $tpl->parse("pm/menu");
$querystr = implode(',', $_POST['delete']);
if (!empty($_POST['move2'])) {