Location: PHPKode > projects > MembersGear > membersgear/admin/admin_userlog_m.php
<?php
  require_once "../config/config.php";
  require_once INCLUDE_DIR."/users_class.php";
  $_action=$_GET['action'];
  switch($_action)
 {     
    case 'search_log':
    $pagename=urlencode(trim($_POST['pagename']));
    $redirectedfrom=urlencode(trim($_POST['redirectedfrom']));
    $visitedon=urlencode(strtotime($_POST['visitedon']));
    $visitedby=urlencode(trim($_POST['visitedby']));
    $hostname=trim($_POST['hostname']);
    $hostAddress=urlencode($_POST['hostAddress']);
    $userid=urlencode($_POST['userid']);
     $lsAddtionalSearch=""; 
     $lsuser="admin_user_log_v.php?pagename=$pagename&redirectedfrom=$redirectedfrom&visitedon=$visitedon&visitedby=$visitedby&hostname=$hostname&hostAddress=$hostAddress";
     if($userid!="")
       $lsuser.='&userid='.$userid;
     redirect($lsuser);
      break;
   DEFAULT: 
  $id=$_GET['ID'];
  $loUserClass = new users_class();
       $query = "select pu.username,pet.id,pet.page_name,pet.referer_page_name,pet.host_name,pet.host_address,
                         from_unixtime(pet.visitedon,'%Y-%m-%d-%h:%i:%s') as `visitedon`,
                         pet.request_method,pet.getdata,pet.postdata,pet.cookiedata
                         from ".TABLE_PREFIX."users_log pet
                            join ".TABLE_PREFIX."users pu on pu.id = pet.userid
                          WHERE pet.id=$id";       
                       
       $laResult = $loUserClass->View($query);
       $laResult[0]['referer_page_name']=str_replace('<br>','', $laResult[0]['referer_page_name']);
       $smarty->assign('logdata',$laResult);
       $smarty->display('admin_user_log_m.tpl');
    

 }   
 ?>
Return current item: MembersGear