There's a lot of fields that fall into the same category of being tinyint when they logically should be bool.
Trouble is, even on more modern MySQL I'm not sure it's any faster and in some cases it will be slower as it messes round fixing up part bytes (especially in fields with variable width columns that implicitly force everything else as bytes).
There's also a lot of fields whose use is never stated anywhere... yay for undocumented schemas.
OK, took a look at script.js.
All the stuff with == null vs ! should work, and seems to.
There's only two things I'm wary of.
Code: [Select]
Surely that should be:
Code: [Select]
And also,
Code: [Select]
vs
Code: [Select]
Seems a bit redundant logically, not to mention inaccurate.
I'd suggest:
Code: [Select] and just be done with it.
Revision: 182
Author: arantor
Date: 20:46:32, 06 October 2010
Message:
! Missed a closedir that should have been removed before (Subs-Post.php)
----
Modified : /trunk/Sources/Subs-Post.php
Trouble is, even on more modern MySQL I'm not sure it's any faster and in some cases it will be slower as it messes round fixing up part bytes (especially in fields with variable width columns that implicitly force everything else as bytes).
There's also a lot of fields whose use is never stated anywhere... yay for undocumented schemas.
Posted: October 6th, 2010, 08:45 PM
OK, took a look at script.js.
All the stuff with == null vs ! should work, and seems to.
There's only two things I'm wary of.
doForm.passwrd.value = is_ff != -1 ? '' : doForm.passwrd.value = doForm.passwrd.value.replace(/./g, '*');Surely that should be:
doForm.passwrd.value = is_ff != -1 ? '' : doForm.passwrd.value.replace(/./g, '*');And also,
bInit = typeof(bInit) == 'undefined' ? false : true;vs
bInit = bInit ? true : false;Seems a bit redundant logically, not to mention inaccurate.
I'd suggest:
bInit = typeof(bInit) != 'undefined';Posted: October 6th, 2010, 09:37 PM
Revision: 182
Author: arantor
Date: 20:46:32, 06 October 2010
Message:
! Missed a closedir that should have been removed before (Subs-Post.php)
----
Modified : /trunk/Sources/Subs-Post.php


