Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $this->load->model('auth_model');
- $this->load->helper('url');
- $this->load->helper('date');
- $ident=$this->session->userdata('ident');
- if ($this->session->userdata('logged_in')==true) {$this->auth_model->iam_on($ident[1]['id']);}
- ?>
- {users}
- <?php
- $id='{id}';
- $username='{username}';
- $segments = array('user', $id);
- $url = site_url($segments);
- $cur=time();
- $is_ON=NULL;
- $f=$this->auth_model->is_on($id);
- if ($f==true) {$is_ON=' - Online';} else {$is_ON=' - Offline';}
- echo $this->auth_model->is_on($id, true);
- echo '<h2><a href="'.$url.'">'.$username.'</a>'.$is_ON.'</h2><hr>'
- ?>
- {/users}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement