Register Globals Support
#1
Posted 16 May 2004, 21:36
The contribution can be found here...
http://www.oscommerce.com/community/contributions,2097
Comments / abuse / vacuous indifference (delete as you see fit - if you can be bothered) welcomed.
regards,
Rich.
#2
Posted 20 May 2004, 20:14
If someone is interested in the changes, i can post the changed files.
Thanks and Greetings
Alex
Sorry for my bad english
#3
Posted 21 May 2004, 18:24
MasterEmit, on May 20 2004, 08:14 PM, said:
If someone is interested in the changes, i can post the changed files.
Thanks and Greetings
Alex
Sorry for my bad english
#4
Posted 21 May 2004, 19:12
Warning: First argument to array_keys() should be an array in /httpdocs/shop/includes/functions/sessions.php on line 74
Warning: Invalid argument supplied for foreach() in /httpdocs/shop/includes/functions/sessions.php on line 75
what to do with these?
#5
Posted 21 May 2004, 22:23
Can you add the part of the code, where these warnings occured? Just some lines and in which function.
Alex
#6
Posted 22 May 2004, 01:55
Can anyone tell me the advantages of installing this contrib? Is this for security reasons? Thanks.
#7
Posted 22 May 2004, 14:27
It seems to be, that i still have some problems in the admin at product attributes. I try to find out, where this problem is located. Currently i can not page through the attributes.
Alex
#8
Posted 22 May 2004, 14:54
Following changes are necessary:
//BOF - RegisterGlobals
// if (!isset($option_page)) {
// $option_page = 1;
// }
if (!isset($option_page)) {
if (isset($HTTP_GET_VARS['option_page']))
{
$option_page = $HTTP_GET_VARS['option_page'];
}
else
{
$option_page = 1;
}
}
// EOF - RegisterGlobals
//BOF - RegisterGlobals
// if (!isset($value_page)) {
// $value_page = 1;
// }
if (!isset($value_page)) {
if (isset($HTTP_GET_VARS['value_page']))
{
$value_page = $HTTP_GET_VARS['value_page'];
}
else
{
$value_page = 1;
}
}
// EOF - RegisterGlobals
//BOF - RegisterGlobals
// if (!isset($attribute_page)) {
// $attribute_page = 1;
// }
if (!isset($attribute_page)) {
if (isset($HTTP_GET_VARS['attribute_page']))
{
$attribute_page = $HTTP_GET_VARS['attribute_page'];
}
else
{
$attribute_page = 1;
}
}
// EOF - RegisterGlobals
#9
Posted 22 May 2004, 17:02
...and improve my coding ! Sorry for the problems you all seem to be having - be assured that I shall suitably chastise myself for causing such grief. I'll look at what you've all posted in depth after I've written this.
Oh well, at least it's good to know that other people are interested in this.
regards,
Rich.
#10
Posted 22 May 2004, 22:53
This includes all the fixes that have been posted here to date, plus a fix for the array referencing problem reported by Deodupke on 21/05/2004.
regards,
Rich.
#11
Posted 23 May 2004, 17:17
And is it something that could be used on a site with ALOT of mods and hacks?
Ta.
CC.
#12
Posted 24 May 2004, 08:39
CMOTD, on May 22 2004, 10:53 PM, said:
This includes all the fixes that have been posted here to date, plus a fix for the array referencing problem reported by Deodupke on 21/05/2004.
regards,
Rich.
#13
Posted 24 May 2004, 11:20
Case:
Default language is dutch. Everything shows in dutch ( that's good) when selecting english ( as customer) the page where you are at that moment displays in english and all the links to other parts of the shop are also english.
But, when clicking a link to an other part of the shop the language switches back to ( default) dutch again.
So i think the variable which containts the languagesetting is not available on other pages or something..
#14
Posted 24 May 2004, 11:32
In the administration menu there's also a problem with a variable i think...
when going to the catalogus section en clicking one category of that section it switches to the Configuration menu ( and closes the catalogus menu)
#15
Posted 24 May 2004, 12:14
I'm not able to look at this right now, but I'll look into it this evening - I'm sure it's nothing difficult to fix (feel free to remind me I said this when I still haven't got a solution in a week's time !)
In response to CC's question - download and look at the contribution!
The answer is 'not many' - I think it's 4 files in admin and 3 files in catalog (or something like that - I don't have the code in front of me). The changes are actually very small.
Also, I have specifically written the change instructions in a way that is less likely to interfere with other modifications. But if you read the contribution, you'd know this already :-)
regards,
Rich.
Edited by CMOTD, 24 May 2004, 12:16.
#16
Posted 24 May 2004, 19:04
I don't suppose you can be a bit more specific about the language problem can you ? Is there any particular link you can click on that causes the language to switch back to its default ? I have tried to reproduce the problem but can't.
Re The problem with admin category selection switching back to Configuration....
What setting do you have for 'variables_order' in php.ini ?
The default value for this is "EGPCS"
I tried setting this to "ES" because it's more secure but it breaks quite a bit of code. One of the problems I observed was exactly the one you describe.
In the meantime, if this is not your problem then all I can suggest for now is that you go back and check that all the changes are applied correctly. Either way, feedback is much appreciated.
puzzled....
regards,
Rich.
Edited by CMOTD, 24 May 2004, 19:05.
#17
Posted 24 May 2004, 19:19
CMOTD, on May 24 2004, 07:04 PM, said:
I don't suppose you can be a bit more specific about the language problem can you ? Is there any particular link you can click on that causes the language to switch back to its default ? I have tried to reproduce the problem but can't.
Re The problem with admin category selection switching back to Configuration....
What setting do you have for 'variables_order' in php.ini ?
The default value for this is "EGPCS"
I tried setting this to "ES" because it's more secure but it breaks quite a bit of code. One of the problems I observed was exactly the one you describe.
In the meantime, if this is not your problem then all I can suggest for now is that you go back and check that all the changes are applied correctly. Either way, feedback is much appreciated.
puzzled....
regards,
Rich.
thanks for looking at the problem
about the PHP.ini setting: i'm running this thing on a host so i can't look at the php.ini
about he language thing i send you a PM
#18
Posted 24 May 2004, 21:12
Any idea what's happening?
Thanks!
Rob Z.
#19
Posted 24 May 2004, 21:16
rzazueta, on May 24 2004, 09:12 PM, said:
Any idea what's happening?
Thanks!
Rob Z.
i solved this by commenting the register_globals check in application.php in your /install/includes
#20
Posted 24 May 2004, 22:31
Thanks a ton!
Rob Z.














