[pmwiki-users] Condition authority on date?
Allister Jenks
arj at zkarj.co.nz
Wed May 31 04:14:01 CDT 2006
On 5/30/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> In local/config.php:
>
> $date = strftime('%Y%m%d', $Now);
> if ($date >= '20060601') {
> $page = ReadPage('Issue1.GroupAttributes');
> if ($page['passwdread'] != '@Issue1') {
> $page['passwdread'] = '@Issue1';
> WritePage('Issue1.GroupAttributes', $page);
> }
> }
>
> Upon receiving the first page request on June 1st, PmWiki will
> change the read password for Issue1.GroupAttributes to '@Issue1'.
> (I haven't tested this code myself, but it ought to work or at
> least be fairly close.)
Tested and working.
--
Allister
More information about the pmwiki-users
mailing list