Forums

PHP

This topic is locked

PHP User Authentication Extension for MX

Posted 30 Oct 2002 10:14:41
1
has voted
30 Oct 2002 10:14:41 Saeed Abdi posted:
I've downloaded "PHP User Authentication Extension" from www.felixone.it but I cannot make it work, it keeps complaining about PHP_SELF which as I understand is global declaration which is a security risk and most server admins disable that option, so my question is does anyone know any work around that will make this extension work.

Thanks is advance ;D

Edited by - xlarge on 30 Oct 2002 10:16:18

Replies

Replied 30 Oct 2002 22:37:09
30 Oct 2002 22:37:09 Tim Green replied:
<pre id=code><font face=courier size=2 id=code>The easy way to do this is to create a new PHP Code block at the top of every page containing these behaviors, and use the following code in there..


if (phpversion &gt; "4.0.6" {
$PHP_SELF = $_SERVER['PHP_SELF'];
} else {
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
}


This will cover you regardless of the PHP version you are using....

Of course, had it been done right in the first place then it wouldn't be an issue <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Hope this helps
</font id=code></pre id=code>


Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Edited by - rawveg on 05 Nov 2002 15:40:36

Reply to this topic