0) { $message = array( 'status' => 'success', 'message' => 'Successfully posted status #'.$id ); // handle files if(!empty($_FILES['attachments'])) { attach_uploaded_files($_FILES['attachments'], $id); } rebuild_feeds(); header('Location: '.$config['url']); die(); } } $title_suffix = 'new post'; require(ROOT.DS.'snippets'.DS.'header.snippet.php'); ?>