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