예제 #1
0
 function output_page($entry)
 {
     global $mbcon, $section_body, $permission, $adminlist, $userdetail, $config, $categories, $weather, $t, $section_bodys, $part, $template, $lnc;
     if (!@is_a($t, 'template')) {
         $t = new template();
     }
     $entrytitle = $entry['pagetitle'];
     $entrydate = zhgmdate("{$mbcon['timeformat']}", $entry['pagetime'] + 3600 * $config['timezone']);
     $entrytime = gmdate('H:i', $entry['pagetime'] + 3600 * $config['timezone']);
     list($entrydatey, $entrydatem, $entrydated) = explode('/', gmdate('Y/n/j', $entry['pagetime'] + 3600 * $config['timezone']));
     $entrydatemnamefull = gmdate('F', $entry['pagetime'] + 3600 * $config['timezone']);
     $entrydatemnameshort = gmdate('M', $entry['pagetime'] + 3600 * $config['timezone']);
     $tmp = $entry['pageauthor'];
     $entryauthor = $adminlist[$tmp];
     $entryauthor = "<a href=\"" . getlink_user($tmp) . "\" >{$entryauthor}</a>";
     $iftags = "none";
     $entry['pagecontent'] = @str_replace('[separator]', '', $entry['pagecontent']);
     $entrycontent = $this->getcontent($entry['pagecontent'], $entry['htmlstat'], $entry['ubbstat'], $entry['emotstat'], 1);
     $entrycontent = $this->keep_htmlcode_matches($entrycontent);
     //Start Template
     $section_bodys[] = $t->set('viewpage', array('entrytitle' => $entrytitle, 'entrydate' => $entrydate, 'entrytime' => $entrytime, 'entryauthor' => $entryauthor, 'entrycontent' => $entrycontent, 'entrytitletext' => $entry['pagetitle'], 'entrydatey' => $entrydatey, 'entrydatem' => $entrydatem, 'entrydated' => $entrydated));
     return $section_bodys;
 }
예제 #2
0
 acceptrequest('usergroup,ordered');
 include_once "data/cache_usergroup.php";
 $queryplus = $usergroup === "" ? '' : "WHERE `usergroup`='{$usergroup}'";
 if ($ordered !== '') {
     $allorder = array('`username` ASC', '`username` ASC', '`username` DESC', '`regtime` DESC', '`regtime` ASC');
     $ordernow = $allorder[$ordered];
 } else {
     $ordernow = '`username` ASC';
 }
 $start_id = ($page - 1) * $mbcon['listitemperpage'];
 $detail_array = $blog->getgroupbyquery("SELECT * FROM `{$db_prefix}user` {$queryplus}  ORDER BY {$ordernow} LIMIT {$start_id}, {$mbcon['listitemperpage']}");
 for ($i = 0; $i < count($detail_array); $i++) {
     $tmp_gp = $detail_array[$i]['usergroup'];
     $tmp_sgp = $usergp[$tmp_gp];
     $tmp_tm = zhgmdate("{$mbcon['timeformat']} H:i", $detail_array[$i]['regtime'] + 3600 * $config['timezone']);
     $tablebody .= "<tr><td width='42%' class=\"listbox-entry\">{$detail_array[$i]['username']}</td><td width='10%'  align='center' class=\"listbox-entry\">{$tmp_sgp}</td><td width='40%' align='center' class=\"listbox-entry\">{$tmp_tm}</td><td width='5%' align='center' class=\"listbox-entry\"><a href=\"" . getlink_user($detail_array[$i]['userid']) . "\"><img src='{$mbcon['images']}/detail.gif' alt='{$lnc[194]}' title='{$lnc[194]}' border='0'></a></td></tr>\n";
 }
 $tablelist = "<tr><td class=\"listbox-header\" width='42%' align='center'>{$lnc[132]}</td><td class=\"listbox-header\" width='13%'  align='center'>{$lnc[199]}</td><td class=\"listbox-header\" width='40%' align='center'>{$lnc[200]}</td><td class=\"listbox-header\" width='5%' align='center'></td></tr>\n" . $tablebody;
 foreach ($usergp as $i => $value) {
     if ($i == 0) {
         continue;
     }
     $selected = $i == $usergroup ? ' selected="selected"' : '';
     $puttingcate[] = "<a href=\"view.php?go=userlist&amp;usergroup={$i}&amp;ordered={$ordered}\">{$value}</a>";
 }
 $puttingcates = "{$lnc[201]} <a href=\"view.php?go=userlist&amp;ordered={$ordered}\">{$lnc[202]}</a> | " . @implode(' | ', $puttingcate);
 $tablelist .= "<tr><td colspan='5' align='left'></td></tr>\n";
 $m_b = new getblogs();
 $innerpages = $m_b->make_pagebar($page, $mbcon['pagebaritems'], "view.php?go=userlist", $statistics['users'] + 1, $mbcon['listitemperpage']);
 $innerpages .= "<br/>{$puttingcates}<br/> {$lnc[203]} <a href=\"view.php?go=userlist&amp;usergroup={$usergroup}&amp;ordered=1\">{$lnc[204]}</a> | <a href=\"view.php?go=userlist&amp;usergroup={$usergroup}&amp;ordered=2\">{$lnc[205]}</a> | <a href=\"view.php?go=userlist&amp;usergroup={$usergroup}&amp;ordered=3\">{$lnc[206]}</a> | <a href=\"view.php?go=userlist&amp;usergroup={$usergroup}&amp;ordered=4\">{$lnc[207]}</a>";
 $iftoppage = $mbcon['pagebarposition'] == 'down' ? 'none' : 'block';