|
Posted by Els on 03/08/07 00:05
Rik wrote:
> Els <els.aNOSPAM@tiscali.nl> wrote:
>>> If it doesn't work:
>>>
>>> 1. Enable error_reporting if it isn't on already
>>> (ini_set('display_errors',true);error_reporting(E_ALL);
>
>> I have no idea where I can put those two lines, as any place I tried
>> so far gives me an unexpected ';' for the display_errors line.
>
> Don't add the first '(' :-)
> So, literally:
> ini_set('display_errors',true);
> error_reporting(E_ALL)
only then with a ';' after (E_ALL), right?
>>> 2. var_dump() the variables you are using in strategic places, to check
>>> wether they contain what you think they should. For instance, right
>>> before
>>> the above line you could use
>>> var_dump($row['passwd'],$_SERVER['PHP_PW'],md5($_SERVER['PHP_PW']));
>>
>> I then used the var_dump line by itself, but of course, if I put it in
>> the 'not verified' part, it will display only if I press Cancel. The
>> output then gives NULL NULL string(32) "[my md5 password strong]", but
>> I think that doesn't mean much, because of the Cancel button.
>
> Well, you add it exactly before checking wether $row['passwd'] ==
> md5($_SERVER['PHP_PW'])
But where would that supposed to be shown if I fill out a username and
password in the popup? If I press submit, the same popup just comes up
again, no new page is shown.
>> For now, I'll have to dismiss this mission as too complicated for me.
>> Thanks again for your help, but I'll have to find different ways to go
>> about what I need to accomplish.
>
> Well, working within other unknown code as a beginner can be very, very
> tricky. If you still feel like it, you might want to try it in a seperate
> file first. Just have 1 preset username & password, check if you can get
> that to work, and only then try to expand & add it in Joomla.
But how/where do I preset a username & password?
(yes I'm a total noob :-) )
>>> On a side note: you do know I made the table- and fieldnames up, as I
>>> have no idea how they're called in Joomla?
>>
>> Yes :-)
>
> Good, just checking ;)
:-)
--
Els http://locusmeus.com/
Now playing: Live - [Untitled]
[Back to original message]
|