while ($arr = mysql_fetch_assoc($res)) { if (get_user_class() >= $sbmanage_class) { // $del="[<a href=\"shoutbox.php?del=".$arr[id]."\">".$lang_shoutbox['text_del']."</a>]"; $del = <<<EOD [<a onclick="if(confirm('确定要删除吗?')){window.location.href='shoutbox.php?del={$arr['id']}';}" style="cursor:pointer">{$lang_shoutbox['text_del']}</a>] EOD; } if ($arr["userid"]) { $username = get_username($arr["userid"],false,true,true,true,false,false,"",true); $arr2 = get_user_row($arr["userid"]); if ($_GET["type"] != 'helpbox' && $arr["type"] == 'hb') $username .= $lang_shoutbox['text_to_guest']; } else{ $school = strpos($arr["ip"],':')?school_ip_location($arr["ip"],false):''; $userip = str_replace(':','',$arr['ip']); $guestid = substr($userip,strlen($userip) - 8); $username = "******".$school."'>游客".$guestid."</b>"; $arr2["username"] = "******".$guestid; } if ($CURUSER['timetype'] != 'timealive') $time = strftime("%m.%d %H:%M",$arr["date"]); else $time = get_elapsed_time($arr["date"]).$lang_shoutbox['text_ago']; $messtext = $arr["text"]; $messtext = str_replace("[@".$CURUSER['username']."]","[color=Red][b]@".$CURUSER['username']."[/b][/color]",$messtext); //将回复给自己的名字染红 print("<tr><td class=\"shoutrow\"><span class='date'>[".$time."]</span> ". $del ." <span onclick=\"retuser('".$arr2["username"]."');\" style=\"cursor:pointer;\">[@]</span> ". $username." " . format_comment($messtext,1,true,true,600,true,false)." </td></tr>\n"); $i++;
} ?> <table border="0" cellspacing="0" cellpadding="5" width=940> <?php tr_small($lang_usercp['row_join_date'], $joindate, 1); tr_small($lang_usercp['row_email_address'], $CURUSER['email'] . " <a href='changeemailforyahoo.php' class='faqlink'>雅虎邮箱用户请修改邮箱</a>", 1); //显示学号 $cardnum = $CURUSER['cardnum']; if ($cardnum == null) { $cardnumtext = "您没有登记学号,如果您不是西农学生请忽略。<a href='getcardnum.php' class='faqlink'>点击登记学号送麦粒</a>"; } else { $cardnumtext = ' 如果学号登记有误请联系管理组'; } $cardnumtext .= " 学号仅本人可见,管理组也不能随意查看。学号可用于密码找回。"; tr_small('用户学号', $cardnum . $cardnumtext, 1); $school = school_ip_location($CURUSER["ip"]); if ($enablelocation_tweak == 'yes') { list($loc_pub, $loc_mod) = get_ip_location($CURUSER["ip"]); tr_small($lang_usercp['row_ip_location'], $CURUSER["ip"] . " <span title='" . $loc_mod . "'>[" . $loc_pub . "]</span>", 1); } else { tr_small($lang_usercp['row_ip_location'], $CURUSER["ip"] . $school, 1); } if ($CURUSER["avatar"]) { tr_small($lang_usercp['row_avatar'], "<img src=\"" . $CURUSER["avatar"] . "\" border=0>", 1); } tr_small($lang_usercp['row_passkey'], $CURUSER["passkey"], 1); if ($prolinkpoint_bonus) { $prolinkclick = get_row_count("prolinkclicks", "WHERE userid=" . $CURUSER['id']); tr_small($lang_usercp['row_promotion_link'], $prolinkclick . " [<a href=\"promotionlink.php\">" . $lang_usercp['text_read_more'] . "</a>]", 1); //tr_small($lang_usercp['row_promotion_link'], $prolinkclick. " [<a href=\"promotionlink.php?updatekey=1\">".$lang_usercp['text_update_promotion_link']."</a>] [<a href=\"promotionlink.php\">".$lang_usercp['text_read_more']."</a>]", 1); }
$suggestlvl -= $countip; } else { echo "<font color='green'><b>没有检测到重复ip</b></font>"; } echo "</td><td class=\"rowfollow\">"; if ($countemail >= 1) { echo "<font color='red'><b>此用户已注册</b></font>"; $suggestlvl -= 5; } else { echo "<font color='green'><b>邮箱应该可以注册</b></font>"; } echo "</td><td class=\"rowfollow\">"; if (sqlesc($school) == sqlesc(school_ip_location($row['ip'], 0))) { echo "<font color='green'><b>完全一致</b></font>" . sqlesc(school_ip_location($row['ip'], 0)) . "---" . $school; } else { echo "<font color='red'><b>不一致</b></font>" . sqlesc(school_ip_location($row['ip'], 0)) . "---" . $school; $suggestlvl -= 1; } if ($suggestlvl >= 0) { $suggest = "<font color='green'><b>建议发送邀请码,等级{$suggestlvl}</b></font>"; } elseif ($suggestlvl < -3) { $suggest = "<font color='red'><b>请勿发送邀请码,等级{$suggestlvl}</b></font>"; } else { $suggest = "<font color='orange'><b>不建议发送邀请码,等级{$suggestlvl}</b></font>"; } echo "</td><td class=\"rowfollow\" align=\"right\"></td><td class=\"rowfollow\" align=\"right\"></td></tr>"; } ?> <tr><td class="colhead"><input class="btn" type="button" value="全选" onclick="this.value=check(form,'全选','全不选')"></td><td class="colhead" colspan="12" align="right"><? echo $suggest;?><input type="submit" name="setdealt" value="忽略此申请" /><input type="submit" name="invite" value="邀请" /><input type="submit" name="delete" value="删除" /></td></tr> </form> <?
} if (get_user_class() >= $userprofile_class) { $resip = sql_query("SELECT ip FROM iplog WHERE userid ={$id} GROUP BY ip") or sqlerr(__FILE__, __LINE__); $iphistory = mysql_num_rows($resip); if ($iphistory > 0) { tr_small($lang_userdetails['row_ip_history'], $lang_userdetails['text_user_earlier_used'] . "<b><a href=\"iphistory.php?id=" . $user['id'] . "\">" . $iphistory . $lang_userdetails['text_different_ips'] . add_s($iphistory, true) . "</a></b>", 1); } } if (get_user_class() >= $userprofile_class || $user["id"] == $CURUSER["id"]) { if ($enablelocation_tweak == 'yes') { list($loc_pub, $loc_mod) = get_ip_location($user[ip]); $locationinfo = "<span title=\"" . $loc_mod . "\">[" . $loc_pub . "]</span>"; } else { $locationinfo = ""; } $school = school_ip_location($user[ip]); tr_small($lang_userdetails['row_ip_address'], $user[ip] . $school . $locationinfo, 1); } $res = sql_query("SELECT agent, peer_id, ip, port FROM peers WHERE userid = {$user['id']} GROUP BY agent") or sqlerr(); if (mysql_num_rows($res) > 0) { $first = true; $clientselect = ""; while ($arr = mysql_fetch_assoc($res)) { $clientselect .= ($first == true ? "" : " ; ") . get_agent($arr["peer_id"], $arr["agent"]); $first = false; if (get_user_class() >= $userprofile_class || $user["id"] == $CURUSER["id"]) { $clientselect .= " (" . $arr["ip"] . ":" . $arr["port"] . ")"; } } } if ($clientselect) {
<td class="colhead" align="center"> 邮箱 </td> <td class="colhead"> 所在学校 </td> <td class="colhead" align="center"> 年级 </td> <td class="colhead"> 网络情况</td> <td class="colhead" align="center"> 硬盘情况 </td> <td class="colhead" align="center"> 补充说明 </td> <td class="colhead" align="center"> 时间 </td> <td class="colhead" align="center"> 其他站点截图 </td> <td class="colhead" align="center"> 操作者 </td> <td class="colhead" align="center"> 行为 </td> </tr> <?php $res = sql_query("SELECT * FROM invitebox ORDER BY id desc {$limit}"); while ($row = mysql_fetch_assoc($res)) { $Id = $row[Id]; $ip = "<a href='ipsearch.php?ip=" . $row[ip] . "' target='_blank' class='faqlink'>{$row['ip']}</a>" . school_ip_location($row[ip]); $username = $row[username]; $email = $row[email]; $school = $row[school]; $grade = $row[grade]; $web = $row[web]; $disk = $row[disk]; $self_introduction = $row[self_introduction]; $added = $row[added]; $pic = $row[pic]; $dealt_by = $row[dealt_by]; print "<tr>\n\t<td class=\"rowfollow\" align=\"center\">{$username}</td>\n\t<td class=\"rowfollow\">{$ip}</td>\n\t<td class=\"rowfollow\">{$email}</td>\n\t<td class=\"rowfollow\">{$school}</td>\n\t<td class=\"rowfollow\">{$grade}</td>\n\t<td class=\"rowfollow\">{$web}</td>\n\t<td class=\"rowfollow\">{$disk}</td>\n\t<td class=\"rowfollow\">{$self_introduction}</td>\n\t<td class=\"rowfollow\">{$added}</td>"; if ($pic) { print "<td class=\"rowfollow\"><a class=faqlink href={$pic} target=_blank>点此查看</a></td>"; } else { print "<td class=\"rowfollow\"></td>";