草业012成员地址簿


uid && $user->uid < 100){ $is_012 = true; } $result = db_query("SELECT * FROM penguin_c012_members"); $lines = "

\n”;
$lines .= “

\n”;
while ($row = mysql_fetch_assoc($result)) {
if($is_012) {
$name = $row[‘name’];
$email = $row[’email’];
$mobile = $row[‘mobile’];
$phone = $row[‘phone’];
$phone2 = $row[‘phone2’];
$note = $row[‘note’];
} else {
$name = $email = $mobile = $phone = $note = ”;
$name = $row[‘name’];
if ($email = $row[’email’]) {
$email = ‘****’ . substr($email, strpos($email, ‘@’));
}
if ($row[‘mobile’]) {
$mobile = substr_replace($row[‘mobile’], ‘****’, -8, 4);
}
if ($phone) {
$phone = substr_replace($row[‘phone’], ‘****’, -8, 4);
}
$note = $row[‘note’];
}
$lines .= sprintf(‘

‘ . “\n”, $name, $email, $mobile, $phone, $note);
}
$lines .= “

Name 电子邮件 手机 固定电话 备注
%s %s %s %s %s

\n”;
echo $lines;

if ($is_012) {
$m = ‘班级邮件列表:members@caoye012.org (用法)’;
printf(“

%s

\n”, $m);
}
?>

说明:

  • 本地址簿只有班级成员登录后才可以浏览
  • 需要更新联系方式的同学,请发邮件至成员邮件列表
  • 欢迎大家提出更好的建议(但是请勿在评论中透露联系方式)

发表评论