lib('string'); lib('post'); if ( is_numeric($cfg['number']) ) $post = postinfo(post($cfg['number'])); else { $posts = articles($cfg['number'], 1); $post = &$posts[0]; } $art = &$post; lib('filesystem'); $images = array(); $image = NULL; $images = fileImages($art['idx'], NULL); if ( $images ) $image = &$images[0]; ?>