Language:
Title:

getCurrentIP(); } else { $loggedInUser = null; $ip = $_SERVER['REMOTE_ADDR']; } $action = ContentHandler::submitNew($loggedInUser, $ip, $title, $lid, $content); if ($action == ContentHandler::$CONTENT_POSTED) { echo "Submission has been posted."; } else if ($action == ContentHandler::$CONTENT_QUEUED) { echo "Submission has been queued for approval by an administrator."; } else if ($action == ContentHandler::$CONTENT_FAILURE) { echo "There was an error while submitting the new content."; } else { die("Internal error."); } } ?>