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: Mitra <mi...@ea...> - 2003-03-28 08:24:32
|
At 12:52 PM +0100 25/2/03, Honza Malik wrote: >Hi Norbert, > >On So, 2003-02-22 at 01:09, Norbert Br=E1zda wrote: >> Hi Honza, >> >> From: "Honza Malik" <hon...@ec...> >> > I posted some changes to CVS. The list of changes follows. Most of >> > changes is related to new Links module, which is not complete, yet. At >> > least, user management functions should work, now. >> >> I am curious how the new links module differ from normal modules (e.g. w= hat >> are the new functions that are not provided by standard module (called >> "news" due to historical reasons)). > >Links module is integration of our older - independent links aplication >into AA. It uses another tables for storing links, categories, ... but >it uses the same permission system and the interface. You will be able >to manage pages like (http://ekolink.cz). > Is Links working yet When I login as superadmin on earth.path.net/apc-aa+/admin (updated from CVS= ) And go to AA and Click on "Add" next to Links (there is nothing in the drop-down) then I get "No permission to edit module" from links/modedit.php3 - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-28 01:51:14
|
Oops - that's what I usually do .... but now I check history looks like I missed it this time. - Mitra At 11:16 AM +0100 27/3/03, Honza Malik wrote: >CVS is not broken. There is just new directory /include/htmlMimeMail. >You have to invoke: > >cvs update -d > >command. Mention the -d parameter which creates also new cvs directory >in your installation. BTW, it is better to run 'cvs update -d' all the >time you want to update AA. > > Honza > >On =E2t, 2003-03-27 at 05:52, Mitra wrote: >> Yuk >> >> The CVS distribution is broken, its missing htmlMimeMail/htmlMimeMail >> which is included by include/mail.php3 >> >> please could you check it in urgently! >> >> - Mitra >> >> -- >> Mitra Technology Consulting - www.mitra.biz - mi...@mi... >> 02-6684-8096 or 0414-648-0722 >> >> Life is a Mystery to be Lived, not a Problem to be Solved >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: >> The Definitive IT and Networking Event. Be There! >> NetWorld+Interop Las Vegas 2003 -- Register today! >> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >> _______________________________________________ >> Apc-aa-coders mailing list >> Apc...@li... >> https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >> > > > > >------------------------------------------------------- >This SF.net email is sponsored by: >The Definitive IT and Networking Event. Be There! >NetWorld+Interop Las Vegas 2003 -- Register today! >http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-28 01:51:09
|
I'd rather not support more logging until we get the log viewer working. Then I think it would be a good idea, especially for logging warnings. - mitra At 11:22 AM +0100 27/3/03, Honza Malik wrote: >There is no log viewer in AA (except phpMyAdmin). In fact, we currently >log only a few events, but it is not problem to support logging on more >places. > > Honza > >On =E2t, 2003-03-27 at 03:45, Mitra wrote: >> We have a function in apc-aa called writeLog which adds data to a >>"Log" table. >> >> Does anyone have any tools for looking at that log, there is nothing >> in the admin -> AA screen that I can see? >> >> - Mitra >> >> -- >> Mitra Technology Consulting - www.mitra.biz - mi...@mi... >> 02-6684-8096 or 0414-648-0722 >> >> Life is a Mystery to be Lived, not a Problem to be Solved >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: >> The Definitive IT and Networking Event. Be There! >> NetWorld+Interop Las Vegas 2003 -- Register today! >> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >> _______________________________________________ >> Apc-aa-coders mailing list >> Apc...@li... >> https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >> > > > > >------------------------------------------------------- >This SF.net email is sponsored by: >The Definitive IT and Networking Event. Be There! >NetWorld+Interop Las Vegas 2003 -- Register today! >http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-27 11:41:20
|
Honza asked me to write up tags a bit ..... Here is a first cut, I'll put it in the FAQ once I've answered any questions this generates. - Mitra The concept of Tagged IDS is simple - when we store an id in a field, we sometimes want to say something about it. the idea came from the directional/bidirectional links which in fact are not stored like that, but are used internally to store one or two uni-directional links. A tagged id consists of some string followed by 24-32 hex digits. (It should be 32, but there are some buggy shorter ids due to old bugs in apc-aa). Typically the string will be a single letter g-zA-Z or a punctuation character. Tagged id's may not be supported everywhere yet. They are supported .... In zids.php3, which means that most other places in the code can trivially support them transparently. In the Slice Admin -> Fields you can set a field to Relational Window, and then use hte parameter wizzard to set which buttons to use (a set of letters matching the values of the tag), then add an extra parameter (not yet supported by the wizzard) that refers to a table. The table is in the $tps array, defined in itemfunc.php3, if you want to use anything other than the two standard ones "AMB" (Add, Mutual, Backwards) and GYR (Good, OK, Bad) then you need to somewhere in your code do something lke $GLOBALS[tps][MyTable] => array ( G => array ( prefix => 'Good:', tag => 'x', str => _m("Good") ), Y => array ( prefix => 'OK :', tag => 'y', str => _m("OK") ), R => array ( prefix => 'Bad :', tag => 'z', str => _m("Bad") )); In the Relational window, if you have specified a table, then it will be shown as buttons - just the ones picked in the second parameter. THIS USED TO WORK, BUT SOME CHANGE TO THE CODE BY SOMEONE ELSE HAS BROKEN IT,, AND I DON'T HAVE TIME TO FIX IT. Note that the "tag" from this field is what is stored. You can then use this tagged field in many ways, for example it can form part of a search string, to look for only "Good" links, or you could use a switch statement to figure out how to use it. You should NEVER have to write code in your site to strip the tag away from the value, for example if you pass a tagged id to e.g. view.php3?vid=123&cmd[123]=x-123-z1234567890abcdef1234567890abcdef then view.php3 SHOULD understand this correctly as refering to item 1234567890abcdef1234567890abcdef A new pseudo-field is created idtag........... contains the tag anywhere that GetItemContent is used to get the fields (i.e. should be everywhere). So you can put {switch({idtag...........})x:GOOD} into your code. - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Honza M. <hon...@ec...> - 2003-03-27 10:22:19
|
There is no log viewer in AA (except phpMyAdmin). In fact, we currently log only a few events, but it is not problem to support logging on more places. Honza On =C8t, 2003-03-27 at 03:45, Mitra wrote: > We have a function in apc-aa called writeLog which adds data to a "Log" t= able. >=20 > Does anyone have any tools for looking at that log, there is nothing=20 > in the admin -> AA screen that I can see? >=20 > - Mitra >=20 > --=20 > Mitra Technology Consulting - www.mitra.biz - mi...@mi... > 02-6684-8096 or 0414-648-0722 >=20 > Life is a Mystery to be Lived, not a Problem to be Solved >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >=20 |
From: Honza M. <hon...@ec...> - 2003-03-27 10:16:42
|
CVS is not broken. There is just new directory /include/htmlMimeMail. You have to invoke: cvs update -d command. Mention the -d parameter which creates also new cvs directory in your installation. BTW, it is better to run 'cvs update -d' all the time you want to update AA. Honza On =C8t, 2003-03-27 at 05:52, Mitra wrote: > Yuk >=20 > The CVS distribution is broken, its missing htmlMimeMail/htmlMimeMail=20 > which is included by include/mail.php3 >=20 > please could you check it in urgently! >=20 > - Mitra >=20 > --=20 > Mitra Technology Consulting - www.mitra.biz - mi...@mi... > 02-6684-8096 or 0414-648-0722 >=20 > Life is a Mystery to be Lived, not a Problem to be Solved >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >=20 |
From: Mitra <mi...@ea...> - 2003-03-27 09:10:11
|
A bug in something I did with RSS feeds has shown up a different bug that I think needs fixing - but I'm not sure ..... If expiry_date is NOT set, for example because its not made required in the fields, then various things break, specifically the Item_Manager wont display any item where expiry_date is null, This is because it does a select .... where expiry_date > '$now' This fails if there is no expiry_date, or no publish_date with Active count showing a number, but nothing appear in Item Manager Unfortunately , the reverse is not true, so ..... NOT (expiry_date < '$now') also fails. I've changed it in item_manager to expiry_date > $now OR expiry_date IS NULL which works fine, but haven't committed to CVS. There are other places where expiry_date is tested against now specifically for example ... getxml (and I can't figure out what its doing here) searchlib - I think i can figure this out util.php3:GetItemHeadlines mailman , not clear whats happening here and lots more .... Any comments - does this need changing, ideally people could change it in their own code to save me breaking code I'm not familiar with. - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-27 04:53:06
|
Yuk The CVS distribution is broken, its missing htmlMimeMail/htmlMimeMail which is included by include/mail.php3 please could you check it in urgently! - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-27 02:50:19
|
We have a function in apc-aa called writeLog which adds data to a "Log" table. Does anyone have any tools for looking at that log, there is nothing in the admin -> AA screen that I can see? - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-25 04:58:27
|
I'm not sure .... I wrote the zids creator to create a new zids array, Jakub wrote the refill function because he was concerned about the PHP overhead of recreating the object. I don't believe creating new objects is an overhead in PHP - unless of course there is overhead in the constructor, for example to create network connections such as in "new db_AA " I'm not sure how Jakub is using Refill, I can say that none of my code relies on this behavior, I'm always using "new" so its fine to change it for me if it doesn't affect Jakub's code. - Mitra At 3:50 PM +0100 24/3/03, Honza Malik wrote: >Hi Mitra, > > I have a question about zids usage. There is refill($initial) zids >method which: > > a) clears zids array and assigns new values, if $initial variable is > array > > b) adds new zid to array (without clearing), if $initial is single > value > >Is it desired behavior (clearing x keeping content) or is it bug? > > Honza > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-24 21:34:56
|
Agreed, its done ... >At 3:41 PM +0100 24/3/03, Honza Malik wrote: > I tried to update doc directory on sourceforge.net, but I haven't >permission to this directory. I think it is good idea to create aa >directory "group writable" after all cvs checkouts in order other people >can do fixes in the code/doc. Last changes are made by Mitra, so Mitra, >can you please make it apc-aa group writable? -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Honza M. <hon...@ec...> - 2003-03-24 14:50:58
|
Hi Mitra, I have a question about zids usage. There is refill($initial) zids method which: a) clears zids array and assigns new values, if $initial variable is array b) adds new zid to array (without clearing), if $initial is single value Is it desired behavior (clearing x keeping content) or is it bug? Honza |
From: Honza M. <hon...@ec...> - 2003-03-24 14:41:56
|
Hi, I tried to update doc directory on sourceforge.net, but I haven't permission to this directory. I think it is good idea to create aa directory "group writable" after all cvs checkouts in order other people can do fixes in the code/doc. Last changes are made by Mitra, so Mitra, can you please make it apc-aa group writable? Thanks, Honza |
From: Honza M. <hon...@ec...> - 2003-03-24 14:01:19
|
03/24/03 - fixed bug of empty row appearing in "Two boxes" input type (honzam) - new keyword "<!--Vacuum-->" can be used in "No item message" parameter in view or slice setup, which will display nothing - new view.php3 command 'o', which behaves exactly like 'x' but item hit-count is not increased - old selected values are highlighted ("sel_on" style) in SELECT-boxes - AA finder search now searches also in view ids, slice names and ids - fixed problem, when no file is specified in {include()} inline alias - fixed problem with language support in loginform (with new mgettext language environment) - fixed bug in random message view (random view parameter) (it did not work after zids update) - fixed problem with default date, setting from anonymous input forms - fixed problem with status_code, edited_by and posted_by field in anonymous input forms - it is not required even if marked as required in fields setting - fixed bug in "Two boxes" input type - it works again. Fixed warnings messages appering when array is empty in "Two boxes" input type. - fixed "Bad include file" problem in 'AA finder', 'Delete slice', ... - better debugtimes support in site module - added functions for clearing zids and adding new elements to zids 03/20/03 - constants view - added new aliases for description, level, (honzam) short_id - added "url" view for list of urls (good for search engines) - permission to empty trash is asigned also to Editors (not only to administrators) - fixed bug with anonymous user login - fixed bug - not replaced lineends on Mac-type texts Honza |
From: Mitra <mi...@ea...> - 2003-03-19 21:09:15
|
That sounds like a good idea, until we get the software fixed. I wonder how many Apache installations allow it. - Mitra At 1:30 PM +0530 19/3/03, Ram Prasad wrote: >Will this work ? I checked out the php manual ... > >Please note that register_globals cannot be set at runtime >(<http://www.php.net/manual/en/function.ini-set.php>ini_set()). >Although, you can use .htaccess if your host allows it as described >above. An example .htaccess entry: php_flag register_globals on. > >- Ram > >----- Original Message ----- >From: <mailto:mi...@ea...>Mitra >To: <mailto:hon...@ec...>Honza Malik ; ><mailto:apc...@so...>apc...@so... >Sent: Wednesday, March 19, 2003 1:09 PM >Subject: Re: [Apc-aa-coders] HELP: Problems with global variables >not getting set > >Any ideas? > >- Mitra > > >At 10:11 PM +1100 4/3/03, Mitra wrote: > >>Any more thoughts on this? >> > >I've fixed it on my copy by setting register_globals on, but many >people installing APC-AA won't have access to php.ini > > >- Mitra > > >At 9:54 AM +1100 26/2/03, Mitra wrote: > >>Maybe it is not so much work .... >> > >We have code that is all over the place > > > >if (!get_magic_quotes_gpc()) { > // Overrides GPC variables > if( isset($HTTP_GET_VARS) AND is_array($HTTP_GET_VARS)) > for (reset($HTTP_GET_VARS); list($k, $v) =3D each($HTTP_GET_VARS); ) > $$k =3D Myaddslashes($v); > if( isset($HTTP_POST_VARS) AND is_array($HTTP_POST_VARS)) > for (reset($HTTP_POST_VARS); list($k, $v) =3D each($HTTP_POST_VARS); ) > $$k =3D Myaddslashes($v); > if( isset($HTTP_COOKIE_VARS) AND is_array($HTTP_COOKIE_VARS)) > for (reset($HTTP_COOKIE_VARS); list($k, $v) =3D each($HTTP_COOKIE_VARS= ); ) > > $$k =3D Myaddslashes($v); > >} > >We could change MyAddSlashes to set the GLOBALS, variables if >register_globals was off? > > >Anyway - shouldn't this be an include, since we do it the same way >almost everywhere? I can see that include/config.php3 is called >after this but I can't see anything in config.php3 that depends on >these variable, so we could just call a script, say >$GLOBALS[AA_INC_PATH]/setvariables.php3 AFTER config.php. > > >I think the code would also need to handle a few extra variables >like $DOCUMENT_ROOT becoming $_SERVER['DOCUMENT_ROOT'] > > >This could be easily done with a Tags-find-replace since we aren't >changing functionality, only variable names. The hard part is that >we need to work in the pre 4.2.0 case as well, so it might be best >to do it all in include/setvariables.php3 e.g. > > >if somecall(register_globals) { /// Not sure how to test this > > $DOCUMENT_ROOT =3D $_SERVER['DOCUMENT_ROOT'] > >} > > >Thoughts .... > > > >- Mitra > > > >At 1:29 PM +0100 25/2/03, Honza Malik wrote: > >>Hi Mitra, >> >> I think you upgraded PHP to version >=3D4.2.0, where PHP configuration >directive register_globals is set to OFF by default. Current AA runs >only with the register_globals set to ON. We should change the code of >AA to use superglobals variables $_GET, $_POST, $_COOKIE, ..., but is >uis quite a lot of work. On the other hand, the new settings of PHP >(register_globals=3DOFF) is safer, so we should do it. > > See > >http://www.php.net/manual/en/language.variables.predefined.php#language.var= iables.superglobals > > Honza > >On P=87, 2003-02-21 at 14:02, Mitra wrote: >> Hi >> >> Something seems to have changed on my home system, so that global >> variables aren't getting set. I don't think its an APC change >> because a backup version stopped working as well. I have upgraded >> the OS (Mac OSX) recently so its possible that a config file >> changed, so I'm really looking for help to find out what changed. >> >> There is NO php.ini in use. > > > > > > I've look on include/init_page and get_magic_quotes_gpc() is returning = 1 > > > so the piece of code that sets the variables isn't being run. > > > > > > If that code is NOT run, then how are the variables set from the URL > > > i.e. from HTTP_GET_VARS? > > > > > > - Mitra > > > > > > -- > > > Mitra Technology Consulting - www.mitra.biz - mi...@mi... > > > 02-6684-8096 or 0414-648-0722 > > > > > > Life is a Mystery to be Lived, not a Problem to be Solved >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. >> The most comprehensive and flexible code editor you can use. >> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. >> www.slickedit.com/sourceforge >> _______________________________________________ >> Apc-aa-coders mailing list >> Apc...@li... >> https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf >_______________________________________________ > >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > > > >-- > >Mitra Technology Consulting - www.mitra.biz - mi...@mi... >02-6684-8096 or 0414-648-0722 > >Life is a Mystery to be Lived, not a Problem to be Solved > > > >-- > >Mitra Technology Consulting - www.mitra.biz - mi...@mi... >02-6684-8096 or 0414-648-0722 > >Life is a Mystery to be Lived, not a Problem to be Solved > > > >-- >Mitra Technology Consulting - www.mitra.biz - mi...@mi... >02-6684-8096 or 0414-648-0722 > >Life is a Mystery to be Lived, not a Problem to be Solved -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Ram P. <ra...@pa...> - 2003-03-19 08:04:30
|
Re: [Apc-aa-coders] HELP: Problems with global variablWill this work ? I = checked out the php manual ...=20 Please note that register_globals cannot be set at runtime (ini_set()). = Although, you can use .htaccess if your host allows it as described = above. An example .htaccess entry: php_flag register_globals on.=20 - Ram ----- Original Message -----=20 From: Mitra=20 To: Honza Malik ; apc...@so...=20 Sent: Wednesday, March 19, 2003 1:09 PM Subject: Re: [Apc-aa-coders] HELP: Problems with global variables not = getting set Any ideas? - Mitra At 10:11 PM +1100 4/3/03, Mitra wrote: Any more thoughts on this? I've fixed it on my copy by setting register_globals on, but many = people installing APC-AA won't have access to php.ini - Mitra At 9:54 AM +1100 26/2/03, Mitra wrote:=20 Maybe it is not so much work .... We have code that is all over the place if (!get_magic_quotes_gpc()) { // Overrides GPC variables if( isset($HTTP_GET_VARS) AND is_array($HTTP_GET_VARS)) for (reset($HTTP_GET_VARS); list($k, $v) =3D = each($HTTP_GET_VARS); ) $$k =3D Myaddslashes($v); if( isset($HTTP_POST_VARS) AND is_array($HTTP_POST_VARS)) for (reset($HTTP_POST_VARS); list($k, $v) =3D = each($HTTP_POST_VARS); ) $$k =3D Myaddslashes($v); if( isset($HTTP_COOKIE_VARS) AND is_array($HTTP_COOKIE_VARS)) for (reset($HTTP_COOKIE_VARS); list($k, $v) =3D = each($HTTP_COOKIE_VARS); ) $$k =3D Myaddslashes($v); } We could change MyAddSlashes to set the GLOBALS, variables if = register_globals was off? Anyway - shouldn't this be an include, since we do it the same way = almost everywhere? I can see that include/config.php3 is called after = this but I can't see anything in config.php3 that depends on these = variable, so we could just call a script, say = $GLOBALS[AA_INC_PATH]/setvariables.php3 AFTER config.php. I think the code would also need to handle a few extra variables = like $DOCUMENT_ROOT becoming $_SERVER['DOCUMENT_ROOT'] This could be easily done with a Tags-find-replace since we aren't = changing functionality, only variable names. The hard part is that we = need to work in the pre 4.2.0 case as well, so it might be best to do it = all in include/setvariables.php3 e.g. if somecall(register_globals) { /// Not sure how to test this $DOCUMENT_ROOT =3D $_SERVER['DOCUMENT_ROOT'] } Thoughts .... - Mitra At 1:29 PM +0100 25/2/03, Honza Malik wrote:=20 Hi Mitra, I think you upgraded PHP to version >=3D4.2.0, where PHP = configuration directive register_globals is set to OFF by default. Current AA = runs only with the register_globals set to ON. We should change the = code of AA to use superglobals variables $_GET, $_POST, $_COOKIE, ..., = but is uis quite a lot of work. On the other hand, the new settings of = PHP (register_globals=3DOFF) is safer, so we should do it. See = http://www.php.net/manual/en/language.variables.predefined.php#language.v= ariables.superglobals Honza On P=E1, 2003-02-21 at 14:02, Mitra wrote: > Hi > > Something seems to have changed on my home system, so that = global > variables aren't getting set. I don't think its an APC change > because a backup version stopped working as well. I have = upgraded > the OS (Mac OSX) recently so its possible that a config file > changed, so I'm really looking for help to find out what = changed. > > There is NO php.ini in use. > > I've look on include/init_page and get_magic_quotes_gpc() is = returning 1 > so the piece of code that sets the variables isn't being run. > > If that code is NOT run, then how are the variables set from = the URL > i.e. from HTTP_GET_VARS? > > - Mitra > > -- > Mitra Technology Consulting - www.mitra.biz - mi...@mi... > 02-6684-8096 or 0414-648-0722 > > Life is a Mystery to be Lived, not a Problem to be Solved > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an = edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE = 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Apc-aa-coders mailing list Apc...@li... https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722=20 Life is a Mystery to be Lived, not a Problem to be Solved -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722=20 Life is a Mystery to be Lived, not a Problem to be Solved --=20 Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722=20 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Ram P. <ra...@pa...> - 2003-03-19 07:59:04
|
Re: [Apc-aa-coders] HELP: Problems with global variablI think we can = dynamically turn it off .. I will check on the net and get back soon ..=20 - Ram ----- Original Message -----=20 From: Mitra=20 To: Honza Malik ; apc...@so...=20 Sent: Wednesday, March 19, 2003 1:09 PM Subject: Re: [Apc-aa-coders] HELP: Problems with global variables not = getting set Any ideas? - Mitra At 10:11 PM +1100 4/3/03, Mitra wrote: Any more thoughts on this? I've fixed it on my copy by setting register_globals on, but many = people installing APC-AA won't have access to php.ini - Mitra At 9:54 AM +1100 26/2/03, Mitra wrote:=20 Maybe it is not so much work .... We have code that is all over the place if (!get_magic_quotes_gpc()) { // Overrides GPC variables if( isset($HTTP_GET_VARS) AND is_array($HTTP_GET_VARS)) for (reset($HTTP_GET_VARS); list($k, $v) =3D = each($HTTP_GET_VARS); ) $$k =3D Myaddslashes($v); if( isset($HTTP_POST_VARS) AND is_array($HTTP_POST_VARS)) for (reset($HTTP_POST_VARS); list($k, $v) =3D = each($HTTP_POST_VARS); ) $$k =3D Myaddslashes($v); if( isset($HTTP_COOKIE_VARS) AND is_array($HTTP_COOKIE_VARS)) for (reset($HTTP_COOKIE_VARS); list($k, $v) =3D = each($HTTP_COOKIE_VARS); ) $$k =3D Myaddslashes($v); } We could change MyAddSlashes to set the GLOBALS, variables if = register_globals was off? Anyway - shouldn't this be an include, since we do it the same way = almost everywhere? I can see that include/config.php3 is called after = this but I can't see anything in config.php3 that depends on these = variable, so we could just call a script, say = $GLOBALS[AA_INC_PATH]/setvariables.php3 AFTER config.php. I think the code would also need to handle a few extra variables = like $DOCUMENT_ROOT becoming $_SERVER['DOCUMENT_ROOT'] This could be easily done with a Tags-find-replace since we aren't = changing functionality, only variable names. The hard part is that we = need to work in the pre 4.2.0 case as well, so it might be best to do it = all in include/setvariables.php3 e.g. if somecall(register_globals) { /// Not sure how to test this $DOCUMENT_ROOT =3D $_SERVER['DOCUMENT_ROOT'] } Thoughts .... - Mitra At 1:29 PM +0100 25/2/03, Honza Malik wrote:=20 Hi Mitra, I think you upgraded PHP to version >=3D4.2.0, where PHP = configuration directive register_globals is set to OFF by default. Current AA = runs only with the register_globals set to ON. We should change the = code of AA to use superglobals variables $_GET, $_POST, $_COOKIE, ..., = but is uis quite a lot of work. On the other hand, the new settings of = PHP (register_globals=3DOFF) is safer, so we should do it. See = http://www.php.net/manual/en/language.variables.predefined.php#language.v= ariables.superglobals Honza On P=E1, 2003-02-21 at 14:02, Mitra wrote: > Hi > > Something seems to have changed on my home system, so that = global > variables aren't getting set. I don't think its an APC change > because a backup version stopped working as well. I have = upgraded > the OS (Mac OSX) recently so its possible that a config file > changed, so I'm really looking for help to find out what = changed. > > There is NO php.ini in use. > > I've look on include/init_page and get_magic_quotes_gpc() is = returning 1 > so the piece of code that sets the variables isn't being run. > > If that code is NOT run, then how are the variables set from = the URL > i.e. from HTTP_GET_VARS? > > - Mitra > > -- > Mitra Technology Consulting - www.mitra.biz - mi...@mi... > 02-6684-8096 or 0414-648-0722 > > Life is a Mystery to be Lived, not a Problem to be Solved > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an = edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE = 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Apc-aa-coders mailing list Apc...@li... https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722=20 Life is a Mystery to be Lived, not a Problem to be Solved -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722=20 Life is a Mystery to be Lived, not a Problem to be Solved --=20 Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722=20 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-19 07:54:21
|
Any ideas? - Mitra At 10:11 PM +1100 4/3/03, Mitra wrote: >Any more thoughts on this? > >I've fixed it on my copy by setting register_globals on, but many >people installing APC-AA won't have access to php.ini > >- Mitra > >At 9:54 AM +1100 26/2/03, Mitra wrote: >>Maybe it is not so much work .... >> >>We have code that is all over the place >> >> >>if (!get_magic_quotes_gpc()) { >> // Overrides GPC variables >> if( isset($HTTP_GET_VARS) AND is_array($HTTP_GET_VARS)) >> for (reset($HTTP_GET_VARS); list($k, $v) =3D each($HTTP_GET_VARS); ) >> $$k =3D Myaddslashes($v); >> if( isset($HTTP_POST_VARS) AND is_array($HTTP_POST_VARS)) >> for (reset($HTTP_POST_VARS); list($k, $v) =3D each($HTTP_POST_VARS); = ) >> $$k =3D Myaddslashes($v); >> if( isset($HTTP_COOKIE_VARS) AND is_array($HTTP_COOKIE_VARS)) >> for (reset($HTTP_COOKIE_VARS); list($k, $v) =3D each($HTTP_COOKIE_VAR= S); ) >> $$k =3D Myaddslashes($v); >>} >> >>We could change MyAddSlashes to set the GLOBALS, variables if >>register_globals was off? >> >>Anyway - shouldn't this be an include, since we do it the same way >>almost everywhere? I can see that include/config.php3 is called >>after this but I can't see anything in config.php3 that depends on >>these variable, so we could just call a script, say >>$GLOBALS[AA_INC_PATH]/setvariables.php3 AFTER config.php. >> >>I think the code would also need to handle a few extra variables >>like $DOCUMENT_ROOT becoming $_SERVER['DOCUMENT_ROOT'] >> >>This could be easily done with a Tags-find-replace since we aren't >>changing functionality, only variable names. The hard part is that >>we need to work in the pre 4.2.0 case as well, so it might be best >>to do it all in include/setvariables.php3 e.g. >> >>if somecall(register_globals) { /// Not sure how to test this >> $DOCUMENT_ROOT =3D $_SERVER['DOCUMENT_ROOT'] >>} >> >>Thoughts .... >> >> >>- Mitra >> >> >>At 1:29 PM +0100 25/2/03, Honza Malik wrote: >>>Hi Mitra, >>> >>> I think you upgraded PHP to version >=3D4.2.0, where PHP configuratio= n >>>directive register_globals is set to OFF by default. Current AA runs >>>only with the register_globals set to ON. We should change the code of >>>AA to use superglobals variables $_GET, $_POST, $_COOKIE, ..., but is >>>uis quite a lot of work. On the other hand, the new settings of PHP >>>(register_globals=3DOFF) is safer, so we should do it. >>> >>> See >>> >>>http://www.php.net/manual/en/language.variables.predefined.php#language.v= ariables.superglobals >>> >>> Honza >>> >>>On P=E1, 2003-02-21 at 14:02, Mitra wrote: >>>> Hi >>>> >>>> Something seems to have changed on my home system, so that global >>>> variables aren't getting set. I don't think its an APC change >>>> because a backup version stopped working as well. I have upgraded >>>> the OS (Mac OSX) recently so its possible that a config file >>>> changed, so I'm really looking for help to find out what changed. >>>> >>>> There is NO php.ini in use. >>> > >>> > I've look on include/init_page and get_magic_quotes_gpc() is= returning 1 >>> > so the piece of code that sets the variables isn't being run. >>> > >>> > If that code is NOT run, then how are the variables set from the URL >>> > i.e. from HTTP_GET_VARS? >>> > >>> > - Mitra >>> > >>> > -- >>> > Mitra Technology Consulting - www.mitra.biz - mi...@mi... >>> > 02-6684-8096 or 0414-648-0722 >>> > >>> > Life is a Mystery to be Lived, not a Problem to be Solved >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. >>>> The most comprehensive and flexible code editor you can use. >>>> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. >>>> www.slickedit.com/sourceforge >>>> _______________________________________________ >>>> Apc-aa-coders mailing list >>>> Apc...@li... >>>> https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >>> > >>> >>> >>> >>> >>>------------------------------------------------------- >>>This sf.net email is sponsored by:ThinkGeek >>>Welcome to geek heaven. >>>http://thinkgeek.com/sf >>>_______________________________________________ >>>Apc-aa-coders mailing list >>>Apc...@li... >>>https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >> >> >>-- >>Mitra Technology Consulting - www.mitra.biz - mi...@mi... >>02-6684-8096 or 0414-648-0722 >> >>Life is a Mystery to be Lived, not a Problem to be Solved > > >-- >Mitra Technology Consulting - www.mitra.biz - mi...@mi... >02-6684-8096 or 0414-648-0722 > >Life is a Mystery to be Lived, not a Problem to be Solved -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-16 10:52:54
|
That sounds like a good approach, But ... the CVS version looks like its missing a file. Warning: main(/users/mitra/Sites/apc-aa+/include/go_url.php3) [function.main]: failed to create stream: No such file or directory in /Users/mitra/Sites/apc-aa+/include/util.php3 on line 29 Line 29 is : require_once $GLOBALS["AA_INC_PATH"]."go_url.php3"; and the file include/go_url.php3 isn't present. - Mitra At 11:04 AM +0100 16/3/03, Jakub Adamek wrote: >Mitra, > >I have fixed this, hope it will work for you. I had similar problems >when using the Back button after jumping from Alerts to a Slice - it >always moved me to index.php3. > >My approach is to only change to index.php3 if the requested page does >not exist in the module directory. I have added some comment into >init_page.php3 near the appropriate code. > >Your ideas are fine but it is more convenient to have such a code at one >place than in every script. > >Jakub > >> -----Original Message----- >> From: apc...@li... >> [mailto:apc...@li...] On Behalf Of Mitra >> Sent: Friday, March 14, 2003 4:12 AM >> To: apc...@so... >> Subject: [Apc-aa-coders] Re: Login menu on itemedit.php3 >> broken - proposed fix please check >> >> >> >> This turns out to be a bug in the code for handling modules, in >> something Jakub (I think) must have changed recently. (I think while >> fixing the bug that multiply defines aa_menus) >> >> Before I go and fix it I want to check my solution so that I make >> sure not be break any of your code! >> >> The problem is in init_page.php3 around line 225, where init_page >> looks to see if the last slice type is the same as the current slice >> type, and then redirects to the initial page for that module type. >> >> This is NOT correct, one of the nice features of init_page is that if >> you call directly to any of the admin pages they will do a login and >> then run whatever page was called. This new code breaks all that - >> including in the case I'm worried about, the ability to put a "EDIT >> ME" button on a page, something used on several of my sites to allow >> people to edit the content while looking at the site. >> >> I thought to just put a test for if the type of last_slice_id was >> defined, but this doesn't work since if you login on an account where >> the first alphabetical slice is a module then you need to do this >> redirect away from index.php3 >> >> I think the fix is quite significant, init_page is the WRONG place >> to be checking slice type, it should be happening IN the page, so for >> example admin/index.php3 can check if the slice_type is S and >> otherwise can go to the index page of the module. (This could also >> be done in itemedit for example, but its less necessary there). >> >> I'll go ahead and make the changes if you agree, otherwise please >> propose a solution so I can fix my sites! >> >> - Mitra >> >> >> At 9:13 PM +1100 11/3/03, Mitra wrote: > > >Any ideas on this? > > > > > >Jakub - is this something you changed, I think you were working in > > >this code recently? > > > > > >- Mitra > > > > > > > > >At 7:52 PM +1100 10/3/03, Mitra wrote: > > >>Hi > > >> > > >>Something seems to have changed, > > >> > > >>If I go to > > >>http://www.byronbayfm.org.au/apc-aa/admin/itemedit.php3?edit >=1&encap=f > >>alse&id=b8bfb5b72572cf14f9beb876d0d59046&change_id=c85a4a34ccbe0ce54c4 >>>306b5c32373b1&return_url=%2Fdraft.shtml%3Fi%3D26%26apc%3De1-26 >>> >>>Then I correctly get a login screen, but once I login I get >>> >>>http://www.byronbayfm.org.au/apc-aa/admin/index.php3?slice_id=c85a4a34 >>>ccbe0ce54c4306b5c32373b1&AA_CP_Session=8417cd6e26f9f5b67c88ba6636a81cd >>>5&rXn=1 >>> >>>I.e. its dumped me into the Item Manager, when I was trying to get >>>to itemedit.php3. Its not a permission problem, I'm the superuser, >>> >>>This used to work just fine, Anyone know how this got broken, or >>>how to fix it? >>> >>- Mitra > > >-- >Mitra Technology Consulting - www.mitra.biz - mi...@mi... >02-6684-8096 or 0414-648-0722 > >Life is a Mystery to be Lived, not a Problem to be Solved > > > >------------------------------------------------------- >This SF.net email is sponsored by:Crypto Challenge is now open! >Get cracking and register here for some mind boggling fun and >the chance of winning an Apple iPod: >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Jakub A. <jak...@se...> - 2003-03-16 10:21:59
|
Halelu, I just sent the 100th revision of util.php3 to CVS! Is it not a good reason to celebrate? All the best for all coders Jakub |
From: Jakub A. <jak...@se...> - 2003-03-16 10:05:46
|
Mitra, I have fixed this, hope it will work for you. I had similar problems when using the Back button after jumping from Alerts to a Slice - it always moved me to index.php3. My approach is to only change to index.php3 if the requested page does not exist in the module directory. I have added some comment into init_page.php3 near the appropriate code. Your ideas are fine but it is more convenient to have such a code at one place than in every script. Jakub > -----Original Message----- > From: apc...@li... > [mailto:apc...@li...] On Behalf Of Mitra > Sent: Friday, March 14, 2003 4:12 AM > To: apc...@so... > Subject: [Apc-aa-coders] Re: Login menu on itemedit.php3 > broken - proposed fix please check > > > > This turns out to be a bug in the code for handling modules, in > something Jakub (I think) must have changed recently. (I think while > fixing the bug that multiply defines aa_menus) > > Before I go and fix it I want to check my solution so that I make > sure not be break any of your code! > > The problem is in init_page.php3 around line 225, where init_page > looks to see if the last slice type is the same as the current slice > type, and then redirects to the initial page for that module type. > > This is NOT correct, one of the nice features of init_page is that if > you call directly to any of the admin pages they will do a login and > then run whatever page was called. This new code breaks all that - > including in the case I'm worried about, the ability to put a "EDIT > ME" button on a page, something used on several of my sites to allow > people to edit the content while looking at the site. > > I thought to just put a test for if the type of last_slice_id was > defined, but this doesn't work since if you login on an account where > the first alphabetical slice is a module then you need to do this > redirect away from index.php3 > > I think the fix is quite significant, init_page is the WRONG place > to be checking slice type, it should be happening IN the page, so for > example admin/index.php3 can check if the slice_type is S and > otherwise can go to the index page of the module. (This could also > be done in itemedit for example, but its less necessary there). > > I'll go ahead and make the changes if you agree, otherwise please > propose a solution so I can fix my sites! > > - Mitra > > > At 9:13 PM +1100 11/3/03, Mitra wrote: > >Any ideas on this? > > > >Jakub - is this something you changed, I think you were working in > >this code recently? > > > >- Mitra > > > > > >At 7:52 PM +1100 10/3/03, Mitra wrote: > >>Hi > >> > >>Something seems to have changed, > >> > >>If I go to > >>http://www.byronbayfm.org.au/apc-aa/admin/itemedit.php3?edit =1&encap=f >>alse&id=b8bfb5b72572cf14f9beb876d0d59046&change_id=c85a4a34ccbe0ce54c4 >>306b5c32373b1&return_url=%2Fdraft.shtml%3Fi%3D26%26apc%3De1-26 >> >>Then I correctly get a login screen, but once I login I get >> >>http://www.byronbayfm.org.au/apc-aa/admin/index.php3?slice_id=c85a4a34 >>ccbe0ce54c4306b5c32373b1&AA_CP_Session=8417cd6e26f9f5b67c88ba6636a81cd >>5&rXn=1 >> >>I.e. its dumped me into the Item Manager, when I was trying to get >>to itemedit.php3. Its not a permission problem, I'm the superuser, >> >>This used to work just fine, Anyone know how this got broken, or >>how to fix it? >> >- Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Apc-aa-coders mailing list Apc...@li... https://lists.sourceforge.net/lists/listinfo/apc-aa-coders |
From: Mitra <mi...@ea...> - 2003-03-14 03:14:50
|
This turns out to be a bug in the code for handling modules, in something Jakub (I think) must have changed recently. (I think while fixing the bug that multiply defines aa_menus) Before I go and fix it I want to check my solution so that I make sure not be break any of your code! The problem is in init_page.php3 around line 225, where init_page looks to see if the last slice type is the same as the current slice type, and then redirects to the initial page for that module type. This is NOT correct, one of the nice features of init_page is that if you call directly to any of the admin pages they will do a login and then run whatever page was called. This new code breaks all that - including in the case I'm worried about, the ability to put a "EDIT ME" button on a page, something used on several of my sites to allow people to edit the content while looking at the site. I thought to just put a test for if the type of last_slice_id was defined, but this doesn't work since if you login on an account where the first alphabetical slice is a module then you need to do this redirect away from index.php3 I think the fix is quite significant, init_page is the WRONG place to be checking slice type, it should be happening IN the page, so for example admin/index.php3 can check if the slice_type is S and otherwise can go to the index page of the module. (This could also be done in itemedit for example, but its less necessary there). I'll go ahead and make the changes if you agree, otherwise please propose a solution so I can fix my sites! - Mitra At 9:13 PM +1100 11/3/03, Mitra wrote: >Any ideas on this? > >Jakub - is this something you changed, I think you were working in >this code recently? > >- Mitra > > >At 7:52 PM +1100 10/3/03, Mitra wrote: >>Hi >> >>Something seems to have changed, >> >>If I go to >>http://www.byronbayfm.org.au/apc-aa/admin/itemedit.php3?edit=1&encap=false&id=b8bfb5b72572cf14f9beb876d0d59046&change_id=c85a4a34ccbe0ce54c4306b5c32373b1&return_url=%2Fdraft.shtml%3Fi%3D26%26apc%3De1-26 >> >>Then I correctly get a login screen, but once I login I get >> >>http://www.byronbayfm.org.au/apc-aa/admin/index.php3?slice_id=c85a4a34ccbe0ce54c4306b5c32373b1&AA_CP_Session=8417cd6e26f9f5b67c88ba6636a81cd5&rXn=1 >> >>I.e. its dumped me into the Item Manager, when I was trying to get >>to itemedit.php3. Its not a permission problem, I'm the superuser, >> >>This used to work just fine, Anyone know how this got broken, or >>how to fix it? >> >- Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-13 23:49:58
|
Did you figure out what was going on here? I notice tv_slice.php3 is still commented out in tableedit.php3 - Mitra At 2:49 PM +0100 27/2/03, Honza Malik wrote: >Fixed in CVS. > >I commented out the require. I have to ask Jakub, what and where is >tv_slice.php3 file, but Jakub is out for this week. > > Honza > >On St, 2003-02-26 at 22:21, Mitra wrote: >> Anyone broken this? >> >> - Mitra >> >> >From: "Ram Prasad" <ra...@pa...> >> >To: <mi...@ea...> >> >Date: Thu, 27 Feb 2003 00:43:20 +0530 >> > >> >When I click on Cron in AA in apc-aa, I get this error: >> >Fatal error: main() >> >[<http://www.php.net/function.main>function.main]: Failed opening >> >required '/home/httpd/html/apc-aa/include/tv_slice.php3' >> >(include_path='.:/usr/local/lib/php') in >> >/home/httpd/html/apc-aa/admin/tabledit.php3 on line 41 >> >> >> -- >> Mitra Technology Consulting - www.mitra.biz - mi...@mi... >> 02-6684-8096 or 0414-648-0722 >> >> Life is a Mystery to be Lived, not a Problem to be Solved > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-12 00:23:54
|
I've fixed (CVS) PageCache so that it only purges once per page, not several times per view. I've done this by making pagecache.php3 create $GLOBALS[pagecache] and everything else uses this. Of course, its still doing things more often than needed, but this is the only way to fix it other than using Honza's cron suggestion. - Mitra At 12:27 AM +0100 5/3/03, Honza Malik wrote: >Hi Mitra, > > I'm sending it also in the list, since other developers could have >some suggestions, too. > >On =DAt, 2003-03-04 at 22:25, Mitra wrote: >> At 3:38 PM +0100 4/3/03, Honza Malik wrote: >> >Hi Mitra, >> > >> >On =DAt, 2003-03-04 at 00:59, Mitra wrote: >> >> Honza >> >> >> >> I'm looking at some of the caching problems - are you able to help a >> >> bit, with understanding things that seem strange to me? >> >> >> >> I'm particularly looking at this with the site module. >> >> >> >> The first odd thing i notice ..... >> >> >> >> Store gets called a lot which is fine, BUT lastClearTime is always 0= , >> >> so it calls purge every time, that makes for 6 extra "DELETE FROM >> >> pagecache WHERE stored < ..." calls on each of my site pages. >> > >> >You are right - the concept of lastClearTime is not good - you never >> >know the lastClearTime. >> > >> >> It looks like this is because each call is with a "new PageCache", >> >> some in GetView and the others in get_output_cached >> >> >> >> I see two solutions to this >> >> 1: Easy: Delete the purge from the store, really purge should be >> >> happening at the retrieval side, not at the storing! >> >> >> >> 2: Remove the "new PageCache" from everywhere, do it once and keep i= t >> >> in a global variable $GLOBALS[pagecache] >> > >> >I think it does not help. If one script deletes the cache and do not >> >store the time to some table, noone can know, when it was. We can store >> >it into log table. >> >> This might be ideal, but the problem is much worse than this - at the >> moment purge is called MANY times by ONE script, which means we could >> remember it within a script. > >If we will purge() cache from special script, then no calling in other >scripts is needed. If we won't use special script, you are right. > >> >The best solution, I think, is to call purge() from AA cron. The cache >> >was written in time, then AA cron wasn't in AA, so there was no such >> >possibility. Now we can move it here. >> > >> >I think it should not be problem. Anyway. I plan to write script >> >db_maintain.php3 which will be runed each 5 minutes from AA cron. There >> >I want to move managing count Hits (Item display count). Marek found >> >some inefficiecy in count hit - if a user searches in AA, noone can vie= w >> >fulltext!!! - it waits until the searching is done and after that it >> >updates display_count in item table. After that the fulltext is shown. >> >It is quite bad. >> >> I don't think its a good idea to rely on Cron, it requires access to >> the system that many cases won't have - I find this when I'm doing >> work for some organization who are hosting their site on some ISP, >> not on their own machine. Often this hosting is a gift by the ISP to >> the organization, so they don't always give it top priority. > >That's right but I do not see better solution. What about to create >special service (say at Econnect or SourceForge) which will create HTTP >request to cron.php3 on remote AA installs for such organizations (each >5 minutes)? > >(I'm sure there must be such service on the web already.) > >> I find the search/fulltext issue quite surprising, can you say more >> about where this lock happens - is it in MySQL or in PHP ? And what >> has this got to do with Counting Hits? Or do you mean that it is >> because the fulltext view is trying to update the table, and can't do >> this until the Search finishes? > >Yes, exactly. It is MySQL issue. If MySQL do the SELECT from item joined >with content table, the tables are locked (at least in MySQL <4) and all >UPDATEs must wait until the SELECT is executed. > >> >We can fix it, if we write the hit to another table. We plan to use log >> >table, where we log the hit and then we run db_maintain.php3 from cron. >> >The script will count all loged hits and then update database >> >(item.display_count). There is no problem, if the script will call also >> >purge() for cache. The purge events could be written into log database >> >as well, so we will know, when last purge() was run. >> >> Another solution MIGHT be to do the hitcount update AFTER all page >> output has been done, that way we don't care if the script waits a >> second or two? > >No way. We can't use it with shtml files, because SSI includes MUST wait >after whole script is executed. After then it can continue display next >part of shtml file. > >Also, MySQL do not have any UPDATE DELAYED command. It has only REPLACE >DELAYED, which we can't use, because the autoincremented short_id is >changed on each REPLACE. > >> > > What do you think - I think I prefer version 2, although its more >> >> work ... if we did it in just the retrieval side (i./e. ignoring it >> >> in /admin/) it would fix most of the inefficiencies. >> >> >> >> The next thing I notice is that even if nocache=3D1 it is still stor= ing >> >> stuff in the cache (again from get_output_cached and GetView) >> > >> >This is designed behavior - mostly you want just renew chache content >> >and show it. Maybe just the name 'nocache' is not good. >> >> Ok - this is fine, I thought nocache meant not using the cache at all. >> >> - Mitra > > Honza > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >for complex code. Debugging C/C++ programs can leave you feeling lost and >disoriented. TotalView can help you find your way. Available on major UNIX >and Linux platforms. Try it free. www.etnus.com >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |
From: Mitra <mi...@ea...> - 2003-03-11 22:54:11
|
Honza (I've split your message - seperate the purge issues from display-count updates) Thinking about this problem of display-counts, I wonder if the best thing would be to put them in a separate table. I think MOST views don't ever care about that field, so we could then only read that table unless someone uses an alias that requires showing display-count? - Mitra At 12:27 AM +0100 5/3/03, Honza Malik wrote: > > >The best solution, I think, is to call purge() from AA cron. The cache > > >was written in time, then AA cron wasn't in AA, so there was no such > > >possibility. Now we can move it here. > > > > > >I think it should not be problem. Anyway. I plan to write script >> >db_maintain.php3 which will be runed each 5 minutes from AA cron. There >> >I want to move managing count Hits (Item display count). Marek found >> >some inefficiecy in count hit - if a user searches in AA, noone can view >> >fulltext!!! - it waits until the searching is done and after that it >> >updates display_count in item table. After that the fulltext is shown. >> >It is quite bad. >> >> I don't think its a good idea to rely on Cron, it requires access to >> the system that many cases won't have - I find this when I'm doing >> work for some organization who are hosting their site on some ISP, >> not on their own machine. Often this hosting is a gift by the ISP to >> the organization, so they don't always give it top priority. > >That's right but I do not see better solution. What about to create >special service (say at Econnect or SourceForge) which will create HTTP >request to cron.php3 on remote AA installs for such organizations (each >5 minutes)? > >(I'm sure there must be such service on the web already.) > >> I find the search/fulltext issue quite surprising, can you say more >> about where this lock happens - is it in MySQL or in PHP ? And what >> has this got to do with Counting Hits? Or do you mean that it is >> because the fulltext view is trying to update the table, and can't do >> this until the Search finishes? > >Yes, exactly. It is MySQL issue. If MySQL do the SELECT from item joined >with content table, the tables are locked (at least in MySQL <4) and all >UPDATEs must wait until the SELECT is executed. > >> >We can fix it, if we write the hit to another table. We plan to use log >> >table, where we log the hit and then we run db_maintain.php3 from cron. >> >The script will count all loged hits and then update database >> >(item.display_count). There is no problem, if the script will call also >> >purge() for cache. The purge events could be written into log database >> >as well, so we will know, when last purge() was run. >> >> Another solution MIGHT be to do the hitcount update AFTER all page >> output has been done, that way we don't care if the script waits a >> second or two? > >No way. We can't use it with shtml files, because SSI includes MUST wait >after whole script is executed. After then it can continue display next >part of shtml file. > >Also, MySQL do not have any UPDATE DELAYED command. It has only REPLACE >DELAYED, which we can't use, because the autoincremented short_id is >changed on each REPLACE. > -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |