Commit graph

459 commits

Author SHA1 Message Date
Robert Gaggl
772c53d17f modified debug output of flushMailQueue() 2003-10-11 10:41:45 +00:00
cdbf273d0a * app.data.mailQueue (now with capital Q) is defined in onStart function
* modified sendMail function to add multiple recipients via addBCC method
2003-10-08 16:20:54 +00:00
cfed1de438 moved skin for notification mail body from global/notification.skin to site/notificationMail.skin 2003-10-08 16:09:13 +00:00
86061433f4 * modified sendMail function to queue mails instead of immediately sending them
* fixed a small bug that caused an error message due to an undefined mail queue array
2003-10-07 16:12:47 +00:00
Hannes Wallnöfer
e8adb95a2c Added support for skinsets:
* Skins are attached to skinset rather than site objects
 * Each site can have multiple skinsets
 * Skinsets can inherit from each other
 * Added subclasses of imagemgr and skinmgr that mount on root/manage
2003-10-07 15:14:47 +00:00
9bc0fa1502 * added queue method to Mail prototype for sending e-mail notifications via scheduler
* added flushMailQueue to send mail objects contained in the mail queue (ie. app.data.mailqueue)
* added call for flushMailQueue from the scheduler function
* changed mail.send() to mail.queue() in sendNotification functions
2003-10-07 14:44:44 +00:00
Hannes Wallnöfer
8e1506b766 Remove font-size definition from local style 2003-10-07 14:29:43 +00:00
9cd4aa4b7d implemented first version of e-mail notification using kris' contribution (with slight modifications):
* since site preferences are stored as xml the corresponding code had to be adjusted
* currently, no notification is sent if a story's status changes from offline to online (abuse factor is too high)
* there's only one global notification skin used for the mail body
* the sender is always set to sys_email to avoid the bounce problem we already had with registration mails
2003-10-06 16:28:03 +00:00
cd24d55c20 reduced and simplified conditional checks in evalURL() 2003-10-06 09:44:36 +00:00
Michael Platzer
b40d567c13 fixed evalURL, so that web addresses with @ are possible 2003-09-21 16:59:42 +00:00
Robert Gaggl
8aef63cce5 added support for fallback image (http://grazia.helma.at/pipermail/antville-dev/2003-September/000160.html) 2003-09-11 20:04:11 +00:00
Hannes Wallnöfer
0497b10bf3 Tentative code to set the colorpicker to the color of the selected textclass
(works only if the color matches one in the color raster 100%)
2003-09-09 17:57:56 +00:00
Hannes Wallnöfer
f381b7fa46 Make colorpicker.skin XHTML complient 2003-09-09 17:30:43 +00:00
Hannes Wallnöfer
b962e7f9a9 Add a preview area to the colorpicker and make it possible
to edit all colors at once.
2003-09-09 14:41:09 +00:00
Robert Gaggl
71363fa9d3 added constants ONEMINUTE, ONEHOUR and ONEDAY 2003-09-07 21:10:53 +00:00
Robert Gaggl
5e669e2a8d modified poll_macro(): display an embedded poll in any case (even if the user isn't logged in) 2003-09-07 21:07:17 +00:00
Robert Gaggl
f7f81a2512 added constructor for DenyException objects 2003-09-07 21:03:12 +00:00
Robert Gaggl
2e74e482a3 use constant ONEHOUR in renderTimeZoneChooser() 2003-09-07 21:02:56 +00:00
Robert Gaggl
e839d7e343 removed 2003-08-02 12:22:00 +00:00
Robert Gaggl
c7d5c20578 initial check-in 2003-08-02 12:21:28 +00:00
Robert Gaggl
53bb019886 - changed to use AntvilleLib methods
- removed nearly all html code rendering methods because of AntvilleLib
- added global renderDateFormatChooser()
2003-08-02 11:57:12 +00:00
Robert Gaggl
aa4f525b47 - changed to use AntvilleLib methods
- moved constant definitions into separate file constants.js
- renamed checkEmail() to evalEmail()
- removed string check functions since they are replaced with AntvilleLib methods
- modified formatTimestamp to use AntvilleLib, site preferences are xml-encoded now
- added constructor functions for Message, Exception and MailException objects, changed interface of getMessage()
- added Method buildAlias() which is called by buildAliasFromFile(), now gets the destination collection as second argument
- modified getRole: use switch() instead of if/else if
- added method extractContent that extracts submitted story/comment content from req.data
- added method sendMail()
2003-08-02 11:25:37 +00:00
Robert Gaggl
7dca7c680a - changed to use AntvilleLib methods
- rewrote input_macro(): using switch instead of if/else if
2003-08-02 10:49:52 +00:00
Robert Gaggl
d9fb8f1ae7 merged changes done in antville_1_0 branch 2003-07-22 12:01:41 +00:00
Hannes Wallnöfer
bdcda3369d Changed RegExp constructors to include the global ("g")
and ignoreCase ("i") flags as required by Rhino.
2003-07-08 14:53:57 +00:00
b6c60e032d removed accidentally committed .cvsignore files 2003-06-05 15:15:24 +00:00
7b5ad03df9 Updated by TortoiseCVS 2003-06-05 14:25:18 +00:00
2fae184b59 changed naming "rules" to derive an alias from the filename for file upload:
* myfile will become "myfile" w/o filetype
* myfile.foo will become "myfile" w/ filetype "foo"
* myfile.foo.bar will become "myfile" w/ filetype "bar"
* .myfile will become "myfile" w/ filetype "myfile"
* .myfile.foo will become "myfile" w/ filetype "foo"
* ".myfile.foo.bar" will become "myfile" w/ filetype "bar"

filenames beginning with a period thus will be transformed into generic ones to avoid them being
invisible on certain operating systems and/or to avoid possible exploits.
2003-04-11 12:48:58 +00:00
24a7f40cf9 fixed a bug in buildAliasFromFile() that prevented files beginning with a period from getting an alias 2003-04-11 09:35:50 +00:00
8b2f9b4f9f modified logo_macro to always return something, thus even <% logo %> w/o a name param renders an antville logo 2003-04-11 09:34:23 +00:00
9a09241698 changed link url output in <% logo %> macro to "http://antville.org" 2003-04-10 13:52:25 +00:00
Robert Gaggl
44c682473d - modified renderInputCheckbox: use value 1 only if no value was passed in parameter object
- fixed indentation
2003-04-07 20:59:10 +00:00
b485fa4148 modified global/sitelist_macro() to only render lists of recently updated sites.
thus, lists of sites sorted alphabetically are now rendered by root/renderSitelist() by extra call in root/list_action() making it possible to put response.prevpage inside root/list.skin.
(note: the macro calls renderSitelist() with appropriate arguments and simply outputs res.data.sitelist immediately. maybe this is not what one could call a clean implementation?)
2003-03-11 13:16:12 +00:00
Robert Gaggl
e4bf73de13 removed module-related code 2003-03-09 18:40:10 +00:00
Robert Gaggl
226573f65f removed module-related stuff that got erroneously commited 2003-03-09 15:00:42 +00:00
524d7a38a3 still fixed html where necessary to achieve maximum xhtml conformance; furthermore i tried to find a more expressive title for every page output (most of them were set to the site title only which does not help a lot when navigating with the browser history); last but not least many editor forms where adapted to gain a concistent general layout. 2003-03-07 19:27:48 +00:00
1b9fab2170 changed econd word in "Content manager" to lower case 2003-03-05 18:43:05 +00:00
a10ccfe0de fixed a wrong html attribute (selected="selected") in renderDropDownBox() 2003-03-05 18:41:07 +00:00
50890759ad validated almost every page (at least apart from the system management stuff) with the w3c validator at http://validator.w3.org and modified the skins where necessary. furthermore i tried to arrange some layouts (files, images, polls) to better and more consistently harmonize with the general antville appearance. 2003-03-05 18:39:37 +00:00
Robert Gaggl
88394d8b36 removed getDefaultDateFormats() - this is not needed anymore since the default format patterns are now stored in a constant array 2003-03-03 12:10:54 +00:00
Robert Gaggl
31fe377aa4 - format-patterns (short and long) are now stored in constant arrays
- changed default-formats for dates (short and long) in formatTimestamp()
- removed rescueing of req.data.submit and req.data.save in rescueText(). this means that a user who lost the session while writing a story will be redirected to the story-form instead of directly saving the story.
2003-03-03 12:07:28 +00:00
Robert Gaggl
3903bdd448 modified formatTimestamp(): re-added setting the timezone, otherwise defining a different timezone in site-preferences has no effect at all (see http://help.antville.org/stories/299705/) 2003-02-24 18:46:39 +00:00
Robert Gaggl
316b89d09b changed input_macro() to handle input type=radio too (contributed by michi platzer) 2003-02-14 13:45:44 +00:00
Robert Gaggl
f3b74ba3b8 replaced app.__app__.getAppDir() with File (app.dir) 2003-02-14 13:38:15 +00:00
Robert Gaggl
8b83030b41 - removed some senseless checks for param-object (if the param-object isn't existing it's an error)
- implemented renderInputRadio (contributed by michi platzer)
2003-02-14 13:37:33 +00:00
c762fd0cb9 modified poll/calcPercent() function to calculate percentages of poll votes to become global/percentage() 2003-02-11 16:59:12 +00:00
b458c2cab1 removed shortcuts from antville. support of shortcut is now optional via zip module 2003-02-11 16:54:07 +00:00
Hannes Wallnöfer
c1ff7f04a5 * Use root.storiesByID to access stories in writeReadLog(). This doesn't require
loading the full story index anymore and is usually faster than loading the site
and all its substories.
* Rely more on default values when constructing Hashtables and Vectors. The first
time go with the default size, then just use the last size as initial size for the new
ones. This is because adjusting the capacity of a Vector or Hashtable with less
then 1000 objects is usually a no-brainer performance-wise.
2003-02-06 14:16:46 +00:00
Robert Gaggl
c6143a2b0c - removed form-encoding of req.data[param.name] in input_macro(): any form-encoding is now done in renderInput* methods if necessary 2003-02-04 12:19:36 +00:00
Robert Gaggl
6b4665cf38 added function isCleanForName() which is needed for checking image- and file-aliases for invalid characters. allowed are a-zA-Z0-9.-_space. the former used function isClean() is a bit restrictive for that, on the other hand umlauts etc. lead to problems. 2003-02-04 12:18:20 +00:00