示例#1
0
 public function action_user_control__()
 {
     $ids = $this->request->query('ids');
     $json = array();
     if (!is_array($ids)) {
         return $this->jsonp($json);
     }
     $ids = array_unique($ids);
     foreach ($ids as $id) {
         if (!is_numeric($id)) {
             continue;
         }
         $json[$id] = CacheManager::getUser($id);
         if (!$json[$id]) {
             continue;
         }
         unset($json[$id]->password, $json[$id]->user_salt);
         $json[$id]->regip = IpLocation::getAddressByIP($json[$id]->reg_ip);
         $json[$id]->reg_date = date('Y-m-d H:i:s', $json[$id]->reg_date);
         $json[$id]->loginip = empty($json[$id]->login_ip) ? '' : IpLocation::getAddressByIP($json[$id]->login_ip);
         $json[$id]->login_date = $json[$id]->login_date == 0 ? '' : date('Y-m-d H:i:s', $json[$id]->login_date);
         $json[$id]->avatar = Util::getAvatar($json[$id]->avatar);
     }
     return $this->jsonp($json);
 }
示例#2
0
					<?php 
    }
    ?>
				</td>
				<td class="pl5"><?php 
    echo $user->reg_ip;
    ?>
(<?php 
    echo IpLocation::getAddressByIP($user->reg_ip);
    ?>
)</td>
				<td class="pl5"><?php 
    echo $user->login_ip;
    ?>
(<?php 
    echo IpLocation::getAddressByIP($user->login_ip);
    ?>
)</td>
			</tr>
			<?php 
}
?>
		</table>
		<div class="pager t_l"></div>
	</div>
</div>
<script type="text/javascript">
happi.pro.admin.pageLoad(false);

$("#btnSearch").click(function () {
	top.tab.refresh();
示例#3
0
 public static function getQQWryData($ip)
 {
     $city = array('country' => IpLocation::getAddressByIP($ip), 'region' => '', 'city' => '', 'county' => '');
     return $address;
 }
    echo $info->online == 0 ? '上线' : '下线';
    ?>
</td>
				<td class="center"><?php 
    echo $info->utype == 0 ? 'fb' : ($info->utype == 1 ? 'mobile' : ($info->utype == 2 ? 'web' : 'admin'));
    ?>
</td>
				<td class="center"><?php 
    echo $info->ldate > 99999999 ? date('Y-m-d H:i:s', $info->ldate) : date('Y-m-d', strtotime($info->ldate));
    ?>
</td>
				<td class="pl5"><?php 
    echo $info->ip;
    ?>
-<?php 
    echo IpLocation::getAddressByIP($info->ip);
    ?>
</td>
			</tr>
			<?php 
}
?>
		</table>
		<div class="pager"></div>
	</div>
</div>
<script type="text/javascript">
happi.pro.admin.pageLoad(false);

$("#btnSearch").click(function () {
	top.tab.refresh();