FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Have I been staring at the screen too long?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Have I been staring at the screen too long? [message #181027 is a reply to message #181025] Sat, 06 April 2013 22:02 Go to previous messageGo to previous message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma:
Senior Member
On 4/6/2013 11:58 AM, The Natural Philosopher wrote:
> On 06/04/13 17:27, Scott Johnson wrote:
>> On 4/6/2013 8:50 AM, M. Strobel wrote:
>>> Am 06.04.2013 03:20, schrieb Richard Yates:
>>>> I ran across this line that is apparently generated by Dreamweaver
>>>> CS4's function for checking authorization for page access. Doesn't the
>>>> content of the 'if' clause ALWAYS evaluate to false regardless of the
>>>> value of $strUsers?
>>>>
>>>> if (($strUsers == "") && false) { $isValid = true; }
>>>>
>>>> If so, is there some obscure purpose anyone can think of for this
>>>> line?
>>>
>>> Yes, ($b && false) is always false, ($b || false) is always $b.
>>>
>>> /Str.
>>>
>>
>> Certainly right. Now that I look at the logical operator, it will
>> always be false no matter the comparison and the if statement will never
>> be executed.
>>
>> Strange code.
>>
>
> according to the link posted abobe, its so the false can be toggled to
> rue easily by Dreamweaver.
>
> I spent two days turning dreamweaver code into respectable HTML, got it
> down from 40k to 3k..
>
>
>> Scotty
>>
>>
>
>

I think you are right, DW used many coding 'wizards' with several options.

Yeah I remember using DW when Macromedia had it and it did add a great
deal of 'one size fits all' coding.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Social Network PHP Framework for huge community
Next Topic: load library failure regsrv32 php5activescript.dll failed
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 07:33:21 GMT 2024

Total time taken to generate the page: 0.03271 seconds