Commit graph

145 commits

Author SHA1 Message Date
e35356ddfa * Refactored rendering of date formats
* Increased jQuery version to 1.4
2011-01-24 18:22:59 +00:00
828b85ba4c Prevent any href processing in Site.processHref() method when called from localhost 2011-01-06 16:10:54 +00:00
f2db3263d9 Slightly changed way individual domains are mapped to the sites by introducing the domain.* property which defines the default domain 2011-01-05 19:00:37 +00:00
5b0ba00ba9 Check for User.REGULAR role when subscribing to a site in Site.getPermission(). Fixes issue 134. 2010-12-21 14:13:42 +00:00
47deac6732 Prevent anyone from searching a restricted site. Fixes issue 123. 2010-08-28 17:42:43 +00:00
a053b46e21 Fixed defunct Site.robots_txt_action() method (typo in method name) 2010-06-14 06:44:53 +00:00
10c5475c3f Whoops, forgot to commit this little change to prevent an error message when calling Site.backup_js_action() without backup data being present 2010-06-07 14:54:04 +00:00
5a1cad862c Finalized Open Search Description feature (see http://www.opensearch.org for more information) 2010-05-30 13:39:09 +00:00
ae44c39d6f * Heavily edited wording of gettext() calls in notification messages
* Removed numbered, footnote-like links in most of the noficitaion messages
 * Added prefix to subjects of notification mails (like “[Antville] ...”) for convenience
 * Added markgettext() calls for most of the prototype names and their plural forms – this time in each corresponding prototype file, though
 * Added options argument to global sendMail() method, currently only to switch inclusion of generic footer in mail body
 * Fix bug in Membership.contact_action() method when an unknown (i.e. unregistered or unsubscribed) user tries to send a message via contact form
 * Unified naming of notify skins (e.g. #notify_delete instead of #notify_deletion)
 * Updated and rebuilt i18n and message files
2010-05-24 13:32:40 +00:00
Christoph Leutner
98bb544ea8 Changed site exporting dialogue - issue 104 comments 6, 7. 2010-05-06 21:48:51 +00:00
9917068dc7 * Modified order of actions in item list views
* Slightly modified the message informing about successful deletion of an object
 * Fixed type when calling Membership.remove() in Site.unsubscribe_action() method
 * Fixed bug causing exception when calling Membership.remove() method with no arguments
 * FIxed still incorrect permissions for editing and deleting a membership
2010-04-26 00:22:20 +00:00
2a1fd9f5ae Added optional site argument to Membership.getByName() to ease the pain of redefined res.handlers.site property running havoc 2010-04-25 18:10:17 +00:00
12309653a5 * Decentralized markgettext() calls by moving them from i18n.js to the places where the messages actually are defined
* Added markgettext_macro()
 * Readjusted Admin.dropdown_macro() and the global defineConstants() methods to work with the modified markgettext() calls
 * Updated Members.properties and added SQL patch for lowercasing all membership status due to the modified margettext() calls
 * Added Membership.role_macro() as convenience method
 * Removed syntactic sugar from HopObject.link_macro() and moved it to the compatibility layer to prevent current layouts from breaking
 * Removed obsolete permission for non-existing Image.replace_action()
2010-04-25 17:31:44 +00:00
bb28dba8fb Fixed bug causing exceptions in scheduler() due to undefined req.servletRequest 2010-04-24 13:58:40 +00:00
01b15b36f0 * Added stop button to export/import features, cancelling a previously started job
* Added some messages to the export/import features
 * Added routine to remove the corresponding file after successful import
2010-04-24 12:28:29 +00:00
65c139bc6e * Rewrote global Importer() and Site.import_action() for compatibility with Blogger.com export format using Rome parser
* Simplified Site.export_action()
 * Wrapped run() method of Importer and Exporter in try/catch clause
2010-04-23 19:51:40 +00:00
5d710ed6d7 * Added Admin.Job prototype representing objects suitable for persistent asynchronous tasks
* Refactored Admin.queue(), Admin.dequeue() and Admin.purgeSites() methods to use new Admin.Job prototype
 * Refactored Exporter and Importer objects to use new Admin.Job prototype (the way sites are im/exported still needs to be rewritten)
 * Refactored resetting and importing a layout to always backup the current layout in a temporary ZIP file
 * Moved import_action() method along with corresponding skins from Root to Site
 * Moved #create skin from $Root to $Site
 * Added the root site itself to the Root.sites collection
 * Permitted deletion of the root site by adding appropriate checks and treatment in Site.remove()
 * Moved call for Admin.dequeue() from scheduler() to nightly() method
 * Removed obsolete Admin.importExport() method
 * Removed obsolete app.data.exports and app.data.imports properties
2010-04-10 21:53:53 +00:00
35d4df1340 Enabled comments of a new site by default. Fixes issue 100. 2010-04-06 14:28:22 +00:00
ed60a2ea35 Fixed Site.processHref() method to work for sites w/o explicit domain setting 2010-02-15 21:20:02 +00:00
e47cbe348d Make search really case-insensitive. Fixes issue 86. 2010-02-07 18:41:08 +00:00
65bc1940f2 Removed debug message 2010-02-07 14:23:16 +00:00
94d161f5d6 Use name instead of data.name in Site.update() 2010-02-07 13:51:55 +00:00
82385850a4 Disable spaces in site names 2010-02-07 13:30:50 +00:00
8f61f1053b Fixes issue 86 2010-02-07 13:22:34 +00:00
26b773a0fb Added check for Site.name containing HTML code in Site.update() method 2010-02-07 13:04:48 +00:00
e0d45711b6 * Rewrote Sql.SEARCH statement to search for regular expression pattern in text and title field of stories and comments
* Modified Site.search_action() to filter comments of closed stories and increased result limit to 50

Fixes issue 38
2010-02-06 17:03:30 +00:00
33ef009f20 * Moved all direct SQL statements as constants into Sql object
* Removed redundant call for HopObject.log() in Admin.update() method
2010-01-19 22:01:39 +00:00
8940facd31 Added Site.getQuota() method for convenience 2010-01-16 11:56:08 +00:00
0795498b92 * Added quota argument to Site.getDiskSpace() method; if given, the difference between it and the used disk space will be returned
* Reverted last commit and added check whether site is trusted to Site.diskspace_macro()
2010-01-16 11:23:18 +00:00
80831e6ad7 Modified Site.diskspace_macro() to either output free or used disk space and always show it in $Site#edit skin 2010-01-15 22:18:03 +00:00
5523ab28d2 * Refactored Admin prototype by reducing interface, eliminating lenghty help texts and leaving out meaningless features
* Moved SITENOTIFICATIONPERIOD constant, health property as well as getFormOptions(), commitEntries(), commitRequests(), purgeReferrers(), invokeCallbacks(), updateHealth(), exportImport(), updateDomains(), queue() and dequeue() methods from Root to Admin prototype
 * Renamed Admin.purgeDatabase() method to Admin.purgeSites() and added code for automatic blocking/deletion of restricted/abandoned sites
 * Renamed Root.getScopes() method to Admin.getNotificationScopes()
 * Renamed User.getScopes() method to Admin.getCreationScopes()
 * Added Admin.getPhaseOutModes() method
 * Removed obsolete code
 * Fixed and renamed Admin.privateSites to Admin.restrictedSites collection
 * Finally added simple and reasonable quota implementation
 * Fixed gettext_macro() and ngettext_macro() with check for necessary arguments
 * Removed sender argument from global sendMail() method – instead, the root.replyTo property is used
 * Fixed some i18n messages
 * Moved code setting res.handlers.layout before permission check in HopObject.onRequest() to prevent broken layout in error screen
 * Completely rewrote HopObject.notify() method (hopefully fixing issue 49)
 * Check free disk space before invoking create_action() of Files and Images prototypes
 * Modified output of Membership.toString() method
 * Fixed some linebreaks in Membership.skin
 * Added option to set session.data.error for additonal information in $Root#error skin
 * Slightly modified output of $Root#health skin
 * Replaced Root.phaseOutInactiveSites and Root.phaseOutPrivateSites with Root.phaseOutMode
 * Removed qualifyingDate property from Root
 * Renamed Root.qualifyingPeriod property to Root.probationPeriod
 * Removed autoCleanupEnabled and autoCleanupStartTime properties from Root
 * Added replyTo property to Root
 * Rewrote Root.getCreationPermission() method
 * Added #notify_blocking and #notify_deletion skins to $Site.skin
 * Replaced Site.notifiedOfBlocking and Site.notifiedOfDeletion properties with Site.notified
 * Added Site.diskspace_macro() returning the free disk space in MB
 * Fixed bug in Site.main_action() causing erroneous display of deletion warning
2010-01-15 21:32:11 +00:00
32c52791fe * Refactored code and skins in respect for comprehensive i18n
* Refactored and unified remove() methods and calls for greater flexibility as well as reliability
 * Added option to remove all comments by a user to Comment.remove() method and $Comment#delete skin
 * Added global #listItemFlag skin as well as listItemFlag_macro() for rendering vertically written text of items in a list view (e.g. closed)
 * Fixed bug in gettext_macro() and ngettext_macro() causing incorrect whitespace
 * Refactored timezone and locale handling
 * Modified automatic translation of untitled links in HopObject.link_macro()
 * Added honeypot to login and registration forms
 * Fixed client-side JavaScript to be evaluated when login or registration form is submitted, not only when the submit button is clicked
 * Removed redundant filter expression from DB mapping of Membership.images collection
 * Added Membership.content collection
 * Changed terminology from open to running polls, thus renaming Polls.open_action() method and Polls.open collection
 * Moved a lot of CSS used in root or administration sections from Site#stylesheet to $Root#stylesheet skin
 * Added Root.updateDomains() method (most likely already obsolete)
 * Removed Root.processHref() method (only necessary for very advanced setup) and obsolete comments
 * Fixed Root.xgettext() method to correctly read UTF-8 encoded data
 * Fixed Site.deleted_macro() to return the date object for late formatting
 * Refactored Site.processHref() for more convenient custom domain name mapping
 * Renamed Skins.advanced_action() method to Skins.all_action()
 * Removed redundant filter from Stories.comments collection
 * Removed unnecessary filter from Story.comments collection
2010-01-10 14:40:36 +00:00
f8974735e3 Revamped the backup/restore feature for the story editor 2009-12-27 17:51:19 +00:00
dfe2e54fa1 * Improved eTag creation in main_js_action(), user_js_action() and main_css_action() methods of Site
* Removed obsolete modSorua.skin (we will do shared authentication right one day)
2009-12-27 15:35:50 +00:00
cca8f2c03a * Modified some res.data.title and res.messages assignments
* Added second argument to HopObject.remove() method; if set to true, any object will be removed without any checks for permissions or the like
 * Enhanced notfound and error screens
 * Removed obsolete Image.site property
 * Added missing LogEntry.remove() method
 * Added Site.deleted property
 * Fixed missing calls for remove() methods of some collections in Site.remove()
 * Added Root#stylesheet skin for future CSS classes necessary for GUI elements
 * Added missing Site.entries collection
 * Removed troublesome if condition in Skin.remove()
 * Generally deny access to Skin.main_action
 * Added missing Skin.getFormValue() method
 * Added check in Skin.update() if the Site#page skin contains the <% response.body %> macro 
 * Added Skins.onRequest() method checking if we are in-between two Skins objects
2009-12-13 22:29:21 +00:00
a3d4015b04 Added call for java.net.IDN.toASCII() to ensure that (yet) exotic site names can be used, too 2009-11-05 20:31:23 +00:00
0e3b954b76 Fixed ugly bug causing sites to lose their layout on import or reset 2009-11-03 15:12:39 +00:00
dcc9cbcfc8 * Added basic doctags to the code
* Removed obsolete code
2009-11-02 16:16:41 +00:00
fd653c4198 * Fixed tiny bug causing confusing display of subscriptions and privileges in Members prototype
* Modified site permissions to allow unsubscribing one site from within another. (It’s complicated, I know.)
2009-10-31 20:25:08 +00:00
063d7b89cb Added check for site.layout before removing it in Site.remove() method 2009-10-30 14:23:42 +00:00
3a2ff3d932 Fixed site deletion 2009-10-28 09:35:06 +00:00
b9529de94e Added work-around in Site.getXml() to prevent org.jdom.IllegalDataException caused by some ASCII control characters most likely inserted by some kind of evil text processor 2009-10-28 00:12:49 +00:00
517f6ce067 * Added various fixes for issues observed in the event log of Antville.org
* Added ugly hack for providing support of rssCloud and PubSubHubbub in XML feeds
2009-09-30 09:48:23 +00:00
2ec2404b03 Encode referrer string before rendering the HTML as fix for issue #32 2009-09-21 15:29:12 +00:00
05cb186fd1 Disabled work-around for story handlers in Comment skins in Site.getXml() method 2009-09-21 13:31:41 +00:00
4317d9f1e3 * Fixed some nasty bugs in Importer.js
* Added removal of layout in Site.remove()
2008-12-14 20:46:27 +00:00
05ba5e4b13 * Fixed bug in Admin.site_action() preventing deletion of a site
* Improved import/export feature to run asynchronously amongst other things
 * Remvoved exclusion of root site in Root's default collection (fingers crossed that this has no negative side effects)
2008-12-14 19:49:12 +00:00
674ec8bf9b Implemented basic functionality for site export and import (CAVEAT: this is an intermediate commit for testing purposes on p3k.org only) 2008-12-14 15:27:47 +00:00
b5f3128757 Fixed search for special characters 2008-12-12 10:54:58 +00:00
4074fd0d05 Officially enabled access to Site.search_action() for everyone 2008-10-02 18:34:38 +00:00