Commit graph

383 commits

Author SHA1 Message Date
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
Robert Gaggl
fd91f3f7e4 - removed deleting of property "as" in renderInputTextarea(), this is done in renderMarkupPart()
- removed form-encoding in renderInputButton()
- added form-encoding of value in renderInputText()
2003-02-04 12:17:48 +00:00
Robert Gaggl
6d33413ed7 encode image-alttext and title in renderImage(), otherwise an image-alttext with quotes would break the resulting image-tag 2003-02-03 11:17:46 +00:00
Michael Platzer
04ee438634 fixed a bug in evalURL(): http:// was preprended to the URL even if it started with mailto: 2003-01-31 09:39:10 +00:00
Robert Gaggl
663ff77022 added constant for SUBSCRIBER (== 0), fixed comments 2003-01-23 21:33:18 +00:00
Michael Platzer
070b3291b4 disabled the setting of the value of an input-tag to the request-object-value for buttons, since this does not make sense, and furthermore would lead to ugly values as soon as Umlauts are involved; 2003-01-21 10:09:00 +00:00
Robert Gaggl
369756abbd changed regex in activateLinks(): since format() is called before activateLinks() a plain text URL at the beginning of a line will actually have a <br /> before it 2003-01-14 10:56:03 +00:00
Robert Gaggl
287fa12100 changed scheduler-interval to 30 seconds (see http://helma.org/bugs/show_bug.cgi?id=201) 2003-01-14 10:44:23 +00:00
c6331a81b5 any color output is processed by renderColorAsString() in colorpicker_macro() 2003-01-07 16:40:28 +00:00
8520c11785 revamped colorpicker to enable sites with virtual domain hosting (like antville.org) to use the colorpicker, too. currently, the colorpicker scripts are hosted at www.antville.org whily trying to access objects on documents hosted at a different virtual domain (e.g. project.antville.org) and thus violating a browser's security handlers to avoid cross-domain scripting. 2003-01-07 14:45:50 +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
ff01391d37 securityFunctions now need the membership-level of a user as second argument 2003-01-02 19:05:03 +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
c7e599b83e removed functions isUserTrusted() and isUserSysAdmin(), moved checkIfLoggedIn() from objectFunctions.js into this file 2003-01-02 18:54:48 +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
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
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
1c117b9983 now setting app.data.lastAccessLogUpdate to new Date() after scheduler has written the referrers into db. this property is used to check if cached backlinks of a story should be re-rendered or not (in backlinks_macro() of prototype story) 2002-12-08 13:47:34 +00:00
Robert Gaggl
45a454cdc9 changed several macros: now using res.handlers.site instead of path.site to ensure these macros are working also for sites mirrored on the main frontpage 2002-12-02 16:35:06 +00:00
Robert Gaggl
eaf610d942 changed several functions: now using res.handlers.site instead of path.site to ensure these functions are working also for sites mirrored on the main frontpage 2002-12-02 16:32:15 +00:00
Robert Gaggl
c65644b73e changed doWikiStuff: now querying for res.handlers.site instead of path.site (although this function isn't in use) 2002-12-02 16:29:29 +00:00
Robert Gaggl
c952401a3e use "skin" instead of "useskin" as parameter-propertyname 2002-12-02 13:03:56 +00:00
Robert Gaggl
42e0f21580 merged need_for_speed branch 2002-12-01 19:26:40 +00:00
Robert Gaggl
2d138cfcc5 adapted check in autoLogin() because avPw-cookievalue is now created using user-password plus http_remotehost 2002-11-21 13:14:36 +00:00
Robert Gaggl
f1b713b344 re-enabled setting the timezone in formatTimestamp() 2002-10-31 21:08:58 +00:00
Hannes Wallnöfer
89256f53c4 Only create a new string in clipText if the text is actually clipped.
Convert argument to string in parseTimestamp since it may actually be a number.
2002-10-21 10:39:37 +00:00