Revision 2.0.300

Changelog

Revision: 300
Author: jschneiderameos
Date: 13:36:14, jeudi 22 janvier 2009

Message:
api/class.tx_ameosformidable.php:
  -> applied Rego's patch disabling formid collision detection when /meta/fromWrap=false
  -> corrected toWebPath() to leave untouched given pathes when they already start with http:// or https://

rdt_submit/api/class.tx_rdtsubmit.php:
  -> added property /path; if a file-path is defined, submit button will display as an image; use it like: <renderlet:SUBMIT name="imgSubmit" path="http://www.google.com/intl/en_ALL/images/logo.gif" />; given filepath may be absolute, relative, EXT-relative, and may be given as a runneable

  -> revision 300, people !
----
Modified : /trunk/api/base/rdt_submit/api/class.tx_rdtsubmit.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

Revision: 296
Author: jschneiderameos
Date: 17:53:15, mercredi 21 janvier 2009

Message:
All:
  -> applied Oliver Klee's patch about invalid HTML on readonly elements

Subject: [TYPO3-project-formidable] Bug fix: invalid HTML on readonly elements
Hi,

readonly elements (eg. text fields) create invalid HTML because the
label field has a "for" attribute which points to the nonexistent form
element.

Patches for trunk and branch attached.


Oliver


----
Modified : /trunk/api/class.mainrenderer.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

Revision: 295

Author: jschneiderameos
Date: 17:39:50, mercredi 21 janvier 2009

Message:
All:
  -> Applied Oliver Klee's patch about path handling


Subject: [TYPO3-project-formidable] Bug fix: OpenBaseDir warning for file_exists
Hi,

because file_exists is called on a relative path that has a leading
slash (and thus is an absolute path to a nonexistent file), a customer
gets the following errors:

Warning: file_exists() [function.file-exists]: open_basedir restriction
in effect.
File(/typo3conf/ext/onetimeaccount/pi1/onetimeaccount_pi1.xml) is not
within the allowed path(s):
(/home/httpd/vhosts/poweruser.ch/subdomains/www.kvz/httpdocs:/tmp) in
/home/httpd/vhosts/poweruser.ch/subdomains/www.kvz/httpdocs/typo3/ext/ameos_formidable/api/class.tx_ameosformidable.php
on line 6052

The culprit is tx_ameosformidable::toServerPath:

function toServerPath($sPath) {

    $sPath = tx_ameosformidable::toRelPath($sPath);

    if(file_exists($sPath) && is_dir($sPath) && ($sPath{(strlen($sPath) -
1)} !== "/")) {
        $sPath .= "/";
    }


The problem is that toRelPath creates a relative path *plus a leading
slash*.

I've attached patches for the trunk and the branch. (The patches are
quite big due to the trailing whitespace in those files.)

(This took me quite a while to track down because toRelPath wasn't
commented at all and did not actually create a real relative path. Talk
about confusing code ...)

Best regards,


Oliver
----
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

Revision: 294

Author: jschneiderameos
Date: 17:25:51, mercredi 21 janvier 2009

Message:
All:
  -> applied Oliver Klee's patch for trimming unnecessary characters in the class.tx_ameosformidable.php
----
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

Revision: 293
Author: jschneiderameos
Date: 16:43:43, mercredi 21 janvier 2009

Message:
All:
  -> applied patch provided by Oliver Klee

Subject: [TYPO3-project-formidable] Bug fix: silence some EM warnings
Hi,

the attached patch silences the EM warnings about missing/incorrect
XCLASS statements. In addition, it drops some commented-out code and
removes trailing spaces (my IDE did that automatically).

I've attached the trunk and 1.1 branch patch.
Oliver
----
Modified : /trunk/api/base/rdt_selector/api/class.tx_rdtselector.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/minify/lib/jsmin.php
Modified : /trunk/res/minify/minify.php
Modified : /trunk/res/shared/php/class.defaultsandbox.php

Revision: 292
Author: jschneiderameos
Date: 16:12:38, mercredi 21 janvier 2009

Message:
rdt_date/api/class.tx_rdtdate.php:
  -> now using gmstrftime() instead of strftime() on returned timestamp, to get rid of these time-zone problems

rdt_date/res/js/date.js:
  -> specialized clearValue(), alias of clearData()

rdt_listbox/api/class.tx_rdtlistbox.php:
  -> _getHumanReadableValue(): is now able to process comma-separated values when /multiple=true

rdt_listbox/res/js/listbox.js:
  -> added method setNoneSelected(); unselecting all items in the list
  -> specialized clearValue(); alias of setNoneSelected(); clearValue() unselects the items, clearData() removes the items from the list; on many renderlets, however, clearData() and clearValue() do the same

rdt_radio/api/class.tx_rdtradio.php:
  -> _render(): changed the htmlbag returned; now .label is the text-only label, and .label.tag is the HTML label tag, which is consistent with the other renderlets

rdt_searchform/api/class.tx_rdtsearchform.php:
  -> searchform is now a bit more rdt-unprocessed-proof

api/class.maindatahandler.php:
  -> added method getHumanFormData(), alias for _getHumanFormData()

api/class.mainrenderlet.php:
  -> _getItems() is now responsive to /addBlank on renderlets, even when /data/fromTCA=true
----
Modified : /trunk/api/base/rdt_date/api/class.tx_rdtdate.php
Modified : /trunk/api/base/rdt_date/res/js/date.js
Modified : /trunk/api/base/rdt_listbox/api/class.tx_rdtlistbox.php
Modified : /trunk/api/base/rdt_listbox/res/js/listbox.js
Modified : /trunk/api/base/rdt_radio/api/class.tx_rdtradio.php
Modified : /trunk/api/base/rdt_searchform/api/class.tx_rdtsearchform.php
Modified : /trunk/api/class.maindatahandler.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

Revision: 291
Author: jschneiderameos
Date: 16:58:25, vendredi 16 janvier 2009

Message:
rdt_checksingle/api/class.tx_rdtchecksingle.php:
  -> corrected bug resulting in checksingle-value not being saved to DB when not checked

api/class.tx_ameosformidable.php:
  -> fixed a bug in processPerimeters(); preg_replace_callback() doesn't allow fifth parameter "count" in PHP4
----
Modified : /trunk/api/base/rdt_checksingle/api/class.tx_rdtchecksingle.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

Revision: 290
Author: jschneiderameos
Date: 14:22:08, vendredi 16 janvier 2009

Message:
rdt_lister/api/class.tx_rdtlister.php:
  -> modified the way exclusions are done in the link-parameters passed to the _buildLink() method

api/class.mainrenderlet.php:
  -> includeLibs() now checks if /meta/accessibility/useJs=false, and if so, don't include anything

api/class.tx_ameosformidable.php:
  -> added method unsetDeepData(); unset the value in the given nested array at the position pointed by the given $path; used by the lister for better link-params exclusion
  -> added method implodePathesForArray(); returns an array containing all the pathes from root to leaf in the given nested array; separator is "/"
----
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt