Exemplo n.º 1
0
 public function displayTickets()
 {
     $back = '';
     $prog = $this->getVar('kt_prog');
     if (stripos($prog, 'sternstunden') !== false) {
         $href = 'http://www.reservix.de/reservation/plan_reservation_back.php?eventID=212083&eventGrpID=57018&presellercheckID=3';
         $back .= GWF_Button::generic('Reservix', $href);
     }
     if ($back !== '') {
         $back .= '<br/>';
     }
     return $back . $this->getVar('kt_tickets');
 }
Exemplo n.º 2
0
<p><?php 
echo $tLang->lang('pi_poll_add');
?>
</p>

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

<?php 
echo GWF_Button::generic($tLang->lang('btn_add_poll'), $tVars['href_add']);
Exemplo n.º 3
0
// $href_api_3 = GWF_WEB_ROOT.'index.php?mo=WeChall&amp;me=JoinUs&amp;section=api#api_3';
echo '<a name="api_3"></a>' . PHP_EOL;
echo GWF_Box::box($l->lang('api_3b', array($usage_3_1, $usage_3_1, $usage_3_1, $event_types, $examples)), $l->lang('api_3t'));
# API 4)
$href_api_4 = GWF_WEB_ROOT . 'index.php?mo=WeChall&amp;me=JoinUs&amp;section=api#api_4';
$url = sprintf('%s://%s%sindex.php?mo=WeChall&me=API_User&no_session=1&', Common::getProtocol(), GWF_DOMAIN, GWF_WEB_ROOT);
$usage_4_1 = htmlspecialchars($url . 'username=<username>[&apikey=<your_api_key>]');
$example_4_1 = GWF_HTML::anchor($url . 'username='******'username='******'WC_NO_XSS_PASS'])) {
    $api_key = urlencode($udata['WC_NO_XSS_PASS']);
    $example_4_2 = GWF_HTML::anchor($url . "username={$uname}&apikey={$api_key}", $url . "username={$uname}&apikey={$api_key}");
} else {
    $example_4_2 = '';
}
echo '<a name="api_4"></a>' . PHP_EOL;
echo GWF_Box::box($l->lang('api_4b', array($usage_4_1, $usage_4_1, $example_4_1, $example_4_2)), $l->lang('api_4t'));
# API 5)
$href_api_5 = GWF_WEB_ROOT . 'index.php?mo=WeChall&amp;me=JoinUs&amp;section=api#api_5';
$url = sprintf('%s://%s%sindex.php?mo=WeChall&me=API_Site&no_session=1', Common::getProtocol(), GWF_DOMAIN, GWF_WEB_ROOT);
$usage_5_1 = htmlspecialchars($url . '[&sitename=<sitename>]');
$example_5_1 = GWF_HTML::anchor($url, $url);
$example_5_2 = GWF_HTML::anchor($url . '&sitename=WeChall', $url . '&sitename=WeChall');
echo '<a name="api_5"></a>' . PHP_EOL;
echo GWF_Box::box($l->lang('api_5b', array($usage_5_1, $usage_5_1, $example_5_1, $example_5_2)), $l->lang('api_5t'));
# Buttons
echo GWF_Button::wrapStart();
echo GWF_Button::generic($l->lang('btn_join'), GWF_WEB_ROOT . 'join_us');
echo GWF_Button::generic($l->lang('btn_join_war'), GWF_WEB_ROOT . 'index.php?mo=WeChall&me=JoinUs&section=warbox');
echo GWF_Button::generic($l->lang('btn_join_opt'), GWF_WEB_ROOT . 'index.php?mo=WeChall&me=JoinUs&section=optional');
echo GWF_Button::generic($l->lang('btn_api'), GWF_WEB_ROOT . 'index.php?mo=WeChall&me=JoinUs&section=wechall_api', 'generic', '', true);
echo GWF_Button::wrapEnd();
Exemplo n.º 4
0
        ?>
</div>
<?php 
    }
    ?>
		<div class="gwf_newsbox_message"><?php 
    echo $news->displayMessage();
    ?>
</div>
	</div>
</div>
<?php 
}
?>
	
</div>

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

<?php 
if ($tVars['may_add']) {
    echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . GWF_Button::add($tLang->lang('btn_add'), $tVars['href_add']) . '</div></div>';
}
?>

<?php 
if ($tVars['can_sign']) {
    echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . GWF_Button::generic($tLang->lang('btn_sign'), $tVars['href_sign_news']) . '</div></div>';
}
Exemplo n.º 5
0
<?php

echo WC_HTML::accountButtons();
?>

<?php 
$user = GWF_Session::getUser();
if (false !== ($mod_gb = GWF_Module::getModule('Guestbook'))) {
    $mod_gb->onInclude();
    if (false !== ($gb = $mod_gb->getGuestbook($user->getID()))) {
        echo GWF_Button::generic(WC_HTML::lang('btn_manage_gb'), $gb->hrefEdit());
    } elseif ($mod_gb->canCreateGuestbook($user)) {
        echo GWF_Button::generic(WC_HTML::lang('btn_manage_gb'), Module_WeChall::hrefCreateGB());
    }
}
//
//if (false !== ($mod_ug = GWF_Module::getModule('Usergroups'))) {
//	if ($mod_ug->hasGroup($user)) {
//		echo GWF_Button::generic(WC_HTML::lang('btn_manage_ug'), $mod_ug->hrefEdit($user->getID()));
//	}
//	elseif ($mod_ug->canCreateGroup($user)) {
//		echo GWF_Button::generic(WC_HTML::lang('btn_manage_ug'), $mod_ug->hrefCreate());
//	}
//}
?>
<h1><?php 
echo $tLang->lang('ft_settings');
?>
</h1>
<p><?php 
echo $tLang->lang('pi_help');
Exemplo n.º 6
0
    }
    if ('' !== ($v = $p->display('prof_aim'))) {
        echo gwfProfileRow($tLang->lang('th_aim'), $v);
    }
    if ('' !== ($v = $p->display('prof_irc'))) {
        echo gwfProfileRow($tLang->lang('th_irc'), $v);
    }
    $buttons = '';
    if ('' !== ($email = $u->getValidMail())) {
        $txt = $tLang->lang('at_mailto', array($u->displayUsername()));
        if ($u->isOptionEnabled(GWF_User::ALLOW_EMAIL)) {
            $buttons .= GWF_Button::mail(GWF_WEB_ROOT . 'send/email/to/' . $u->urlencode('user_name'), $txt);
        }
    }
    if (GWF_Session::isLoggedIn()) {
        $buttons .= GWF_Button::generic($tLang->lang('btn_pm'), $u->getPMHref());
    }
    if ($buttons !== '') {
        echo GWF_Table::rowStart();
        echo "<td colspan=\"2\" class=\"ce\">{$buttons}</td>" . PHP_EOL;
        echo GWF_Table::rowEnd();
    }
}
# Fav Sites
echo wcProfileFavSites($u->getID());
echo wcProfileFavCats($u->getID());
echo '</table>' . PHP_EOL;
echo '</div>' . PHP_EOL;
# Regats
$regats = WC_RegAt::getRegats($u->getID(), $orderby);
if (count($regats) > 0) {
Exemplo n.º 7
0
<?php

echo GWF_Button::wrapStart();
echo GWF_Button::generic($tLang->lang('menu_sites'), $tVars['href_site']);
echo GWF_Button::generic($tLang->lang('btn_edit_site_descr'), $tVars['href_descr']);
echo GWF_Button::wrapEnd();
echo GWF_Table::start();
$headers = array(array('EDIT'), array('ID'), array('NAME'), array('HOST'), array('IP'), array('STATUS'));
echo GWF_Table::displayHeaders1($headers);
foreach ($tVars['boxes'] as $box) {
    $box instanceof WC_Warbox;
    echo GWF_Table::rowStart();
    echo GWF_Table::column(GWF_Button::edit($box->hrefEdit()));
    echo GWF_Table::column($box->getID());
    echo GWF_Table::column($box->display('wb_name'));
    echo GWF_Table::column($box->displayLink());
    echo GWF_Table::column($box->getVar('wb_ip'));
    echo GWF_Table::column(WC_HTML::lang('wb_' . $box->getVar('wb_status')));
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo GWF_Button::wrapStart();
echo GWF_Button::add('Add a new warbox', $tVars['href_add']);
echo GWF_Button::wrapEnd();
Exemplo n.º 8
0
echo $attach;
$sig = $opts->hasSignature() ? GWF_HTML::div($opts->displaySignature(), 'gwf_forum_sig') : '';
echo $sig;
?>
		</div>

		<?php 
$edit_by = GWF_HTML::div($post->displayEditBy($tVars['module']), 'gwf_post_edited');
?>
		<?php 
$action_div = '';
if ($actions) {
    $buttons = '';
    if ($tVars['reply']) {
        $buttons .= GWF_Button::reply($post->getReplyHREF(), $tLang->lang('btn_reply'));
        $buttons .= GWF_Button::quote($post->getQuoteHREF(), $tLang->lang('btn_quote'));
    }
    if ($can_edit) {
        $buttons .= GWF_Button::edit($post->getEditHREF(), $tLang->lang('btn_edit'));
        $buttons .= GWF_Button::generic($tLang->lang('btn_add_attach'), $post->hrefAddAttach());
    }
    $action_div = GWF_HTML::div($buttons, 'gwf_buttons');
}
echo GWF_HTML::div($edit_by . $action_div, 'gwf_post_foot');
# echo GWF_Table::rowEnd();
?>
	</div>
</div>

<div class="cl"></div>
Exemplo n.º 9
0
    echo '<table>';
    echo GWF_Table::displayHeaders1($headers);
    foreach ($s as $site) {
        $href_rem = GWF_WEB_ROOT . 'favorite_sites/remove/' . $site->getVar('site_id');
        echo GWF_Table::rowStart();
        echo sprintf('<td><a href="%s">%s</a></td>', $site->getURL(), $site->displayName());
        echo sprintf('<td>%s</td>', GWF_Button::generic($txt_rem, $href_rem));
        echo GWF_Table::rowEnd();
    }
    echo '</table>';
}
echo $tVars['form'];
echo '</div>' . PHP_EOL;
echo '<div class="oa">' . PHP_EOL;
$fc = $tVars['favcats'];
if (count($fc) > 0) {
    $headers = array(array($tLang->lang('th_cat'), 'wcfc_cat'), array($txt_rem));
    echo GWF_Table::start();
    echo GWF_Table::displayHeaders1($headers, '');
    foreach ($fc as $cat) {
        $href_rem = GWF_WEB_ROOT . 'index.php?mo=WeChall&me=WeChallSettings&remcat=' . urlencode($cat);
        echo GWF_Table::rowStart();
        echo sprintf('<td>%s</td>', htmlspecialchars($cat));
        echo sprintf('<td>%s</td>', GWF_Button::generic($txt_rem, $href_rem));
        echo GWF_Table::rowEnd();
    }
    echo GWF_Table::end();
}
echo $tVars['form_cat'];
echo '</div>' . PHP_EOL;
echo '<div class="cb"></div>' . PHP_EOL;
Exemplo n.º 10
0
 public static function accountButtons()
 {
     $module = Module_BAIM::getInstance();
     return '<div class="gwf_buttons_outer gwf_buttons">' . PHP_EOL . GWF_Button::generic($module->lang('menu_account'), GWF_WEB_ROOT . 'account', 'generic', '', Common::getGet('mo') === 'Account') . GWF_Button::generic($module->lang('menu_profile'), GWF_WEB_ROOT . 'profile_settings', 'generic', '', Common::getGet('mo') === 'Profile') . GWF_Button::generic($module->lang('menu_mc'), GWF_WEB_ROOT . 'index.php?mo=BAIM&me=SetMC', 'generic', '', Common::getGet('mo') === 'BAIM') . '</div>' . PHP_EOL;
 }
Exemplo n.º 11
0
<div class="gwf_buttons_outer">
<div class="gwf_buttons">
<?php 
$m = $tVars['module'];
$m instanceof Module_Usergroups;
echo GWF_Button::generic($tLang->lang('btn_users'), $tVars['href_users'], 'generic', '', $m->isMethodSelected('Users'));
echo GWF_Button::generic($tLang->lang('btn_groups'), $tVars['href_groups'], 'generic', '', $m->isMethodSelected('ShowGroups'));
echo GWF_Button::generic($tLang->lang('btn_search'), $tVars['href_search'], 'generic', '', $m->isMethodSelected('Search'));
echo GWF_Button::generic($tLang->lang('btn_gallery'), $tVars['href_gallery'], 'generic', '', $m->isMethodSelected('AvatarGallery'));
echo GWF_Button::generic(WC_HTML::lang('btn_site_masters'), GWF_WEB_ROOT . 'site_masters', 'generic', '', false);
echo GWF_Button::generic(WC_HTML::lang('btn_hackerspace'), GWF_WEB_ROOT . 'places', 'generic', '', false);
?>
</div>
</div>
Exemplo n.º 12
0
<h1><?php 
echo $tLang->lang('sign_title');
?>
</h1>

<p><?php 
echo $tVars['info'];
?>
</p>

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

<?php 
if ($tVars['subscribed'] === true) {
    echo GWF_Button::generic($tLang->lang('btn_unsign'), $tVars['href_unsign']);
}
Exemplo n.º 13
0
<?php

echo GWF_Button::wrapStart();
echo GWF_Button::generic($tLang->lang('menu_sites'), $tVars['href_site']);
echo GWF_Button::generic($tLang->lang('btn_edit_site_descr'), $tVars['href_descr']);
echo GWF_Button::generic($tLang->lang('btn_warboxes'), $tVars['href_boxes']);
echo GWF_Button::wrapEnd();
echo $tVars['form'];
Exemplo n.º 14
0
<div class="gwf_tabs">
<?php 
$sel2 = Common::getGet('build_forum') !== false;
$sel = $sel2 ? false : Common::getGet('me') === 'Admin';
echo GWF_Button::generic($tLang->lang('btn_news'), $tVars['module']->getAdminSectionURL(), 'generic', '', $sel);
echo GWF_Button::generic($tLang->lang('btn_build_forum'), $tVars['module']->getMethodURL('Admin', '&build_forum=yes'), '', $sel2);
?>
</div>
Exemplo n.º 15
0
<?php

echo GWF_Button::generic($tLang->lang('btn_checker'), $tVars['href_checker']);
echo GWF_Button::generic($tLang->lang('btn_bundle'), $tVars['href_bundle']);
?>

<?php 
$headers = array(array($tLang->lang('th_filename')), array($tLang->lang('th_count')), array($tLang->lang('th_branched')), array($tLang->lang('th_filesize')));
$counter = array();
$files = $tVars['files'];
foreach ($files as $file) {
    list($fullpath, $branched, $langfile, $iso, $filename) = $file;
    if (!isset($counter[$fullpath])) {
        $counter[$fullpath] = 1;
    } else {
        $counter[$fullpath]++;
    }
}
$yes = $tLang->lang('yes');
$no = $tLang->lang('no');
echo '<table>';
echo GWF_Table::displayHeaders1($headers, '');
foreach ($files as $file) {
    list($fullpath, $branched, $langfile, $iso, $filename) = $file;
    if ($iso !== 'en') {
        continue;
    }
    $href = GWF_WEB_ROOT . 'index.php?mo=Language&amp;me=EditFiles&amp;filename=' . urlencode($fullpath);
    $count = $counter[$fullpath];
    echo GWF_Table::rowStart();
    echo sprintf('<td><a href="%s">%s</a></td>', $href, GWF_HTML::display($fullpath));
Exemplo n.º 16
0
if (!$b->isRoot()) {
    ?>
	<div class="gwf_board_quicktree"><?php 
    echo Module_Forum::getNavTree();
    ?>
</div>
<?php 
}
?>

<h2><?php 
echo $tLang->lang('pi_unread');
?>
</h2>
<h3><?php 
echo GWF_Button::generic($tLang->lang('btn_mark_read'), GWF_WEB_ROOT . 'index.php?mo=Forum&me=MarkRead');
?>
</h3>

<?php 
echo $tVars['pagemenu'];
$headers = array(array($tLang->lang('th_title'), 'thread_title', 'ASC'), array($tLang->lang('th_firstposter'), 'thread_firstposter', 'ASC'), array($tLang->lang('th_postcount'), 'thread_postcount', 'ASC'), array($tLang->lang('th_lastposter'), 'thread_lastposter', 'ASC'), array($tLang->lang('th_lastdate'), 'thread_lastdate', 'ASC'), array($tLang->lang('th_thread_thanks'), 'thread_thanks', 'DESC'), array($tLang->lang('th_thread_votes_up'), 'thread_votes_up', 'DESC'));
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
foreach ($tVars['threads'] as $t) {
    $t instanceof GWF_ForumThread;
    $b = $t->getBoard();
    echo GWF_Table::rowStart();
    $boardlink = GWF_HTML::anchor($b->getShowBoardHREF(), $b->getVar('board_title'));
    $threadlink = GWF_HTML::anchor($t->getPageHREF(1), $t->getVar('thread_title'));
    echo GWF_Table::column("{$boardlink}<br/>{$threadlink}");
Exemplo n.º 17
0
<div class="gwf_buttons_outer">
<div class="gwf_buttons">
<?php 
$m = $tVars['module'];
$m instanceof Module_Usergroups;
echo GWF_Button::generic($tLang->lang('btn_users'), $tVars['href_users'], 'generic', '', $m->isMethodSelected('Users'));
echo GWF_Button::generic($tLang->lang('btn_groups'), $tVars['href_groups'], 'generic', '', $m->isMethodSelected('ShowGroups'));
echo GWF_Button::generic($tLang->lang('btn_search'), $tVars['href_search'], 'generic', '', $m->isMethodSelected('Search'));
echo GWF_Button::generic($tLang->lang('btn_gallery'), $tVars['href_gallery'], 'generic', '', $m->isMethodSelected('AvatarGallery'));
?>
</div>
</div>
Exemplo n.º 18
0
<div class="gwf_buttons_outer">
<div class="gwf_buttons">
<?php 
$m = $tVars['module'];
$m instanceof Module_Usergroups;
echo GWF_Button::generic($tLang->lang('btn_users'), $tVars['href_users'], 'generic', '', $m->isMethodSelected('Users'));
echo GWF_Button::generic($tLang->lang('btn_groups'), $tVars['href_groups'], 'generic', '', $m->isMethodSelected('ShowGroups'));
echo GWF_Button::generic($tLang->lang('btn_search'), $tVars['href_search'], 'generic', '', $m->isMethodSelected('Search'));
echo GWF_Button::generic($tLang->lang('btn_gallery'), $tVars['href_gallery'], 'generic', '', $m->isMethodSelected('AvatarGallery'));
echo GWF_Button::generic(WC_HTML::lang('btn_site_masters'), GWF_WEB_ROOT . 'site_masters', 'generic', '', false);
?>
</div>
</div>
Exemplo n.º 19
0
        $percent2 = '???.??';
    }
    echo sprintf('<td style="width: %dpx; white-space: nowrap;"><div style="width: %dpx; background: #%s; margin-top:1px;">' . $format . '%%</div></td>', $tVars['pixels'], $percent, $color, $percent2);
    if ($may_vote) {
        echo sprintf('<td><input type="checkbox"%s onclick="%s" name="opt[%d]" /></td>', $checked, $onclick, $i);
    } else {
        echo sprintf('<td></td>');
    }
    echo GWF_Table::rowEnd();
    $i++;
}
?>
<tr><td colspan="4">
	<?php 
if ($may_edit) {
    echo GWF_Button::generic($tLang->lang('btn_edit'), $tVars['href_edit']);
}
?>
	<?php 
if ($may_vote) {
    ?>
		<input type="submit" name="vote" value="<?php 
    echo $tLang->lang('btn_vote');
    ?>
" />
	<?php 
}
?>
</td></tr>
</table>
</form>
Exemplo n.º 20
0
        $href = $board->getShowBoardHREF();
        $forum = GWF_HTML::anchor($href, $group->getVar('group_name'));
    } else {
        $forum = $group->display('group_name');
    }
    $members = GWF_HTML::anchor(GWF_WEB_ROOT . 'users_in_group/' . $group->getID() . '/' . $group->urlencodeSEO('group_name'), $group->getVar('group_memberc'));
    echo GWF_Table::rowStart();
    echo GWF_Table::column($edit . $forum, 'nowrap');
    echo GWF_Table::column($members, 'gwf_num');
    echo GWF_Table::column($founder->displayProfileLink());
    if ($user->isGuest()) {
        echo '<td></td>' . PHP_EOL;
    } elseif ($in_grp) {
        echo GWF_Table::column(sprintf('<input type="submit" name="part[%s]" value="%s" />', $group->getVar('group_id'), $btn_part));
    } elseif ($group->isOptionEnabled(GWF_Group::FREE)) {
        echo GWF_Table::column(sprintf('<input type="submit" name="join[%s]" value="%s" />', $group->getVar('group_id'), $btn_join));
    } else {
        echo '<td></td>' . PHP_EOL;
    }
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo '</form>' . PHP_EOL;
echo $tVars['page_menu'];
echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
if ($tVars['module']->canCreateGroup($user)) {
    echo GWF_Button::generic($tLang->lang('btn_add_group'), $tVars['href_add_group']);
}
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
Exemplo n.º 21
0
<?php

echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
echo GWF_Button::generic('ConvertDB', $tVars['href_convert']);
echo GWF_Button::generic('Fix Chall Tags', $tVars['href_chall_cache']);
echo GWF_Button::generic('Fix Site Tags', $tVars['href_sitetags']);
echo GWF_Button::generic('Recalc Everything', $tVars['href_recalc_all']);
echo GWF_Button::generic('Freeze User', $tVars['href_freeze']);
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
$headers = array(array($tLang->lang('th_user_name'), 'user_name'), array($tLang->lang('th_site_name'), 'site_name'), array());
echo $tVars['page_menu'];
echo GWF_Form::start($tVars['form_action']);
echo GWF_Table::start();
echo GWF_Table::displayHeaders2($headers, $tVars['sort_url']);
$unfreeze = $tLang->lang('btn_unfreeze');
foreach ($tVars['frozen'] as $row) {
    $row instanceof WC_Freeze;
    $user = $row->getUser();
    $site = $row->getSite();
    echo GWF_Table::rowStart();
    echo GWF_Table::column($user->displayUsername());
    echo GWF_Table::column($site->displayName());
    echo GWF_Table::column(sprintf('<input type="submit" name="unfreeze[%s,%s]" value="%s" />', $user->getVar('user_id'), $site->getVar('site_id'), $unfreeze));
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo GWF_Form::end();
echo $tVars['page_menu'];
echo $tVars['form'];
Exemplo n.º 22
0
<?php

echo WC_HTML::accountButtons();
echo GWF_Button::wrapStart();
echo GWF_Button::generic($tLang->lang('btn_auto_folder'), $tVars['href_auto_folder']);
echo GWF_Button::wrapEnd();
echo $tVars['form'];
if (count($tVars['ignores']) > 0) {
    $headers = array(array($tLang->lang('th_user_name')), array($tLang->lang('th_actions')));
    echo GWF_Table::start();
    echo GWF_Table::displayHeaders1($headers);
    foreach ($tVars['ignores'] as $data) {
        echo GWF_Table::rowStart();
        $uname = $data[0];
        $reason = $data[1];
        $del_href = GWF_WEB_ROOT . 'index.php?mo=PM&me=Options&unignore=' . urlencode($uname);
        echo GWF_Table::column(GWF_HTML::display($uname));
        echo GWF_Table::column(GWF_Button::delete($del_href));
        echo GWF_Table::rowEnd();
    }
    echo GWF_Table::end();
}
echo $tVars['form_ignore'];
Exemplo n.º 23
0
 public static function rankingPageButtons()
 {
     // 		return Module_WeChall::instance()->templatePHP('wcrankingbuttons.php');
     echo '<nav>' . PHP_EOL;
     echo '<div class="gwf_buttons_outer">' . PHP_EOL;
     echo '<div class="gwf_buttons">' . PHP_EOL;
     echo GWF_Button::generic(self::lang('btn_global_rank'), GWF_WEB_ROOT . 'ranking', 'generic', '', Common::getGet('me') === 'Ranking');
     echo GWF_Button::generic(self::lang('btn_site_rank'), GWF_WEB_ROOT . 'site/ranking/for/1/WeChall', 'generic', '', Common::getGet('me') === 'SiteRankings');
     echo GWF_Button::generic(self::lang('btn_lang_rank'), GWF_WEB_ROOT . 'lang_ranking/en', 'generic', '', Common::getGet('me') === 'RankingLang');
     echo GWF_Button::generic(self::lang('btn_country_rank'), GWF_WEB_ROOT . 'country_ranking', 'generic', '', Common::getGet('me') === 'RankingCountry');
     echo GWF_Button::generic(self::lang('btn_tag_rank'), GWF_WEB_ROOT . 'category_ranking', 'generic', '', Common::getGet('me') === 'RankingTag');
     echo GWF_Button::generic(self::lang('btn_site_masters'), GWF_WEB_ROOT . 'site_masters', 'generic', '', Common::getGet('me') === 'SiteMasters');
     #		echo GWF_Button::generic(self::lang('btn_grp_rank'), GWF_WEB_ROOT.'usergroup_ranking');
     echo GWF_Button::generic(self::lang('btn_stats'), GWF_WEB_ROOT . 'stats');
     echo '</div>' . PHP_EOL;
     echo '</div>' . PHP_EOL;
     echo '</nav>' . PHP_EOL;
 }
Exemplo n.º 24
0
<h1><?php 
echo $tLang->lang('pt_irc_chat') . ' ( ' . GWF_HTML::display($tVars['module']->cfgIRCURL()) . ' )';
?>
</h1>

<?php 
$buttons = '';
if ($tVars['gwf_chat']) {
    $buttons .= GWF_Button::generic($tLang->lang('btn_webchat'), $tVars['href_webchat'], 'generic', '', false);
}
if ($tVars['mibbit']) {
    $mib_url = $tVars['mibbit_url'];
    $onclick = "window.open('{$mib_url}', 'dummyname', 'height=undefined,width=undefined', false);";
    $buttons .= GWF_Button::generic($tLang->lang('btn_ircchat'), $tVars['href_ircchat'], 'generic', '', true);
    $buttons .= GWF_Button::generic($tLang->lang('btn_ircchat_full'), '#', 'generic', '', false, $onclick);
}
if ($buttons !== '') {
    echo '<div class="gwf_buttons_outer">' . GWF_HTML::div($buttons, 'gwf_buttons') . '</div>' . PHP_EOL;
}
?>

<iframe id="gwf_mibbit" src="<?php 
echo $tVars['mibbit_url'];
?>
">
<?php 
echo GWF_HTML::error('Chat', $tLang->lang('err_iframe'), false);
?>
</iframe>
Exemplo n.º 25
0
<!-- Board Actions -->
<?php 
echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . PHP_EOL;
if ($tVars['new_thread_allowed']) {
    echo GWF_Button::generic($tLang->lang('btn_add_thread'), $b->getAddThreadHREF());
}
if (!$b->isRoot()) {
    if ($b->canSubscribe()) {
        echo GWF_Button::generic($tLang->lang('btn_subscribe'), $b->getSubscribeHREF());
    }
    if ($b->canUnSubscribe()) {
        echo GWF_Button::generic($tLang->lang('btn_unsubscribe'), $b->getUnSubscribeHREF());
    }
}
echo '</div></div>' . PHP_EOL;
?>

<!-- Admin Control -->
<?php 
if (GWF_User::isAdminS()) {
    ?>
	<div class="gwf_buttons_outer">
	<div class="gwf_buttons">
<?php 
    echo GWF_Button::generic($tLang->lang('btn_edit_board'), $b->getEditBoardHREF());
    echo GWF_Button::generic($tLang->lang('btn_add_board'), $b->getAddBoardHREF());
    ?>
	</div>
	</div>
<?php 
}
Exemplo n.º 26
0
<div class="cb"></div>

<?php 
# Categories
if (count($tVars['cats'])) {
    ?>
<div>
<?php 
    foreach ($tVars['cats'] as $id => $cat) {
        # CATEGORIES
        ?>
	<div><?php 
        echo $cat;
        ?>
</div>
<?php 
    }
    ?>
</div>
<?php 
}
?>

<div class="cb"></div>
<?php 
if ($is_staff) {
    $buttons = GWF_Button::add($tLang->lang('btn_add'), $tVars['href_add']);
    $buttons .= GWF_Button::generic($tLang->lang('btn_admin_section'), $tVars['module']->getAdminSectionUrl());
    echo GWF_Button::wrap($buttons);
}
Exemplo n.º 27
0

<!-- Banner Ads -->
<?php 
echo GWF_Website::getBanners('forum', 'forum');
?>
<hr/>


<!-- Title -->
<?php 
$options = GWF_User::isLoggedIn() ? GWF_Button::options($tVars['href_options'], $tLang->lang('btn_options')) : '';
$bell = GWF_Button::bell($tVars['href_unread'], $tLang->lang('btn_unread'));
$newthreads = $tVars['unread_threads'] > 0 ? sprintf('[%s]', $tVars['unread_threads']) . $bell : '';
$search = GWF_Button::search($tVars['href_search'], $tLang->lang('btn_search'));
$pollsbtn = GWF_Button::generic($tLang->lang('btn_polls'), $tVars['href_polls']);
?>

<h1><?php 
echo $options . $tLang->lang('forum_title') . $search . $newthreads . $pollsbtn;
?>
</h1>

<hr/>


<!-- Nav Tree -->
<?php 
if (!$b->isRoot()) {
    ?>
	<div class="gwf_board_quicktree"><?php 
Exemplo n.º 28
0
<?php

echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
echo GWF_Button::generic('ConvertDB', $tVars['href_convert']);
echo GWF_Button::generic('Fix Chall Tags', $tVars['href_chall_cache']);
echo GWF_Button::generic('Fix Chall DB', $tVars['href_fix_challs']);
echo GWF_Button::generic('Fix Site Tags', $tVars['href_sitetags']);
echo GWF_Button::generic('Fix IRC', $tVars['href_fix_irc']);
echo GWF_Button::generic('Recalc Everything', $tVars['href_recalc_all']);
echo GWF_Button::generic('Freeze User', $tVars['href_freeze']);
echo GWF_Button::generic('BIGMail', $tVars['href_siteminmail']);
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo $tVars['form_hardlink'];
Exemplo n.º 29
0
<?php

echo $tVars['module']->getUserGroupButtons();
echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . GWF_Button::generic($tLang->lang('btn_adv_search'), $tVars['href_adv']) . '</div></div>';
echo sprintf('<div>%s</div>', $tVars['form']);
$headers = array(array('', 'user_countryid'), array($tLang->lang('th_user_name'), 'user_name'), array($tLang->lang('th_user_level'), 'user_level'), array($tLang->lang('th_user_email'), 'user_email'), array($tLang->lang('th_user_regdate'), 'user_regdate'), array($tLang->lang('th_user_birthdate'), 'user_birthdate'), array($tLang->lang('th_user_lastactivity'), 'user_lastactivity'));
echo $tVars['page_menu'];
echo GWF_Table::start();
?>
	<?php 
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
foreach ($tVars['users'] as $user) {
    $user instanceof GWF_User;
    echo GWF_Table::rowStart();
    ?>
		<td><?php 
    echo $user->displayCountryFlag();
    ?>
</td>
		<td><a href="<?php 
    echo GWF_WEB_ROOT . 'profile/' . $user->urlencode('user_name');
    ?>
"><?php 
    echo $user->displayUsername();
    ?>
</a></td>
		<td class="gwf_num"><?php 
    echo $user->getVar('user_level');
    ?>
</td>
		<td><?php 
Exemplo n.º 30
0
    ?>
	<div><?php 
    echo GWF_HTML::error('Register', $tLang->lang('info_no_cookie'), false);
    ?>
</div>
<?php 
}
?>


<div  class="fl">
	<div><?php 
echo $tVars['form'];
?>
</div>
	<div class="gwf_buttons ce"><div>
		<div class="ib">
			<div class="ib"><?php 
echo GWF_Button::generic($tLang->lang('btn_login'), GWF_WEB_ROOT . 'login');
?>
</div>
			<div class="ib"><?php 
echo GWF_Button::generic($tLang->lang('btn_recovery'), GWF_WEB_ROOT . 'recovery');
?>
</div>
		</div>
		<div class="cb"></div>
	</div></div>
</div>