[pmwiki-users] RSS & password-protected pages

Crisses crisses at kinhost.org
Tue Oct 17 06:47:35 CDT 2006


On Oct 17, 2006, at 7:23 AM, Mike wrote:

> 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.

No problem.  I try to answer what I can so someone else doesn't have  
to.  I owe Patrick some time off ;)  Thankfully I only really bug him  
every 3 years or so on this level ;)  Maybe I should fly to Texas and  
babysit for him.

>> 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

Note there are other formats (atom, rdf, etc.) available through the  
feed recipe(s) and you may want to "or" ( || ) that if statement...

Crisses





More information about the pmwiki-users mailing list