Task: at the entrance to the site on Joomla 2.5 you need to make a start page on which all non-logged in users would get. On the page - a form with a login password. Those. you need to do the same thing that the "turn off site" function does in the "general settings", but allow not only administrators, but any registered users to the site.
There are 2 ways:
- Correct access rights for registered users (so that they start when the site is turned off) and turn off the site.
- Write the page with the entry form by adjusting index.php. I know php OOP, but I do not know Joomla api. Tell me which way to go (maybe there is a third one) and at least in general terms the implementation.
Thank you all for your attention.