SqlDataReader Rg = DataHelper.ExecuteReader("SELECT [srcip],[tkg] FROM [wap_online] WHERE [uid]=" + tuid + "");
while (Rg.Read())
{
int tkg = Convert.ToInt32(Rg[1]);
if (tkg == 0)
{
TextString += "<img src=\"/image/site/map.png\" height=\"18\" alt=\"ip\"/>楼主关闭了地理位置,隐私保护中!<br/>\r\n";
}
else
{
TextString += "<iframe width=\"250\" height=\"27\" frameborder=\"0\" scrolling=\"no\" src=\"https://up.pcno.cn/m/ip/?ip="+ Rg[0] +"\"></iframe>\r\n";
}
}
Rg.Close();