function f_nucleus_addDatedItem($m) { $blogid = _getScalar($m, 0); $username = _getScalar($m, 1); $password = _getScalar($m, 2); $title = _getScalar($m, 3); $body = _getScalar($m, 4); $more = _getScalar($m, 5); $publish = _getScalar($m, 6); $closed = _getScalar($m, 7); $timestamp = _getScalar($m, 8); // use '1' as $future param to make sure the date does not get erased return _addDatedItem($blogid, $username, $password, $title, $body, $more, $publish, $closed, $timestamp, 1); }
/** * Adds an item to the given blog. Username and password are required to login */ function _addItem($blogid, $username, $password, $title, $body, $more, $publish, $closed, $catname = "") { $blog = new BLOG($blogid); $timestamp = $blog->getCorrectTime(); return _addDatedItem($blogid, $username, $password, $title, $body, $more, $publish, $closed, $timestamp, 0, $catname); }