Exemplo n.º 1
0
 }
 $m_b = new getblogs();
 if ($tag === '') {
     catcherror($lnc[192]);
 }
 $tag = str_replace(''', "\\'", $tag);
 $allentries = $blog->getgroupbyquery("SELECT * FROM `{$db_prefix}tags` WHERE `tagname`='{$tag}' LIMIT 0,1");
 if (!is_array($allentries[0]) || $allentries[0]['tagentry'] == '<end>' || $allentries[0]['tagcounter'] == 0) {
     $section_body_main[] = "<br/><div align='center'><span style='font-size: 14px;'>{$lnc[186]}</span></div><br/>";
 } else {
     $taginfo = $allentries[0];
     $entries_query = str_replace(',<end>', '', $taginfo['tagentry']);
     $entries_query = str_replace('<tag>,', '', $entries_query);
     $partialquery = "WHERE `blogid` IN ({$entries_query}) AND `property`<'2' ORDER BY  `sticky` DESC, `pubtime` DESC";
     if ($mbcon['tag_list'] == 1) {
         $records = $m_b->new_record_array($partialquery, $mbcon['listitemperpage'], $page);
         $listbody = $m_b->make_excerption($records, 'list');
         $section_body_main[] = $m_b->make_list(@implode('', $listbody));
         $perpagevalue = $mbcon['listitemperpage'];
     } else {
         $records = $m_b->new_record_array($partialquery, $mbcon['exceptperpage'], $page);
         $section_body_main = $m_b->make_excerption($records);
         $perpagevalue = $mbcon['exceptperpage'];
     }
     $counter_now = $blog->countbyquery("SELECT COUNT(blogid) FROM `{$db_prefix}blogs` WHERE `blogid` IN ({$entries_query}) AND `property`<'2'");
     $urlref = getlink_tags(str_replace('%', '%%', urlencode(urlencode($tag))), $mode, '%s');
     $pagebar = $m_b->make_pagebar($page, $mbcon['pagebaritems'], $urlref, $counter_now, $perpagevalue, '1');
     $pagebar .= " [ {$lnc[181]} <a href=\"" . getlink_tags(urlencode(urlencode($tag)), '1') . "\" title=\"{$lnc[182]}\">{$lnc[183]}</a> | <a href=\"" . getlink_tags(urlencode(urlencode($tag)), '2') . "\" title=\"{$lnc[184]}\">{$lnc[185]}</a> ]";
 }
 $iftoppage = $mbcon['pagebarposition'] == 'down' ? 'none' : 'block';
 $ifbottompage = $mbcon['pagebarposition'] == 'up' ? 'none' : 'block';
Exemplo n.º 2
0
        $partialquery = "{$limitation2} `pubtime`>'{$timeperiod_start}' AND `pubtime`<'{$timeperiod_end}' ORDER BY `pubtime` DESC";
        if ($mbcon['showday_list'] == 1) {
            $perpagevalue = $mbcon['listitemperpage'];
            $actionforexc = 'list';
            $urlref = getlink_date($year, $month, $day, '2', '%s');
        } else {
            $perpagevalue = $mbcon['exceptperpage'];
            $actionforexc = 'excerpt';
            $urlref = getlink_date($year, $month, $day, '1', '%s');
        }
        break;
    default:
        @header("Location: index.php");
        break;
}
$records = $m_b->new_record_array($partialquery, $perpagevalue, $page);
$pagebar = $m_b->make_pagebar($page, $mbcon['pagebaritems'], $urlref, $counter_now, $perpagevalue, $pageway);
if ($pagebar) {
    $pagebar .= $pagebaritem;
}
if (!empty($m_b->total_rows)) {
    if ($actionforexc == 'excerpt') {
        $section_body_main = $m_b->make_excerption($records);
    } else {
        $listbody = $m_b->make_excerption($records, 'list');
        $section_body_main[] = $m_b->make_list(@implode('', $listbody));
    }
} else {
    $section_body_main[] = "<br/><div align='center'><span style='font-size: 14px;'>{$lnc[186]}</span></div><br/>";
}
$iftoppage = $mbcon['pagebarposition'] == 'down' ? 'none' : 'block';