Advertisement
Guest User

Untitled

a guest
Jun 8th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <hr>
  2. <?php foreach ($users as $user_item): ?>
  3. <?php
  4.  
  5. $this->load->helper('url');
  6.  
  7. $this->load->helper('date');
  8.  
  9. $this->load->model('auth_model');
  10.  
  11.  
  12. $ident=$this->session->userdata('ident');
  13. if ($this->session->userdata('logged_in')==true) {
  14. $this->auth_model->iam_on($ident[1]['id']);}
  15.  
  16. $segments = array('user', $user_item['id']);
  17.  
  18. $url = site_url($segments);
  19.  
  20. $cur=time();
  21.  
  22. $is_ON=NULL;
  23. $f=$this->auth_model->is_on($user_item['id']);
  24. if ($f==true) {
  25. $is_ON=' - Online';
  26. } else {
  27. $is_ON=' - Offline';
  28. }
  29.  
  30.  
  31. ?>
  32. <h2><a href="<?php echo $url; ?>"><?php echo $user_item['username']; ?></a> <?php echo $is_ON; ?></h2>
  33. <hr>
  34. <?php endforeach ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement