Commit graph

2730 commits

Author SHA1 Message Date
Robert Gaggl
a5d7877485 corrected check for png-images (they can have image/png or image/x-png as content-type) 2003-01-05 22:57:15 +00:00
Robert Gaggl
c575fccdf7 choice-title is now rendered as skin to allow macros (eg. for image-polls) 2003-01-05 22:44:33 +00:00
Robert Gaggl
bb56037bfa choice-value is now form-encoded to enable using html-code in choice-text 2003-01-05 22:28:20 +00:00
Robert Gaggl
2ab5f3ae7c evalPoll doesn't require title anymore (since it isn't part of the edit-form anymore) 2003-01-05 22:27:19 +00:00
806918f853 added unescape function for form values retrieved via request.data object 2003-01-05 16:59:58 +00:00
d0d0a3d031 changed the default behaviour how "RE:" is prepended to the title of a subsequent comment; added interface for posting a new story from other locations (e.g. bookmarklets) 2003-01-05 16:38:02 +00:00
Michael Platzer
eaaf060747 fixed bug 192: corrected iisClean()-function, so that it does not allow the character ^ anymore 2003-01-05 14:42:05 +00:00
Robert Gaggl
58bf687f4d added new bloggerApi-functions 2003-01-02 19:16:32 +00:00
Robert Gaggl
5eea674ddc - removed checkAccessPermission (this is now done using the standard securityFunctions)
- implemented bloggerApi-functions:
getUsersBlogs (returns all sites that a user has subscribed and has write-permissions)
getRecentPosts (returns a list of max. 20 posts that are either created or editable by a user)
getPost (returns a single post of a user)
- added functions getUser() and getBlog() that are not callable via XmlRpc but used by bloggerApi-implementation
- rewrote the rest of the functions to use the standard securityFunctions
2003-01-02 19:09:57 +00:00
Robert Gaggl
ff01391d37 securityFunctions now need the membership-level of a user as second argument 2003-01-02 19:05:03 +00:00
Robert Gaggl
ab1538b801 collection storiesById now contains all stories (not just the ones that are online). this collection is only used by bloggerApi 2003-01-02 19:03:50 +00:00
Robert Gaggl
369efff253 - moved checkIfLoggedIn() to securityFunctions.js
- decreased interval of scheduler to 5 seconds (otherwise too many objects would be locked when scheduler is running)
2003-01-02 19:00:30 +00:00
Robert Gaggl
ca44f02034 added function getMembershipLevel() 2003-01-02 18:59:42 +00:00
Robert Gaggl
3c97aa4ef7 accessing user-property sysadmin directly instead of calling function isUserSysAdmin (removed) 2003-01-02 18:59:04 +00:00
Robert Gaggl
ccacd86b24 fixed comments 2003-01-02 18:58:25 +00:00
Robert Gaggl
abf1276967 now using a java.lang.StringBuffer instead of a String-variable when creating the rawcontent of a story 2003-01-02 18:58:05 +00:00
Robert Gaggl
a71ad9d6e8 added function constructor() 2003-01-02 18:56:40 +00:00
Robert Gaggl
068a68f090 req.data.memberlevel is now passed as second argument to security-functions. with this they can also be used even when there's no request-object present (scheduler, bloggerApi) 2003-01-02 18:55:32 +00:00
Robert Gaggl
7dbd8cb9e3 renamed to securityFunctions.js 2003-01-02 18:55:12 +00:00
Robert Gaggl
c7e599b83e removed functions isUserTrusted() and isUserSysAdmin(), moved checkIfLoggedIn() from objectFunctions.js into this file 2003-01-02 18:54:48 +00:00
Robert Gaggl
c61985604c now calling new function getMembershipLevel() of membermgr to retrieve permission-level of user 2003-01-02 18:54:04 +00:00
Robert Gaggl
f1a9759aa5 - req.data.memberlevel is now passed as second argument to security-functions. with this they can also be used even when there's no request-object present (scheduler, bloggerApi)
- removed unused function isPostDenied()
2003-01-02 18:52:46 +00:00
Robert Gaggl
5ce2b214bf renamed file to securityFunctions.js 2003-01-02 18:51:36 +00:00
Robert Gaggl
a259f484b7 createtime_macro() now only appears as link if the story was published in site (stories that are published only in a topic are not accessible via days-collection) 2002-12-23 14:58:26 +00:00
Robert Gaggl
4383149f88 changed image_macro():
- fixed a bug that lead to a thumbnail not being linked to the fullsize-image
- in case of a popup the onClick-handler is moved to the image-tag, the a-tag still contains just the link to the fullsize-image which should help those who have javascript disabled

changed linkedpath_macro() so that last item in breadcrumb-navigation is a link too if req.action != main and there is a main-action
2002-12-17 21:56:56 +00:00
Robert Gaggl
9dcde6723f added function getNavigationName() 2002-12-17 21:54:12 +00:00
Robert Gaggl
597f5bf86d added function getNavigationName() that displays either the title of a story/comment or a standard string containing the id 2002-12-17 21:53:09 +00:00
Robert Gaggl
52439f0b36 popupUlr() now uses (cached) getStaticUrl() instead of doing the same thing too 2002-12-17 21:52:20 +00:00
Robert Gaggl
9efff41cae changed linkedpath_macro(): the last item in the breadcrumb-navigation is now also linked if req.action != main and there is a main_action 2002-12-17 21:51:50 +00:00
Robert Gaggl
44b80f807b added a constant named array DISPLAY which contains the strings that should be displayed instead of the prototype-names (used in global linkedpath_macro() resp. getNavigationName()) 2002-12-17 21:50:23 +00:00
Robert Gaggl
d157f98c38 added function getNavigationName() which overrides the hopobject-function to display the groupname of a day as a nicely formatted timestamp 2002-12-17 21:49:12 +00:00
Robert Gaggl
299c64f23f removed prefetchChildren() 2002-12-17 21:30:55 +00:00
Robert Gaggl
5e7da8ad87 renderStorylist is now using prefetchChildren since all stories of a day will be displayed on one page 2002-12-17 21:28:26 +00:00
Robert Gaggl
7254464310 renderStorylist() now uses prefetchChildren (backport from antville.org) 2002-12-17 21:21:40 +00:00
Robert Gaggl
2fcdb83c8d removed UTF-8 encoding in header 2002-12-17 21:16:31 +00:00
Robert Gaggl
153a015ea9 backport from antville.org: topic_macro now retrieves the topic of a story from the site-object to get the correct href() 2002-12-17 21:15:23 +00:00
Robert Gaggl
c528e2e8be removed UTF-8-encoding at beginning of file (backport from antville.org) 2002-12-17 21:13:17 +00:00
Robert Gaggl
3558834d4c bugfix: Math.min takes only two arguments (backport from antville.org) 2002-12-17 21:09:47 +00:00
Robert Gaggl
76ec8a05b9 removed loadmode aggressive (backport from antville.org) 2002-12-17 20:49:42 +00:00
Robert Gaggl
aa9d918615 renderImagelist now uses prefetchChildren() for preloading (backport from antville.org) 2002-12-17 20:48:04 +00:00
Robert Gaggl
3fe2e1fb80 added href_macro() (backport from antville.org) 2002-12-17 20:38:14 +00:00
Robert Gaggl
31df32af27 change in doWikiStuff: check if src is null (backport from antville.org, although doWikiStuff is not in use anymore) 2002-12-17 20:35:33 +00:00
Robert Gaggl
a4b02b85c6 usernames are now linked to the url specified in users preferences (backport from antville.org) 2002-12-17 20:32:15 +00:00
Robert Gaggl
58722a4cf9 removed aggressive loadmode (backport from changes on antville.org) 2002-12-17 20:25:45 +00:00
Robert Gaggl
39cfd7b96f history_macro() now uses the lastmod-collection instead of allcontent 2002-12-15 13:20:57 +00:00
Robert Gaggl
aa6bd5ac93 added collection lastmod (limited to 100 objects) which is used by history_macro() 2002-12-15 13:20:18 +00:00
Hannes Wallnöfer
7f18ec44b4 Membership child objects aren't accessible by their id anymore.
Use the member's user name instead.
2002-12-11 15:28:39 +00:00
Robert Gaggl
0e70216db3 changed createtime_macro(): if the optional attribute as="link" is given the createtime of the story is rendered as link to the frontpage of the day. 2002-12-08 17:10:09 +00:00
Robert Gaggl
13ac02c8b1 rewrote backlinks_macro() again:
- added optional attribute "exclude": users can now list servers that should not appear in backlinks-list (comma-delimited strings)
- enabled caching also for empty backlinks to reduce db-traffic
2002-12-08 15:37:03 +00:00
Robert Gaggl
491f429c93 rewrote backlinks_macro():
- backlinks are now limited to 100 (if attribute limit is not set in macro-call)
- changed to java.lang.StringBuffer() instead of using a JS-String
- rendered backlinks are now cached since they won't change until the next scheduler-run
2002-12-08 13:49:33 +00:00