while ($r = getXmlValueByTag($content, "appID", $r[1])) { if ($r[0] == "440") { $tf2 = true; break; } } echo "Hello <img src=\"" . $avatar[0] . "\"> " . $name[0] . "<br/>"; if ($tf2) { echo "You appear to have Team Fortress 2<br/>"; } else { echo "You don't appear to have Team Fortress 2<br/>"; } $steamid = GetAuthID($steam[5]); echo "Your Steam ID is: " . $steamid . "<br/>"; $content = implode(file("http://etf2l.org/feed/player/?steamid=" . $steamid)); $etf2l['username'] = getXmlValueByTag($content, "username", 0); $etf2l['displayname'] = getXmlValueByTag($content, "displayname", 0); $etf2l['player'] = getXmlValueByTag($content, "player", 0); if ($etf2l['player'][2]['ID'] != "") { echo "Your ETF2L profile is: <a href=\"http://etf2l.org/forum/user/" . $etf2l['player'][2]['ID'] . ">" . $etf2l['displayname'][0] . "</a>"; } else { echo "You don't have an ETF2L profile."; } } } catch (ErrorException $e) { echo $e->getMessage(); } ?> <a href="http://steampowered.com">Powered by Steam</a> </body> </html>
$Srcinstno=getXmlValueByTag($result,'Srcinstno'); $destinstno=getXmlValueByTag($result,'destinstno'); $referenceno=getXmlValueByTag($result,'referenceno'); $rejcode=getXmlValueByTag($result,'rejcode'); $terminal=getXmlValueByTag($result,'terminal'); $mcht_no=getXmlValueByTag($result,'mcht_no'); $mhtaddr=getXmlValueByTag($result,'mhtaddr'); $mchttranstype=getXmlValueByTag($result,'mchttranstype'); $tel_no=getXmlValueByTag($result,'tel_no'); $channelid=getXmlValueByTag($result,'channelid'); $channeladdr=getXmlValueByTag($result,'channeladdr'); $recorded=getXmlValueByTag($result,'recorded'); $moneycode=getXmlValueByTag($result,'moneycode'); $persionid=getXmlValueByTag($result,'persionid'); $revflag=getXmlValueByTag($result,'revflag'); $mac=getXmlValueByTag($result,'mac'); //发送字符串 商户销帐/入账 请求 从交易字段 一直 到 交易标志 字段结束 ,组构成类似以下的发送字段: //100362258802969880180000000000300805183112201202091124160000081831120805000001240000009999112799991111999911279999111600000002679700050000309610150390005B0B2BBD5BAC5B0D920000013592693823309610150390005B0B2BBD5BAC5B0D9201831156016101001980120296320 $sendStr=$transcode.$pan.$amount.$transdate.$odtransdate.$sys_trace.$localtime.$localdate.$panexpr.$settledate.$mhttype.$servicecode.$Recvorgcode.$Sendorgcode.$Srcinstno.$destinstno.$referenceno.$rejcode.$terminal.$mcht_no.$mhtaddr.$mchttranstype.$tel_no.$channelid.$channeladdr.$recorded.$moneycode.$persionid.$revflag; //require_once 'socket_send.php'; // set some variables $host = "123.138.28.20"; $port = 13000; // don't timeout!