<br><br><div><span class="gmail_quote">On 8/24/06, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Aug 24, 2006 at 11:17:33PM +0100, Hans wrote:<br>> Andy wrote:<br>> >After your first comment, I took a peak at Hans' code, and<br>> >unfortunately, I really don't know enough PHP or regex to be able to
<br>> >tweak it (I tried), but I was thinking of a tweak that would allow<br>> >someone to just include a line like:<br>> ><br>> >$RequiredStyleGroup = 'ExampleStylesGroup';<br>> ><br>> >in
config.php.<br>><br>> I updated stylepage.php and added a variable $SiteGroupStylePages,<br>> which is set to 1 by default, restricting other style pages to the<br>> $SiteGroup.<br>> This is a change from the previous behaviour, which allowed style
<br>> pages in any group.<br>> If you want this you need to set $SiteGroupStylePages = 0;<br>> I hope this meets some of the demand for greater security in using this<br>> script.<br><br>Eek! Almost anything that is "on/off" really ought to
<br>be prefaced with "$Enable", for consistency with other switches<br>in PmWiki. So, perhaps $EnableSiteGroupStylesOnly or something<br>like that.<br><br>Or, we could have $StylePagePattern, which limits pages according
<br>to a given pattern:<br><br> $StylePagePattern = '/^Site\\./';<br><br>Pm<br><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com
</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br></blockquote></div><br>As one who initially pushed for a recipe for allowing CSS in wiki pages and helped work on it, I must say that I have been using it fairly often and successfully. It's handy when you have something you want to do as a "quick fix" if, for example, I don't have time to do anything on the server side of things but there's some style thing that's bugging me, or I just need to create a new class or something. Putting restrictions on use is a necessity, but allowing authors in other groups to call (:stylepage:) from protected groups is really cool.
<br><br>Jon Haupt<br>