"AccountsGet", "Player" => $current_user->user_login); return PMAPI_Poker_API($params); } function pmapi_setup_button($buttonname) { $retval = "
"; $retval .= ""; $retval .= "
"; return pmapi_output_cleaner($retval); } function pmapi_signin_form() { $retval = "
"; $retval .= ""; $retval .= "

"; $retval .= ""; $retval .= "
"; return pmapi_output_cleaner($retval); } function pmapi_signout_button() { $retval = "
"; $retval .= "
"; return pmapi_output_cleaner($retval); } function pmapi_play_button($username, $sessionkey) { $retval = "
"; $retval .= ""; $retval .= ""; $retval .= "
"; return pmapi_output_cleaner($retval); } function pmapi_userinfo_form() { if(!is_user_logged_in()) return "Please Sign In to use this function."; $pmapi_api = pmapi_return_userinfo(); if($pmapi_api->Result <> "Ok") return "Account not Setup on Server.
Click the button:
" . pmapi_setup_button("Setup"); $avatarurl = get_option('pmapi_server_url') . "/Image?Name=Avatars"; if(get_option('pmapi_version')<5) $avatarsize = 48; else $avatarsize = 32; $avatarmax = get_option('pmapi_avatar_max'); $retval = "
"; $retval .= ""; $retval .= "
Your real name:"; $retval .= "RealName."\"/>
Your gender:Gender == "Male") $retval .= " checked"; $retval .= ">MaleGender == "Female") $retval .= "checked"; $retval .= ">Female
Your location:"; $retval .= "Location."\"/>
Your avatar:
"; for ($i = 0; $i < $avatarmax; $i++) { $a = "display: inline-block; width: " . $avatarsize . "px; height: " . $avatarsize . "px; background: " . "url('" . $avatarurl . "') no-repeat -" . ($i * $avatarsize) . "px 0px;"; $s = "Avatar) $s .= " checked"; $s .= ">"; $s .= "
"; $retval .= $s . "

"; } $retval .= "
"; $retval .= "
"; return pmapi_output_cleaner($retval); } ?>