On Fri, 30 Sep 2005, [iso-8859-1] Bèr Kessels wrote:
On Friday 30 September 2005 07:18, Dries Buytaert wrote:
On 30 Sep 2005, at 00:33, Khalid B wrote:
I was working on something similar for this, but a bit more elaborate, allowing a customized message on the front page, as well as an on/off setting.
Only drawback is as mentioned: you can lock yourself out.
Looks better than my approach, although your code needs to be updated to adhere the Drupal coding style. Some strings can't be translated either; missing t() functions.
Though both ideas look good, I (just like Gerhard) Am very interested in the performance penalty of an extra If on EVERY page. A benchmark, should IMO in this case be done over a long time. The performance penalty is, imo not worth the gain. But i'd like to see if my concerns are worth investigating at all.
I don't think the impact of a single if() would be measurable without a lot of effort. Cheers, Gerhard