當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。