Hello everybody,
In this small tutorial i will show you how to get as admin access to the site while the maintenance mode is on.
- You need to open /app/class.core.php
- Search around line 110 for
PHP Code:
elseif($_GET['url'] != 'maintenance')
- Change the line to
PHP Code:
elseif($_GET['url'] != 'maintenance' && $_SESSION['user']['rank'] != 7)
Now only the administrators can access the site while the maintenance mode is on, if you want to have access for the moderators too you need to change the line to this:
PHP Code:
elseif($_GET['url'] != 'maintenance' && $_SESSION['user']['rank'] >= 6)
I hope this helps you :)