Location: PHPKode > projects > Skills Evaluator - Free HR evaluation software > skills-evaluator_1.3/http/a_view_idle_.php
<?php include "config.php"; include "functions.php";
echo "<link rel='stylesheet' type='text/css' href='".$templates."/default.css'>"; 

include $template."/header.php";
if (isset($_POST["d"]))
 if (isset($_SESSION["user"][0]))
  if (($_SESSION["user"][5]>3)&&($_SESSION["user"][3]==md5(clean($_POST["pass"]))))
  {
  $_POST["d"]=clean($_POST["d"]);
   $query="SELECT * FROM users where hour(timediff(now(), lastVisit))/24>".$_POST["d"];
 $result=mysql_query($query, $db_id); $nr=0;
 echo "<table width='200' border='1'>";
 for (; $row=mysql_fetch_row($result); $nr++) {
 
echo "<tr>
    <td nowrap='nowrap'>".$row[0]."</td>
    <td nowrap='nowrap'><a href='".customfc('profile_view.php')."?id=".$row[0]."'>".$row[1]."</a></td>
	 <td nowrap='nowrap'>".$row[4]."</td>
  </tr>";
  }
  if ($nr==0) echo "No idle users found";
  echo"</table>";
  }
  else system_mesages($lang['notAdmin'],'',1,1); 
 else system_mesages($lang['accessDenied'],'',1,1);
else system_mesages($lang['noInput'],'',1,1); 
?>
	  <?php include $template."/footer.php";
 ?>
Return current item: Skills Evaluator - Free HR evaluation software