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


PHP slog::getStatus方法代码示例

本文整理汇总了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 {
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:showtopic.php

示例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'])) {
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:pm.php


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