I'm sure this will go down immensely well with the new season upon us
so i took the time this evening to fix the bookmakers, and betting now works
As I'm sure you all really want to know this cos it's been a while, and I feel you should have to suffer just a little of what I had to to fix it, it is my duty to inform you it had nothing to do with any of the betting files that I had previously meticulously combed for the source of the error, but was infact once again all down to those pesky register globals (that screw up so much for kind hearted web developers), and a curious result they were having with the betting system that relied on globals carrying a value (and built in protection against having register globals enabled on the host), and due to an update to v2.0.21 is broke the bookies mod. To fix it took the addition of a mere 6 characters (one blank) - , TRUE - to a file called by every single page
The problem for the total of none of you that give a ****, is that was that when the POST_VARS name is only digits, the in_array() function converts the numbers to indexes - setting the strict parameter of the in_array() function (it is an optional parameter) to TRUE makes the array run a strict check, meaning it will check the values in an array (and treat them only as values not as indexes)
Well congrats to any who followed that cos it felt like a load of twaddle as I typed it, but as I said I feel it only right you suffer of the pain I had to go through in working out what the problem was
But now bet away!
Betting's fixed
Moderator: Moderators
Forum rules
Before posting on the forum please ensure you read the Board Wide Rules
Before posting on the forum please ensure you read the Board Wide Rules
Betting's fixed
ahhh ... the whit
Re: Betting's fixed
mandy wrote:The problem for the total of none of you that give a ****, is that was that when the POST_VARS name is only digits, the in_array() function converts the numbers to indexes - setting the strict parameter of the in_array() function (it is an optional parameter) to TRUE makes the array run a strict check, meaning it will check the values in an array (and treat them only as values not as indexes)
Oh, I could have told you that, why didn't you ask!
Leeds :: SLL :: South :: Cardiff Harlequins :: Cardiff Uni :: Penarth
i did them and just whacked them in based on what i thought for this year and the comments made in the north thread.
Dont be offended if you think i've given you generous odds - just cash in when timperley win! its not really about having super-accurate odds either, just a bit of fun to keep you entertained on these long, cloudy summer days
Dont be offended if you think i've given you generous odds - just cash in when timperley win! its not really about having super-accurate odds either, just a bit of fun to keep you entertained on these long, cloudy summer days
It's not the size of the dog in the fight...
- cheekylaxstuff
- Moderator
- Posts: 3860
- Joined: Thu Nov 03, 2005 10:41 am
- gender: Male
- davidmcculloch81
- Moderator
- Posts: 2070
- Joined: Wed Nov 02, 2005 5:45 pm
- gender: Male
Re: Betting's fixed
mandy wrote:Betting's fixed
Well that's not going to want to make us bet is it?
Jedi Lax #9
CEng MIMechE
_______________
My views are not necessarily those of Clarendon Road Primary School Pop Lacrosse Team
CEng MIMechE
_______________
My views are not necessarily those of Clarendon Road Primary School Pop Lacrosse Team
- cheekylaxstuff
- Moderator
- Posts: 3860
- Joined: Thu Nov 03, 2005 10:41 am
- gender: Male