// $href_api_3 = GWF_WEB_ROOT.'index.php?mo=WeChall&me=JoinUs&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&me=JoinUs&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&me=JoinUs&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§ion=warbox'); echo GWF_Button::generic($l->lang('btn_join_opt'), GWF_WEB_ROOT . 'index.php?mo=WeChall&me=JoinUs§ion=optional'); echo GWF_Button::generic($l->lang('btn_api'), GWF_WEB_ROOT . 'index.php?mo=WeChall&me=JoinUs§ion=wechall_api', 'generic', '', true); echo GWF_Button::wrapEnd();
public static function accountButtons() { $l = GWF_Module::getModule('PoolTool')->getLanguage(); return GWF_Button::wrapStart() . GWF_Button::generic($l->lang('menu_profile'), GWF_WEB_ROOT . 'profile_settings') . GWF_Button::wrapEnd(); }