Beispiel #1
0
function wcProfileRegats(array $regats, $sort_url, $priv = false, $hide_score = false)
{
    $unknown = GWF_HTML::lang('unknown');
    $headers = array(array(WC_HTML::lang('th_site_name')), array(WC_HTML::lang('th_score'), 'regat_score'), array(WC_HTML::lang('th_regat_onsitename')), array(WC_HTML::lang('th_progress'), 'regat_solved'), array(WC_HTML::lang('th_regat_lastdate'), 'regat_lastdate'));
    echo '<table>';
    echo GWF_Table::displayHeaders1($headers);
    foreach ($regats as $regat) {
        $regat instanceof WC_RegAt;
        $site = $regat->getSite();
        $color = GWF_Color::interpolatBound(0, 1, $site->calcPercent($regat), 0xff0000, 0x8800);
        if ($hide_score) {
            $score = $percent = '???';
        } else {
            $score = $regat->getVar('regat_score');
            $percent = $regat->displayPercent($site->getOnsiteScore());
        }
        echo GWF_Table::rowStart(true, '', '', 'color:#' . $color . ';');
        echo sprintf('<td>%s</td>', $site->displayLink());
        echo sprintf('<td class="gwf_num">%s</td>', $score);
        echo sprintf('<td>%s</td>', $regat->displayOnsiteProfileLink($site));
        echo sprintf('<td class="gwf_num">%s</td>', $percent);
        echo sprintf('<td class="nowrap gwf_date">%s</td>', $priv ? $unknown : $regat->displayLastDate());
        echo GWF_Table::rowEnd();
    }
    echo '</table>';
}
Beispiel #2
0
 private function templateEdit()
 {
     $groups = GDO::table('GWF_UserGroup');
     $gid = $this->group->getID();
     $conditions = "ug_groupid={$gid}";
     $ipp = $this->module->cfgUsersPerPage();
     $nItems = $groups->countRows($conditions);
     $nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
     $page = Common::clamp(Common::getGet('page', 1), 1, $nPages);
     $from = GWF_PageMenu::getFrom($page, $ipp);
     $tVars = array('group' => $this->group, 'form' => $this->getForm()->templateY($this->module->lang('ft_edit_group', array($this->group->display('group_name')))), 'form_add' => $this->getFormAdd()->templateX($this->module->lang('ft_add_to_group'), $this->getMethodHREF('&gid=' . $gid)), 'userids' => $groups->selectColumn('ug_userid', $conditions, '', NULL, $ipp, $from), 'pagemenu' => GWF_PageMenu::display($page, $nPages, $this->getMethodHref(sprintf('&gid=%d&page=%%PAGE%%', $gid))), 'sort_url' => '', 'headers' => GWF_Table::displayHeaders1(array(array($this->module->lang('th_user_name')), array('')), ''));
     return $this->module->template('groupedit.tpl', $tVars);
 }
Beispiel #3
0
 private function templateModules()
 {
     $gdo = GDO::table('GWF_Module');
     $by = $gdo->getWhitelistedBy(Common::getGetString('by'), 'module_name');
     $dir = GDO::getWhitelistedDirS(Common::getGetString('dir', 'ASC'));
     $headers = array(array($this->module->lang('th_priority'), 'module_priority', 'ASC'), array($this->module->lang('th_move')), array($this->module->lang('th_name'), 'module_name', 'ASC'), array($this->module->lang('th_version_db')), array($this->module->lang('th_version_hd')), array($this->module->lang('th_install')), array($this->module->lang('th_basic')), array($this->module->lang('th_adv')));
     $modules = $this->module->getAllModules($by, $dir);
     # Need install?
     $install_all = '';
     foreach ($modules as $name => $d) {
         if (!$d['enabled']) {
             continue;
         }
         if ($d['vdb'] < $d['vfs']) {
             $install_all = $this->module->lang('install_info', array(Module_Admin::getInstallAllURL()));
             break;
         }
     }
     $tVars = array('modules' => $modules, 'install_all' => $install_all, 'tablehead' => GWF_Table::displayHeaders1($headers, Module_Admin::getSortURL('%BY%', '%DIR%'), 'module_name', 'ASC'), 'install' => $this->module->lang('btn_install'), 'configure' => $this->module->lang('btn_config'), 'adminsect' => $this->module->lang('btn_admin_section'));
     return $this->module->template('modules.tpl', $tVars);
 }
Beispiel #4
0
function smarty_function_gwftable($params, $template)
{
    $a = isset($params['action']) ? $params['action'] : '';
    switch ($a) {
        case 'start':
            $cl = isset($params['class']) ? " class=\"{$params['class']}\"" : '';
            $id = isset($params['id']) ? " id=\"{$params['id']}\"" : '';
            return sprintf('<div class="gwf_table"><table%s%s>' . PHP_EOL, $cl, $id);
        case 'end':
            return '</table></div>' . PHP_EOL;
        case 'rowStart':
            $cl = isset($params['class']) ? $params['class'] : '';
            $id = isset($params['id']) ? $params['id'] : '';
            $style = isset($params['style']) ? $params['style'] : '';
            return GWF_Table::rowStart(isset($params['flip']), $cl, $id, $style);
        case 'rowEnd':
            return '</tr>' . PHP_EOL;
        case 'column':
            $text = isset($params['text']) ? $params['text'] : '';
            $cl = isset($params['class']) ? $params['class'] : '';
            $colspan = isset($params['colspan']) ? (int) $params['colspan'] : 1;
            return GWF_Table::column($text, $cl, $colspan);
        case 'displayHeaders1':
        case 'displayHeaders2':
            $headers = isset($params['headers']) ? (array) $params['headers'] : array();
            $sortURL = isset($params['sortURL']) ? $params['sortURL'] : NULL;
            $default = isset($params['default']) ? $params['default'] : '';
            $defdir = isset($params['defdir']) ? $params['defdir'] : 'ASC';
            $by = isset($params['by']) ? $params['by'] : 'by';
            $dir = isset($params['dir']) ? $params['dir'] : 'dir';
            $raw = isset($params['raw']) ? $params['raw'] : '';
            if ($a === 'displayHeaders1') {
                return GWF_Table::displayHeaders1($headers, $sortURL, $default, $defdir, $by, $dir, $raw);
            } else {
                return GWF_Table::displayHeaders2($headers, $sortURL, $default, $defdir, $by, $dir, $raw);
            }
        default:
            return '';
    }
}
Beispiel #5
0
<?php

Module_WeChall::includeForums();
$chall = $tVars['chall'];
$chall instanceof WC_Challenge;
$headers = array(array($tLang->lang('th_length'), 'wmc_length'), array($tLang->lang('th_csolve_date'), 'wmc_date'), array($tLang->lang('th_user_name'), 'user_name'), array($tLang->lang('th_solution'), 'wmc_solution'));
$chall->showHeader(true);
echo GWF_Box::box($tVars['table_title']);
echo $tVars['page_menu'];
echo GWF_Table::start();
//echo GWF_Table::displayHeaders1($headers, $tVars['sort_url'], 'wmc_date', 'ASC', 'by', 'dir', $tVars['table_title']);
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
$guest = GWF_Guest::getGuest();
$userr = new GWF_User(false);
foreach ($tVars['data'] as $row) {
    if ($row['user_name'] === NULL) {
        $username = GWF_HTML::lang('guest');
    } else {
        $userr->setGDOData($row);
        $username = $userr->displayProfileLink();
    }
    echo GWF_Table::rowStart();
    echo GWF_Table::column($row['wmc_length'], 'gwf_num');
    echo GWF_Table::column(GWF_Time::displayDate($row['wmc_date']), 'gwf_date');
    echo GWF_Table::column($username);
    echo GWF_Table::column($row['wmc_solution']);
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo $tVars['page_menu'];
Beispiel #6
0
<?php

$headers = array(array('Rank'), array(''), array('Points'), array('Username'), array('Solved'), array('Last Activity'));
$box = $tVars['box'];
$box instanceof WC_Warbox;
$site = $box->getSite();
echo $tVars['site_quickjump'];
echo $tVars['pagemenu'];
$vars = array($tVars['playercount'], $box->displayName(), $site->displayName());
echo GWF_Box::box($tLang->lang('info_warbox_players', $vars), $tLang->lang('title_warbox_players', $vars));
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers);
$rank = $tVars['rank'];
foreach ($tVars['data'] as $row) {
    echo GWF_Table::rowStart();
    echo GWF_Table::column($rank++, 'gwf_num');
    echo GWF_Table::column(GWF_Country::displayFlagS($row['country']));
    echo GWF_Table::column($row['score'], 'gwf_num');
    echo GWF_Table::column(GWF_User::displayProfileLinkS($row['user_name']));
    echo GWF_Table::column(sprintf('%s (%.02f%%)', $row['solved'], $row['percent']), 'gwf_num');
    echo GWF_Table::column(GWF_Time::displayDate($row['solvedate']), 'gwf_date');
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo $tVars['pagemenu'];
Beispiel #7
0
<div class="cl"></div>

<?php 
echo $tVars['pagemenu_boards'];
?>

<!-- Threads -->
<?php 
if (count($tVars['threads']) > 0) {
    $t_headers = array(array($tLang->lang('th_title'), 'thread_title'), array(''), array($tLang->lang('th_firstposter'), 'thread_firstposter'), array($tLang->lang('th_postcount'), 'thread_postcount'), array($tLang->lang('th_lastposter'), 'thread_lastposter'), array($tLang->lang('th_lastdate'), 'thread_lastdate'), array($tLang->lang('th_thanks'), 'thread_thanks'), array($tLang->lang('th_votes_up'), 'thread_votes_up'), array($tLang->lang('th_thread_viewcount'), 'thread_viewcount'));
    ?>

<?php 
    echo $tVars['pagemenu_threads'];
    echo GWF_Table::start('ri');
    echo GWF_Table::displayHeaders1($t_headers, $tVars['thread_sort_url'], '', 'ASC', 'tby', 'tdir');
    foreach ($tVars['threads'] as $t) {
        $t instanceof GWF_ForumThread;
        $edit = $t->hasEditPermission() ? GWF_Button::edit($t->getEditHREF(), $tLang->lang('btn_edit')) : '';
        $unread = $t->hasRead($user) ? '' : GWF_Button::bell($tVars['href_unread']);
        echo GWF_Table::rowStart();
        $href_lp = $t->getLastPageHREF();
        ?>
		<td><a href="<?php 
        echo $t->getPageHREF(1);
        ?>
"><?php 
        echo $t->display('thread_title');
        ?>
</a></td>
		<td><?php 
Beispiel #8
0
$by = Common::getGetString('by', 'wccc_start');
$dir = Common::getGetString('dir', 'ASC');
$orderby = $table->getMultiOrderby($by, $dir);
$ipp = 50;
$nRows = $table->countRows();
$nPages = GWF_PageMenu::getPagecount($ipp, $nRows);
$page = Common::clamp(Common::getGetInt('page', 1), 1, $nPages);
$from = GWF_PageMenu::getFrom($page, $ipp);
$pagemenu = GWF_PageMenu::display($page, $nPages, sprintf('highscore.php?by=%s&dir=%s&page=%%PAGE%%', urlencode($by), urlencode($dir)));
$headers = array(array($chall->lang('th_start'), 'wccc_start'), array($chall->lang('th_user'), 'user_name'), array($chall->lang('th_time'), 'wccc_time'), array($chall->lang('th_count'), 'wccc_count'), array($chall->lang('th_solved'), 'wccc_solved'), array($chall->lang('th_rate'), 'wccc_rate'));
if (false === ($result = $table->select('*', '', $orderby, array('wccc_uid'), $ipp, $from))) {
    die('DB ERROR');
}
echo $pagemenu;
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers, sprintf('highscore.php?by=%%BY%%&dir=%%DIR%%&page=1'));
$user = new GWF_User(false);
while (false !== ($row = $table->fetch($result, GDO::ARRAY_A))) {
    $user->setGDOData($row);
    echo GWF_Table::rowStart();
    echo sprintf('<td class="gwf_date">%s</td>', GWF_Time::displayDate($row['wccc_start'])) . PHP_EOL;
    echo sprintf('<td>%s</td>', $user->displayProfileLink()) . PHP_EOL;
    echo sprintf('<td class="gwf_num">%ss</td>', $row['wccc_time']) . PHP_EOL;
    echo sprintf('<td class="gwf_num">%s</td>', $row['wccc_count']) . PHP_EOL;
    echo sprintf('<td class="gwf_num">%s</td>', $row['wccc_solved']) . PHP_EOL;
    echo sprintf('<td class="gwf_num">%.02f%%</td>', $row['wccc_rate']) . PHP_EOL;
    echo GWF_Table::rowEnd();
}
$table->free($result);
echo GWF_Table::end();
echo $pagemenu;
Beispiel #9
0
	<?php 
echo $tVars['folders'];
?>
</div>

<div class="oa" id="gwf_pms">	
<?php 
$headers = array(array('', 'options&1', 'DESC'), array($tLang->lang('th_pm_date'), 'pm_date', 'DESC'), array($tLang->lang('th_pm_from'), 'T_B.user_name', 'ASC'), array($tLang->lang('th_pm_to'), 'T_A.user_name', 'ASC'), array($tLang->lang('th_pm_title'), 'pm_title', 'ASC'), array('<input type="checkbox" onclick="gwfPMToggleAll(this.checked);"/>'));
$uid = GWF_Session::getUserID();
if (count($tVars['pms']) > 0) {
    echo $tVars['pagemenu'];
    echo sprintf('<form id="gwf_pm_form" method="post" action="%s">', $tVars['form_action']);
    echo GWF_Table::start();
    // 	echo '<thead><tr><th colspan="5">'.$tVars['folder']->display('pmf_name').'</th></tr></thead>'.PHP_EOL;
    $raw = '<tr><th colspan="6">' . $tVars['folder']->display('pmf_name') . '</th></tr>' . PHP_EOL;
    echo GWF_Table::displayHeaders1($headers, $tVars['sort_url'], 'pm_date', 'DESC', 'by', 'dir', $raw);
    foreach ($tVars['pms'] as $pm) {
        $pm instanceof GWF_PM;
        echo GWF_Table::rowStart();
        $reply = GWF_Button::reply($pm->getReplyHREF(), $tLang->lang('btn_reply'));
        //		$fromid = $pm->getFromID();
        //		$toid = $pm->getToID();
        //		$own = $fromid===$toid ? GWF_Session::getUser()->displayProfileLink() : '';
        $href = $pm->getDisplayHREF();
        $html_class = $pm->getHTMLClass();
        $icon = sprintf('<a href="%s" class="gwf_pm_icon %s" title="%s" ></a>', $href, $html_class, $tLang->lang($html_class));
        echo GWF_Table::column();
        echo GWF_Table::column(sprintf('<a href="%s">%s</a>', $href, GWF_Time::displayDate($pm->getVar('pm_date'))), 'gwf_date');
        echo GWF_Table::column($pm->isRecipient() ? $reply . sprintf('%s', $pm->getSender()->displayProfileLink()) : '');
        echo GWF_Table::column($pm->isSender() ? $reply . sprintf('%s', $pm->getReceiver()->displayProfileLink()) : '');
        echo GWF_Table::column("{$icon} " . GWF_HTML::anchor($href, $pm->getVar('pm_title')));
Beispiel #10
0
echo WC_HTML::accountButtons();
$epoch = $tVars['epoch'] === false ? '<i><b>epoch</b></i>' : $tVars['epoch']->displayProfileLink();
echo GWF_Box::box($tLang->lang('info_wartoken', array($epoch, '___RTB_LINK___')), $tLang->lang('title_wartoken'));
echo GWF_Box::box($tVars['token'], $tLang->lang('title_your_wartoken'));
$boxes_out = '';
if (count($tVars['warboxes']) > 0) {
    $boxes_out .= GWF_Table::start();
    $old_id = '0';
    foreach ($tVars['warboxes'] as $box) {
        $box instanceof WC_Warbox;
        $site = $box->getSite();
        if ($old_id !== $site->getID()) {
            $old_id = $site->getID();
            $headers = array(array($site->displayLogo(16)), array($site->displayLink()), array('IP'), array('Login'), array('Password'), array('Levels'), array('Status'), array('Flags'));
            $boxes_out .= GWF_Table::displayHeaders1($headers);
        }
        $boxes_out .= GWF_Table::rowStart();
        $boxes_out .= GWF_Table::column($box->getID());
        $boxes_out .= GWF_Table::column($box->displayLink());
        $boxes_out .= GWF_Table::column($box->getVar('wb_ip'), 'gwf_num');
        $boxes_out .= GWF_Table::column($box->display('wb_user'));
        $boxes_out .= GWF_Table::column($box->display('wb_pass'));
        $boxes_out .= GWF_Table::column($box->displayLevels(), 'gwf_num');
        $boxes_out .= GWF_Table::column(WC_HTML::lang('wb_' . $box->getVar('wb_status')), 'gwf_num');
        if ($box->hasWarFlags()) {
            $boxes_out .= GWF_Table::column(GWF_Button::forward($box->hrefFlags()));
        } else {
            $boxes_out .= GWF_Table::column();
        }
        $boxes_out .= GWF_Table::rowEnd();
Beispiel #11
0
 private function templateAdmin()
 {
     $headers = array(array($this->module->lang('th_username'), 'username', 'ASC'), array($this->module->lang('th_token'), 'token', 'ASC'), array($this->module->lang('th_email'), 'email', 'ASC'), array($this->module->lang('th_birthdate'), 'birthdate', 'ASC'), array($this->module->lang('th_countryid'), 'countryid', 'ASC'), array($this->module->lang('th_timestamp'), 'timestamp', 'ASC'), array($this->module->lang('th_ip'), 'ip', 'ASC'));
     $tVars = array('headers' => GWF_Table::displayHeaders1($headers, GWF_WEB_ROOT . 'index.php?mo=Register&me=Admin&by=%BY%&dir=%DIR%&page=1'), 'activations' => $this->table->selectAll('*', '', $this->orderby, NULL, $this->ipp, GWF_PageMenu::getFrom($this->page, $this->ipp)), 'pagemenu' => $this->getPageMenu());
     return $this->module->template('admin.tpl', $tVars);
 }
Beispiel #12
0
require 'header.php';
?>
<h1>Ranking</h1>
<?php 
$ipp = 50;
$table = GDO::table('DLDC_User');
$nItems = $table->countRows();
$nPages = GWF_PageMenu::getPagecount($ipp, $nItems);
$page = Common::clamp(Common::getGetInt('page', 1), 1, $nPages);
$by = $table->getWhitelistedBy(Common::getGetString('by'), 'level');
$dir = GDO::getWhitelistedDirS(Common::getGetString('dir'), 'DESC');
$from = GWF_PageMenu::getFrom($page, $ipp);
$headers = array(array('Lvl', 'level', 'DESC'), array('Username', 'username', 'ASC'), array('Firstname', 'firstname', 'ASC'), array('Lastname', 'lastname', 'ASC'), array('Regdate', 'regdate', 'DESC'));
$pagemenu = GWF_PageMenu::display($page, $nPages, "?page=%PAGE%&by={$by}&dir={$dir}");
echo $pagemenu;
echo GWF_Table::start('ranking_table');
echo GWF_Table::displayHeaders1($headers, "?page=1&by=%BY%&dir=%DIR%");
$result = $table->select('*', '', "{$by} {$dir}", null, $ipp, $from);
while ($user = $table->fetch($result, GDO::ARRAY_O)) {
    $user instanceof DLDC_User;
    echo GWF_Table::rowStart();
    echo GWF_Table::column($user->getVar('level'), 'gwf_num');
    echo GWF_Table::column($user->display('username'));
    echo GWF_Table::column($user->display('firstname'));
    echo GWF_Table::column($user->display('lastname'));
    echo GWF_Table::column($user->displayRegdate(), 'gwf_date');
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo $pagemenu;
require 'footer.php';
Beispiel #13
0
<?php

$headers = array(array($tLang->lang('th_chall_score'), 'chall_score'), array($tLang->lang('th_chall_title'), 'chall_title'), array($tLang->lang('th_chall_creator_name'), 'chall_creator_name'), array($tLang->lang('th_chall_solvecount'), 'chall_solvecount'), array($tLang->lang('th_chall_date'), 'chall_date'), array($tLang->lang('th_dif'), 'chall_dif'), array($tLang->lang('th_edu'), 'chall_edu'), array($tLang->lang('th_fun'), 'chall_fun'), array($tLang->lang('th_csolve_date'), 'csolve_date'), array($tLang->lang('th_forum')));
$is_admin = GWF_User::isStaffS();
if ($is_admin) {
    $headers[] = array($tLang->lang('th_csolve_time_taken'), 'csolve_time_taken');
}
echo '<table class="wc_chall_table" id="wc_profile_challenges">' . PHP_EOL;
$raw = '<tr><th colspan="' . count($headers) . '">' . $tVars['table_title'] . '</th></tr>';
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url'], '', '', 'pcby', 'pcdir', $raw);
$chall = new WC_Challenge(false);
foreach ($tVars['data'] as $row) {
    $chall->setGDOData($row);
    $solved = $row['csolve_date'] !== '' && $row['csolve_date'] !== NULL;
    $href_votes = $chall->hrefVotes();
    echo GWF_Table::rowStart();
    echo '<td class="gwf_num">' . $row['chall_score'] . '</td>' . PHP_EOL;
    echo '<td class="nowrap" colspan="2">' . $chall->displayLink($solved) . '</td>' . PHP_EOL;
    echo '<td class="gwf_num"><a href="' . $chall->getSolverHREF() . '">' . $row['chall_solvecount'] . '</a></td>' . PHP_EOL;
    echo '<td class="gwf_date">' . $chall->displayAge() . '</td>' . PHP_EOL;
    echo '<td class="gwf_num">' . sprintf('<a href="%s">%s</a>', $href_votes, $chall->displayDif()) . '</td>' . PHP_EOL;
    echo '<td class="gwf_num">' . sprintf('<a href="%s">%s</a>', $href_votes, $chall->displayEdu()) . '</td>' . PHP_EOL;
    echo '<td class="gwf_num">' . sprintf('<a href="%s">%s</a>', $href_votes, $chall->displayFun()) . '</td>' . PHP_EOL;
    if ($solved) {
        echo '<td class="gwf_date">' . GWF_Time::displayDate($row['csolve_date']) . '</td>' . PHP_EOL;
    } else {
        echo '<td></td>' . PHP_EOL;
    }
    echo '<td>' . $chall->displayBoardLinks(true, $solved) . '</td>' . PHP_EOL;
    if ($is_admin) {
        if ($solved) {
Beispiel #14
0
<?php

echo '<div class="gwf_buttons">' . PHP_EOL;
echo GWF_Button::generic($tLang->lang('btn_fix_counters'), $tVars['href_fix_counters']);
echo GWF_Button::generic($tLang->lang('btn_cleanup'), $tVars['href_cleanup']);
echo '</div>' . PHP_EOL;
if (count($tVars['posts_mod']) > 0) {
    echo sprintf('<h1>%s</h1>', $tLang->lang('th_posts_to_mod'));
    echo $tVars['page_menu_mod'];
    $headers = array(array($tLang->lang('th_user_name'), 'user_name'), array($tLang->lang('th_post_date'), 'post_date'), array($tLang->lang('th_message'), 'post_message'), array($tLang->lang('th_approve')), array($tLang->lang('th_delete')));
    echo GWF_Table::start();
    echo GWF_Table::displayHeaders1($headers, $tVars['sort_url_mod'], '', '', 'mby', 'mdir');
    $txt_yes = $tLang->lang('th_approve');
    $txt_no = $tLang->lang('th_delete');
    foreach ($tVars['posts_mod'] as $post) {
        $post instanceof GWF_ForumPost;
        $thread = $post->getThread();
        if ($thread->isInModeration()) {
            $token = $thread->getToken();
            $tid = $thread->getID();
            $href_approve = GWF_WEB_ROOT . 'index.php?mo=Forum&me=Moderate&yes_thread=' . $tid . '&token=' . $token;
            $href_delete = GWF_WEB_ROOT . 'index.php?mo=Forum&me=Moderate&no_thread=' . $tid . '&token=' . $token;
        } else {
            $token = $post->getToken();
            $pid = $post->getID();
            $href_approve = GWF_WEB_ROOT . 'index.php?mo=Forum&me=Moderate&yes_post=' . $pid . '&token=' . $token;
            $href_delete = GWF_WEB_ROOT . 'index.php?mo=Forum&me=Moderate&no_post=' . $pid . '&token=' . $token;
        }
        echo GWF_Table::rowStart();
        echo sprintf('<td>%s</td>', $post->getUser(true)->displayUsername());
        echo sprintf('<td>%s</td>', $post->displayPostDate());