Location: PHPKode > projects > AwodChat > awod/system/wwo.php
<ul id="online">
<?php
$verzeichnis = openDir("user");
while ($file = readDir($verzeichnis)) {
	if ($file != "." && $file != "..") {
		$handle = fopen("user/".$file, "r");
		$d=fgets($handle);
		fclose($handle);
		if(time()-$d>8){
			unlink("./user/".$file);
		} else {
			$list=$list."<li  style=\"cursor:pointer;\"><img src=\"./icons/online.png\"><img src=\"./icons/private.png\" title=\"private\" alt=\"private\" onclick=\"set_pm('".str_replace(".db", "", $file)."')\"> <span onclick=\"add_sm('".str_replace(".db", "", $file)."')\">".str_replace(".db", "", $file)."</span></li>";
		}
	}
}
closeDir($verzeichnis);
echo $list;
?> 
</ul>
Return current item: AwodChat