[pmwiki-users] RSS & password-protected pages
Crisses
crisses at kinhost.org
Tue Oct 17 06:08:13 CDT 2006
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.
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');
}
Note you have to redefine the data before calling the rss feed.
Crisses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20061017/e7c83c7d/attachment.html
More information about the pmwiki-users
mailing list