[pmwiki-users] RSS & password-protected pages

Mike mike at widowitz.com
Tue Oct 17 06:23:34 CDT 2006


Crisses wrote on 17.10.2006 13:08:
> 
> On Oct 17, 2006, at 6:28 AM, Mike wrote:
>> econd, just out of curiosity and since I couldn't find that as well -
>> what exactly is the purpose of the "@"-sign in the code above? To
>> reference the array?
>>
> Error suppression.
> 
> If it doesn't find $_GET defined, it won't scream about it.  It will
> just skip the statement without output to the browser.

Thanks.

> You can also probably:
> 
> if ($action == "rss"){
> if (@$_GET['authpw']) $_POST['authpw'] = $_GET['authpw'];
> if (@$_GET['authid']) $_POST['authid'] = $_GET['authid'];
> include_once('path/to/your/rss/choice.php');
> }

Which is *exactly* what I did already :-)) Thanks!
Mike




More information about the pmwiki-users mailing list