Exemplo n.º 1
0
		</tr>
	</thead>
	<?php 
if (GWF_User::isStaffS() || WC_SiteAdmin::isSiteAdmin(GWF_Session::getUserID(), $siteid)) {
    echo WC_HTML::tableRowForm($tLang->lang('ft_edit_site', array($site->displayName())), $site->getEditButton($tVars['module'], GWF_Session::getUser()));
}
echo WC_HTML::tableRowForm($tLang->lang('th_site_country_detail'), $site->displayCountry());
$href = GWF_WEB_ROOT . 'all_sites/' . $site->getLangISO();
echo WC_HTML::tableRowForm($tLang->lang('th_site_language'), GWF_HTML::anchor($href, $site->displayLanguage()));
echo WC_HTML::tableRowForm($tLang->lang('th_site_tags'), $site->displayTags(true));
if ($is_ranked) {
    echo WC_HTML::tableRowForm($tLang->lang('th_site_admins'), $site->displaySiteAdmins());
    // 		echo WC_HTML::tableRowForm($tLang->lang('th_site_autoup'), $site->displayAutoUpdate());
    // 		echo WC_HTML::tableRowForm($tLang->lang('th_site_has_osr'), $site->displayOnSiteRank());
    if (count($boxes) > 0) {
        $warboxes = $tVars['boxcount'] . GWF_Button::forward($site->hrefWarboxes(), 'Show Wargames');
        echo WC_HTML::tableRowForm($tLang->lang('btn_warboxes'), $warboxes);
    }
    // 		echo WC_HTML::tableRowForm($tLang->lang('th_site_score'), $site->getScore());
    // 		echo WC_HTML::tableRowForm($tLang->lang('th_site_basescore'), $site->getBasescore());
    // 		echo WC_HTML::tableRowForm($tLang->lang('th_site_usercount'), $site->getUsercount());
    echo WC_HTML::tableRowForm($tLang->lang('th_site_challcount'), $site->getChallcount());
    // 		echo WC_HTML::tableRowForm($tLang->lang('th_site_linkcount'), $site->getLinkCount());
    echo WC_HTML::tableRowForm($tLang->lang('th_site_avg'), $site->displayAvg());
}
# Diff Votes
// 	$vdif = $site->getVotesDif();
// 	echo GWF_Table::rowStart().
// 		'<th>'.$tLang->lang('th_site_dif').'</th>'.PHP_EOL.
// 		'<td><span id="gwf_vsba_'.$vdif->getID().'">'.$vdif->displayPercent().'</span></td>'.PHP_EOL.
// 		GWF_Table::rowEnd();
Exemplo n.º 2
0
$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();
    }
    $boxes_out .= GWF_Table::end();
}
echo GWF_Box::box($boxes_out . $tLang->lang('info_warboxes', array($tVars['port'], $tVars['netcat_cmd'], GWF_WEB_ROOT . 'linked_sites', GWF_WEB_ROOT . 'index.php?mo=WeChall&amp;me=JoinUs&amp;section=warbox')), $tLang->lang('title_warboxes'));
echo GWF_Box::box($tLang->lang('info_warcredits', array($epoch)), $tLang->lang('title_warcredits'));
Exemplo n.º 3
0
 public function getTogglePublicButton(Module_Guestbook $module)
 {
     if (!$this->isToggleAllowed()) {
         return '';
     }
     if ($this->isPublicShown()) {
         return GWF_Button::ignore($this->getToggleHref(false), $module->lang('btn_public_hide'));
     } else {
         return GWF_Button::forward($this->getToggleHref(true), $module->lang('btn_public_show'));
     }
 }
Exemplo n.º 4
0
<?php 
# Highlighter
//	if (GWF_Browser::isReferredBySearchEngine())
//	{
//		$tVars['term'] = GWF_Browser::getSearchEngineTerm();
//	}
?>

<div class="gwf_thread">

<?php 
if ($title) {
    $button = '';
    if (false !== ($chall = WC_Challenge::getByBoardID($t->getVar('thread_bid')))) {
        $text = WC_HTML::lang('goto_chall', array($chall->display('chall_title')));
        $button = '&nbsp;&nbsp;' . GWF_Button::forward($chall->getHREF(), $text);
    }
    printf('<h1>%s%s</h1>', $t->display('thread_title'), $button);
}
if ($actions) {
    $buttons = '';
    if (false !== ($prev = $t->getPrevThread())) {
        $href = $prev->getPageHREF(1);
        $buttons .= GWF_Button::prev($href, $prev->getVar('thread_title'));
    }
    //	if ($tVars['page'] === 1) {
    if ($t->hasPoll()) {
        if (false !== ($mod_votes = GWF_Module::loadModuleDB('Votes'))) {
            $mod_votes->onInclude();
            $buttons .= $t->getPoll()->showResults();
        }
Exemplo n.º 5
0
<?php

echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
echo GWF_Button::forward($tVars['href_update_all'], $tLang->lang('btn_update_all'));
echo GWF_Button::user($tVars['href_update_one'], $tLang->lang('btn_update_one'));
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo GWF_Button::generic($tLang->lang('btn_edit_site_descr'), $tVars['href_edit_descr']);
echo GWF_Button::generic($tLang->lang('btn_warboxes'), $tVars['href_edit_boxes']);
//echo sprintf('<');
echo $tVars['form'];
echo $tVars['form_logo'];
echo $tVars['form_site_admin'];