View file system/inc/classes/guest.class.php
<?php class guest { function online_guest() { $sys = mysql_fetch_array(mysql_query("SELECT * FROM online_guest ")); if(!$user_id) { if($sys['ip'] == $vi_shcms) { mysql_query("UPDATE online_guest SET ip='$vi_shcms',time='$time_date',ua='$ua'"); } else { mysql_query("INSERT INTO online_guest (ip,time) VALUES('$vi_shcms','$time_date',ua='$ua')"); } } elseif(isset($user_id)) { mysql_query("DELETE FROM `online_guest` WHERE `time` < '".(time()-600)."'"); } } } ?>