You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(21) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(136) |
Feb
(104) |
Mar
(80) |
Apr
(21) |
May
(36) |
Jun
(18) |
Jul
(22) |
Aug
(5) |
Sep
(11) |
Oct
(7) |
Nov
(3) |
Dec
(12) |
2004 |
Jan
(5) |
Feb
|
Mar
(3) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(6) |
Sep
(3) |
Oct
(4) |
Nov
(4) |
Dec
|
2005 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(7) |
May
(4) |
Jun
(7) |
Jul
(4) |
Aug
(4) |
Sep
|
Oct
(8) |
Nov
(4) |
Dec
(1) |
2006 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
(4) |
May
|
Jun
(6) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
(4) |
Mar
(7) |
Apr
(4) |
May
(4) |
Jun
(8) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Norbert B. <br...@ch...> - 2007-05-26 20:19:34
|
Isn't that dangerous function? Imagine something like {eval:return DB_PASSWORD} n. Adam Sanchez wrote: > Hello to all > > I was trying to construct a eval function for the ActionApps with the > objective to avoid to be constructing specific functions in item.php3 > whenever I need one. I use the following syntax > > {eval:<php expresion>} > > With that purpose, I put in the file stringexpand.php3 the following code > > /*****************************************************************************************************/ > elseif ( substr($out, 0, 4) == "eval" ) { > $parts=split(":",$out); > if (isset($debug)) huhl ("function eval is=",$parts[1]);// > $valor = QuoteColons($level, $maxlevel, $parts[1]); > $valor_eval=eval ($valor); > return $valor_eval; > } > /*****************************************************************************************************/ > > The alias works well with simple expressions, like > > {eval:$a=5;return $a;} > > {eval:$a=5;$b=10;$c=$a+$b;return $c;} > > {eval: $b='{text...........5}';return $b;} > > > but it leaves error to me when use native functions php > > {eval: $b=strtolower('{text...........5}');return $b;} > > the error that leaves > > Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in > /home/asocam/public_html/apc-asocam/include/stringexpand.php3(774) : > eval()'d code on line 1 > > when I use > > {eval: $b=5; $a=13; if ($b>$a) {return $b." es mayor";}else {return > $a." es menor";}} > > the error that leaves > > Parse error: syntax error, unexpected T_STRING, expecting '(' in > /home/asocam/public_html/apc-asocam/include/stringexpand.php3(774) : > eval()'d code on line 1 > > Some idea to continue advancing? > > Regards, > > Adam > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > -- Norbert Brazda CHANGENET.SK Mlynske nivy 41, 821 09 Bratislava tel/fax: 02-55560026, 0905-729359 SPAJAME LUDI, KTORI MENIA SVET ............................................................ Prinasame pohlad na svet ocami aktivnych obcanov. Vytvarame nezavisly priestor pre kriticku diskusiu a reflexiu diania okolo nas. Poskytujeme nekomercne internetove sluzby pre neziskove organizacie a samospravy. |
From: Adam S. <a.s...@gm...> - 2007-05-26 14:52:17
|
Hello to all I was trying to construct a eval function for the ActionApps with the objective to avoid to be constructing specific functions in item.php3 whenever I need one. I use the following syntax {eval:<php expresion>} With that purpose, I put in the file stringexpand.php3 the following code /*****************************************************************************************************/ elseif ( substr($out, 0, 4) == "eval" ) { $parts=split(":",$out); if (isset($debug)) huhl ("function eval is=",$parts[1]);// $valor = QuoteColons($level, $maxlevel, $parts[1]); $valor_eval=eval ($valor); return $valor_eval; } /*****************************************************************************************************/ The alias works well with simple expressions, like {eval:$a=5;return $a;} {eval:$a=5;$b=10;$c=$a+$b;return $c;} {eval: $b='{text...........5}';return $b;} but it leaves error to me when use native functions php {eval: $b=strtolower('{text...........5}');return $b;} the error that leaves Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/asocam/public_html/apc-asocam/include/stringexpand.php3(774) : eval()'d code on line 1 when I use {eval: $b=5; $a=13; if ($b>$a) {return $b." es mayor";}else {return $a." es menor";}} the error that leaves Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/asocam/public_html/apc-asocam/include/stringexpand.php3(774) : eval()'d code on line 1 Some idea to continue advancing? Regards, Adam |
From: Honza M. <hon...@ec...> - 2007-05-10 15:20:07
|
Hi, I submitted some bigger changes to AA Subversion, so there is the list of last changes. There are a lot of changes in the code - mainly the visual ones. We made the code more compliant to AA coding standards (http://actionapps.org/aa/doc/coding.html) and we added also phpDoc comments to the functions and classes. Another big area of changes is AJAX editing {ajax}, {htmlajaxtoggle}, ... which is better and better. However, we still need to add some functionality there, so please consider {ajax} syntax to be still experimental at this moment. Current SVN state: The features are stable, but I'm worry about some typo, which could be there after the code cleanup. We plan to upgrade our production server to SVN version next week, so we will see. On our debug server it works well. Last SVN Changes: 07/05/10 (honzam) - much improved AJAX editing - The input types are slowly moved to AA_Widget class. Ajax editing currently uses this approach. {ajax:<item_id>:<field_id>} allows to display correct input type (widget) based on the setting of the field. Not all widgets are currently rewritten for using in AJAX editing, but there is defined fallback mechanism for all the widgets, so all the fields are editable with correct options (including constants, slice items selects, ...). Also parameters for each widget are moved directly to AA_Widget_* classes as AA_Property. It will allow to add new widgets just by defining new class (based on AA_ Widget). All will work automatically including Param Wizard, ... - (mass) Modify content feature of item manager now allows to select not only current items or user selection, but also all itmes in slice, all trashed items, ... - new experimental "named expression" syntax: {define:name:expr} and {var:name:parms...} The {define:name:expr} must be processed before the {var:name} is processed when the page is generated. You can use parameters with {var:name:param1:param2:...:...} the expression then will use _#1, _#2, ... for each parameter, just like: {define:username:My name is#: _#1} and usage {var:username:Joseph} You can use it for - creating on-line "aliases", - passing parameters between nested views, - ... - it is possible to "group by" using only first 1, 2, or 3, letters of the field in views - better spam filter in discussions - http links are not allowed for some fields (like subject, author, ...) - fixed problem with using page scroller on page, which uses slice.php3 and als[] aliases. The aliases are not lost on other pages, now. - storeItem() function now uses $flags array instead of separate function parameters, which is easier to maintain. The new flag "throw_events" introduced - allows to skip throwing event on item insert/update (good for mass import of items) - characterset conversion scripts are updated to the latest version, which fixes one bug in UTF-8 encoding - fixed problem with "call time pass by reference" warning of PHP - cookies manipulation javascript functions moved to aajslib.php3, so it is accessible also on user pages 07/05/09 (honzam) - ActionApps code clean-up. - added comments for functions, classes, ... - cleaner code used, indentation of 4 spaces used in every script,... - the sources should be compliant to ActionApps coding standards (http://actionapps.org/aa/doc/coding.html) Thanks to Lukas Panek. 07/04/15 (honzam) - new version of filling items from form - through aa[] array allowing multiple items to store at once. The format of the data is following aa[i<long_item_id>][modified_field_id][] Note: First brackets contain 'i'+long_item_id when item is edited or 'n<number>_long_slice_id' if you want to add the item to slice_id <number> is used to add more than one item at the time modified_field_id is field_id, where all dots are replaced by '_' we always add [] at the end, so it became array at the end Example: aa[i63556a45e4e67b654a3a986a548e8bc9][headline_______1][] aa[n1_54343ea876898b6754e3578a8cc544e6][publish_date____][] - new AA_Item class which is able to cache items during page display. It should reduce number of SQL queries during page creation - more time information on SQL queries for debugtime option - new class AA_Includer which will automatically include required class definitions (user defined actions/functions) for you in the future (not finished, yet). - some query optimization for GetItemContent() - make sure that $_GET, _$POST, $_COOKIES are always unquoted (check in init_page.php3) 07/03/29 (brazda) - increased max size of val field in active_sessions (to mediumtext) 07/03/06 (honzam) - new {formbreaktop:...} and {formbreakbottom:...} commands for splitting inputform into parts - the ussage is the same as {formbreak:...}, but the tabs are displayed only on top or bottom, respectively - fixed bug of not working user administration, when all reader slices are marked as deleted - new possibility to use utf8 encoding in site module (en-utf8_site_lang.php3) 07/02/28 (honzam) - AA synchronization script in AA Central now is able to synchronize two remote slices. It works, but we need UI improvements and testing 07/02/25 (honzam) - started work on Central - the place, from which you can control many installed AAs. The first script part is used for synchronization of slices across AA installs. @see /apc-aa/central 07/02/22 (honzam) - better spam checking feature are now implemented in filler.php3 (anonymous items) as well as filldisc.php3 (discussion comments). It is based on the fact, that spammers obviously submits many urls, so there is allowed only limited count of links for each field. Four or less urls are always OK. More are allowed just for longer comments (1 link for 250 characters). - ajax methods now uses prototype implementation of AJAX @see http://prototypejs.org - new experimental possibility for "Selectbox" and "Two Boxes" input types to set use item value in conditions. This allows to create Selectbox with Related Items where you show only related Items of given category of edited field: conds[1][place..........1]=1&conds[1][operator]=% 3D&conds[1][value]=_#TOWN_ID_ _#TOWN_ID is alias in current slice, so only items where place..........1 is equal to town of currently edited item is listed in the selectbox. - new possibility to display not only one "field: of current user from Reader Management Slice by {user:address.........}, but you can use any AA string with aliases, ... {user:This is my _#FULLNAME} - new {htmlajaxtoggle:<toggle1>:<text1>:<toggle2>:<url_of_text2>} used for hide/show part of the page (like {htmltoggle}), but the hidden code is loaded into the page right after user demand (click) It creates the link text1 (or text2) and two divs, where only one is visible at the time - first is displayed as default, the second is loaded by AJAX call on demand from specified url. The URL should be on the same server. The /javascript/aajslib.php3 shoud be included to the page by (by <script src="">) Example: {htmlajaxtoggle:more >>:Econnect:less >>:/aboutEcn.htm} - new else_text option for {ifset:<condition>:<text>:<else_text>} - displayed, when the condition is not empty - New {slice:name} function which displays slice name :-) - fixed problem with additional newlines in e-mails sent by AA -- |
From: Honza M. <hon...@ec...> - 2007-04-23 09:07:02
|
Great. Thanks, Honza Michael Moritz píše v So 21. 04. 2007 v 17:30 +0100: > Hi Honza > > I have checked this and a couple of other bugfixes (esp. when running in > fastcgi) into SVN. I have discovered that the line above also needs > stripslashes in order for AA to work with fastcgi. I'll check the fix in. > > > > $ret_string = ($REQUEST_URI AND strpos($REQUEST_URI, '?')) ? > > > > > > substr($REQUEST_URI, strpos($REQUEST_URI, '?')+1) : > > > > > > ( isset($REDIRECT_QUERY_STRING_UNESCAPED) ? > > > > > > $REDIRECT_QUERY_STRING_UNESCAPED : > stripslashes($REDIRECT_QUERY_STRING_UNESCAPED ): > > > > > > stripslashes($QUERY_STRING_UNESCAPED) ); > > mimo > > On Thursday 05 April 2007 14:24, Honza Malik wrote: > > Hi Michael, > > > > You are right, there are additional slashes in the > > $QUERY_STRING_UNESCAPED: > > > > QUERY_STRING_UNESCAPED > > The unescaped version of any search query the client > > sent, with all characters special to the shell escaped > > with a backslash. > > > > So, the solution is to remove it. > > > > Please send your fix to the SVN. You have the access to it - I > > checked the rights right now. > > > > Honza > > > > Michael Moritz píše v Čt 05. 04. 2007 v 12:32 +0100: > > > Hi > > > > > > I think I have found a fix for this but I wonder whether it breaks > > > anything else. > > > > > > In some (probably rare) cases AA uses QUERY_STRING_UNESCAPED. In there > > > the brackets of als get escape -- als\[bla\] and teh following > > > parse_str call will ignore the als. > > > > > > I have made a change in the function shtml_query_string - util.php3, > > > 162 > > > > > > $ret_string = ($REQUEST_URI AND strpos($REQUEST_URI, '?')) ? > > > > > > substr($REQUEST_URI, strpos($REQUEST_URI, '?')+1) : > > > > > > ( isset($REDIRECT_QUERY_STRING_UNESCAPED) ? > > > > > > $REDIRECT_QUERY_STRING_UNESCAPED : > > > > > > stripslashes($QUERY_STRING_UNESCAPED) ); > > > > > > And now it works. Can someone check this / check it into SVN if it's > > > ok. I'm not sure I have SVN access. > > > > > > thanks > > > > > > mimo > > > > > > On Thursday 08 February 2007 18:24, Michael Moritz wrote: > > > > Hi > > > > > > > > > > > > > > > > By now I'm thinking this is a bug in AA. We run aa-2.10.0 > > > > > > > > > > > > > > > > Using my RewriteRule and redirecting to phpinfo displays the correct > > > > > > als. > > > > > > > Redirecting to view.php3 adds the two backslashes. I think what > > > > > > happens is > > > > > > > that in case of being called by <!--#include="/apc-aa/view.php3"--> > > > > > > > > ActionApps tries to parse the $_SERVER['QUERY_STRING'] and gets it > > > > > > wrong > > > > > > > for some reason. > > > > > > > > > > > > > > > > Michael > > > > > > > > On Wednesday 07 February 2007 11:34, Michael Moritz wrote: > > > > > Hi > > > > > > > > > > > > > > > > > > > > I am experimenting with mod_rewrite to make AA URLs more readable > > > > > > and > > > > > > > > also parseable for log file analysers. Now I have run into what > > > > > > seems a > > > > > > > > silly problem: > > > > > > > > > > > > > > > > > > > > If you have a rule like this > > > > > > > > > > > > > > > > > > > > RewriteRule ^/sub-440625 > > > > > > $ /sub.shtml?als[cid]=440624&debug=1&nocache=1 > > > > > > > > [NE] > > > > > > > > > > > > > > > > > > > > it reaches AA/PHP as > > > > > > > > > > > > > > > > > > > > Starting view > > > > > > > > > > ParseViewParameters: vid=XXX, query_string=cmd:set:als:Array > > > > > > ( [cid\] => > > > > > > > > 440624\ > > > > > > > > > > > > > > > > > > > > Note the two trailing backslashes. It seems to be caused by the > > > > > > square > > > > > > > > brackets > > > > > > > > > > > > > > > > > > > > Any ideas how to fix this? > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > Michael > > > > > > ------------------------------------------------------------------------- > > > > > > > > Using Tomcat but need to do more? Need to support web services, > > > > > > security? > > > > > > > > Get stuff done quickly with pre-integrated technology to make your > > > > > > job > > > > > > > > easier. Download IBM WebSphere Application Server v.1.0.1 based on > > > > > > Apache > > > > > > > > Geronimo > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > > > _______________________________________________ > > > > > > > > > > "Did you get answers to your ActionApps-related queries? If yes, > > > > > > please > > > > > > > > help the ActionApps community by uploading the answers onto > > > > > > appropriate > > > > > > > > space in the ActionApps documentation wiki. See the *How to > > > > > > contribute* > > > > > > > > section today http://actionapps.org/en/How_To_Contribute" > > > > > > > > > > _______________________________________________ > > > > > > > > > > apc-aa-general mailing list > > > > > > > > > > apc...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-general > > > > > > ------------------------------------------------------------------------- > > > > > > > Using Tomcat but need to do more? Need to support web services, > > > > > > security? > > > > > > > Get stuff done quickly with pre-integrated technology to make your > > > > > > job > > > > > > > easier. Download IBM WebSphere Application Server v.1.0.1 based on > > > > > > Apache > > > > > > > Geronimo > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > > _______________________________________________ > > > > > > > > Apc-aa-coders mailing list > > > > > > > > Apc...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > > your opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ Apc-aa-coders mailing > > > list Apc...@li... > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > -- |
From: Michael M. <mi...@gn...> - 2007-04-21 16:30:53
|
Hi Honza I have checked this and a couple of other bugfixes (esp. when running in=20 fastcgi) into SVN. I have discovered that the line above also needs=20 stripslashes in order for AA to work with fastcgi. I'll check the fix in. > > $ret_string =3D ($REQUEST_URI AND strpos($REQUEST_URI, '?')) ? > > > > substr($REQUEST_URI, strpos($REQUEST_URI, '?')+1) : > > > > ( isset($REDIRECT_QUERY_STRING_UNESCAPED) ? > > > > $REDIRECT_QUERY_STRING_UNESCAPED : stripslashes($REDIRECT_QUERY_STRING_UNESCAPED ): > > > > stripslashes($QUERY_STRING_UNESCAPED) ); mimo On Thursday 05 April 2007 14:24, Honza Malik wrote: > Hi Michael, > > You are right, there are additional slashes in the > $QUERY_STRING_UNESCAPED: > > QUERY_STRING_UNESCAPED > The unescaped version of any search query the client > sent, with all characters special to the shell escaped > with a backslash. > > So, the solution is to remove it. > > Please send your fix to the SVN. You have the access to it - I > checked the rights right now. > > Honza > > Michael Moritz p=ED=B9e v =C8t 05. 04. 2007 v 12:32 +0100: > > Hi > > > > I think I have found a fix for this but I wonder whether it breaks > > anything else. > > > > In some (probably rare) cases AA uses QUERY_STRING_UNESCAPED. In there > > the brackets of als get escape -- als\[bla\] and teh following > > parse_str call will ignore the als. > > > > I have made a change in the function shtml_query_string - util.php3, > > 162 > > > > $ret_string =3D ($REQUEST_URI AND strpos($REQUEST_URI, '?')) ? > > > > substr($REQUEST_URI, strpos($REQUEST_URI, '?')+1) : > > > > ( isset($REDIRECT_QUERY_STRING_UNESCAPED) ? > > > > $REDIRECT_QUERY_STRING_UNESCAPED : > > > > stripslashes($QUERY_STRING_UNESCAPED) ); > > > > And now it works. Can someone check this / check it into SVN if it's > > ok. I'm not sure I have SVN access. > > > > thanks > > > > mimo > > > > On Thursday 08 February 2007 18:24, Michael Moritz wrote: > > > Hi > > > > > > > > > > > > By now I'm thinking this is a bug in AA. We run aa-2.10.0 > > > > > > > > > > > > Using my RewriteRule and redirecting to phpinfo displays the correct > > > > als. > > > > > Redirecting to view.php3 adds the two backslashes. I think what > > > > happens is > > > > > that in case of being called by <!--#include=3D"/apc-aa/view.php3"--> > > > > > > ActionApps tries to parse the $_SERVER['QUERY_STRING'] and gets it > > > > wrong > > > > > for some reason. > > > > > > > > > > > > Michael > > > > > > On Wednesday 07 February 2007 11:34, Michael Moritz wrote: > > > > Hi > > > > > > > > > > > > > > > > I am experimenting with mod_rewrite to make AA URLs more readable > > > > and > > > > > > also parseable for log file analysers. Now I have run into what > > > > seems a > > > > > > silly problem: > > > > > > > > > > > > > > > > If you have a rule like this > > > > > > > > > > > > > > > > RewriteRule ^/sub-440625 > > > > $ /sub.shtml?als[cid]=3D440624&debug=3D1&nocache=3D1 > > > > > > [NE] > > > > > > > > > > > > > > > > it reaches AA/PHP as > > > > > > > > > > > > > > > > Starting view > > > > > > > > ParseViewParameters: vid=3DXXX, query_string=3Dcmd:set:als:Array > > > > ( [cid\] =3D> > > > > > > 440624\ > > > > > > > > > > > > > > > > Note the two trailing backslashes. It seems to be caused by the > > > > square > > > > > > brackets > > > > > > > > > > > > > > > > Any ideas how to fix this? > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > Michael > > > > -----------------------------------------------------------------------= =2D- > > > > > > Using Tomcat but need to do more? Need to support web services, > > > > security? > > > > > > Get stuff done quickly with pre-integrated technology to make your > > > > job > > > > > > easier. Download IBM WebSphere Application Server v.1.0.1 based on > > > > Apache > > > > > > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > > > _______________________________________________ > > > > > > > > "Did you get answers to your ActionApps-related queries? If yes, > > > > please > > > > > > help the ActionApps community by uploading the answers onto > > > > appropriate > > > > > > space in the ActionApps documentation wiki. See the *How to > > > > contribute* > > > > > > section today http://actionapps.org/en/How_To_Contribute" > > > > > > > > _______________________________________________ > > > > > > > > apc-aa-general mailing list > > > > > > > > apc...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-general > > > > -----------------------------------------------------------------------= =2D- > > > > > Using Tomcat but need to do more? Need to support web services, > > > > security? > > > > > Get stuff done quickly with pre-integrated technology to make your > > > > job > > > > > easier. Download IBM WebSphere Application Server v.1.0.1 based on > > > > Apache > > > > > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > > _______________________________________________ > > > > > > Apc-aa-coders mailing list > > > > > > Apc...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > > > -----------------------------------------------------------------------= =2D- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys-and earn ca= sh > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > > _______________________________________________ Apc-aa-coders mailing > > list Apc...@li... > > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders |
From: Honza M. <hon...@ec...> - 2007-04-05 13:24:48
|
Hi Michael, You are right, there are additional slashes in the $QUERY_STRING_UNESCAPED: QUERY_STRING_UNESCAPED The unescaped version of any search query the client sent, with all characters special to the shell escaped with a backslash. So, the solution is to remove it. Please send your fix to the SVN. You have the access to it - I checked the rights right now. Honza Michael Moritz píše v Čt 05. 04. 2007 v 12:32 +0100: > Hi > > I think I have found a fix for this but I wonder whether it breaks > anything else. > > In some (probably rare) cases AA uses QUERY_STRING_UNESCAPED. In there > the brackets of als get escape -- als\[bla\] and teh following > parse_str call will ignore the als. > > I have made a change in the function shtml_query_string - util.php3, > 162 > > $ret_string = ($REQUEST_URI AND strpos($REQUEST_URI, '?')) ? > > substr($REQUEST_URI, strpos($REQUEST_URI, '?')+1) : > > ( isset($REDIRECT_QUERY_STRING_UNESCAPED) ? > > $REDIRECT_QUERY_STRING_UNESCAPED : > > stripslashes($QUERY_STRING_UNESCAPED) ); > > And now it works. Can someone check this / check it into SVN if it's > ok. I'm not sure I have SVN access. > > thanks > > mimo > > On Thursday 08 February 2007 18:24, Michael Moritz wrote: > > > Hi > > > > > > By now I'm thinking this is a bug in AA. We run aa-2.10.0 > > > > > > Using my RewriteRule and redirecting to phpinfo displays the correct > als. > > > Redirecting to view.php3 adds the two backslashes. I think what > happens is > > > that in case of being called by <!--#include="/apc-aa/view.php3"--> > > > ActionApps tries to parse the $_SERVER['QUERY_STRING'] and gets it > wrong > > > for some reason. > > > > > > Michael > > > > > > On Wednesday 07 February 2007 11:34, Michael Moritz wrote: > > > > Hi > > > > > > > > I am experimenting with mod_rewrite to make AA URLs more readable > and > > > > also parseable for log file analysers. Now I have run into what > seems a > > > > silly problem: > > > > > > > > If you have a rule like this > > > > > > > > RewriteRule ^/sub-440625 > $ /sub.shtml?als[cid]=440624&debug=1&nocache=1 > > > > [NE] > > > > > > > > it reaches AA/PHP as > > > > > > > > Starting view > > > > ParseViewParameters: vid=XXX, query_string=cmd:set:als:Array > ( [cid\] => > > > > 440624\ > > > > > > > > Note the two trailing backslashes. It seems to be caused by the > square > > > > brackets > > > > > > > > Any ideas how to fix this? > > > > > > > > Thanks, > > > > > > > > Michael > > > > > > > > > ------------------------------------------------------------------------- > > > > Using Tomcat but need to do more? Need to support web services, > security? > > > > Get stuff done quickly with pre-integrated technology to make your > job > > > > easier. Download IBM WebSphere Application Server v.1.0.1 based on > Apache > > > > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > > > "Did you get answers to your ActionApps-related queries? If yes, > please > > > > help the ActionApps community by uploading the answers onto > appropriate > > > > space in the ActionApps documentation wiki. See the *How to > contribute* > > > > section today http://actionapps.org/en/How_To_Contribute" > > > > _______________________________________________ > > > > apc-aa-general mailing list > > > > apc...@li... > > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-general > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your > job > > > easier. Download IBM WebSphere Application Server v.1.0.1 based on > Apache > > > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Apc-aa-coders mailing list > > > Apc...@li... > > > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ Apc-aa-coders mailing list Apc...@li... https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- |
From: Michael M. <mi...@gn...> - 2007-04-05 11:33:14
|
Hi I think I have found a fix for this but I wonder whether it breaks anything else. In some (probably rare) cases AA uses QUERY_STRING_UNESCAPED. In there the brackets of als get escape -- als\[bla\] and teh following parse_str call will ignore the als. I have made a change in the function shtml_query_string - util.php3, 162 $ret_string = ($REQUEST_URI AND strpos($REQUEST_URI, '?')) ? substr($REQUEST_URI, strpos($REQUEST_URI, '?')+1) : ( isset($REDIRECT_QUERY_STRING_UNESCAPED) ? $REDIRECT_QUERY_STRING_UNESCAPED : stripslashes($QUERY_STRING_UNESCAPED) ); And now it works. Can someone check this / check it into SVN if it's ok. I'm not sure I have SVN access. thanks mimo On Thursday 08 February 2007 18:24, Michael Moritz wrote: > Hi > > By now I'm thinking this is a bug in AA. We run aa-2.10.0 > > Using my RewriteRule and redirecting to phpinfo displays the correct als. > Redirecting to view.php3 adds the two backslashes. I think what happens is > that in case of being called by <!--#include="/apc-aa/view.php3"--> > ActionApps tries to parse the $_SERVER['QUERY_STRING'] and gets it wrong > for some reason. > > Michael > > On Wednesday 07 February 2007 11:34, Michael Moritz wrote: > > Hi > > > > I am experimenting with mod_rewrite to make AA URLs more readable and > > also parseable for log file analysers. Now I have run into what seems a > > silly problem: > > > > If you have a rule like this > > > > RewriteRule ^/sub-440625$ /sub.shtml?als[cid]=440624&debug=1&nocache=1 > > [NE] > > > > it reaches AA/PHP as > > > > Starting view > > ParseViewParameters: vid=XXX, query_string=cmd:set:als:Array ( [cid\] => > > 440624\ > > > > Note the two trailing backslashes. It seems to be caused by the square > > brackets > > > > Any ideas how to fix this? > > > > Thanks, > > > > Michael > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > "Did you get answers to your ActionApps-related queries? If yes, please > > help the ActionApps community by uploading the answers onto appropriate > > space in the ActionApps documentation wiki. See the *How to contribute* > > section today http://actionapps.org/en/How_To_Contribute" > > _______________________________________________ > > apc-aa-general mailing list > > apc...@li... > > https://lists.sourceforge.net/lists/listinfo/apc-aa-general > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders |
From: Honza M. <hon...@ec...> - 2007-03-30 09:33:56
|
Norbert Brazda píše v Čt 29. 03. 2007 v 12:00 +0200: > I have increased max size of "val" field in active_sessions table (from > text to mediumtext type). "text" was not big enough to fit data when > sending emails from AA admin interface to large number (few thousands) > of readers. OK. > I would also like to add "send email" action from item list in reader > management modules to all modules/slices (I already did that on our > install, but would like to submit it to svn). It enables you to send > emails also to email addresses stored in normal slices (usefull for > example for slice that holds directory of organizations or address > book). Any objections? OK. It would be even better if you add this action only to slices, where some e-mail field is present. Honza > > n. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > -- |
From: Norbert B. <br...@ch...> - 2007-03-29 10:01:16
|
I have increased max size of "val" field in active_sessions table (from text to mediumtext type). "text" was not big enough to fit data when sending emails from AA admin interface to large number (few thousands) of readers. I would also like to add "send email" action from item list in reader management modules to all modules/slices (I already did that on our install, but would like to submit it to svn). It enables you to send emails also to email addresses stored in normal slices (usefull for example for slice that holds directory of organizations or address book). Any objections? n. |
From: Marek T. <ma...@gn...> - 2007-03-14 12:40:02
|
Hi, changing the Item Filter to Item filter uid:34 fixed it. Sorry to bother Marek > Hi, > there seems to be a bug in current SVN in user profiles > > Fatal error: Call to undefined function default_fnc_sted_by.......() in > /home/mathaba/apc-aa/include/profile.class.php3 on line 152 > > This is the profile: > > Item order Last Edit Descending Delete > Item filter Posted by 34 Delete > Hide and Fill External news Text from 'Parameter' 0 Delete > Predefine field Category Text from 'Parameter' MathabaOnly Delete > Predefine field Editor's note Text from 'Parameter' 5 Delete > Predefine field Image URL Text from 'Parameter' > http://mathaba.net/news/image/mnews.png Delete > Predefine field Image width Text from 'Parameter' 125 Delete > Predefine field Place Text from 'Parameter' Iraq Delete > Predefine field Source Text from 'Parameter' Source Delete > Predefine field Full Source URL Text from 'Parameter' /z.htm? > > Any ideas ? > > Thanks a lot > Marek > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > -- ------------------------------- Marek Tichy GreenNet Systems Administrator tel. 08450554011 +44 (0)20 70650935 (office) +44 (0)20 81232656 (Skype IN) tichy_marek (Skype ID) ------------------------------- |
From: Marek T. <ma...@gn...> - 2007-03-13 11:54:06
|
Hi, there seems to be a bug in current SVN in user profiles Fatal error: Call to undefined function default_fnc_sted_by.......() in /home/mathaba/apc-aa/include/profile.class.php3 on line 152 This is the profile: Item order Last Edit Descending Delete Item filter Posted by 34 Delete Hide and Fill External news Text from 'Parameter' 0 Delete Predefine field Category Text from 'Parameter' MathabaOnly Delete Predefine field Editor's note Text from 'Parameter' 5 Delete Predefine field Image URL Text from 'Parameter' http://mathaba.net/news/image/mnews.png Delete Predefine field Image width Text from 'Parameter' 125 Delete Predefine field Place Text from 'Parameter' Iraq Delete Predefine field Source Text from 'Parameter' Source Delete Predefine field Full Source URL Text from 'Parameter' /z.htm? Any ideas ? Thanks a lot Marek |
From: Honza M. <hon...@ec...> - 2007-03-07 08:15:35
|
Hi Norbert, Strange, it works for us well in php5, so it is probably php4 related problem. Special characters are not quoted (replaced by _AA_* strings) on storing to the database. The text in database is exactly the same, as you type to the form. The special strings we use during displaying (unaliasing) AA string. The unaliasing works this way: Ex: some text {ifset:{_#HEADLINE}:<h1>_#1</h1>} here // say that healdline is "I'm headline (with {brackets})") 1) unalias innermost curly brackets. It is {_#HEADLINE}, so the by unaliasing this we get: Ex: I'm headline (with {brackets}) But we do not want to put such string instead of {_#HEADLINE}, since then would be the inner most curly brackets the {brackets} string. We do not want to unalias inside headline text, so we replace all the control characters by substitutes: Ex: some text {ifset:I'm headline _AA_OpEnPaR_with _AA_OpEnBrAcE_brackets_AA_ClOsEbRaCe__AA_ClOsEpAr_:<h1>_#1</h1>} here 2) Then we continue with standard unaliasing for inner most curly brackets, so we get: Ex: some text <h1>I'm headline _AA_OpEnPaR_with _AA_OpEnBrAcE_brackets_AA_ClOsEbRaCe__AA_ClOsEpAr_</h1> here 3) after all we replace back all the substitutes: Ex: some text <h1>I'm headline (with {brackets})</h1> here See: /include/stringexpand.php3 - function QuoteColons() Honza Norbert Brazda píše v Po 05. 03. 2007 v 19:02 +0100: > After upgrade to latest SVN version of AA (under php 4) I see strange > strings like _AA_CoLoN_ or _AA_OpEnBrAcE_, _AA_ClOsEbRaCe_, > _AA_OpEnPaR_, _AA_ClOsEpAr_ displayed in the text of the articles (in > text fields, text areas, etc.). > > It seems that these special characters - :, (, ), {, } - are quoted when > stored into database but not unqouted before they are displayed in some > cases. E.g. _#HEADLINE is shown correctly but {headline........} or > {_#HEADLINE} is shown without unquoting (i.e. with _AA_...). > > Is that another php 4 bug or is it just "normal" bug? > > > > norbert > br...@ch... > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > -- |
From: Honza M. <hon...@ec...> - 2007-03-06 14:31:54
|
Fixed in SVN. Honza Marek Tichy píše v St 28. 02. 2007 v 20:34 +0100: > Hi, > I'm using the latest SVN (last change 02/06/07 in CHANGES), mysql 5.0.32, php5.2.0-8 > > It's unlikely that anybody hits this bug but when Reader Management Minimal and > all other RM slices are marked as deleted, you get > > Warning: array_keys() [function.array-keys]: The first argument should be an > array in /var/www/apc-aa/include/perm_core.php3 on line 529 > Database error: Invalid SQL: SELECT o1.object_id, o3.value FROM object_text as > o1 INNER JOIN object_text as o2 ON o2.object_id=o1.object_id INNER JOIN > object_text as o3 ON o3.object_id=o1.object_id WHERE o1.property = 'aa_type' AND > o1.value = 'AA_Set' AND o2.property = 'aa_owner' AND o2.value IN () AND > o3.property = 'aa_name' > Error Number (description): 1064 (You have an error in your SQL syntax; check > the manual that corresponds to your MySQL server version for the right syntax to > use near ') AND o3.property = 'aa_name'' at line 3) > -- |
From: Norbert B. <br...@ch...> - 2007-03-05 18:02:44
|
After upgrade to latest SVN version of AA (under php 4) I see strange strings like _AA_CoLoN_ or _AA_OpEnBrAcE_, _AA_ClOsEbRaCe_, _AA_OpEnPaR_, _AA_ClOsEpAr_ displayed in the text of the articles (in text fields, text areas, etc.). It seems that these special characters - :, (, ), {, } - are quoted when stored into database but not unqouted before they are displayed in some cases. E.g. _#HEADLINE is shown correctly but {headline........} or {_#HEADLINE} is shown without unquoting (i.e. with _AA_...). Is that another php 4 bug or is it just "normal" bug? norbert br...@ch... |
From: Marek T. <ma...@gn...> - 2007-02-28 19:58:39
|
Hi, I'm using the latest SVN (last change 02/06/07 in CHANGES), mysql 5.0.32, php5.2.0-8 It's unlikely that anybody hits this bug but when Reader Management Minimal and all other RM slices are marked as deleted, you get Warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/apc-aa/include/perm_core.php3 on line 529 Database error: Invalid SQL: SELECT o1.object_id, o3.value FROM object_text as o1 INNER JOIN object_text as o2 ON o2.object_id=o1.object_id INNER JOIN object_text as o3 ON o3.object_id=o1.object_id WHERE o1.property = 'aa_type' AND o1.value = 'AA_Set' AND o2.property = 'aa_owner' AND o2.value IN () AND o3.property = 'aa_name' Error Number (description): 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND o3.property = 'aa_name'' at line 3) -- ------------------------------- Marek Tichy GreenNet Systems Administrator tel. 08450554011 +44 (0)20 70650935 (office) +44 (0)20 81232656 (Skype IN) tichy_marek (Skype ID) ------------------------------- |
From: Michael M. <mi...@gn...> - 2007-02-08 18:24:49
|
Hi By now I'm thinking this is a bug in AA. We run aa-2.10.0 Using my RewriteRule and redirecting to phpinfo displays the correct als. Redirecting to view.php3 adds the two backslashes. I think what happens is that in case of being called by <!--#include="/apc-aa/view.php3"--> ActionApps tries to parse the $_SERVER['QUERY_STRING'] and gets it wrong for some reason. Michael On Wednesday 07 February 2007 11:34, Michael Moritz wrote: > Hi > > I am experimenting with mod_rewrite to make AA URLs more readable and also > parseable for log file analysers. Now I have run into what seems a silly > problem: > > If you have a rule like this > > RewriteRule ^/sub-440625$ /sub.shtml?als[cid]=440624&debug=1&nocache=1 [NE] > > it reaches AA/PHP as > > Starting view > ParseViewParameters: vid=XXX, query_string=cmd:set:als:Array ( [cid\] => > 440624\ > > Note the two trailing backslashes. It seems to be caused by the square > brackets > > Any ideas how to fix this? > > Thanks, > > Michael > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > "Did you get answers to your ActionApps-related queries? If yes, please > help the ActionApps community by uploading the answers onto appropriate > space in the ActionApps documentation wiki. See the *How to contribute* > section today http://actionapps.org/en/How_To_Contribute" > _______________________________________________ > apc-aa-general mailing list > apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-general |
From: Honza M. <hon...@ec...> - 2007-02-08 17:03:48
|
Hello, Norbert Brazda pointed out, that there are some problems with current SVN version of AA under PHP4. The Error looks like: > Parse error*: parse error, unexpected T_OBJECT_OPERATOR in > */www/htdocs/apc-aa/include/item.php3* on line *379 and is caused by code: return AA_Slices::getSlice($this->getSliceID())->getWidgetAjaxHtml($field= _id, $this->getItemID(), $this->getAaValue($field_id)); The problem is, that PHP4 do not allow to use function call as object, so getSlice(..)->getWidgetAjaxHtml() causes problem. The solution is to rewrite the code to: $slice =3D AA_Slices::getSlice($this->getSliceID()); return $slice->getWidgetAjaxHtml($field_id, $this->getItemID(), $this->ge= tAaValue($field_id)); There is more than this one occurrence of this problem in SVN. I didn't noticed the problem, since we are no longer use PHP4 (BTW, current PHP5 works very well with eAccelerator - al least the versions we are using). I hope there will not be more such problems, since I still trying to make AA compatible with PHP4. Norbert is currently fixing the problems and he will commit the changes to the SVN. Thanks Norbert! Honza Honza Malik p=ED=B9e v =DAt 06. 02. 2007 v 20:18 +0100: > Hello, >=20 > today I submitted a lot of changes to Subversion and days before als= o > to CVS. >=20 > The changes in CVS are mainly bugfixes, so the code from CVS should > be "super" stable, right now. We ran this code for months on our > production server.=20 > (It was probably last changes commited to CVS. Bye bye, CVS). >=20 > Changes in Subversion are huge. Many code inside AA was rewritten to > use new object approach in order to be more easy extensible (No, packed > ids are still not removed, but it will be next step). Also there are > some new features. However, the code is already quite stable. We are > running this SVN version of AA on our main production server for three > weeks already, we fixed all the bugs we found, so I can say it works. I= f > there will not be any problems with this version I will regenerate > language files and release it as AA 2.12 >=20 > There is need to update database structure using sql_update.php3 > script to run SVN version, since the definition of object_* tables is > different a bit. >=20 >=20 > Current SVN state:=20 > Stable - used on Econnect's production server for 22 days > (PHP 5.2.1-dev, eAccelerator-0.9.6-svn282-dev, MySQL 5.0.27= ) >=20 > Last SVN Changes: >=20 > 02/06/07 (honzam) > - new possibility to grant AA permissions to only subset of users from > Reader Slice. The "Reader Set" is defined by normal conditions, so > it is extremely powerful - you can use any field of Reader slice > for it. The conditions are controlled be new AA_Set feature, which > holds set of conditions and sorts (we will use such "Sets" as named > conditions to view.php3/slice.php3 in near future). The set is > defined on "Slice Admin -> Design - Sets of Items". > The "reader set" works just with LDAP permission system, right now, > but it is very easy to adapt it also for SQL permissions. > - image manipulation library phpThumb integrated into AA. You can use > it by calling /img.php script: > <img src=3D"/aaa/img.php?src=3Dhttp://example.com/img/flower.gif&w=3D= 150"> > (w=3D150 means that image will be converted to width=3D150). > All the parameters you can see on > http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php > (just use img.php instead of phpThumb.php in the examples) > The modified images are cached in <IMG_UPLOAD_PATH>/phpThumbcache/ > - new possibility to define external script as Control File for Site > Module, so you can give this script to your users without the need t= o > give them also rights to edit AA files. > There are two possibilities, how to control the apc_state > variable. It could be se in ./modules/site/sites/site_...php > control file. The control file could be managed only by people, > who have the access to the AA sources on the server. If we want t= o > permit control of the site to extenal people, which do not have > access to AA scripts directory, then it is possible to them to no= t > fill "site control file" in site configuration dialog and then > call this script from their own file, where the new $apc_state, > $slices4cache and $site_id will be defined and passed by GET > method. Just like this: > $url =3D 'http://example.org/apc-aa/modules/site/site.php3?'; > $url .=3D http_build_query( array( > 'apc_state' =3D> $apc_state, > 'slices4cache' =3D> $slices4cache, > 'site_id' =3D> 'ae54378beac7c7e8a998e7de8a998e7= a' > )); > readfile($url); > See apc-aa/modules/site/sites/external_controlfile_example.php3 for > more info > - Basic spam filter solution for discussions. It is based > on the presumption, that the robots fill all the fields in the form, > even the hidden ones. filler.php3 then never stores comment, which > would have "answer" field filled. So if you add say: > <style type=3D"text/css"> > .skryt { display:none }; > </style> > <div class=3D"skryt"> > Do not fill, please: <input type=3D"text" name=3D"answer" value= =3D""> > </div> > to the form, then the comments form is "protected". It works quite > well, but of course it should be improved in future. > - stringexpand functions was converted to classes AA_Stringexpand_..., > which is more flexible and will allow to add new custom syntaxes > {custom_function:..} in the future. > - the result of most time consuming stringexpand functions is cached > now, so if you will use {ids:...} and then again {ids:...} with the > same parameters during displaying one page, then the database is > contacted just once. The unaliasing is faster then (thanks to new > AA_Stringexpand class). > - new {htmltoggle:<toggle1>:<text1>:<toggle2>:<text2>} which creates > the link text1 (or text2) and two divs, where only one is visible at > the time > see http://www.actionapps.org/en/Syntax > - new parameter <restict_ids> for > {ids:<slices>:<conds>[:<sort>[:<delimiter>[:<restrict_ids>]]]} > see http://www.actionapps.org/en/Syntax for more details > - better {icq}, {skype}, {jabber} handling > - speedup of AA unaliasing by better regular expression handling > (x-times speedup for complicated AA expressions - like forms) > - new {aggregate:function:ids_string:expression:parameter} which > operates across set of items. The possible functions are: > sum, average, concat, count > parameter is used just for concat (concatenation) as delimiter > expression could be field_id as well as alias > (see http://www.actionapps.com/en/Syntax for more details) > - new {strlen:<string>} alias function (returning length of the string= ) > - new parameter "add" for {substr:<string>:<begin>:<length>:<add>} > alias function. The <add> parameter is added to the returning string= , > but only if the resulting string is shorter than current <string>. > It is useful if you want to short the headline to max 60 characters, > and add three dot, in the case the headline is shorted: > {substr:{headline........}:0:60:...} > - new {trim:<string>} alias function - removes beginning and ending > spaces from the <string> - see php trim() function > - new possibility for {conds:<string>} alias function. Now you can > create condition based on value of the field (including multivalue): > {view.php3?vid=3D9&cmd[9]=3Dc-1-{conds:category.......1}}, where > {conds:category.......1} is expanded to something like > '%22Squash%22%20OR%20%22Table%20Tenis%22', which is urlencoded > "Squash" OR "Table Tenis". This way you can find all people, who hav= e > at least one common hobby with you. > - new {constant:<group_id>:<value>:<what>} which allows to get > the 'Name' of constant in <group_id> for the specified <value> > say {constant:apc_main_categs_:ENV:name} returns "Environment". > Default value for <what> parameter is "name", so if you want to know > the name, then you can omit it. > - session ids are passed by GET (again) - not by cookies, since there > was problems with it (the tabs in firefox shares the cookies, > so multiple tabs uses the same session id, which is still not ok > for some pages in AA administration. > - It is possible to specify more than one searchbar default condition > in profiles, now; code moved to more object oriented - using > AA_Conditions, ... > - textareas in AA forms automatically get bigger, if it already > contains long text > - admin interface for discussion now contains information about > IP address of comments writer > - new possibility to use conds[] and sort[] also for constants used fo= r > displaying some Input Type. Now you are able to sort the constants > transparently at the time it is displayed in the selectbox, for > example. You are also able to display only constants containing > "Nature", have value bigger than 1000, ... > - added some classes to discussion output, so it is more skinable, now. > - better handling of empty search row (change in inner code) in search > bar > - added modules/polls to SVN repository - This module allows voting > on page - it uses "phpPolls" code and it is not completed yet. > Anyway it is better to have it in the svn in order other can look > and finish it since Pavel Jisl (original author) is no longer > available for this work. > - GUI improvement in view setting - link to view is not in popup > - Cleanup > - class names now uses standard naming convention - prefix AA_ and > name with all first letters in upper case (manager =3D> AA_Manage= r) > - global functions now rewritten to static class methods, where > appropriate (sliceid2name() =3D> AA_Slices::getName()) > - class methods begins with lower caps letter > - cleanup of QueryZids() parameters - fields are no longer needed, > as well as other unused parameters > - new AA_Object, AA_Property, AA_Widget, AA_Fields, AA_File_Wrapper= , > AA_Set classes. Many uses standard AA properties and prepared for > easy extensibility of the code > - regular expressions ereg functions replaced by faster preg > functions, where possible > - new AA_File_Wrapper class, which is used for accessing local > as well as remote (http:, ftp:) files > - new implementation of storable_class - more object oriented, more > robust. It is based on AA_Object super-parent class and its > getPersistentProperties() method, which should be overriden in al= l > Child classes which want to be persistent. The objects are stored > to new object tables (object_text, object_integer, object_float). > - improved valiadion class AA_Validate > - new javascript AA_Config object storing AA_INSTALL_PATH, > ... for usage in AA javascripts > - added "prototype" javascript library to the AA. It have some very > nice features like function $(), which is shortcut for > document.getElementById, DOM manipulation functions AJAX, ... We wil= l > use it intensively in near future. > see http://www.prototypejs.org/ > - database structure updated - fields in object_* tables renamed to > match common structure > - pagecache uses REPLACE command where possible > (instead of SELECT+INSERT/UPDATE) > - new optimization functions in AA Optimize > - Convert no longer used slice.category_sort to slice.group_by > - Copy Content Table >=20 > - fixed banner parameter and some more fixes in slice.php3 > - fixed problem with some filenames in CSV import > - small changes and bugfixes in slice export, authentication and > pagecache > - fixed database structure to be compatible with MySQL > 4.1 > (binary changed to varbinary) > - fixed sql permission system, so it works also if crypt() function > of the system uses Blowfish encryption > - fixed problems with charsets in AA Admin interface on some systems > (php 5.2?) > - the xinha (wysiwyg HTML area) do not report javascript error, now > (dirty hack, for now) > - fixed bug in link checking code (used in Links module) - the server > response wasn't parsed well, when the response text contains > apostrophe (Italian server responses for 404 uses such character) > - fixed bug in {math} - now work again >=20 >=20 > Current CVS state: Stable > Used on Econnect's production servers for months >=20 > Last CVS Changes: >=20 > 02/01/07 (honzam) > - Basic spam filter solution for discussions. It is based > on the presumption, that the robots fill all the fields in the form, > even the hidden ones. filler.php3 then never stores comment, which > would have "answer" field filled. So if you add say: > <style type=3D"text/css"> > .skryt { display:none }; > </style> > <div class=3D"skryt"> > Do not fill, please: <input type=3D"text" name=3D"answer" value= =3D""> > </div> > to the form, then the comments form is "protected". It works quite > well, but of course it should be improved in future. > - textareas in AA forms automatically get bigger, if it already > contains long text > - new {htmltoggle:<toggle1>:<text1>:<toggle2>:<text2>} which creates > the link text1 (or text2) and two divs, where only one is visible at > the time > see http://www.actionapps.org/en/Syntax > - new parameter <restict_ids> for > {ids:<slices>:<conds>[:<sort>[:<delimiter>[:<restrict_ids>]]]} > see http://www.actionapps.org/en/Syntax for more details > - better {icq}, {skype}, {jabber} handling > - fixed problem with some filenames in CSV import > - small changes and bugfixes in slice export, authentication and > pagecache >=20 > 12/14/06 (honzam) > - speedup of AA unaliasing by better regular expression handling > (x-times speedup for complicated AA expressions - like forms) > - new {strlen:<string>} alias function (returning length of the string= ) > - new parameter "add" for {substr:<string>:<begin>:<length>:<add>} > alias function. The <add> parameter is added to the returning string= , > but only if the resulting string is shorter than current <string>. > It is useful if you want to short the headline to max 60 characers, > and add three dot, in the case the headline is shorted: > {substr:{headline........}:0:60:...} > - new {trim:<string>} alias function - removes beginning and ending > spaces from the <string> - see php trim() function > - new possibility for {conds:<string>} alias function. Now you can > create condition based on value of the field (including multivalue): > {view.php3?vid=3D9&cmd[9]=3Dc-1-{conds:category.......1}}, where > {conds:category.......1} is expanded to something like > '%22Squash%22%20OR%20%22Table%20Tenis%22', which is urlencoded > "Squash" OR "Table Tenis". This way you can find all people, who hav= e > at least one common hobby with you. > - new {constant:<group_id>:<value>:<what>} which allows to get > the 'Name' of constant in <group_id> for the specified <value> > say {constant:apc_main_categs_:ENV:name} returns "Environment". > Default value for <what> parameter is "name", so if you want to know > the name, then you can omit it. > - new possibility to define external script as Control File for Site > Module, so you can give this script to your users without the need t= o > give them also rights to edit AA files. > There are two possibilities, how to control the apc_state > variable. It could be se in ./modules/site/sites/site_...php > control file. The control file could be managed only by people, > who have the access to the AA sources on the server. If we want t= o > permit control of the site to external people, which do not have > access to AA scripts directory, then it is possible to them to no= t > fill "site control file" in site configuration dialog and then > call this script from their own file, where the new $apc_state, > $slices4cache and $site_id will be defined and passed by GET > method. Just like this: >=20 > $url =3D 'http://example.org/apc-aa/modules/site/site.php3?'; > $url .=3D http_build_query( array( > 'apc_state' =3D> $apc_state, > 'slices4cache' =3D> $slices4cache, > 'site_id' =3D> 'ae54378beac7c7e8a998e7de8a998e7= a' > )); > readfile($url); > - admin interface for discussion now contains information about > IP address of comments writer > - fixed database structure to be compatible with MySQL > 4.1 > (binary changed to varbinary) > - fixed sql permission system, so it works also if crypt() function > of the system uses Blowfish encryption > - fixed problems with charsets in AA Admin interface on some systems > (php 5.2?) > - the xinha (wysiwyg HTML area) do not report javascript error, now > (dirty hack, for now) > =20 > 11/15/06 (honzam) =20 > - new possibility to use conds[] and sort[] also for constants used for > displaying some Input Type. Now you are able to sort the constants > transparently at the time it is displayed in the selectbox, for > example. You are also able to display only constants containing > "Nature", have value bigger than 1000, ... > - stringexpand functions was converted to classes AA_Stringexpand_..., > which is more flexible and will allow to add new custom syntaxes > {custom_function:..} in the future. > - the result of most time consuming stringexpand functions is cached > now, so the unaliasing is faster. > - added some classes to discussion output, so it is more skinable, now. > - fixed bug in link checking code (used in Links module) - the server > response wasn't parsed well, when the response text contains > apostrophe (Italian server responses for 404 uses such character) > - better handling of empty search row (change in inner code) in search > bar > - site module now supports external control file, so the users, who > want to use site module do not need the access to AA scripts. > The control file looks exactly as the normal control file for site > module but at the end we call the site.php3 with site_id, > slices4cache and apc_state parameters, just like: > $url =3D 'http://example.org/apc-aa/modules/site/site.php3?'; > $url .=3D http_build_query( array( > 'apc_state' =3D> $apc_state, > 'slices4cache' =3D> $slices4cache, > 'site_id' =3D> 'ae54378beac7c7e8a998e7de8a998e7= a' > )); > readfile($url); > - fixed bug in {math} - now work again > =20 > 10/14/06 (brazda) > - added profile support and profile settings button also for groups >=20 --=20 |
From: Honza M. <hon...@ec...> - 2007-02-06 19:19:09
|
Hello, today I submitted a lot of changes to Subversion and days before also to CVS. The changes in CVS are mainly bugfixes, so the code from CVS should be "super" stable, right now. We ran this code for months on our production server. (It was probably last changes commited to CVS. Bye bye, CVS). Changes in Subversion are huge. Many code inside AA was rewritten to use new object approach in order to be more easy extensible (No, packed ids are still not removed, but it will be next step). Also there are some new features. However, the code is already quite stable. We are running this SVN version of AA on our main production server for three weeks already, we fixed all the bugs we found, so I can say it works. If there will not be any problems with this version I will regenerate language files and release it as AA 2.12 There is need to update database structure using sql_update.php3 script to run SVN version, since the definition of object_* tables is different a bit. Current SVN state: Stable - used on Econnect's production server for 22 days (PHP 5.2.1-dev, eAccelerator-0.9.6-svn282-dev, MySQL 5.0.27) Last SVN Changes: 02/06/07 (honzam) - new possibility to grant AA permissions to only subset of users from Reader Slice. The "Reader Set" is defined by normal conditions, so it is extremely powerful - you can use any field of Reader slice for it. The conditions are controlled be new AA_Set feature, which holds set of conditions and sorts (we will use such "Sets" as named conditions to view.php3/slice.php3 in near future). The set is defined on "Slice Admin -> Design - Sets of Items". The "reader set" works just with LDAP permission system, right now, but it is very easy to adapt it also for SQL permissions. - image manipulation library phpThumb integrated into AA. You can use it by calling /img.php script: <img src="/aaa/img.php?src=http://example.com/img/flower.gif&w=150"> (w=150 means that image will be converted to width=150). All the parameters you can see on http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php (just use img.php instead of phpThumb.php in the examples) The modified images are cached in <IMG_UPLOAD_PATH>/phpThumbcache/ - new possibility to define external script as Control File for Site Module, so you can give this script to your users without the need to give them also rights to edit AA files. There are two possibilities, how to control the apc_state variable. It could be se in ./modules/site/sites/site_...php control file. The control file could be managed only by people, who have the access to the AA sources on the server. If we want to permit control of the site to extenal people, which do not have access to AA scripts directory, then it is possible to them to not fill "site control file" in site configuration dialog and then call this script from their own file, where the new $apc_state, $slices4cache and $site_id will be defined and passed by GET method. Just like this: $url = 'http://example.org/apc-aa/modules/site/site.php3?'; $url .= http_build_query( array( 'apc_state' => $apc_state, 'slices4cache' => $slices4cache, 'site_id' => 'ae54378beac7c7e8a998e7de8a998e7a' )); readfile($url); See apc-aa/modules/site/sites/external_controlfile_example.php3 for more info - Basic spam filter solution for discussions. It is based on the presumption, that the robots fill all the fields in the form, even the hidden ones. filler.php3 then never stores comment, which would have "answer" field filled. So if you add say: <style type="text/css"> .skryt { display:none }; </style> <div class="skryt"> Do not fill, please: <input type="text" name="answer" value=""> </div> to the form, then the comments form is "protected". It works quite well, but of course it should be improved in future. - stringexpand functions was converted to classes AA_Stringexpand_..., which is more flexible and will allow to add new custom syntaxes {custom_function:..} in the future. - the result of most time consuming stringexpand functions is cached now, so if you will use {ids:...} and then again {ids:...} with the same parameters during displaying one page, then the database is contacted just once. The unaliasing is faster then (thanks to new AA_Stringexpand class). - new {htmltoggle:<toggle1>:<text1>:<toggle2>:<text2>} which creates the link text1 (or text2) and two divs, where only one is visible at the time see http://www.actionapps.org/en/Syntax - new parameter <restict_ids> for {ids:<slices>:<conds>[:<sort>[:<delimiter>[:<restrict_ids>]]]} see http://www.actionapps.org/en/Syntax for more details - better {icq}, {skype}, {jabber} handling - speedup of AA unaliasing by better regular expression handling (x-times speedup for complicated AA expressions - like forms) - new {aggregate:function:ids_string:expression:parameter} which operates across set of items. The possible functions are: sum, average, concat, count parameter is used just for concat (concatenation) as delimiter expression could be field_id as well as alias (see http://www.actionapps.com/en/Syntax for more details) - new {strlen:<string>} alias function (returning length of the string) - new parameter "add" for {substr:<string>:<begin>:<length>:<add>} alias function. The <add> parameter is added to the returning string, but only if the resulting string is shorter than current <string>. It is useful if you want to short the headline to max 60 characters, and add three dot, in the case the headline is shorted: {substr:{headline........}:0:60:...} - new {trim:<string>} alias function - removes beginning and ending spaces from the <string> - see php trim() function - new possibility for {conds:<string>} alias function. Now you can create condition based on value of the field (including multivalue): {view.php3?vid=9&cmd[9]=c-1-{conds:category.......1}}, where {conds:category.......1} is expanded to something like '%22Squash%22%20OR%20%22Table%20Tenis%22', which is urlencoded "Squash" OR "Table Tenis". This way you can find all people, who have at least one common hobby with you. - new {constant:<group_id>:<value>:<what>} which allows to get the 'Name' of constant in <group_id> for the specified <value> say {constant:apc_main_categs_:ENV:name} returns "Environment". Default value for <what> parameter is "name", so if you want to know the name, then you can omit it. - session ids are passed by GET (again) - not by cookies, since there was problems with it (the tabs in firefox shares the cookies, so multiple tabs uses the same session id, which is still not ok for some pages in AA administration. - It is possible to specify more than one searchbar default condition in profiles, now; code moved to more object oriented - using AA_Conditions, ... - textareas in AA forms automatically get bigger, if it already contains long text - admin interface for discussion now contains information about IP address of comments writer - new possibility to use conds[] and sort[] also for constants used for displaying some Input Type. Now you are able to sort the constants transparently at the time it is displayed in the selectbox, for example. You are also able to display only constants containing "Nature", have value bigger than 1000, ... - added some classes to discussion output, so it is more skinable, now. - better handling of empty search row (change in inner code) in search bar - added modules/polls to SVN repository - This module allows voting on page - it uses "phpPolls" code and it is not completed yet. Anyway it is better to have it in the svn in order other can look and finish it since Pavel Jisl (original author) is no longer available for this work. - GUI improvement in view setting - link to view is not in popup - Cleanup - class names now uses standard naming convention - prefix AA_ and name with all first letters in upper case (manager => AA_Manager) - global functions now rewritten to static class methods, where appropriate (sliceid2name() => AA_Slices::getName()) - class methods begins with lower caps letter - cleanup of QueryZids() parameters - fields are no longer needed, as well as other unused parameters - new AA_Object, AA_Property, AA_Widget, AA_Fields, AA_File_Wrapper, AA_Set classes. Many uses standard AA properties and prepared for easy extensibility of the code - regular expressions ereg functions replaced by faster preg functions, where possible - new AA_File_Wrapper class, which is used for accessing local as well as remote (http:, ftp:) files - new implementation of storable_class - more object oriented, more robust. It is based on AA_Object super-parent class and its getPersistentProperties() method, which should be overriden in all Child classes which want to be persistent. The objects are stored to new object tables (object_text, object_integer, object_float). - improved valiadion class AA_Validate - new javascript AA_Config object storing AA_INSTALL_PATH, ... for usage in AA javascripts - added "prototype" javascript library to the AA. It have some very nice features like function $(), which is shortcut for document.getElementById, DOM manipulation functions AJAX, ... We will use it intensively in near future. see http://www.prototypejs.org/ - database structure updated - fields in object_* tables renamed to match common structure - pagecache uses REPLACE command where possible (instead of SELECT+INSERT/UPDATE) - new optimization functions in AA Optimize - Convert no longer used slice.category_sort to slice.group_by - Copy Content Table - fixed banner parameter and some more fixes in slice.php3 - fixed problem with some filenames in CSV import - small changes and bugfixes in slice export, authentication and pagecache - fixed database structure to be compatible with MySQL > 4.1 (binary changed to varbinary) - fixed sql permission system, so it works also if crypt() function of the system uses Blowfish encryption - fixed problems with charsets in AA Admin interface on some systems (php 5.2?) - the xinha (wysiwyg HTML area) do not report javascript error, now (dirty hack, for now) - fixed bug in link checking code (used in Links module) - the server response wasn't parsed well, when the response text contains apostrophe (Italian server responses for 404 uses such character) - fixed bug in {math} - now work again Current CVS state: Stable Used on Econnect's production servers for months Last CVS Changes: 02/01/07 (honzam) - Basic spam filter solution for discussions. It is based on the presumption, that the robots fill all the fields in the form, even the hidden ones. filler.php3 then never stores comment, which would have "answer" field filled. So if you add say: <style type="text/css"> .skryt { display:none }; </style> <div class="skryt"> Do not fill, please: <input type="text" name="answer" value=""> </div> to the form, then the comments form is "protected". It works quite well, but of course it should be improved in future. - textareas in AA forms automatically get bigger, if it already contains long text - new {htmltoggle:<toggle1>:<text1>:<toggle2>:<text2>} which creates the link text1 (or text2) and two divs, where only one is visible at the time see http://www.actionapps.org/en/Syntax - new parameter <restict_ids> for {ids:<slices>:<conds>[:<sort>[:<delimiter>[:<restrict_ids>]]]} see http://www.actionapps.org/en/Syntax for more details - better {icq}, {skype}, {jabber} handling - fixed problem with some filenames in CSV import - small changes and bugfixes in slice export, authentication and pagecache 12/14/06 (honzam) - speedup of AA unaliasing by better regular expression handling (x-times speedup for complicated AA expressions - like forms) - new {strlen:<string>} alias function (returning length of the string) - new parameter "add" for {substr:<string>:<begin>:<length>:<add>} alias function. The <add> parameter is added to the returning string, but only if the resulting string is shorter than current <string>. It is useful if you want to short the headline to max 60 characers, and add three dot, in the case the headline is shorted: {substr:{headline........}:0:60:...} - new {trim:<string>} alias function - removes beginning and ending spaces from the <string> - see php trim() function - new possibility for {conds:<string>} alias function. Now you can create condition based on value of the field (including multivalue): {view.php3?vid=9&cmd[9]=c-1-{conds:category.......1}}, where {conds:category.......1} is expanded to something like '%22Squash%22%20OR%20%22Table%20Tenis%22', which is urlencoded "Squash" OR "Table Tenis". This way you can find all people, who have at least one common hobby with you. - new {constant:<group_id>:<value>:<what>} which allows to get the 'Name' of constant in <group_id> for the specified <value> say {constant:apc_main_categs_:ENV:name} returns "Environment". Default value for <what> parameter is "name", so if you want to know the name, then you can omit it. - new possibility to define external script as Control File for Site Module, so you can give this script to your users without the need to give them also rights to edit AA files. There are two possibilities, how to control the apc_state variable. It could be se in ./modules/site/sites/site_...php control file. The control file could be managed only by people, who have the access to the AA sources on the server. If we want to permit control of the site to external people, which do not have access to AA scripts directory, then it is possible to them to not fill "site control file" in site configuration dialog and then call this script from their own file, where the new $apc_state, $slices4cache and $site_id will be defined and passed by GET method. Just like this: $url = 'http://example.org/apc-aa/modules/site/site.php3?'; $url .= http_build_query( array( 'apc_state' => $apc_state, 'slices4cache' => $slices4cache, 'site_id' => 'ae54378beac7c7e8a998e7de8a998e7a' )); readfile($url); - admin interface for discussion now contains information about IP address of comments writer - fixed database structure to be compatible with MySQL > 4.1 (binary changed to varbinary) - fixed sql permission system, so it works also if crypt() function of the system uses Blowfish encryption - fixed problems with charsets in AA Admin interface on some systems (php 5.2?) - the xinha (wysiwyg HTML area) do not report javascript error, now (dirty hack, for now) 11/15/06 (honzam) - new possibility to use conds[] and sort[] also for constants used for displaying some Input Type. Now you are able to sort the constants transparently at the time it is displayed in the selectbox, for example. You are also able to display only constants containing "Nature", have value bigger than 1000, ... - stringexpand functions was converted to classes AA_Stringexpand_..., which is more flexible and will allow to add new custom syntaxes {custom_function:..} in the future. - the result of most time consuming stringexpand functions is cached now, so the unaliasing is faster. - added some classes to discussion output, so it is more skinable, now. - fixed bug in link checking code (used in Links module) - the server response wasn't parsed well, when the response text contains apostrophe (Italian server responses for 404 uses such character) - better handling of empty search row (change in inner code) in search bar - site module now supports external control file, so the users, who want to use site module do not need the access to AA scripts. The control file looks exactly as the normal control file for site module but at the end we call the site.php3 with site_id, slices4cache and apc_state parameters, just like: $url = 'http://example.org/apc-aa/modules/site/site.php3?'; $url .= http_build_query( array( 'apc_state' => $apc_state, 'slices4cache' => $slices4cache, 'site_id' => 'ae54378beac7c7e8a998e7de8a998e7a' )); readfile($url); - fixed bug in {math} - now work again 10/14/06 (brazda) - added profile support and profile settings button also for groups -- |
From: Honza M. <hon...@ec...> - 2006-10-16 08:27:24
|
Good job, Norbert! It works. Now posted also to SVN. Thanks, Honza =20 Norbert Brazda p=ED=B9e v So 14. 10. 2006 v 08:12 +0200: > I have modified AA in CVS so it now support profiles for groups >=20 > I needed group profiles in order to set reasonable defaults for=20 > ReaderManagement users and did not want to set profile for each new use= r=20 > (and common profile was not usefull as it sets defaults also for AA=20 > admins/editors). >=20 >=20 > There were only small changes in: > include/profile.class.php3 > admin/se_users.php3 >=20 >=20 > n. >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >=20 --=20 |
From: Norbert B. <br...@ch...> - 2006-10-14 06:12:45
|
I have modified AA in CVS so it now support profiles for groups I needed group profiles in order to set reasonable defaults for ReaderManagement users and did not want to set profile for each new user (and common profile was not usefull as it sets defaults also for AA admins/editors). There were only small changes in: include/profile.class.php3 admin/se_users.php3 n. |
From: Honza M. <hon...@ec...> - 2006-10-13 16:00:20
|
Hi, I sent some cleanup changes and new features to Subversion as well as to old CVS. Since the Subversion code is still not stable enough for running on production server, I decided to submit fixes also to old CVS. So, if you want to update your production server, please do it from old CVS. If you want to check last features of AA, use Subversion. Regards, Honza Current CVS state: Stable Used on Econnect's production servers Last CVS Changes: 10/11/06 - new {icq:<user_id>[:<action>[:<style>]]} expressions, which display (honzam) ICQ status of the user. user_id - ICQ ID of the user action - add | message style - 0-26 - displayed icon type (see: http://www.icq.com/features/web/indicator.html) - new {field:<field_id>:name} expression - displays name of the field as defined for inputform - {ids:<slices>:<conds>[:<sort>[:<delimiter>]]} modified to be able to get ids from more than one slice (slice ids are delimited by dash -) - "No Item Message" in Item Manager is unaliased now (= you can use AA expressions there) - new possibility to set ordering of items in Item Manager on two or more columns in profiles - fixed bug with automatic feeding (did not work, when item was posted posted to holding bin first) - fixed problem with two boxes inputform - the order of values now persist - fixed _#ID_COUNT to display also 0 - paths to scripts are relative again for the admin interface - it is possible to order values also by "level" (of nesting) as defined in Constants for the field - UI change - added another 4 empty rows for setting of permissions to slice for user 08/21/06 - fixed security hole for setup.php3 (honzam) - admin/console.php3 now allows run any php script including calling AA functions. Only superadministrators could use it (after they uncomment one "exit" line in the code. - New possibility to delete more than one slice in one step on slice deletion page. You can also delete slices, which are not marked as deleted. - new possibilty to use Local URL Picker as input type Thanks to Omar Martinez / Jaime Torres - Superadmin is now able to change posted_by field through "Modify content" feature of Admin interface - New {expresions} - {log:number:base} for logarithm - {unpack:pcked_id} for unpacking packed id - es language files updated (just 2 additions) - fixed bug "When you add a value in a hierarchicalConstant it does not respond to the onChange triger on the mainbox" Thanks to Omar Martinez - fixed feeding bug - the items was rewritten or imported once more if they was edited in the source slice - fixed small bugs ------------------------------------------------------------------------------- Current SVN state: Unstable (most features working, but I expect some bugs, there) Last SVN Changes: 10/13/06 - fixed bug in new input validation code (honzam) 10/11/06 - new {icq:<user_id>[:<action>[:<style>]]} expressions, which display (honzam) ICQ status of the user. user_id - ICQ ID of the user action - add | message style - 0-26 - displayed icon type (see: http://www.icq.com/features/web/indicator.html) - new {field:<field_id>:name} expression - displays name of the field as defined for inputform - {ids:<slices>:<conds>[:<sort>[:<delimiter>]]} modified to be able to get ids from more than one slice (slice ids are delimited by dash -) - "No Item Message" in Item Manager is unaliased now (= you can use AA expressions there) - new possibility to set ordering of items in Item Manager on two or more columns in profiles - fixed bug with automatic feeding (did not work, when item was posted posted to holding bin first) - fixed problem with two boxes inputform - the order of values now persist - fixed _#ID_COUNT to display also 0 - paths to scripts are relative again for the admin interface - it is possible to order values also by "level" (of nesting) as defined in Constants for the field - UI change - added another 4 empty rows for setting of permissions to slice for user - new validation class - optimize/repair scripts was moved to AA -> Optimize (aa_optimize.php3) script - work on history tracking begins - see AA -> history 08/29/06 - new version of "Modify Content..." window - better and universal (honzam) interface, more options, easy to write your own new transformation class (see AA_Transformation class) - "No Item Message" is unaliased now, for Item Manager - fixed problem with wrong url of "related Item Window" and "Parameter Wizard" - fix: _#ID_COUNT returns string "0" if no item is found (instead of empty string) - new AA_Condition class for conditions manipulations in searchlib.php3 - fixed email permissions file to use User and Group constatnts instead of translated strings 08/22/06 - fixed security hole for setup.php3 (honzam) - changes all binary fields in database to varbinary, which is needed for MySQL >=5.0.17 in sql_update.ph3; new repair routine in test.php3 which repairs db when you already applied unpatched sql_update.php3 script to MySQL >=5.0.17 database, so your fields are binary and users can't login, do not see constants, ... - admin/console.php3 now allows run any php script including calling AA functions. Only superadministrators could use it (after they uncomment one "exit" line in the code. - New possibility to delete more than one slice in one step on slice deletion page. You can also delete slices, which are not marked as deleted. - new possibilty to use Local URL Picker as input type Thanks to Omar Martinez / Jaime Torres - Superadmin is now able to change posted_by field through "Modify content" feature of Admin interface - New {expresions} - {log:number:base} for logarithm - {unpack:pcked_id} for unpacking packed id - es language files updated (just 2 additions) - fixed bug "When you add a value in a hierarchicalConstant it does not respond to the onChange triger on the mainbox" Thanks to Omar Martinez - fixed feeding bug - the items was rewritten or imported once more if they was edited in the source slice - fixed small bugs - begin the work on aa_synchronize.php3 script, which allows to sync setting of two similar AA installs or just slices -- |
From: Sarah Escandor-T. <se...@ap...> - 2006-08-12 10:38:03
|
hi, i'm trying to install the new version 2.10 but unable to create the admin user... it says "can't assign super access permission".... i think the sql checks the user from the reader management slice but unable to find one... i'm not really sure where to find the code to correct this. SELECT DISTINCT item.id as itemid FROM item LEFT JOIN content as c0 ON (c0.item_id=item.id AND (c0.field_id='headline........' OR c0.field_id is NULL)) WHERE item.slice_id = 'ReaderManagement' AND ( ( item.status_code=1 AND (item.publish_date <= '1155375000') AND (item.expiry_date > '1155375000') ) ) AND ( (c0.text = "abbottph") ) ORDER BY item.publish_date DESC -- AA slice_id: *table* *type* *possible_keys* *key* *key_len* *ref* *rows* *Extra* Impossible WHERE noticed after reading const tables Query duration: 0.000141143798828 Rows returned: 0 SELECT LAST_INSERT_ID() AS lid FROM users *table* *type* *possible_keys* *key* *key_len* *ref* *rows* *Extra* users index PRIMARY 4 2 Using index Query duration: 0.000173091888428 Rows returned: 2Can't assign super access permission. thanks, --sarah |
From: Honza M. <hon...@ec...> - 2006-07-27 16:03:22
|
Current SVN state: Unstable (most features working, but I expect some bugs, there) Last Changes: 07/27/06 (honzam) - moved from CVS to SVN (Subversion) - "Modify Content" group operation in Item Manager is improved. It uses new AA_Transformation API, so new transformation function could be easily added. There is new "Translate" transformation, by which you are able to transform one value to one or more values. It works also with multivalues. It uses new TabWidgetToggle for parameter setting. - New possibility to change URL of uploaded files/images (per slice basis). Images was stored with general AA URL for all slices, which is not always what you want. Now you can redefine it on slice setting page. Not 100% finished, yet. - Session IDs are propageted via cookies (if possible - if not, URL parameter used - just as before) - AA_Slices and AA_Views classes used for slice/view properties, where possible. Those classes caches slice/view properties, so it reduces number of database calls. - Started work on AA_Components class used for plugable classes. - Started work on TabWidgetToggle - Widget, which allows you to set different parameters for different options in the selectbox above. Say you want to inport data from CSV or XML - for both formats you have to set another parameters, so you first select the CSV and the parameters like "delimiter" apears on the screen - Started work on AJAX editing - Proof of Concept - you can use it like {ajax:{_#ITEM_ID_}:headline........[:_#HOW2SHOW]} which means, that _#HOW2SHOW for _#ITEM_ID_ will be printed inside the div and after click on it the textfield for headline........ is displayed and the field could be directly edited. It works in AA Item Manager as well as on public page - you just need to attach javascript/ajax.js to your page. It is just experimental version, yet. - Started work on AA_ChangesMonitor class which will track the field changes/history - we are still at the beginning, here. - New class AA_Fields holding information the field information - New AA_Metabase class which will be used to hold all the informations about table structure. It will be additional database abstraction layer. - New AA_Condition class for conds[] handling - aainputfield renamed to AA_Inputfield (used new naming convention for AA classes). - views class renamed and AA_Views. AA_Views was improved to use static class variable to cache the view properties which reduces the number of database queries. Static class variable also allows us not to use global variables for that cache. - grabber class renamed to AA_Grabber, saver class to AA_Saver and moved to grabber.class.php3 file -- |
From: Honza M. <hon...@ec...> - 2006-07-27 15:57:25
|
Hello, Today I switched the the main ActionApps repository from CVS to Subversion (SVN), which was one of the task planed as AA code cleanup. CVS access is still available, but it is no longer synchronized with SVN, so there we should commit only bugfixes to current 2.10.0 AA release. I'm asking developers to patch not only CVS, in such case, but also svn repository, since this process is not automatic. The main ActionApps trunk is however in svn repository, where I also committed first batch of changes which leads forward to AA 3.0 release. The CHANGES I will send to apc-aa-codes list soon. The work with svn is very similar to CVS (a bit easier). For checkout the working copy of AA use the following command: svn co https://svn.sourceforge.net/svnroot/apc-aa/trunk aa-svn To commit changes use: svn ci -m 'Repository moved to SVN' CHANGES If you want to write to svn repository you need the write permission. I granted the write access to all active developers of AA (hopefully), but maybe I forgot someone. Feel free to contact me if you want to be AA developer with svn write access. Enabled developers are: adunayevich ariel_barbosa brazda drifter77 honzam marek_tichy marphy megalinuxpro mimo omar_colnodo peptur pisanlov sarahtomas For more information about Sourceforge's SVN see: http://sourceforge.net/svn/?group_id=6341 Regards, Honza -- |
From: Honza M. <hon...@ec...> - 2006-06-30 14:28:31
|
Hi Norbert, You are right, I forgot to add the table to the sql_update.php3 script. I'm sorry. Now fixed in CVS (but, not tested yet). In fact there are three new tables, which is planed to be used as general object store - something similar as 'content' table. Instead of fields we will store there object properties.=20 In case of xmlclient.php3 we are storing there (experimentally, for now) AA_CSV_Importer object. The structure is a bit improved compared to 'content' table - we use three tables - for each "datatype" one (text, number, float). This approach do not waste space (in content table we use two columns - text and number, where only one holds content). Float (real) numbers are impossible to store in 'content' table for now. Honza Structure, grabbed from our database=20 (ignore the last row for each table (ENGINE=3D...))=20 -- Generation Time: Jun 30, 2006 at 03:56 PM -- Server version: 5.0.21 -- PHP Version: 5.1.4 CREATE TABLE `object_float` ( `id` bigint(20) NOT NULL auto_increment COMMENT 'just for row identific= ation', `object_id` varbinary(32) NOT NULL default '', `property` varbinary(16) NOT NULL default '', `priority` smallint(20) default NULL, `float` double default NULL, `flag` smallint(6) default NULL, PRIMARY KEY (`id`), KEY `item_id` (`object_id`,`property`,`float`), KEY `integer` (`float`) ) ENGINE=3DInnoDB DEFAULT CHARSET=3Dcp1250 AUTO_INCREMENT=3D1 ; CREATE TABLE `object_integer` ( `id` bigint(20) NOT NULL auto_increment COMMENT 'just for row identific= ation', `object_id` varbinary(32) NOT NULL default '', `property` varbinary(16) NOT NULL default '', `priority` smallint(20) default NULL, `integer` bigint(20) default NULL, `flag` smallint(6) default NULL, PRIMARY KEY (`id`), KEY `item_id` (`object_id`,`property`,`integer`), KEY `integer` (`integer`) ) ENGINE=3DInnoDB DEFAULT CHARSET=3Dcp1250 AUTO_INCREMENT=3D1 ; CREATE TABLE `object_text` ( `id` bigint(20) NOT NULL auto_increment COMMENT 'just for row identific= ation', `object_id` varbinary(32) NOT NULL default '', `property` varbinary(16) NOT NULL default '', `priority` smallint(20) default NULL, `text` longtext, `flag` smallint(6) default NULL, PRIMARY KEY (`id`), KEY `text` (`text`(10)), KEY `item_id` (`object_id`,`property`,`text`(16)) ) ENGINE=3DInnoDB DEFAULT CHARSET=3Dcp1250 AUTO_INCREMENT=3D73 ; =20 Norbert Brazda p=ED=B9e v P=E1 30. 06. 2006 v 13:26 +0200: > Some scripts (e.g. xmlclient.php3) now use new "object_text" table but=20 > the table is not created by sql_update.php3 script. Inbound AA/RSS feed= s=20 > are thus not working. >=20 > I guess that the table should look something like this: >=20 > CREATE TABLE `object_text` ( > `object_id` tinyint(6) NOT NULL auto_increment, > `property` varbinary(32) NOT NULL default '', > `text` blob NOT NULL, > UNIQUE KEY `object_id` (`object_id`), > KEY `property` (`property`) > ); >=20 >=20 >=20 > norbert > br...@ch... >=20 >=20 >=20 > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >=20 --=20 |