$newthreads = $timestamp - $lastvisit;
$hack_cut_str = 39;
$hack_others_threadlist = array();
$thread = array();
$query = $db->query("SELECT t.* FROM $table_threads t WHERE t.fid<>'$fid' ORDER BY lastpost DESC LIMIT 0, 5");
while($thread = $db->fetch_array($query)) {
$thread['view_subject'] = wordscut($thread['subject'],$hack_cut_str);
$hack_others_threadlist[] = $thread;
}